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.
David Faure [Tue, 7 Apr 2009 12:45:02 +0000 (12:45 +0000)]
We don't know the mimetype here, so better not set it at all, konq will determine it.
Better than setting inode/directory for everything due to the wrong S_IFDIR.
Fixes "foo is a file but a dir was expected" error when doing MMB on a file.
Shaun Reich [Fri, 27 Mar 2009 01:03:02 +0000 (01:03 +0000)]
A few changes...
*The search bar displays "Search..." as that nice inactive-hinted text, this provides a clue as to what it is, aside from merely the small icon. Text disappears upon clicking
*Also changed text on tooltip from "Search" to "Click to begin the search".
*No need to specify layout direction as Left to Right, it is this way on construction.
Peter Penz [Thu, 26 Mar 2009 18:44:36 +0000 (18:44 +0000)]
Use KNewMenu::createDirectory() instead of KonqOperations::newDir() when F10 has been pressed, so that the directory gets automatically selected afterwards.
Rahman Duran [Wed, 25 Mar 2009 22:00:50 +0000 (22:00 +0000)]
BUG: 175658
GUI:
The remote encoding code adapted from Konqueror to Dolphin. Now user can change
encoding for remote urls like ftp. Konqueror doesn't use
KRemoteEncodingPlugin anymore. Instead, this feature is supplied to
Konqueror via DolphinPart.
Peter Penz [Sat, 21 Mar 2009 11:49:10 +0000 (11:49 +0000)]
- Write the settings to the disk as soon as "Apply" or "OK" has been pressed inside a settings dialog.
- Assure that the settings are saved in the DolphinPart destructor for settings that are changed outside the settings dialog (e. g. by using Ctrl + mouse wheel for adjusting the icon size).
Thanks to Frank Reininghaus and David Faure for the analyses.
Shaun Reich [Thu, 19 Mar 2009 01:43:35 +0000 (01:43 +0000)]
Made the accelerator for "Rename" also removed the setMarginHint() or whatever, I'm quite certain this does absolutely nothing and is no longer needed, but please, correct me if I am wrong.
Peter Penz [Tue, 17 Mar 2009 20:55:26 +0000 (20:55 +0000)]
Assure that KNewMenu from DolphinPart attachs itself to the DolphinNewMenuObserver, so that newly created items get selected (DolphinNewMenu - which attachs itself automatically - cannot be used in DolphinPart).
Peter Penz [Tue, 17 Mar 2009 20:47:03 +0000 (20:47 +0000)]
After creating an item with the "Create New..." menu, the new item should get selected and it must be assured that the item stays visible. Thanks a lot to Rahman Duran for the original patch and the good discussions :-)
Open issues:
- F10 shortcut does not work yet (interface extension might be done in KNewMenu)
- Does not work in column view yet, but this is a colum view specific issue.