]> cloud.milkyroute.net Git - dolphin.git/log
dolphin.git
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

11 years agoScroll to newly dropped files.
Emmanuel Pescosta [Thu, 27 Feb 2014 11:17:48 +0000 (12:17 +0100)]
Scroll to newly dropped files.

If multiple files are dropped, scroll to the first dropped file.

BUG: 315722
FIXED-IN: 4.13
REVIEW: 116020

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

11 years agoMerge remote-tracking branch 'origin/KDE/4.12' into KDE/4.13
Frank Reininghaus [Thu, 27 Feb 2014 08:11:48 +0000 (09:11 +0100)]
Merge remote-tracking branch 'origin/KDE/4.12' into KDE/4.13

11 years agoSVN_SILENT made messages (.desktop file)
l10n daemon script [Thu, 27 Feb 2014 04:42:34 +0000 (04:42 +0000)]
SVN_SILENT made messages (.desktop file)

11 years agoShow the correct icon size in the zoom slider tooltip.
Emmanuel Pescosta [Tue, 25 Feb 2014 18:41:45 +0000 (19:41 +0100)]
Show the correct icon size in the zoom slider tooltip.

BUG: 305694
FIXED-IN: 4.12.3
REVIEW: 111197

11 years agoFix Bug 330605 - Dropbox plugin prevents git plugin from working
Emmanuel Pescosta [Tue, 25 Feb 2014 18:38:57 +0000 (19:38 +0100)]
Fix Bug 330605 - Dropbox plugin prevents git plugin from working

Use scoring to find the best matching plugin for the given directory.

Thanks to Phil Schaf for testing this patch!

BUG: 330605
FIXED-IN: 4.12.3
REVIEW: 116019

11 years agoMake the handling of the "maximum text lines" setting more robust
Frank Reininghaus [Mon, 24 Feb 2014 20:05:09 +0000 (21:05 +0100)]
Make the handling of the "maximum text lines" setting more robust

If the user sets a maximum number of text lines in the settings, this
number was translated into a maximum height in pixels using
QFontMetrics::lineSpacing() before this commit.

In KStandardItemListWidgetInformant::itemSizeHint(), this maximum height
limited the size that is reserved for the item.

However, in KStandardItemListWidget::updateIconsLayoutTextCache(), the
maximum height was translated back into a maximum number of lines,
which limits the number of lines that are created using the QTextLayout.

This approach could lead to problems if the real height of the layouted
text is 1 pixel more or less than QFontMetrics::lineSpacing() times
"number of lines".

Now we do not store a "maximum height" inside the "maximum size"
explicitly, but store a maximum number of lines and a maximum with (for
Compact View) separately, and then use the number of lines also to
calculate the required size in
KStandardItemListWidgetInformant::itemSizeHint(). This should make sure
that the correct height is reserved for each item.

Thanks to Christoph Feck and Emmanuel Pescosta for helping to debug this
problem and testing the patch.

BUG: 323841
FIXED-IN: 4.13
REVIEW: 113871

11 years agoHandle font and palette changes in Dolphin list views.
Emmanuel Pescosta [Mon, 24 Feb 2014 13:17:03 +0000 (14:17 +0100)]
Handle font and palette changes in Dolphin list views.

Also update the font of the meta data widget in InformationPanelContent (smallest readable font).

BUG: 329186
BUG: 315061
FIXED-IN: 4.13
REVIEW: 115958

11 years agoRemove some unused functions.
Emmanuel Pescosta [Tue, 11 Feb 2014 19:30:50 +0000 (20:30 +0100)]
Remove some unused functions.

void KFileItemModel::slotClear(const KUrl& url)

bool UpdateItemsThread::lockPlugin()    <- Done with QMutexLocker
void UpdateItemsThread::unlockPlugin()

REVIEW: 115627

11 years agoEnsure that KItemListViewLayouter always has a size hint resolver
Frank Reininghaus [Tue, 11 Feb 2014 17:28:22 +0000 (18:28 +0100)]
Ensure that KItemListViewLayouter always has a size hint resolver

KItemListViewLayouter uses a KItemListSizeHintResolver to find out how
much space the items will need in the view.

Before this commit, the size hint resolver object could be changed at
runtime, and it could also be null. However, we never made use of these
possibilities, so all the code that checks if m_sizeHintResolver is
null is actually not needed at all.

11 years agoFix includes
Christophe Giboudeaux [Fri, 7 Feb 2014 14:41:48 +0000 (15:41 +0100)]
Fix includes

11 years agoMerge remote-tracking branch 'origin/KDE/4.12'
Frank Reininghaus [Fri, 7 Feb 2014 09:26:00 +0000 (10:26 +0100)]
Merge remote-tracking branch 'origin/KDE/4.12'

11 years agoOnly initialize the hash m_items in KFileItemModel if it is needed
Frank Reininghaus [Fri, 7 Feb 2014 09:22:17 +0000 (10:22 +0100)]
Only initialize the hash m_items in KFileItemModel if it is needed

Moreover, clear the entire hash if items are added or removed.

This saves time and memory when loading a directory, and it fixes
problems that might occur if the model is in an inconsistent state, such
as crashes that can happen when we try to remove individual items from
m_items.

BUG: 329494
FIXED-IN: 4.13.0
REVIEW: 115432

11 years agoFix build if Baloo is not installed
Frank Reininghaus [Fri, 7 Feb 2014 09:14:29 +0000 (10:14 +0100)]
Fix build if Baloo is not installed

11 years agoPort Dolphin to Baloo
Vishesh Handa [Thu, 6 Feb 2014 19:29:09 +0000 (20:29 +0100)]
Port Dolphin to Baloo

Nepomuk is being replaced with Baloo

11 years agoSet the Details View colummns width to the preferred column width, by double-clicking...
Emmanuel Pescosta [Thu, 6 Feb 2014 12:00:28 +0000 (13:00 +0100)]
Set the Details View colummns width to the preferred column width, by double-clicking the header grips.

BUG: 293315
FIXED-IN: 4.13
REVIEW: 115503

11 years agoRestore the URLs of both views correctly when restoring a session
Frank Reininghaus [Sun, 2 Feb 2014 09:19:57 +0000 (10:19 +0100)]
Restore the URLs of both views correctly when restoring a session

The problem was that we restored the URL of the right view while the
left one is still active. When we received the signal
urlChanged(KUrl& url) from the right URL navigator, we then set the URL
of the active (i.e., left) view to 'url', such that both views showed
the same URL.

BUG: 330047
FIXED-IN: 4.12.3
REVIEW: 115406

11 years agoDon't store the index of the file item in the VersionControlObserver::ItemState,...
Emmanuel Pescosta [Fri, 31 Jan 2014 19:56:57 +0000 (20:56 +0100)]
Don't store the index of the file item in the VersionControlObserver::ItemState, get the index of the file item on demand instead.

Fixes some "old"-index problems, esp. when you copy/move around files while the version control thread is still running.

FIXED-IN: 4.13
REVIEW: 115410

11 years agoAlways enable the "Create New..." menu if the URL is writable
Frank Reininghaus [Thu, 30 Jan 2014 21:10:08 +0000 (22:10 +0100)]
Always enable the "Create New..." menu if the URL is writable

This commit works around the problem that KDirLister may not provide a
"rootItem" for some kioslaves by setting up a KFileItem with the view
URL and using this to find out if the URL is writable.

BUG: 330001
CCBUG: 330015
REVIEW: 115405
FIXED-IN: 4.12.2

11 years agoSVN_SILENT made messages (.desktop file)
l10n daemon script [Wed, 22 Jan 2014 06:22:47 +0000 (06:22 +0000)]
SVN_SILENT made messages (.desktop file)

11 years agoSVN_SILENT made messages (.desktop file)
l10n daemon script [Wed, 22 Jan 2014 03:54:49 +0000 (03:54 +0000)]
SVN_SILENT made messages (.desktop file)

11 years agoMerge remote-tracking branch 'origin/KDE/4.12'
Frank Reininghaus [Tue, 21 Jan 2014 18:14:44 +0000 (19:14 +0100)]
Merge remote-tracking branch 'origin/KDE/4.12'

11 years agoUse only one "directory contents counting" thread per process
Frank Reininghaus [Tue, 21 Jan 2014 18:07:58 +0000 (19:07 +0100)]
Use only one "directory contents counting" thread per process

The pointer to QThread object is stored in a global variable, and each
view increments/decrements a reference count when it starts/stops using
the thread. If this thread reaches zero, the thread is stopped.

Note that we cannot just use a smart pointer, like QSharedPointer, to
manage the thread, because we must make sure that the thread is not
running any more before the QThread is deleted.

REVIEW: 115064

11 years agoDon't show tooltips while inline-renaming.
Emmanuel Pescosta [Mon, 20 Jan 2014 16:41:44 +0000 (17:41 +0100)]
Don't show tooltips while inline-renaming.

FIXED-IN: 4.12.2
REVIEW: 115146
BUG: 330126

11 years agoRemove the "retrieved items" code from UpdateItemStatesThread and VersionControlObserver.
Emmanuel Pescosta [Thu, 16 Jan 2014 11:55:42 +0000 (12:55 +0100)]
Remove the "retrieved items" code from UpdateItemStatesThread and VersionControlObserver.

Showing an error message, makes no sense in this case - the user can see it when all items are "unversioned".
The plugins still have the ability to show error/warning messages on real errors. (and only where it makes sense ;)

REVIEW: 114992
FIXED-IN: 4.13

11 years agoUse the QMap iterator instead of foreach(key, map.keys()) in UpdateItemStatesThread...
Emmanuel Pescosta [Wed, 15 Jan 2014 19:27:20 +0000 (20:27 +0100)]
Use the QMap iterator instead of foreach(key, map.keys()) in UpdateItemStatesThread::run()
and in VersionControlObserver::slotThreadFinished().

So we get O(n) complexity instead of O(n*logn), and O(1) memory instead of O(n).
Thanks to Thiago Macieira for providing this information.

FIXED-IN: 4.13
REVIEW: 115018

11 years agoCalculate all item size hints at once.
Emmanuel Pescosta [Sun, 12 Jan 2014 22:24:00 +0000 (23:24 +0100)]
Calculate all item size hints at once.

The speed up is really small, but theses changes are mostly straightforward and make the code a bit nicer - break
the KStandardItemListWidgetInformant::itemSizeHint beast into three smaller functions.

FIXED-IN: 4.13
REVIEW: 112979

11 years agoUpdate copyright year
Frank Reininghaus [Sun, 12 Jan 2014 15:56:09 +0000 (16:56 +0100)]
Update copyright year

12 years agoMerge remote-tracking branch 'origin/KDE/4.12'
Frank Reininghaus [Mon, 6 Jan 2014 19:19:48 +0000 (20:19 +0100)]
Merge remote-tracking branch 'origin/KDE/4.12'

12 years agoKill any running preview jobs before starting a new one
Frank Reininghaus [Mon, 6 Jan 2014 19:15:02 +0000 (20:15 +0100)]
Kill any running preview jobs before starting a new one

If loading a preview takes long, it was possible before this commit
that a preview for a new item was requested before the first preview
was shown. In that case, there was a race condition, and the first
preview to arrive stayed in the Information Panel.

This commit fixes this by keeping a pointer to the preview job and
killing it before starting a new one.

BUG: 250787
FIXED-IN: 4.12.1
REVIEW: 114561

12 years agoAvoid calling KFileItemModel::index() in KFileItemModelRolesUpdater
Frank Reininghaus [Mon, 6 Jan 2014 19:10:08 +0000 (20:10 +0100)]
Avoid calling KFileItemModel::index() in KFileItemModelRolesUpdater

KFileItemModel allows to find out the index of a KFileItem with its
index(const KFileItem&) method. Calling this method is not extremely
expensive, but it's also not free (it looks up the URL of the KFileItem
in a QHash, i.e., it has to call qHash(QString) for the full URL).

In KFileItemModelRolesUpdater, we sometimes converted the known index to
a KFileItem and then back to an index in applyResolvedRoles(KFileItem).
This patch fixes this by modifying applyResolvedRoles such that it takes
the index directly as its argument.

REVIEW: 114847

12 years agoMerge remote-tracking branch 'origin/KDE/4.12'
Frank Reininghaus [Sun, 29 Dec 2013 08:50:17 +0000 (09:50 +0100)]
Merge remote-tracking branch 'origin/KDE/4.12'

12 years agoRemove redundant data from KItemListViewLayouter's ItemInfo struct
Frank Reininghaus [Sun, 29 Dec 2013 08:42:25 +0000 (09:42 +0100)]
Remove redundant data from KItemListViewLayouter's ItemInfo struct

It is not necessary to save the position of each item as a QPointF
because all items in a row will have the same y-coordinate, and all
items in a column will have the same x-coordinate. Therefore, we can
reduce the number of doubles that we store from

(number of items) * 2

to

(number of rows) + (number of colums)

which is at least 50% less.

REVIEW: 114460

12 years agoDisable the "Create folder" action in read-only directories
Frank Reininghaus [Sun, 29 Dec 2013 08:23:17 +0000 (09:23 +0100)]
Disable the "Create folder" action in read-only directories

The action can be triggered, e.g., by pressing F10.

BUG: 294054
FIXED-IN: 4.12.1
REVIEW: 114560

12 years agoMerge remote-tracking branch 'origin/KDE/4.12'
Frank Reininghaus [Sun, 22 Dec 2013 12:20:02 +0000 (13:20 +0100)]
Merge remote-tracking branch 'origin/KDE/4.12'

12 years agoFix crash when dragging children of expanded folders in Details View
Frank Reininghaus [Sun, 22 Dec 2013 12:17:05 +0000 (13:17 +0100)]
Fix crash when dragging children of expanded folders in Details View

The problem was that the loop in KFileItemModel::createMimeData() which
is supposed to find out if any parent of an item has been added to the
QMimeData already (because it is not necessary to add the item in that
case) did not loop through the parents of the item, but incorrectly
replaced the local variable 'itemData' by its parent.

BUG: 329119
REVIEW: 114562

12 years agoAdd unit test for KFileItemModel::createMimeData().
Frank Reininghaus [Sun, 22 Dec 2013 12:08:38 +0000 (13:08 +0100)]
Add unit test for KFileItemModel::createMimeData().

The test verifies that creating the mime data for a child of an expanced
folder does not cause a crash. The regression happenened in the master
branch, but it doesn't hurt to have the test also in KDE/4.12.

CCBUG: 329119

12 years agoUpdate filtered items when the "refreshItems" signal is received
Frank Reininghaus [Sun, 22 Dec 2013 11:50:09 +0000 (12:50 +0100)]
Update filtered items when the "refreshItems" signal is received

This fixes the problem that the new file name is not shown in the view
if an item is renamed while it is filtered.

BUG: 329118
FIXED-IN: 4.12.1
REVIEW: 114459