Commit graph

18441 commits

Author SHA1 Message Date
Eike Hein
c4a4efae68 Don't throw away icon positions when changing the text color.
CCBUG:182712
2013-05-31 21:33:18 +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
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
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
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
accd263635 fsview: fix for bug 318706 2013-05-21 18:51:05 +02:00
Eike Hein
ff68ed3e6a Preserve icon positions across theme changes. 2013-05-20 03:07:47 +02:00
Script Kiddy
48145668a8 SVN_SILENT made messages (.desktop file) 2013-05-17 14:30:44 +02:00
Eike Hein
e14314d5c0 Fix non-square icon scaling when items are selected. 2013-05-16 19:56:42 +02:00
Script Kiddy
ef10e25ebd SVN_SILENT made messages (.desktop file) 2013-05-14 22:27:26 +02:00
Dawit Alemayehu
67d4ea9431 Updated the midnightcommander profile to use dolphinpart instead of konq_detailedlistview.
Bug reporter says it still does not fix the crash, but for me it at least restores a working
midnight commander profile.

CCBUG: 312093
REVIEW: 110421
2013-05-14 08:34:59 -04:00
Vishesh Handa
2c68fe33ca DolphinSearchBox setReadOnly: Update if either of the parameters change
This way when another read only query is added, the internal state is
changed and the search label gets updated.

REVIEW: 110324
BUG: 315796
FIXED-IN: 4.10.4
2013-05-13 14:40:39 +05:30
David Faure
6072f58cf3 Dropping a link to the trash: don't move the full contents, just make a link
BUG: 319660
FIXED-IN: 4.10.4
2013-05-12 23:30:58 +02:00
David Faure
e1428451f6 Fix crash when an xmlgui file has shortcuts for viewmode actions.
BUG: 299020
FIXED-IN: 4.10.4
2013-05-12 23:30:58 +02:00
Frank Reininghaus
958f1871f1 Fix unit test failure
The recent commit 022b564831, which added
a few source files to kitemlistcontrollertest, caused a crash in that
test - an assert was hit because now a different virtual method was
called in one place (KStandardItemListView::initializeItemListWidget()),
and qobject_cast could not cast the 'item', which is of type
KFileItemListWidget, to its base class KStandardItemListWidget. Adding
the source file kfileitemlistwidget.cpp fixes this.

CCMAIL: ps_ml@gmx.de
2013-05-12 09:34:05 +02:00
Andrea Iacovitti
854fab5bfa Restore the old behavior where the icon is removed from the status bar
when starting loading a new page.

BUG: 319675
FIXED-IN: 4.10.4
2013-05-11 18:43:27 +02:00
Frank Reininghaus
4e438670d8 Update the required kdelibs version
Since commit b8c9aa55ff, kde-baseapps
calls KFileItem::isFinalIconKnown(), which has been added to KFileItem
in KDE 4.10.2. Update the required version accordingly in the
CMakeLists.txt, such that people with an older version get a CMake
error, rather than a build failure.
2013-05-11 18:36:42 +02:00
Patrick Spendrin
022b564831 fix building tests under windows 2013-05-10 23:03:23 +02:00
Daniel Faust
f12345a57f Don't try to change the icon of the "sort" action menu if it doesn't exist
BUG: 255819
FIXED-IN: 4.10.4
REVIEW: 109966
2013-05-10 22:27:22 +02:00
Vishesh Handa
24609e78f8 Dolphin Places: React to Nepomuk system changes
Reload the places panel when Nepomuk starts up and shutsdown. This way
the user does not need to restart Dolphin to see the custom searches and
places after Nepomuk switches on.

BUG: 304918
REVIEW: 110323
2013-05-07 01:36:37 +05:30
David Faure
291966486c Fix konq's unittests by ensuring it picks up khtmlpart rather than kwebkitpart.
(the tests cast to KHTMLPart)
2013-05-05 22:41:59 +02:00
David Faure
712d12c143 Move bookmarks in reverse order so that their address remains valid.
BUG: 287038
FIXED-IN: 4.10.4
2013-05-05 10:01:05 +02:00
David Faure
e0c4b4478b Add unittest for DnD of multiple bookmarks
When the bookmarks are selected from bottom to top, it works.
When they are selected from top to bottom, it makes addresses invalid,
and breaks.
More debugging tomorrow.
CCBUG: 287038
2013-05-05 01:07:52 +02:00
Frank Reininghaus
2e123de94f Do not change the view URL if it is a symlink to the current directory
BUG: 302037
FIXED-IN: 4.10.3
REVIEW: 110233
2013-05-02 19:40:01 +02:00
Frank Reininghaus
572513a167 Use the same text color for selected hidden and non-hidden items
This fixes the problem that the names of selected hidden items are
unreadable with some color schemes.

BUG: 305734
FIXED-IN: 4.10.3
REVIEW: 110164
2013-05-02 19:28:10 +02:00
Frank Reininghaus
cbb2a4cf47 Rename multiple files: Determine correctly if the name pattern is valid
The "Rename" button in the dialog should be enabled if and only if the
"new name" pattern is valid. This is the case if the pattern contains
exactly one sequence of '#', which will be replaced by digits.

This patch fixes the problem that
(a) A pattern that contains a single '#' is not considered valid, and
(b) A pattern without any '#' at all is not recognized as invalid.

BUG: 318942
FIXED-IN: 4.10.3
REVIEW: 110223
2013-05-02 19:23:38 +02:00
Script Kiddy
1f8499d491 SVN_SILENT made messages (.desktop file) 2013-04-26 13:28:44 +02:00
Script Kiddy
0a66a62bfd SVN_SILENT made messages (.desktop file) 2013-04-23 21:53:29 +02:00
Frank Reininghaus
a16562cd55 Disable Find/Replace in the "rename inline" line edit
These actions do not work correctly because renaming is considered
finished as soon as the line edit loses focus, which happens when the
"Replace" dialog pops up.

BUG: 317772
FIXED-IN: 4.10.3
2013-04-23 19:31:08 +02:00
Frank Reininghaus
f8bf257734 Do not dereference null pointer in KItemListViewAccessible
BUG: 316285
FIXED-IN: 4.10.3
2013-04-23 19:25:52 +02:00
Frank Reininghaus
34d0ad722e Comment out assertion to fix a crash when filtering in Icons/Compat View
I'm not sure yet if there is a problem somewhere else in the code. For
the time being, I think it's better to replace the assert by a TODO
comment to prevent that users find out the hard way that there is
something that we're not quite sure about.

BUG: 317827
FIXED-IN: 4.10.3
2013-04-22 21:36:57 +02:00
Frank Reininghaus
52a38ee90c Always determine icons for the visible items first
When entering a folder, KFileItemModelRolesUpdater has not yet been
informed about the visible index range by the view when it tries to
determine icons synchronously. This resulted in the problem that it
tried to determine icons for all items in random order, and some visible
icons were somtimes still unknown after the "synchronous icon loading"
timeout of 200 ms.

This commit tries to improve the situation by loading icons starting
with the first item in increasing order. This should make it less likely
that some visible items still have unknown icons after 200 ms.

BUG: 316129
FIXED-IN: 4.10.3
REVIEW: 109843
2013-04-22 21:21:31 +02:00
Script Kiddy
8877befbbd SVN_SILENT made messages (.desktop file) 2013-04-20 15:43:04 +02:00
Script Kiddy
8a299ad08c SVN_SILENT made messages (.desktop file) 2013-04-19 13:27:40 +02:00
Ignat Semenov
574cd6de32 avoid a potential stall: QComboBox::maxCount() -> QComboBox::count() 2013-04-16 22:51:01 +04:00
Christoph Feck
277ec25250 Fix missing connections from Port spin boxes
BUG: 318157
FIXED-IN: 4.10.3
2013-04-15 21:29:08 +02:00
Eike Hein
ac18ec1712 Fix inadvertent losses of custom icon positions due to config handling.
The configChanged() implementation could unnecessarily schedule a
reload due to a bug in a has-this-config-element-changed comparison,
which would result in icon position losses in scenarios such as
changing the wallpaper or the workspace theme, without having touched
any sorting-related options. Further, OK'ing the config dialog could
undo the unsorted state entered by moving an icon while the dialog
was open; this is now handled by updating the sorting mode combo box
in the dialog after the icon is dropped.

The later relies on a preceding fix in kde-workspace.git to make
Applet::isUserConfiguring() work for containments if Folder View is
used as desktop containment.
2013-04-15 16:20:03 +02:00
Eike Hein
f979fab6c8 Tint icon by selection color if selected, consistent with Dolphin. 2013-04-15 10:42:34 +02:00
Eike Hein
15428f1910 Default to main view sorting defaults if the main view is unsorted. 2013-04-15 10:42:25 +02:00
Aurélien Gâteau
c3a7ba4e0e Fix moving image while transitioning to hover pixmap
See: http://youtu.be/OMYO0U0kSL0

REVIEW: 109960
FIXED-IN: 4.10.3
2013-04-12 16:28:52 +02:00
Ignat Semenov
ed34d83fd5 no need to check pointer before deleting it 2013-04-11 16:38:56 +04:00
David Faure
b8c9aa55ff Update icon if it couldn't be determined upfront (.desktop file on slow mount)
This requires an up-to-date kdelibs >= 4.10.

CCBUG: 290666
2013-03-27 15:19:09 +01:00
Frank Reininghaus
02f4a69f58 Improve grouping by name for non-ASCII file names
This commit prevents that all non-ASCII letters which are not umlauts
are grouped in a single group "Others", and that the joint group of
an ASCII letter and the associated umlaut in some locales is called
"Others" if there is only the umlaut in the group.

BUG: 315569
REVIEW: 109457
FIXED-IN: 4.10.2
2013-03-26 01:21:34 +01:00
Ignat Semenov
c7884e2122 unbreak build with a Q_DECLARE_METATYPE 2013-03-25 22:30:47 +04:00
Ignat Semenov
391fd1b7a5 int -> QVariant for IconView::Flow 2013-03-25 22:21:33 +04:00
Ignat Semenov
5fb0a7236b streamline the filter combobox code
- int m_filterType -> ProxyModel::FilterType m_filterType
- ProxyModel::filterModeFromInt(int) -> static_cast<ProxyModel::FilterType>(int)
- int -> QVariant<ProxyModel::FilterType> in the config UI
- selectUnselectAll() -> two separate methods; eliminate sender() call

This also fixes filterChanged() and configAccepted() wrt this config key.
Use the actual filter mode value instead of the combobox index which is
error-prone in case the order of the items in the combobox changes.

BUG:317323
FIXED_IN:4.10.2
2013-03-25 15:48:33 +04:00
Aurélien Gâteau
472608e866 Fix transition between m_pixmap and m_hoverPixmap
The default SourceOver composition mode of QPainter cannot be used
to interpolate between two images, we must use intermediate buffers
to perform the interpolation and blend the result on the widget.

More details are available in the review request.

REVIEW: 109614
FIXED-IN: 4.10.2
2013-03-21 14:06:07 +01:00
Emmanuel Pescosta
d3ad8f5937 Refresh all expanded directories too, when reloading a directory.
BUG: 295300
FIXED-IN: 4.10.2
REVIEW: 109488
2013-03-17 20:13:55 +01:00
Script Kiddy
964978ec70 SVN_SILENT made messages (.desktop file) 2013-03-17 13:29:34 +01:00