]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
11 years agoMerge branch 'KDE/4.14'
Frank Reininghaus [Tue, 12 Aug 2014 07:23:24 +0000 (09:23 +0200)]
Merge branch 'KDE/4.14'

11 years agoAlways clear DolphinView's m_currentItemUrl member in updateViewState()
Frank Reininghaus [Tue, 12 Aug 2014 07:17:41 +0000 (09:17 +0200)]
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

11 years agoFix crash when restoring a session stored with Dolphin 4.13 or earlier
Frank Reininghaus [Tue, 12 Aug 2014 07:08:30 +0000 (09:08 +0200)]
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

11 years agoImplemented DolphinTabWidget class to encapsulate the tab handling from DolphinMainWi...
Emmanuel Pescosta [Sun, 10 Aug 2014 16:52:06 +0000 (18:52 +0200)]
Implemented DolphinTabWidget class to encapsulate the tab handling from DolphinMainWindow.

REVIEW: 119115

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Sun, 10 Aug 2014 05:48:43 +0000 (05:48 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Sun, 10 Aug 2014 01:35:56 +0000 (01:35 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoFix wrong text eliding in some corner cases.
Emmanuel Pescosta [Mon, 4 Aug 2014 17:43:07 +0000 (19:43 +0200)]
Fix wrong text eliding in some corner cases.

BUG: 337104
FIXED-IN: 4.14.0
REVIEW: 119546

11 years agoMerge branch 'KDE/4.14'
Frank Reininghaus [Sun, 3 Aug 2014 08:55:58 +0000 (10:55 +0200)]
Merge branch 'KDE/4.14'

11 years agoFix warning on launch "QPixmap::scaled: Pixmap is a null pixmap"
Michael Reeves [Sun, 3 Aug 2014 08:48:21 +0000 (10:48 +0200)]
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

11 years agoSVN_SILENT made messages (.desktop file)
l10n daemon script [Sun, 3 Aug 2014 07:30:09 +0000 (07:30 +0000)]
SVN_SILENT made messages (.desktop file)

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Sun, 3 Aug 2014 05:46:42 +0000 (05:46 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoSVN_SILENT made messages (.desktop file)
l10n daemon script [Sun, 3 Aug 2014 04:28:42 +0000 (04:28 +0000)]
SVN_SILENT made messages (.desktop file)

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Sun, 3 Aug 2014 01:38:10 +0000 (01:38 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Sat, 2 Aug 2014 05:39:42 +0000 (05:39 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Sat, 2 Aug 2014 01:34:38 +0000 (01:34 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Fri, 1 Aug 2014 01:49:50 +0000 (01:49 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Thu, 31 Jul 2014 05:55:50 +0000 (05:55 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Thu, 31 Jul 2014 01:40:02 +0000 (01:40 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoPrevent multiple connections between sender and receiver
Arjun AK [Wed, 30 Jul 2014 12:56:39 +0000 (18:26 +0530)]
Prevent multiple connections between sender and receiver

Use a Qt::uniqueConnection so that only one connection exists between the sender and receiver.

REVIEW: 119532

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Sun, 27 Jul 2014 05:45:07 +0000 (05:45 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoSVN_SILENT made messages (.desktop file)
l10n daemon script [Fri, 25 Jul 2014 05:22:21 +0000 (05:22 +0000)]
SVN_SILENT made messages (.desktop file)

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Fri, 25 Jul 2014 01:49:32 +0000 (01:49 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoSVN_SILENT made messages (.desktop file)
l10n daemon script [Thu, 24 Jul 2014 04:37:28 +0000 (04:37 +0000)]
SVN_SILENT made messages (.desktop file)

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Thu, 24 Jul 2014 01:34:11 +0000 (01:34 +0000)]
SVN_SILENT made messages (after extraction)

11 years agomake CTRL+SHIFT+T reopen last closed tab
Arjun AK [Tue, 22 Jul 2014 12:01:49 +0000 (17:31 +0530)]
make CTRL+SHIFT+T reopen last closed tab

BUG: 336818
FEATURE: 118994

11 years agoMerge remote-tracking branch 'origin/KDE/4.14'
Christoph Feck [Mon, 21 Jul 2014 19:12:52 +0000 (21:12 +0200)]
Merge remote-tracking branch 'origin/KDE/4.14'

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Mon, 21 Jul 2014 05:43:56 +0000 (05:43 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Sat, 19 Jul 2014 01:34:04 +0000 (01:34 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoSVN_SILENT made messages (.desktop file)
l10n daemon script [Wed, 16 Jul 2014 08:22:33 +0000 (08:22 +0000)]
SVN_SILENT made messages (.desktop file)

11 years agoMerge branch 'KDE/4.14'
Frank Reininghaus [Wed, 16 Jul 2014 07:16:24 +0000 (09:16 +0200)]
Merge branch 'KDE/4.14'

11 years agoFix regression concerning the "Places" selector in the location bar
Frank Reininghaus [Wed, 16 Jul 2014 07:12:16 +0000 (09:12 +0200)]
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 6a98d83312ff2b14ab878e1427bbace3b683eacc.

BUG: 337389
FIXED-IN: 4.14.0
REVIEW: 119238

11 years agoSVN_SILENT made messages (.desktop file)
l10n daemon script [Wed, 16 Jul 2014 04:52:24 +0000 (04:52 +0000)]
SVN_SILENT made messages (.desktop file)

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Wed, 16 Jul 2014 01:50:43 +0000 (01:50 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoImplemented (QTabBar based) DolphinTabBar class to encapsulate the tab bar handling...
Emmanuel Pescosta [Tue, 8 Jul 2014 17:38:18 +0000 (19:38 +0200)]
Implemented (QTabBar based) DolphinTabBar class to encapsulate the tab bar handling from DolphinMainWindow.

REVIEW: 118969

11 years agoAvoid opening unused tabs which are closed again after startup has finished (when...
Emmanuel Pescosta [Tue, 8 Jul 2014 17:16:17 +0000 (19:16 +0200)]
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

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Sun, 6 Jul 2014 01:33:37 +0000 (01:33 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Sat, 5 Jul 2014 01:36:55 +0000 (01:36 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoImplemented DolphinTabPage class to encapsulate the split view handling from DolphinM...
Emmanuel Pescosta [Wed, 2 Jul 2014 13:30:37 +0000 (15:30 +0200)]
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

11 years agoImprove drawing selected items in Compact/Details View and Places Panel
Frank Reininghaus [Thu, 3 Jul 2014 22:49:31 +0000 (00:49 +0200)]
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

11 years agoRemove current item highlighting in the Places Panel
Frank Reininghaus [Fri, 27 Jun 2014 11:02:12 +0000 (13:02 +0200)]
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

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Thu, 3 Jul 2014 01:30:12 +0000 (01:30 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoFix typo: chnage -> change
Arjun AK [Wed, 2 Jul 2014 10:47:18 +0000 (16:17 +0530)]
Fix typo: chnage -> change

REVIEW: 119084
GIT_SILENT

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Mon, 30 Jun 2014 01:42:40 +0000 (01:42 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Sun, 29 Jun 2014 01:36:02 +0000 (01:36 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Sat, 28 Jun 2014 01:32:56 +0000 (01:32 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoSVN_SILENT made messages (after extraction)
l10n daemon script [Fri, 27 Jun 2014 01:41:26 +0000 (01:41 +0000)]
SVN_SILENT made messages (after extraction)

11 years agoAdd AppStream meta data file (imported from https://github.com/ximion/kde-appstream...
Emmanuel Pescosta [Thu, 12 Jun 2014 19:25:17 +0000 (21:25 +0200)]
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

11 years agoImplemented DolphinRecentTabsMenu to encapsulate the recent
Emmanuel Pescosta [Thu, 19 Jun 2014 20:04:36 +0000 (22:04 +0200)]
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

11 years agoImplement TODO concerning changed roles
Frank Reininghaus [Thu, 19 Jun 2014 18:35:22 +0000 (20:35 +0200)]
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
7a83252e0d919d8408e0808ccbd7b401d57444d3

REVIEW: 118815

11 years agoMerge branch 'KDE/4.13'
Frank Reininghaus [Thu, 19 Jun 2014 18:32:30 +0000 (20:32 +0200)]
Merge branch 'KDE/4.13'

11 years agoRemove confusing warning message
Frank Reininghaus [Thu, 19 Jun 2014 18:27:58 +0000 (20:27 +0200)]
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

11 years agoDo not crash if QApplication::clipboard()->mimeData() is a null pointer
Frank Reininghaus [Thu, 12 Jun 2014 06:37:11 +0000 (08:37 +0200)]
Do not crash if QApplication::clipboard()->mimeData() is a null pointer

This removes the remaining unchecked accesses to the clipboard mime
data after commit 7828b057da0491f1b08bfaec681067e195d7b6ca. According
to a bug report, it can be a null pointer on Wayland.

BUG: 335053
REVIEW: 118649

11 years agoSVN_SILENT made messages (.desktop file)
l10n daemon script [Mon, 9 Jun 2014 04:33:35 +0000 (04:33 +0000)]
SVN_SILENT made messages (.desktop file)

11 years agoMerge remote-tracking branch 'origin/KDE/4.13'
Frank Reininghaus [Thu, 5 Jun 2014 06:54:06 +0000 (08:54 +0200)]
Merge remote-tracking branch 'origin/KDE/4.13'

11 years agoSeparate width and height info in the layouting code
Frank Reininghaus [Thu, 5 Jun 2014 06:50:52 +0000 (08:50 +0200)]
Separate width and height info in the layouting code

By separating the width and height info, we can save some unnecessary
overhead in terms of memory and CPU cycles, and make the calculation of
the height of a row (or the width of a column in Compact View) a bit
simpler.

To achieve this, this patch extends the concept of "logical rows"
(which are actually columns in Compact View) to "logical width" and
"logical height" (which is the actual height and width, respectively, in
 Compact View). The distinction between rows/columns and "logical"
rows/columns may be a bit confusing, but the confusion is already in the
current code, and I hope that it will be mitigated a bit by prefixing
the corresponding variables with "logical".

REVIEW: 118454

11 years agoFix possible crash if a kioslave adds multiple items with the same URL
Frank Reininghaus [Wed, 4 Jun 2014 19:48:19 +0000 (21:48 +0200)]
Fix possible crash if a kioslave adds multiple items with the same URL

When opening the URL "man:", there are multiple items with the same
name (for example, _exit is shown twice here). When opening a new tab,
the kioslave reports some items as deleted (I have not quite understood
why). The problem is that it reports some of the duplicate items twice
in the list of deleted items. This confused KFileItemModel and
corrupted the internal data structures, and finally, caused a crash.

The fix is to remove all duplicates from
KItemRangeList::fromSortedContainer(const Container& container).

New unit tests included.

BUG: 335672
REVIEW: 118507
FIXED-IN: 4.13.2

11 years agoMerge remote-tracking branch 'origin/KDE/4.13'
Frank Reininghaus [Sun, 1 Jun 2014 12:48:30 +0000 (14:48 +0200)]
Merge remote-tracking branch 'origin/KDE/4.13'

11 years agoFix Bug 334696 - File/directory icons/names move to the right when opening/refreshing...
Emmanuel Pescosta [Sun, 25 May 2014 16:30:37 +0000 (18:30 +0200)]
Fix Bug 334696 - File/directory icons/names move to the right when opening/refreshing contents of Dolphin

Take the scrollbar spacing into account.

BUG: 334696
REVIEW: 118319
FIXED-IN: 4.13.2

11 years agoUse "selectionToggleRect().contains(pos)" instead
Emmanuel Pescosta [Sun, 25 May 2014 16:55:56 +0000 (18:55 +0200)]
Use "selectionToggleRect().contains(pos)" instead
of "m_selectionToggle->contains(pos)" in
KItemListWidget::setHoverPosition(const QPointF& pos).

This wrong check was accidentally introduced by
commit 24326d447358f0dbfc18963743207d4a3d4f1c9e

BUG: 299328
REVIEW: 118320
FIXED-IN: 4.13.2

11 years agoKeep the "free space" information updated in all visible views
Frank Reininghaus [Thu, 22 May 2014 16:42:17 +0000 (18:42 +0200)]
Keep the "free space" information updated in all visible views

The old code would watch the free space on a mount point, i.e.,
determine the free space again, in 10-second intervals, only until the
view became invisible once (even if it was invisible only for a very
short moment, i.e., while splitting the view).

This commit ensures that the mount point is watched again as soon as
the corresponding view becomes visible again.

Moreover, the object that watches the free space for a mount point is
shared among all views that show URLs that belong to this mount point.
To achieve this, there is a central cache which can be used to obtain
an existing MountPointObserver for a certain path. If necessary, a new
MountPointObserver is created and added to the cache.

The MountPointObserver is removed from the cache and destroyed only if
no views use it any more, and no new users appear until the next update
(which happens every 10 seconds). This prevents that the free space is
measured repeatedly when changing the current directory on the same
mount point.

Many thanks to Emmanuel Pescosta for the initial ideas to factor out
the "free space" code and to establish a central storage for the
"observer" objects, and for providing many good suggestions how to
improve the code!

BUG: 327708
REVIEW: 118208
FIXED-IN: 4.14.0

11 years agoMerge remote-tracking branch 'origin/KDE/4.13'
Frank Reininghaus [Wed, 21 May 2014 20:44:48 +0000 (22:44 +0200)]
Merge remote-tracking branch 'origin/KDE/4.13'

11 years agoRemove debug output
Frank Reininghaus [Tue, 20 May 2014 06:39:56 +0000 (08:39 +0200)]
Remove debug output

This debug output was pushed accidentally in commit
c52ba9446b05e6bc7f890daac406659a9c37c562

11 years agoDo not lose translation of Places items if a Dolphin window is closed
Frank Reininghaus [Tue, 20 May 2014 06:31:31 +0000 (08:31 +0200)]
Do not lose translation of Places items if a Dolphin window is closed

If the "Places" are updated outside the current Dolphin process,
PlacesItemModel::updateBookmarks() is called, which invokes
PlacesItem::setBookmark(const KBookmark& bookmark) for each item. This
commit ensures that the correct translation is used for system
bookmarks like "Root", "Network", etc.

Without this patch, all Places entries in the remaining Dolphin windows
would switch to US English if one of multiple windows is closed.

See http://lists.kde.org/?t=139660468400004&r=1&w=2 for details.

BUG: 334999
REVIEW: 118207
FIXED-IN: 4.13.2

11 years agoMerge branch 'KDE/4.13'
Frank Reininghaus [Tue, 13 May 2014 17:14:25 +0000 (19:14 +0200)]
Merge branch 'KDE/4.13'

11 years agoStop listing children of collapsed folders
Frank Reininghaus [Tue, 13 May 2014 17:06:42 +0000 (19:06 +0200)]
Stop listing children of collapsed folders

Before this patch, KDirLister would continue listing any children of
collapsed folders, even though the children themselves were removed
from the model. This could lead to new items being inserted as
top-level items at some later point, because no parent could be found
for them. This inconsistent model state could lead to a crash later on.

Many thanks to Martin Koller for helping to debug this problem!

BUG: 332102
REVIEW: 118055
FIXED-IN: 4.13.2

11 years agoEnsure that all children of a collapsed folder are removed
Frank Reininghaus [Tue, 13 May 2014 17:04:09 +0000 (19:04 +0200)]
Ensure that all children of a collapsed folder are removed

Before this patch, any (direct or indirect) children that might have
been in m_pendingItemsToInsert, i.e., that were not inserted into the
model yet because KDirLister had not finished listing the directory
yet, would be added to the model later without a proper parent. This
could cause a crash later on.

CCBUG: 332102
FIXED-IN: 4.13.2

11 years agoAllow the widget in the "Additional Information" dialog to resize
Uzair Shamim [Tue, 13 May 2014 16:56:28 +0000 (18:56 +0200)]
Allow the widget in the "Additional Information" dialog to resize

BUG: 334355
REVIEW: 118088
FIXED-IN: 4.13.2

11 years agoUpdate the "Paste" action only if it is necessary
Frank Reininghaus [Wed, 30 Apr 2014 07:34:32 +0000 (09:34 +0200)]
Update the "Paste" action only if it is necessary

Updating this action is only required if the clipboard contents change,
or if the "is writable" state of the current location changes. In all
other cases, an update of this action should be prevented because it
can be very expensive if many files are in the clipboard.

In particular, the update when the selection changes could make
changing the current item in the view very slow.

BUG: 333903
REVIEW: 117782
FIXED-IN: 4.13.1

11 years agoChange the icon text for Previous and Next toolbar buttons
Renato Atilio [Tue, 29 Apr 2014 19:54:33 +0000 (21:54 +0200)]
Change the icon text for Previous and Next toolbar buttons

In addition to the current long text for previous and next toolbar
buttons ("Activate Previous/Next Tab"), this commit adds shorter icon
texts for them to be used only on the toolbar ("Previous/Next Tab").

BUG: 332629
REVIEW: 117794
FIXED-IN: 4.14.0

11 years agoMerge branch 'KDE/4.13'
Frank Reininghaus [Tue, 29 Apr 2014 19:44:46 +0000 (21:44 +0200)]
Merge branch 'KDE/4.13'

11 years agoMerge branch 'KDE/4.13' of git://anongit.kde.org/kde-baseapps into KDE/4.13
Emmanuel Pescosta [Sat, 26 Apr 2014 11:08:31 +0000 (13:08 +0200)]
Merge branch 'KDE/4.13' of git://anongit.kde.org/kde-baseapps into KDE/4.13

11 years agoMount partitions when you open them in a new tab.
Emmanuel Pescosta [Thu, 24 Apr 2014 19:44:28 +0000 (21:44 +0200)]
Mount partitions when you open them in a new tab.

Instead of just emitting the slotItemMiddleClicked signal in
PlacesPanel::slotItemContextMenuRequested we now use triggerItem with
Qt::MiddleButton, which does set up the storage first and emit
the slotItemMiddleClicked signal afterwards.

BUG: 311226
FIXED-IN: 4.13.1
REVIEW: 117755

11 years agoDo not change the selection when re-sorting the view
Frank Reininghaus [Sat, 26 Apr 2014 10:29:36 +0000 (12:29 +0200)]
Do not change the selection when re-sorting the view

If a range of items has been selected by Shift-clicking or by pressing
Shift+Arrow, then each of them is added individually to the selection
before the items are re-sorted.

Before this commit, the first and the last item in the range were
moved, and all items between them were selected, even though these were
not necessarily the items which had been selected before the
re-sorting.

BUG: 333457
REVIEW: 117603
FIXED-IN: 4.13.1

11 years agoEnable the previous and next tab toolbar buttons
Renato Atilio [Sat, 26 Apr 2014 10:28:42 +0000 (12:28 +0200)]
Enable the previous and next tab toolbar buttons
when multiple tabs are opened. Disable them again
when there is only one remaining tab.

Additionally set the default state to disabled.

BUG: 332628
FIXED-IN: 4.13.1
REVIEW: 117778

11 years agoFix memory leak with Dropbox version control plugin.
Emmanuel Pescosta [Thu, 24 Apr 2014 18:57:18 +0000 (20:57 +0200)]
Fix memory leak with Dropbox version control plugin.

In the current version we only call endRetrieval when
beginRetrieval was successfully in UpdateItemStatesThread::run().
This causes some problems with version control plugins (like Dropbox plugin),
which have to do cleanups in endRetrieval.

Now we always call endRetrieval after beginRetrieval when updating the version states.

FIXED-IN: 4.13.1
REVIEW: 117753

11 years agoScroll to the right position when going back and show hidden files is enabled.
Emmanuel Pescosta [Thu, 24 Apr 2014 18:16:30 +0000 (20:16 +0200)]
Scroll to the right position when going back and show hidden files is enabled.

Instead of emitting the directoryLoadingCompleted signal (via slotCompleted) in
KFileItemModel::setShowHiddenFiles directly, we now call
dispatchPendingItemsToInsert instead.

@Frank: Thanks for your help!

FIXED-IN: 4.13.1
BUG: 332159
REVIEW: 117021

11 years agoMerge branch 'KDE/4.12' into KDE/4.13
Frank Reininghaus [Mon, 14 Apr 2014 21:11:00 +0000 (23:11 +0200)]
Merge branch 'KDE/4.12' into KDE/4.13

11 years agoUpdate the "is cut" state of items if necessary
Frank Reininghaus [Mon, 14 Apr 2014 20:46:38 +0000 (22:46 +0200)]
Update the "is cut" state of items if necessary

The icons of items which are "cut" are shown faded in the view. The
"is cut" state of the widget representing an item is updated if the
clipboard contents change. Before this commit, if the sort order was
changed however, then each widget kept the "is cut" state of the item
which had been shown previously at its position.

The solution is to update the "is cut" state also if any of the
widget's data change.

BUG: 332792
REVIEW: 117451
FIXED-IN: 4.12.5

11 years agoTranslate bookmark text on update.
Marco Nelles [Fri, 4 Apr 2014 09:41:28 +0000 (11:41 +0200)]
Translate bookmark text on update.

11 years agoKDirectoryContentsCounter: do not delete currently active worker objects
Frank Reininghaus [Thu, 3 Apr 2014 07:03:47 +0000 (09:03 +0200)]
KDirectoryContentsCounter: do not delete currently active worker objects

Before this patch, the destructor of KDirectoryContentsCounter might
delete the worker object, which lives in another thread, while one of
its methods was still being executed. This could cause a crash. Only if
the destroyed KDirectoryContentsCounter was the last one, the worker
thread was stopped, and the destructor waited until all workers are
done.

BUG: 332767
FIXED-IN: 4.13.0
REVIEW: 117209

11 years agoMerge remote-tracking branch 'origin/KDE/4.13'
Albert Astals Cid [Sun, 30 Mar 2014 23:16:22 +0000 (01:16 +0200)]
Merge remote-tracking branch 'origin/KDE/4.13'

11 years agoMake this thing compile
Albert Astals Cid [Sun, 30 Mar 2014 23:15:27 +0000 (01:15 +0200)]
Make this thing compile

CCMAIL: emmanuelpescosta099@gmail.com

11 years agoMerge branch 'KDE/4.13'
Vishesh Handa [Sun, 30 Mar 2014 18:33:53 +0000 (20:33 +0200)]
Merge branch 'KDE/4.13'

11 years agoWhen you open a new tab while the search mode is enabled, the
Emmanuel Pescosta [Fri, 28 Mar 2014 17:48:48 +0000 (18:48 +0100)]
When you open a new tab while the search mode is enabled, the
newly opened tab also starts the same search (Because new tab is opened with
the current view url), but the search box is in read-only mode. So you cannot
close the search bar nor edit the search text.

This patch fixes this by parsing the search url. The value of the "search"
parameter is used as search text and the value of the "url" parameter is used
for the search path ("root" folder for the search when "Search from here" mode
is enabled).

In case of Baloo search urls, we use Baloo::Query::fromSearchUrl.

Removed everything related to read only mode in DolphinSearchBox, not needed
anymore.

REVIEW: 111968
BUG: 311950
FIXED-IN: 4.13.0

11 years agoSet m_anyType as checked by default.
Emmanuel Pescosta [Tue, 25 Mar 2014 22:39:47 +0000 (23:39 +0100)]
Set m_anyType as checked by default.

CCMAIL: me@vhanda.in

11 years agoDolphin Facet Widget: Convert type selection into radio buttons
Vishesh Handa [Mon, 24 Mar 2014 09:48:53 +0000 (10:48 +0100)]
Dolphin Facet Widget: Convert type selection into radio buttons

They were previously checkboxes. Most files cannot have more than 1 type
considering that the exposed types were "Document", "Image", "Video" and
"Audio".

Also, it is not very simple in baloo to search through ORs for types.
Not through the exposed API anyway.

REVIEW: 117015

11 years agoDolphinSearchBox: Only search through filename is search text is not empty
Vishesh Handa [Mon, 24 Mar 2014 09:37:15 +0000 (10:37 +0100)]
DolphinSearchBox: Only search through filename is search text is not empty

11 years agoDolphin Facet Widgets: Implement date based filtering
Vishesh Handa [Wed, 19 Mar 2014 14:44:35 +0000 (15:44 +0100)]
Dolphin Facet Widgets: Implement date based filtering

This required changes in Baloo which require reindexing. Since the
storage location has changed for Beta 3 everyone should be re-indexing
everything, so it won't be a problem.

11 years agoAdd the Baloo::Term to the Baloo:Query in DolphinSearchBox::balooUrlForSearching...
Emmanuel Pescosta [Mon, 17 Mar 2014 18:49:32 +0000 (19:49 +0100)]
Add the Baloo::Term to the Baloo:Query in DolphinSearchBox::balooUrlForSearching(). REVIEW: 116837 FIXED-IN: 4.13.0

11 years agoMerge remote-tracking branch 'origin/KDE/4.13'
Raymond Wooninck [Sun, 16 Mar 2014 17:32:50 +0000 (18:32 +0100)]
Merge remote-tracking branch 'origin/KDE/4.13'

11 years agoMerge branch 'KDE/4.12' into KDE/4.13
Frank Reininghaus [Sun, 16 Mar 2014 17:10:24 +0000 (18:10 +0100)]
Merge branch 'KDE/4.12' into KDE/4.13

11 years agoUse MIME type inheritance to find out if a file contains text
Frank Reininghaus [Sun, 16 Mar 2014 17:02:43 +0000 (18:02 +0100)]
Use MIME type inheritance to find out if a file contains text

Before this commit, filenamesearch checked if a file's MIME type begins
with "text/" to determine if its content can be searched. This prevented
that text inside shell scripts is found.

BUG: 332143
REVIEW: 116805
FIXED-IN: 4.12.4

11 years agoMerge branch 'KDE/4.13'
Frank Reininghaus [Tue, 11 Mar 2014 08:15:15 +0000 (09:15 +0100)]
Merge branch 'KDE/4.13'

11 years agoUse QMutableHashIterator for deleting items from a QHash
Frank Reininghaus [Tue, 11 Mar 2014 08:07:23 +0000 (09:07 +0100)]
Use QMutableHashIterator for deleting items from a QHash

KItemListViewAnimation::slotFinished() used a QHashIterator to iterate
over a QHash, and then removes an item from the hash using
QHash::remove() inside the loop.

This is quite unusual - the recommended way is to use a
QMutableHashIterator (or std-style iterators and then QHash::erase(it)).

This might be related to the cause of a crash in this function.

BUG: 331876
REVIEW: 116666
FIXED-IN: 4.13.0

11 years agoFix Bug 326210 - Dolphin unnecessarily truncates names of soft links in compact mode
Emmanuel Pescosta [Wed, 5 Mar 2014 09:48:33 +0000 (10:48 +0100)]
Fix Bug 326210 - Dolphin unnecessarily truncates names of soft links in compact mode

FIXED-IN: 4.13.0
BUG: 326210
BUG: 310592
REVIEW: 116121

11 years agoMerge remote-tracking branch 'origin/KDE/4.13'
Frank Reininghaus [Wed, 5 Mar 2014 07:46:45 +0000 (08:46 +0100)]
Merge remote-tracking branch 'origin/KDE/4.13'

11 years agoRemove some unused functions
Frank Reininghaus [Wed, 5 Mar 2014 07:43:58 +0000 (08:43 +0100)]
Remove some unused functions

REVIEW: 116562

11 years agoSVN_SILENT made messages (.desktop file)
l10n daemon script [Tue, 4 Mar 2014 05:44:46 +0000 (05:44 +0000)]
SVN_SILENT made messages (.desktop file)

11 years agoAdd a hover effect for the selection toggle.
Emmanuel Pescosta [Mon, 3 Mar 2014 21:06:56 +0000 (22:06 +0100)]
Add a hover effect for the selection toggle.

FIXED-IN: 4.13.0
REVIEW: 116028
BUG: 299328

11 years agoAlways go back/forward in history when pressing the respective buttons
Frank Reininghaus [Sat, 1 Mar 2014 11:14:47 +0000 (12:14 +0100)]
Always go back/forward in history when pressing the respective buttons

Before this patch, pressing one of these buttons while an item is
hovered selected this item. The motivation for this behavior was to
provide a fast way to select items. However, this was counter-intuitive
and confusing for many users.

BUG: 310288
FIXED-IN: 4.13.0
REVIEW: 116469