Commit graph

18678 commits

Author SHA1 Message Date
Frank Reininghaus
fda03a10e7 Do not delete files when Shift-clicking "Trash"
Thanks to Dawit Alemayehu for making this fix possible with commit
8e023ae9e5 !

BUG: 307254
FIXED-IN: 4.11.0
2013-06-09 11:53:59 +02:00
l10n daemon script
122404e71c SVN_SILENT made messages (.desktop file) 2013-06-09 03:43:47 +00:00
l10n daemon script
4dfd550071 SVN_SILENT made messages (.desktop file) 2013-06-08 03:42:25 +00:00
Frank Reininghaus
8989317ab0 Remove unused argument
I saw a runtime warning from QMetaObject::invokeMethod() that KJob* is
not a registered type. Since we don't use that argument in
slotPreviewJobFinished(KJob*) anyway, it's best to remove it.
2013-06-07 09:24:24 +02:00
l10n daemon script
06ffc25dd7 SVN_SILENT made messages (.desktop file) 2013-06-07 03:34:59 +00:00
Andreas Hartmetz
92d50a6b9d Install fix: Change names of files to install.
The old files are gone and the new files should be installed.

CMAIL: lueck@hube-lueck.de
2013-06-07 01:56:59 +02:00
Burkhard Lück
521b96fdaa delete no longer used desktop file 2013-06-06 21:58:38 +02:00
Burkhard Lück
8b8bb0ad20 Remove translation via babelfish - service is no longer avaibable - use google as default
REVIEW:110799
2013-06-06 21:57:04 +02:00
Frank Reininghaus
de51a75fc0 Ignore a changed item if it cannot be found in the model
This prevents repeated attempts to reload the data for the non-existing
item. This was the root cause of bug 320791.

Thanks to Hrvoje Senjan and Jekyll Wu for testing the new code and
finding this bug!

BUG: 320791
2013-06-06 10:00:47 +02:00
Frank Reininghaus
2226adad4a Make calls to resolveNextPendingRoles and resolveNextSortRole delayed
This prevents that functions that call these indirectly call themselves
recursively and cause trouble.

BUG: 320791
2013-06-06 08:49:12 +02:00
Frank Reininghaus
0c3305c8d0 startPreviewJob: if items is empty, delay call to slotPreviewJobFinshed
This should prevent that other functions, which start preview jobs,
eventually call themselves and thus cause trouble.

CCBUG: 320791
2013-06-06 08:38:58 +02:00
l10n daemon script
a8348c8fd9 SVN_SILENT made messages (.desktop file) 2013-06-06 03:41:30 +00:00
Frank Reininghaus
6a49661202 KFileItemModelRolesUpdater: waste less ressources and fix some bugs
The main change in this commit is that we do not determine expensive
roles (like previews, mime types, etc) for all items, but only for the
visible ones and those close to the visible area or on the first and
the last page of the view.

This prevents that the CPU and hard drive are kept busy for quite some
time after entering a folder while all items are handled asynchronously.

There is one known problem at the moment: when sorting by "Type" or
another role that can be resolved by KFileItemModelRolesUpdater, the
icons of the visible items are sometimes not loaded while the sorting is
still in progress. I will try to fix this issue during the next few
days.

REVIEW: 110839
2013-06-05 23:31:01 +02:00
Frank Reininghaus
7e532911f5 Reduce KFileItemModel memory usage by making use of implicit sharing
The idea is based on
http://milianw.de/blog/katekdevelop-sprint-vienna-2012-take-1

REVIEW: 110686
2013-06-05 23:18:26 +02:00
Weng Xuetian
08eae43abd move focus to another view upon drop
When user drag and drop to another splitted view, the view will be activated,
thus if user close the split view, the view will be closed, while this is
usually the case when user copy file to remote/removable media.

REVIEW: 110167
CCBUG: 312834
2013-06-05 17:07:31 -04:00
l10n daemon script
22959cf7dd SVN_SILENT made messages (.desktop file) 2013-06-05 04:48:53 +00:00
Emmanuel Pescosta
afcf8961f6 Bug 196035 - middle clicking on archive files in dolphin does not open them in a new tab
When 'browse through archives' is enabled, open archive files
like folders on middle clicking, context menu -> new tab action
and context menu -> new window action.

BUG: 196035
REVIEW: 110487
2013-06-04 15:27:45 +02:00
David Faure
8ad0650bea Merge remote-tracking branch 'origin/KDE/4.10' 2013-06-04 00:32:19 +02:00
David Faure
3e5da0b813 Fix assert when restoring session (and unselecting some windows).
The KConfigGroups cannot be const, we'll call writeEntry on them.
2013-06-04 00:31:42 +02:00
Hrvoje Senjan
28281d7741 Merge remote-tracking branch 'origin/KDE/4.10' 2013-06-03 17:28:35 +02:00
Hrvoje Senjan
66691b0528 Use dialog svg instead of tooltip for folderview's popupview
Fixes popup rendering when tooltip != dialog background
Also fixed compiler warning
REVIEW: 110786
CCBUG: 320265
2013-06-03 17:18:18 +02:00
David Palser
555a5390bd Improve KFind docs 2013-06-01 23:01:33 +03:00
Burkhard Lück
b041c20fd1 start dolphin docbook update, add a lotof FIXME's to work on 2013-06-01 19:02:41 +02:00
Burkhard Lück
e8ba397a74 start konqueror docbooks update 2013-06-01 19:00:54 +02:00
Eike Hein
c0d0eadd0c Don't throw away icon positions when changing the text color.
CCBUG:182712
2013-05-31 21:34:10 +02:00
Eike Hein
c4a4efae68 Don't throw away icon positions when changing the text color.
CCBUG:182712
2013-05-31 21:33:18 +02:00
Frank Reininghaus
49f7a0b69e Update required kdelibs version
Since b1aebb44d6, we require the current
master branch of kdelibs.
2013-05-30 00:24:06 +02:00
Burkhard Lück
b8cb68d54e proofread+update to 4.11 2013-05-29 21:40:10 +02:00
Vishesh Handa
85ea7bda39 Dolphin Search: Do not use Nepomuk for hidden folders
Nepomuk does not index hidden folders

BUG: 318442
REVIEW: 110697
FIXED-IN: 4.11.0
2013-05-29 20:13:10 +05:30
Frank Reininghaus
b1aebb44d6 Hide context menu plugins unless enabled by default or by the user
REVIEW: 110685
2013-05-29 07:48:11 +02:00
Vishesh Handa
2b700c5099 PlacesModel: Only allow folders to be pinned
It makes no sense to pin files. Plus the old
PlacesModel from kdelibs had the same behaviour.

REVIEW: 110347
2013-05-28 21:52:01 +05:30
Vishesh Handa
2755391492 PlacesPanel: Do not allow drop events into timeline or search folder
They are read only. You cannot modify them, so it makes no point showing
the "Move/Copy Into" context menu.

REVIEW: 110348
2013-05-28 21:21:27 +05:30
Eike Hein
c4b133f50e Merge branch 'KDE/4.10' 2013-05-27 16:22:10 +02:00
Eike Hein
ce159c94b6 Don't accumulate 'Open with <File Manager>' actions in the context menu. 2013-05-27 16:21:47 +02:00
Thomas Lübking
71be3439b4 set KItemListView palette from scenes first view
REVIEW: 110505
2013-05-25 14:20:43 +02:00
David Palser
6332b78c2d Improve Konqueror docs 2013-05-24 19:09:48 +03:00
Eike Hein
da9cf52bf2 Fix build. 2013-05-23 10:06:55 +02:00
Eike Hein
1cef3607f6 Merge branch 'KDE/4.10' 2013-05-23 10:04:44 +02:00
Eike Hein
378c4476ab Cleanup.
Abusing the saved positions system to cope with theme changes
is no longer necessary now that updateGridSize() no longer
throws out position data.
2013-05-23 10:04:05 +02:00
Emmanuel Pescosta
05d9210e29 Added the "Open in new Tabs" action to the Dolphin Context menu.
BUG: 312296
REVIEW: 110371
FIXED-IN: 4.11.0
2013-05-22 21:47:14 +02:00
Stuart Citrin
dfdb631b55 Filter bar: add a button that prevents clearing if the URL changes
FEATURE: 256651
FIXED-IN: 4.11.0
REVIEW: 107392
2013-05-22 18:48:00 +02:00
Frank Reininghaus
9152a36291 Merge remote-tracking branch 'origin/KDE/4.10' 2013-05-22 18:34:25 +02:00
Frank Reininghaus
fba053e984 KFileItemModel::insertItems(): guarantee O(N) run time complexity
This commit prevents repeated insertions of single items into the list
m_itemData, which shift all following items by one position and result
in O(N^2) worst case complexity for the entire function.

Moreover, the hash m_items is updated only for the items starting from
the first inserted/removed item to save some superfluous calculations
of hash values.

REVIEW: 110355
2013-05-22 18:27:44 +02:00
Frank Reininghaus
a79c3a391c Do not reset the 'isExpanded' state when an expanded folder is refreshed
If an item is moved out of an expanded folder, the model receives the
dir lister's refreshItems signal for the folder. The method
retrieveData() then updates the folder's properties. This commit makes
sure that the 'isExpanded' state is not touched by retrieveData(). A
side-effect is that the 'isExpanded' role is not initialized to 'false',
but this does not matter because trying to read a non-existing role from
the QHash<QByteArray, QVariant> yields a default-constructed QVariant,
which evaluates to 'false'.

BUG: 299675
FIXED-IN: 4.10.4
REVIEW: 110401
2013-05-22 18:14:38 +02:00
Frank Reininghaus
56cf52db90 KFileItemModelRolesUpdater: only update the size for changed folders
When using inotify, we also receive signals for modified files, even if
we only ask KDirWatch to watch the directory containing them. In that
case, we must not set the size to -1 (which means "unknown number of
items" for folders) temporarily, or we end up with an apparent file size
of 2^64 - 1 bytes.

BUG: 309740
FIXED-IN: 4.10.4
REVIEW: 110428
2013-05-22 18:09:42 +02:00
David Palser
aea63beaf7 Improve Konqueror docs 2013-05-22 18:37:04 +03:00
l10n daemon script
78239c1ff7 SVN_SILENT made messages (.desktop file) 2013-05-22 03:31:12 +00:00
Eike Hein
360d8c703f Merge branch 'KDE/4.10' 2013-05-22 03:35:32 +02:00
Eike Hein
f86bf88770 Preserve relative positions when changing icon size in containment case.
Icon positions are preserved by scaling the top-left coordinate pair
by the difference between the old and new grid sizes, or by recreating
the same logical column/row coordinate pair in the newly-calculated
grid if the align-to-grid option is enabled.

Icons that run out of bounds (or exceed the maximum column or row)
accumulate at the relevant screen edges. There is a precedent for
this behavior in the general align-to-grid code.

The left-to-right or right-to-left flow is taken into account when
scaling.

Smarter behaviors can be imagined as an optimization (e.g. identi-
fying groups of icons along screen edges and preserving their edge
alignment regardless of overall layout flow), but this simple scaling
implementation certainly beats throwing positions away altogether.

However, positions do still get thrown away in the non-containment
case - as the regular widget is capable of handling overflow via a
scrollbar, relayouting to exploit that felt better in practice.

CCBUG:182712
2013-05-22 03:35:00 +02:00
Josef Weidendorfer
d3470ef4fb Merge branch 'KDE/4.10' 2013-05-21 18:56:38 +02:00