Commit graph

4602 commits

Author SHA1 Message Date
Emmanuel Pescosta
dc378935d3 Only keep the active view container connected with the main window, all inactive
view containers are disconnected. Changing the connections is done whenever the
active view has been changed, so we can always guarantee that the active view is
connected.

The problem with restoring saved sessions is, that we create a new view container
in DolphinTabPage::restoreState() when split view was used in the previous session,
but this view container isn't connected to the main window slots because
DolphinMainWindow::connectViewSignals() is not called for this container. This leads
to these strange problems: no context menu, ...

BUG: 338549
REVIEW: 119961
FIXED-IN: 4.14.1
2014-08-31 17:00:10 +02:00
David Faure
b258dcbbe9 cleanups 2014-08-24 15:43:32 +02:00
David Faure
3d89079aa4 use non-deprecated cmake var name 2014-08-24 15:40:50 +02:00
l10n daemon script
f27250bf27 SVN_SILENT made messages (after extraction) 2014-08-24 01:43:17 +00:00
Emmanuel Pescosta
d4fb129710 Merge branch 'master' into frameworks
Conflicts:
	dolphin/src/dolphinmainwindow.cpp
	dolphin/src/dolphinmainwindow.h
	dolphin/src/dolphinrecenttabsmenu.cpp
	dolphin/src/dolphinviewcontainer.cpp
	kfind/CMakeLists.txt
2014-08-22 23:17:02 +02:00
Emmanuel Pescosta
7b0c9bbc58 Merge branch 'KDE/4.14' 2014-08-22 22:44:53 +02:00
Arjun AK
4290827540 Hide an already visible KMessageWidget message before showing a new one
1. Do some operation that causes the KMessageWidget to show an error message
2. Immediately Repeat the same action.

The user has no way to know whether the error message is from the second operation or
is a leftover from the first one. By hiding the widget first and then showing it using
animatedShow(), the user can clearly see that a new message was generated. Also once the
directory successfully loads, the widget should be hidden.

BUG: 323077
FIXED-IN: 4.14.1
REVIEW: 119401
2014-08-22 18:42:50 +05:30
David Faure
ee946d362c Port away from KonqOperations::askDeleteConfirmation and KonqOperations::del
and remove them. Porting docs added to https://community.kde.org/Frameworks/Porting_Notes#libkonq
2014-08-22 10:16:48 +02:00
David Faure
e44ddfa5ab Remove KonqOperations::emptyTrash() and port to KIO::emptyTrash() instead. 2014-08-21 22:01:23 +02:00
Emmanuel Pescosta
2d2d55f3df Save the view states in addition to the view urls and splitter state in DolphinTabPage.
Also added version numbers to view and tab state.

REVIEW: 119792
2014-08-20 23:06:39 +02:00
David Faure
5a6ac1b5f7 Port from KonqOperations::restoreTrashedItems to KIO::restoreFromTrash. 2014-08-19 22:31:50 +02:00
Emmanuel Pescosta
4b758c386f Merge branch 'KDE/4.14'
Conflicts:
	dolphin/src/dolphin.appdata.xml
2014-08-14 18:28:51 +02:00
Mathieu Tarral
b73aeb4598 Fixes display issues of Dolphin statusbar widgets when a high DPI value is used (>= 196 for example).
BUG: 334271
REVIEW: 119701
FIXED-IN: 4.14.1
2014-08-14 18:12:08 +02:00
Emmanuel Pescosta
cdebd19925 Merge branch 'master' of git://anongit.kde.org/kde-baseapps 2014-08-14 17:57:44 +02:00
l10n daemon script
4d2877e4bb SVN_SILENT made messages (after extraction) 2014-08-14 01:41:42 +00:00
Emmanuel Pescosta
39d8fb12c1 React on the redirection signal from DolphinView to properly update the tab and window titles.
REVIEW: 119697
BUG: 305721
2014-08-13 22:06:28 +02:00
Emmanuel Pescosta
62418c58a5 Use DolphinTabPage saveState/restoreState to remember and re-open closed tabs.
REVIEW: 118968
2014-08-13 20:50:36 +02:00
David Faure
3e5ff13f92 Port from KonqMimeData to KIO::isClipboardDataCut/setClipboardDataCut 2014-08-13 18:27:09 +02:00
l10n daemon script
c7e300db90 SVN_SILENT made messages (after extraction) 2014-08-13 05:58:14 +00:00
Frank Reininghaus
4b70446c17 Merge branch 'KDE/4.14' 2014-08-12 09:23:24 +02:00
Frank Reininghaus
bf1ac8ee9b Always clear DolphinView's m_currentItemUrl member in updateViewState()
Before this patch, we still kept the URL in m_currentItemUrl if the URL
was not found in the model. This could cause problems the next time
updateViewState() was called, because the current index would then be
set to 0, which could cause other issues.

For example, all items between the first item in the view and a folder
which was expanded in Details View could be selected.

In principle, it is possible that updateViewState() is called multiple
times if many large files are being pasted in the view, but since the
item which should be made the current item (and which the view should
be scrolled to) should always be the first pasted item, this change
will most likely not cause any other problems.

BUG: 329377
REVIEW: 119703
FIXED-IN: 4.14.0
2014-08-12 09:17:41 +02:00
Frank Reininghaus
4ed068ffff Fix crash when restoring a session stored with Dolphin 4.13 or earlier
Since DolphinTabPage::saveState() and
DolphinTabPage::restoreState(const QByteArray& state) save and restore
the state of each tab in a different format than DolphinMainWindow did
before the refactoring, we can run into problems: the first time a user
logs into a session that has Dolphin 4.14, Dolphin might read session
data that does not contain the QByteArray that DolphinTabPage wants to
read the data from.

In restoreState, isSplitViewEnabled will thus have the value false, and
no secondary view will be created. Later on, m_primaryViewActive will
also be set to false, but the else branch of the following
"if (m_primaryViewActive)" then tries to activate the secondary view,
which does not exist -> we get a crash.

The easiest solution is to not restore the tab state if no session data
in the new format is found.

BUG: 338187
REVIEW: 119718
FIXED-IN: 4.14.0
2014-08-12 09:08:30 +02:00
Frederik Gladhorn
316539b9f3 Port accessibility to Qt 5
REVIEW: 119428
2014-08-10 19:00:02 +02:00
Emmanuel Pescosta
38381bc6a2 Implemented DolphinTabWidget class to encapsulate the tab handling from DolphinMainWindow.
REVIEW: 119115
2014-08-10 18:52:06 +02:00
l10n daemon script
013b2346f5 SVN_SILENT made messages (after extraction) 2014-08-10 05:48:43 +00:00
l10n daemon script
1ffb64db1f SVN_SILENT made messages (after extraction) 2014-08-10 01:35:56 +00:00
Emmanuel Pescosta
18a976c435 Fix wrong text eliding in some corner cases.
BUG: 337104
FIXED-IN: 4.14.0
REVIEW: 119546
2014-08-04 19:43:07 +02:00
Luca Beltrame
df871967c9 Merge branch 'master' into frameworks
Conflicts:
	dolphin/src/panels/places/placesitemmodel.cpp
	kdepasswd/kcm/CMakeLists.txt [deleted in frameworks]
	kdepasswd/kcm/main.cpp [deleted in frameworks]
2014-08-03 18:49:43 +02:00
Frank Reininghaus
9203fdc4d9 Merge branch 'KDE/4.14' 2014-08-03 10:55:58 +02:00
Michael Reeves
a31b836479 Fix warning on launch "QPixmap::scaled: Pixmap is a null pixmap"
If Dolphin is launched with the information panel on and set to display
previews, PixmapViewer::paintEvent is called three times before any
pixmap is set. Each time the above warning message is output.

REVIEW: 119553
FIXED-IN: 4.14.0
2014-08-03 10:51:41 +02:00
l10n daemon script
3d076f7c5e SVN_SILENT made messages (.desktop file) 2014-08-03 07:30:09 +00:00
l10n daemon script
2b1267d71e SVN_SILENT made messages (after extraction) 2014-08-03 05:46:42 +00:00
l10n daemon script
e7bc1cb09d SVN_SILENT made messages (.desktop file) 2014-08-03 04:28:42 +00:00
l10n daemon script
6970c5acb6 SVN_SILENT made messages (after extraction) 2014-08-03 01:38:10 +00:00
l10n daemon script
09ab78a8bb SVN_SILENT made messages (after extraction) 2014-08-02 05:39:42 +00:00
l10n daemon script
9d758fd54b SVN_SILENT made messages (after extraction) 2014-08-02 01:34:38 +00:00
Luca Beltrame
228aadd4d9 Actually the include was unused, remove it 2014-08-01 11:26:51 +02:00
Luca Beltrame
611ba7c2e8 Attempt to fix build (try 2) 2014-08-01 11:22:17 +02:00
l10n daemon script
7697451998 SVN_SILENT made messages (after extraction) 2014-08-01 01:49:50 +00:00
Arnold Dumas
ed20a18a73 Clean up KAction leftovers. 2014-07-31 20:06:17 +02:00
l10n daemon script
39e1197536 SVN_SILENT made messages (after extraction) 2014-07-31 05:55:50 +00:00
l10n daemon script
ec6d53e70e SVN_SILENT made messages (after extraction) 2014-07-31 01:40:02 +00:00
Lukáš Tinkl
1fd21301ff s/kcmshell4/kcmshell5 2014-07-31 02:51:27 +02:00
Arjun AK
c654019eb9 Prevent multiple connections between sender and receiver
Use a Qt::uniqueConnection so that only one connection exists between the sender and receiver.

REVIEW: 119532
2014-07-30 18:26:39 +05:30
l10n daemon script
d1f12e1778 SVN_SILENT made messages (after extraction) 2014-07-27 05:45:07 +00:00
l10n daemon script
7299d007f2 SVN_SILENT made messages (.desktop file) 2014-07-25 05:22:21 +00:00
l10n daemon script
ecf7a1d1ed SVN_SILENT made messages (after extraction) 2014-07-25 01:49:32 +00:00
l10n daemon script
cb8d725451 SVN_SILENT made messages (.desktop file) 2014-07-24 04:37:28 +00:00
l10n daemon script
a2bd1a9188 SVN_SILENT made messages (after extraction) 2014-07-24 01:34:11 +00:00
Luca Beltrame
674a9c08bb Fix build 2014-07-22 16:15:25 +02:00
Luca Beltrame
de3e2ae40f Merge branch 'master' into frameworks 2014-07-22 15:58:03 +02:00
Arjun AK
9a69506572 make CTRL+SHIFT+T reopen last closed tab
BUG: 336818
FEATURE: 118994
2014-07-22 17:31:49 +05:30
Luca Beltrame
2b75a555ca Merge branch 'master' into frameworks 2014-07-21 21:20:05 +02:00
l10n daemon script
c2f8389acb SVN_SILENT made messages (after extraction) 2014-07-21 05:43:56 +00:00
l10n daemon script
17688f23e7 SVN_SILENT made messages (after extraction) 2014-07-19 01:34:04 +00:00
Montel Laurent
8ec8450c36 install rc file to KXMLGUI_INSTALL_DIR 2014-07-18 09:26:12 +02:00
Montel Laurent
31230ccdb5 Use xi18n when text has markup 2014-07-16 13:26:56 +02:00
l10n daemon script
603e1775c8 SVN_SILENT made messages (.desktop file) 2014-07-16 08:22:33 +00:00
Luca Beltrame
e242d9548d Merge branch 'master' into frameworks
Conflicts:
	kdepasswd/kcm/kcm_useraccount.desktop [deleted in frameworks branch]
	plasma/applets/folderview/plasma-applet-folderview.desktop [deleted in frameworks branch]
2014-07-16 10:13:57 +02:00
Frank Reininghaus
abd114f710 Merge branch 'KDE/4.14' 2014-07-16 09:16:24 +02:00
Frank Reininghaus
7cb193de10 Fix regression concerning the "Places" selector in the location bar
This commit ensures that the selector is visible in all location bars
if and only if the Places Panel is hidden. It fixes a regression caused
by commit 6a98d83312.

BUG: 337389
FIXED-IN: 4.14.0
REVIEW: 119238
2014-07-16 09:12:16 +02:00
l10n daemon script
ebae393190 SVN_SILENT made messages (.desktop file) 2014-07-16 04:52:24 +00:00
l10n daemon script
31a106a63a SVN_SILENT made messages (after extraction) 2014-07-16 01:50:43 +00:00
Emmanuel Pescosta
fc4315d57e Merge branch 'master' into frameworks
Conflicts:
	dolphin/src/dolphinmainwindow.cpp
	dolphin/src/dolphinviewcontainer.cpp
2014-07-10 22:49:05 +02:00
Emmanuel Pescosta
1dfafcb176 Implemented (QTabBar based) DolphinTabBar class to encapsulate the tab bar handling from DolphinMainWindow.
REVIEW: 118969
2014-07-08 19:38:18 +02:00
Emmanuel Pescosta
00754dda30 Avoid opening unused tabs which are closed again after startup has finished (when directory/file urls are given)
Instead of always opening a new tab with the home url and closing it again when directory/file urls are passed on,
we now use the given directories/files directly to open new tabs on startup.

Makes the code easier and we can reuse openDirectories/openFiles in future (if needed).

REVIEW: 118966
2014-07-08 19:16:17 +02:00
l10n daemon script
c25b501898 SVN_SILENT made messages (after extraction) 2014-07-06 01:33:37 +00:00
l10n daemon script
baeb21e96e SVN_SILENT made messages (after extraction) 2014-07-05 01:36:55 +00:00
Emmanuel Pescosta
b0fb590ebd Implemented DolphinTabPage class to encapsulate the split view handling from DolphinMainWindow.
The signal activeViewUrlChanged in DolphinTabPage is currently unused, but we need it later when
we implement the tab widget and tab bar.

DolphinTabPage has saveState/restoreState which are using a QByteArray instead of the KConfigGroup to
be more generic.

REVIEW: 118964
2014-07-04 17:16:03 +02:00
Luca Beltrame
c640dec3f6 Merge branch 'master' into frameworks 2014-07-04 07:22:29 +02:00
Frank Reininghaus
20e13c31df Improve drawing selected items in Compact/Details View and Places Panel
This commit removes the icon tinting for the selected item in Compact
and Details View, and extends the selection rectangle such that it
includes the icon area as well. The icon tinting can be disturbing, and
having a selection rectangle that only includes the text can look a bit
strange, especially in the Places Panel.

BUG: 304643
REVIEW: 119018
FIXED-IN: 4.14.0
2014-07-04 00:49:46 +02:00
Frank Reininghaus
4d8f89f55a Remove current item highlighting in the Places Panel
In the Places Panel, there is always exactly one selected item, which is
equal to the current item. Since the selected item is highlighted by
drawing its background in a different color, it is not really necessary
to highlight additionally that it is the current item.

This is achieved by removing the calls to
KItemListWidget::setCurrent(true) from KItemListView. The "current"
information in the widget is only used for deciding if the "current item
highlighting", like an underline in Oxygen, should be drawn.

The motivation for this change is that I have seem some complaints about
the "current item" highlighting, which can be even more distracting with
non-Oxygen styles.

REVIEW: 119019
2014-07-04 00:42:38 +02:00
l10n daemon script
1e22db8ba5 SVN_SILENT made messages (after extraction) 2014-07-03 01:30:12 +00:00
Arjun AK
97da9f9a5c Fix typo: chnage -> change
REVIEW: 119084
GIT_SILENT
2014-07-02 16:17:18 +05:30
Kai Uwe Broulik
fb9c403518 Add support for high-precision touchpad scrolling
REVIEW: 119001
2014-06-30 13:56:45 +02:00
l10n daemon script
f57f4e1a01 SVN_SILENT made messages (after extraction) 2014-06-30 01:42:40 +00:00
Christophe Giboudeaux
6cddb788a0 KFileItemModelBenchmark is a manual test 2014-06-29 21:36:55 +02:00
Frank Reininghaus
81b84a1eaf Merge remote-tracking branch 'origin/master' into frameworks
Conflicts:
	dolphin/src/dolphinmainwindow.cpp
	dolphin/src/dolphinmainwindow.h
2014-06-29 20:28:46 +02:00
Christophe Giboudeaux
a769261131 Remove the automoc noise 2014-06-29 10:36:32 +02:00
l10n daemon script
74d8522ac6 SVN_SILENT made messages (after extraction) 2014-06-29 01:36:02 +00:00
Christophe Giboudeaux
ae1960be45 Reenable tests. 2014-06-29 02:07:41 +02:00
Christophe Giboudeaux
37492b2275 KF5ify Dolphin. 2014-06-29 01:35:37 +02:00
Christophe Giboudeaux
c8a2db7d4e Create KF5::Konq 2014-06-28 22:17:55 +02:00
l10n daemon script
caadc66bd8 SVN_SILENT made messages (after extraction) 2014-06-28 01:32:56 +00:00
Christophe Giboudeaux
7fa0c566ed Revert "Fix build"
This reverts commit 780e76f35bca0ced37a691a50367cf705388cc38.

Update your kfilemetadata/baloo/baloo-widgets builds instead.
2014-06-27 18:05:36 +02:00
Rohan Garg
50d123a60d Fix build 2014-06-27 17:00:12 +02:00
Christophe Giboudeaux
3614b7fea7 Fix build. 2014-06-27 10:34:57 +02:00
Christophe Giboudeaux
4417875294 Rename the Baloo modules. 2014-06-27 10:08:24 +02:00
l10n daemon script
e99e511236 SVN_SILENT made messages (after extraction) 2014-06-27 01:41:26 +00:00
Arjun AK
0a607c28f5 prevent goBack, goForward, goHome and goUp from being called twice
REVIEW: 118782
2014-06-25 18:53:05 +05:30
Emmanuel Pescosta
4a40a2c66e Add AppStream meta data file (imported from https://github.com/ximion/kde-appstream-metadata-templates/blob/master/apps/dolphin.appdata.xml)
Thanks to Matthias Klumpp for providing this file!

REVIEW: 118701
2014-06-25 14:31:15 +02:00
Scarlett Clark
ea1e7822e5 Kde-baseapps frameworks - replace generic soversion.
Review:118851
2014-06-20 13:08:48 -07:00
Lukáš Tinkl
96f4646b66 i18n fixes 2014-06-20 21:12:34 +02:00
Scarlett Clark
e41c969063 kde-baseapps frameworks dolphin with snapshot frameworks branch baloo/baloo-widgets path fixes. 2014-06-20 04:18:58 -07:00
Emmanuel Pescosta
24823bbfd1 Implemented DolphinRecentTabsMenu to encapsulate the recent
tabs menu related code from DolphinMainWindow in a new class.

The DolphinRecentTabsMenu remembers the tab configuration if a
tab has been closed.

REVIEW: 118805
2014-06-19 22:04:36 +02:00
Frank Reininghaus
efa19caa46 Implement TODO concerning changed roles
When emitting the itemsChanged signal in KFileItemModel::setRoles,
use the changed roles in the argument of the signal.

A warning message which was related to this issue was removed in
7a83252e0d

REVIEW: 118815
2014-06-19 20:35:22 +02:00
Frank Reininghaus
7a593fc92b Merge branch 'KDE/4.13' 2014-06-19 20:32:30 +02:00
Frank Reininghaus
a8e86cf7ef Remove confusing warning message
The message
"TODO: Emitting itemsChanged() with no information what has changed!"
is not helpful for the user.

The implementation of the TODO will be done in master, see
https://git.reviewboard.kde.org/r/118815/

CCBUG: 336174
2014-06-19 20:27:58 +02:00
Frank Reininghaus
6bccf73e92 Merge remote-tracking branch 'origin/master' into frameworks
Conflicts:
	dolphin/src/dolphincontextmenu.cpp
	dolphin/src/panels/folders/treeviewcontextmenu.cpp
2014-06-12 08:51:50 +02:00
Frank Reininghaus
9dc1513f8b Do not crash if QApplication::clipboard()->mimeData() is a null pointer
This removes the remaining unchecked accesses to the clipboard mime
data after commit 7828b057da. According
to a bug report, it can be a null pointer on Wayland.

BUG: 335053
REVIEW: 118649
2014-06-12 08:37:11 +02:00