Count selected items, not QItemSelectionRanges in
DolphinView::selectedItemsCount(). This fixes the problem that the
"Compare Files" action may be disabled or enabled incorrectly.
Peter Penz [Sun, 21 Jun 2009 08:16:03 +0000 (08:16 +0000)]
Simplify how Nepomuk comments can be edited by the user:
- don't provide any mode for editing, just let the user directly manipulate the comment inside the text widget
- automatically save changes, no explicit confirmation required
Peter Penz [Sat, 20 Jun 2009 18:35:08 +0000 (18:35 +0000)]
Simplify the handling of previews: Create the tooltip as early as possible even if the preview has not been finished yet. Previously an empty area has been shown instead of a default icon, but also in this case the size of the tooltip will change as soon as the preview is received -> just show the default icon as early as possible.
Peter Penz [Sat, 20 Jun 2009 16:49:04 +0000 (16:49 +0000)]
- Don't keep pointers to objects that are obtained and deleted by other objects.
- Simplify the API so that it is assured that no memory leaks are given.
Peter Penz [Sat, 20 Jun 2009 11:45:34 +0000 (11:45 +0000)]
We won't get translated labels for Nepomuk literals in KDE 4.3.0... At least assure that camelcase labels like "fileLocation:" are replaced by "File location:" (thanks to Sebastian Trüg for the code)
Use qAbs() instead of fabs(). The values in question are integers
anyway (so fabs() is not the 'right' function for them), and this
change makes the Sun Studio compiler happy.
Peter Penz [Wed, 10 Jun 2009 10:04:33 +0000 (10:04 +0000)]
fixed resizing issues when having long comments:
* embed the comment label inside a scrollarea
* assure that the "add comment..."/"change comment..." link is always visible
* assure that the maximum width of the meta data widget is set to the panel width (otherwise the panel would be increased in an unlimited way when having a text without spaces)
Peter Penz [Thu, 4 Jun 2009 06:05:45 +0000 (06:05 +0000)]
Only reset the current URL, if the element is shown in the current view.
This fixes the issue that when going back the last visited directory is
not marked.
Set the font to italic for symbolic links before calculating the size
of the area which is made available to KFileItemDelegate::paint. Fixes
the problem that Dolphin truncates the names of some symbolic links if
the italic version of the font needs more space than the non-italic
one.
Peter Penz [Mon, 11 May 2009 16:55:35 +0000 (16:55 +0000)]
Only select the clipboard items after the user triggered "Paste". This fixes the issue that items got selected accidently when creating items with a similar name to previously pasted items. BTW the code is also simpler now than before...
Peter Penz [Fri, 8 May 2009 17:08:55 +0000 (17:08 +0000)]
If the item height is nearly equal to the toggle height, center the toggle vertically instead of aligning it on the top. This assures a better alignment especially for the details and column view when working with a height of ~20 pixels.
Peter Penz [Fri, 8 May 2009 16:44:51 +0000 (16:44 +0000)]
Select copied/moved items automatically if no item is already selected. This gives the user an indication where his pasted items are located and allows invoking operations like "Rename" in an easy way.
Peter Penz [Thu, 7 May 2009 17:30:25 +0000 (17:30 +0000)]
* Use the height of the icon as factor for the toggle size. This prevents that the size of the toggle changes within one view because of items having one or two text lines.
* Use a larger toggle size starting with 48x48-sized icons.
Do not emit DolphinView's urlChanged(const KUrl&) signal if the view
is activated, as discussed with Peter. This fixes a crash on a failed
assert if the DolphinView's and the KUrlNavigator's URLs are slightly
different (i.e., if a slash has been added to the navigator's URL by
KDirLister).
I could not find any regressions caused by this change so far, but
even if there are side effects, the upcoming beta and RC releases
should give enough user feedback and time to fix them.
Peter Penz [Thu, 23 Apr 2009 19:46:08 +0000 (19:46 +0000)]
- Postpone the video player initialization until the play button has been pressed.
- Assure that the video player has the same size as the preview widget. Convincing the embedded video player to dynamically resize during playing a video seems to be impossible - I need to check the Phonon::VideoPlayer source code to get the root cause for the currently strange behavior :-(
Make it impossible to hide one of the views in a split view setup
completely by dragging the QSplitterHandle to the left or right. This
fixes the problem that a hidden view disappears completely after
closing the visible view. The root cause of this issue still seems to
be unclear though.
Let the user choose if folders are always shown first in the views of
Dolphin and Konqueror (the default) or not. This setting can be
changed in the View menu: "View->Sort By->Folders First".
Make Qt 4.5's new "move tab" feature work in Dolphin. Up to now, tabs could be moved in the tab bar using drag&drop, but DolphinMainWindow didn't notice :-(
Note that there's no need to call setActiveTab() because the active tab is the same before and after the move operation - only its index in the tab bar has changed.
Peter Penz [Wed, 15 Apr 2009 20:10:03 +0000 (20:10 +0000)]
Workaround: Phonon::BackendCapabilities::isMimeTypeAvailable(...) returns true for PNG images, but it makes no sense showing a play/stop button in this case.
Peter Penz [Wed, 15 Apr 2009 18:40:08 +0000 (18:40 +0000)]
After restoring the current item when going back to a folder, the current-item URL must be cleared to prevent moving the focus when the directory content will be changed later.
Peter Penz [Wed, 15 Apr 2009 18:01:37 +0000 (18:01 +0000)]
Initialize the name-label widget with a maximum size. This is important, otherwise at least one resize event would be needed to apply a maximum width. This gets a problem if the dock is overlapped by another dock: No resize event is emitted and the preferred size increases in an unlimited way. Result: when hovering files with very long filenames, the overall dock width will increase in an unexpected way.