┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphiniconsview.cpp
AgeCommit message (Collapse)Author
2008-05-04Fixed issue that sometimes the dragging from an inactive view to an active ↵Peter Penz
view does not work. Note that this is just a workaround, QAbstractItemView should take care about this itself. I tried to provide a Qt-only example for this, but it is more tricky than I thought: it seems some expensive operations are required, so that the position of the second mouse-move event is outside the item area... I'll retest this issue without workaround if Qt 4.4 final is out. BUG: 154619 svn path=/trunk/KDE/kdebase/apps/; revision=803980
2008-04-16* clear the selection toggle when zooming in or outPeter Penz
* clear the selection toggle when using the scroll wheel (this is only a temporary workaround until Qt-issue #200665 has been fixed) BUG: 159737 svn path=/trunk/KDE/kdebase/apps/; revision=797808
2008-04-16if the mouse is above an item and moved very fast outside the widget, no ↵Peter Penz
viewportEntered() signal might be emitted although the mouse has been moved above the viewport svn path=/trunk/KDE/kdebase/apps/; revision=797742
2008-04-01don't start the editor for renaming the files when double clicking on itemsPeter Penz
BUG: 159694 svn path=/trunk/KDE/kdebase/apps/; revision=792538
2008-03-30Third attempt for fixing the layout issue, this time without side effects ↵Peter Penz
and only with very minor performance overhead... svn path=/trunk/KDE/kdebase/apps/; revision=791824
2008-03-30Revert last commit; the issue seems to be reproducible only in combination ↵Peter Penz
with 'Sort by Type' and we have to find the real root cause instead of bypassing a wrong layout. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=791752
2008-03-29QListView might return a wrong x-position if the decoration size decreases. ↵Peter Penz
I temporary bypassed this in Dolphin, as I'm not 100 % sure whether it is really a QListView issue or related to KFileItemDelegate. To reproduce this issue with Qt-only quite a lot effort is needed -> I'll wait until Qt4.4 final is released... CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=791535
2008-03-23provide a config module for the settings GUI of the Dolphin views, so that ↵Peter Penz
it can be embedded into Konqueror CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=789209
2008-03-20assure that the maximum size of the item-delegate gets updated before ↵Peter Penz
showing the icons view svn path=/trunk/KDE/kdebase/apps/; revision=788152
2008-03-20QListView does not support having a margin for grids. Originally it has been ↵Peter Penz
tried to bypass this by overwriting QListView::visualRect(), but this has some side effects (see #155378 and #155575). The clean approach is to return a proper size hint in the file item delegate. Currently a custom item delegate has been made for Dolphin, but we'll discuss whether it makes sense providing this feature already in KFileItemDelegate... BUG: 155378 BUG: 155575 CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=788095
2008-03-13Don't force that the preview size must be >= the icon size. This gets ↵Peter Penz
confusing when the user uses the Zoom In/Zoom Out feature inside a view a lot (e. g. by Ctrl + scroll wheel). This is because decreasing the preview size would also decrease the icon size, but when increasing the preview size again the icon size remains... I even got confused myself by this "feature" although I knew the reason for it ;-) svn path=/trunk/KDE/kdebase/apps/; revision=785373
2008-03-12* the WA_Hover flag is set by KFileItemDelegate automatically nowPeter Penz
* mouse tracking must stay enabled svn path=/trunk/KDE/kdebase/apps/; revision=784871
2008-03-12As the Qt-issue 160611 is solved in Qt4.4 and Fredrik has improved ↵Peter Penz
KFileItemDelegate, it is not necessary anymore drawing a custom drag & drop indication. svn path=/trunk/KDE/kdebase/apps/; revision=784851
2008-03-05provide an unintrusive frame for previews of imagesPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=782785
2008-02-21Fixed wrong comments. Discussed with David Faure: installing an event filter ↵Peter Penz
works for the icons-view and details-view, but not for the column-view which uses QListView child widgets internally... We decided to leave it as it is. svn path=/trunk/KDE/kdebase/apps/; revision=777838
2008-02-21* Install an event-filter for the view implementations. Whenever a view ↵Peter Penz
implementation gets the focus, it should request it's activation. * Let the metadata widget only get the focus by clicking. * Tried to install a similar filter for the wheel-event code duplication in the view-implementations, but the event filter is invoked _after_ the view implementation gets the wheel event... -> added a note the the 3 implementations as hint. svn path=/trunk/KDE/kdebase/apps/; revision=777757
2008-02-21Let the DolphinController be aware on which QAbstractItemView instance he is ↵Peter Penz
working. This allows to connect signals from the view implementations (icons view, details view, column view) directly to the slots of the DolphinController without a helper slot. svn path=/trunk/KDE/kdebase/apps/; revision=777737
2008-02-21Prevent code duplication by moving the duplications into the DolphinController.Peter Penz
Maybe it might be a good idea to let the DolphinController be aware also about his QAbstractItemView -> it might be possible to directly connect signals of the dolphin view implementations with the controller. I'll check this... (I did not backport this cleanup as I think it has too many changes to be handled as bugfix) CCMAIL: [email protected] CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=777719
2008-02-21Bugfix: Currently, if you open dolphin, select a bunch of files, and right ↵Eduardo Robles Elvira
click and select Open With > whatever, all the files are opened. Which is the right thing. However, if you hit enter to open those selected files, no file is opened. Currently, the file is only opened if there's only *one* file selected. The attached patch fixes this problem. svn path=/trunk/KDE/kdebase/apps/; revision=777695
2008-02-17* if the system font is changed during Dolphin is open, take care to update ↵Peter Penz
the used font of all views too (assuming that the user selected "system font" as font) * store the font weight instead of a bool property "isBold" Thanks to Rafael for the patch! CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=776188
2008-02-12Move the Ctrl-wheel zoom handling to dolphinview.Luciano Montanaro
The specialized views still need to ignore the Ctrl-qualified wheel events, though. svn path=/trunk/KDE/kdebase/apps/; revision=773976
2008-02-01Zoom in and out the icon view on Ctrl+Mouse wheel. Luciano Montanaro
CCMAIL: [email protected] --This li.Ine, and those below, will be ignored-- M src/dolphiniconsview.cpp svn path=/trunk/KDE/kdebase/apps/; revision=769728
2008-01-26reset the selection manager when the URL has been changed (otherwise the ↵Peter Penz
selection toggle button would stay visible) svn path=/trunk/KDE/kdebase/apps/; revision=766918
2008-01-26Blend in a toggle button when hovering items. This allows selecting items ↵Peter Penz
without using the rubberband or Ctrl/Shift-keys in the single-click mode. Any feedback from users is highly welcome (I think people will either love or hate this feature, I'm really not sure -> it can be turned off too). svn path=/trunk/KDE/kdebase/apps/; revision=766901
2008-01-26* increase the performance of item previews: each item view provides an icon ↵Peter Penz
size hint -> the preview and item effects are only applied to the current size, not to the maximum of 128 x 128 pixels * make the icons of hidden files semitransparent like in KDE3 svn path=/trunk/KDE/kdebase/apps/; revision=766659
2008-01-22svn merge -r764536:HEAD from 4.0 branch: refactor "additional info" actions ↵David Faure
and provide them in the part svn path=/trunk/KDE/kdebase/apps/; revision=764550
2008-01-17if the icons are aligned left to right, the vertical wheel event should be ↵Peter Penz
applied to the horizontal scrollbar BUG: 153343 svn path=/trunk/KDE/kdebase/apps/; revision=762722
2008-01-05Remember the additional-info property (size, date, type, ...) for each view ↵Peter Penz
mode (icons view, details view, column view) individually. BUG: 154434 CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=757791
2007-12-18So I guess that is the behaviour that we really want :)Rafael Fernández López
CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=750173
2007-12-18Revert the whole code regarding the discussed issue. Columns view still show ↵Rafael Fernández López
the "forbidden" cursor, so nothing is fixed while reverted. The drop-indicator is shown on files too... so something needs a fix here. Shouldn't be hard anyway CCMAIL: [email protected] CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=750168
2007-12-16The drag&drop helper did not make the difference between the different kind ↵Rafael Fernández López
of views. The only view that draws the hover indicator with rounded corners is the icon view mode. For that reason, the drop marker with the detailed view was drawn with rounded corners. For making it consistent, we draw the drop indicator as the hover effect indicator, so the only one that draws rounded corners is the icon one. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=749225
2007-12-14Moving code around in dolphin fixes DnD support in konqueror :)David Faure
svn path=/trunk/KDE/kdebase/apps/; revision=748476
2007-12-06Fixed wrong usage of QStyleOptionViewItem: caching of the file item in the ↵Peter Penz
constructor is too early (thanks to Fredrik for the hint!). This fixes 2 issues: * the selection color of the details view now uses the correct selection color * changing the colors of KDE results in updating the colors of all Dolphin views CCMAIL: [email protected] CCMAIL: [email protected] CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=745700
2007-12-04Allow turning off the feature that additional information might be shown in ↵Peter Penz
the icons view. Per default the setting is still on, but for people who prefer browsing with the details view and only temporary switch to the icons view (e. g. for having a larger preview), this feature gets a showstopper (discussed with Eike Hein). Got the OK from the translator team for adding the new string. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=744901
2007-11-28fix crash during drag & drop if the file item is not available (thanks to ↵Peter Penz
John Tapsell for the original fix in dolphiniconsview.cpp!) svn path=/trunk/KDE/kdebase/apps/; revision=742703
2007-11-27Do not crash if the index is not valid.John Tapsell
svn path=/trunk/KDE/kdebase/apps/; revision=742329
2007-11-20Allow using a common drag and drop pixmap also for the KCategorizedView. The ↵Peter Penz
code is currently encapsulated inside a DOLPHIN_DRAGANDDROP define, we'll clean this up when Qt 4.4 is out (-> KDE 4.1?) CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=739375
2007-11-20Drag & drop fixes for all views: assure that a consistent pixmap for the ↵Peter Penz
drag object is used throughout all views (still open yet: KCategorizedView uses its custom code yet) svn path=/trunk/KDE/kdebase/apps/; revision=739322
2007-11-19fix minor margin issue for the item boundariesPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=738873
2007-11-19Icons view: assure that the vertical spacing does not grow as fast as the ↵Peter Penz
horizontal spacing. For the default settings this means that the viewport can now be reached easier than before, while not wasting too much vertical space. svn path=/trunk/KDE/kdebase/apps/; revision=738783
2007-11-18Revert last fix, otherwise context menus on viewport don't work anymore. ↵Peter Penz
I'll try to find a clean patch later... svn path=/trunk/KDE/kdebase/apps/; revision=738274
2007-11-18fix crash for the following use case:Peter Penz
- open a view with no selection - press SHIFT + right mouse-click on an item - a context menu will be opened although no item has been selected -> assertion gets triggered later svn path=/trunk/KDE/kdebase/apps/; revision=738255
2007-11-15SVN_SILENT: make code more readablePeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=737279
2007-11-15Bypass a layout issue in QListView::visualRect(), where the horizontal ↵Peter Penz
position of items might get calculated in a wrong manner when the item name is too long. I'll try create a patch for Qt but as Dolphin must also work with Qt 4.3.0 this workaround must get applied at least for KDE 4.0. BUG: 152293 svn path=/trunk/KDE/kdebase/apps/; revision=737265
2007-10-30* fixed drag & drop issue in column view (dropping on files was not possible ↵Peter Penz
-> handled as viewport now) * only show the hover-drop-indicator on directories (dropping on file-items is handled like dropping on the viewport) * simplified signature of drop signal (source widget not required anymore) svn path=/trunk/KDE/kdebase/apps/; revision=731129
2007-10-26Simplify DolphinController: don't remember the show-preview state in the ↵Peter Penz
controller and add an unnecessary additional signal; instead just read the state from the DolphinView svn path=/trunk/KDE/kdebase/apps/; revision=729726
2007-10-26due to the recent tagging freeze this commit contains several fixes in one:Peter Penz
* the filterbar now also filters directories (works also in the column-view :-)) * The "Additional Information" menu entry now also works for showing/hiding the columns of the details view. This also implies that the columns for the details view can now be adjusted per directory -> we have now a consistent behavior between the icons view and details view. Still open: the view properties dialog must be fixed * Don't show a "Nepomuk not available" error message when starting Dolphin and Nepomuk is not available. * Fix issue that the information panel blocked the application because of parsing the full meta data of a huge file. svn path=/trunk/KDE/kdebase/apps/; revision=729704
2007-10-16polish look of column view:Peter Penz
- don't show a focused border above all columns - provide a small gap between the columns - assure that the background of inactive columns works well with more complex styles like Oxygen CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=726042
2007-10-07* assure that the columns of the colum-view get dimmed if the colum-view is ↵Peter Penz
inactive * updated documentation of DolphinController + minor cleanups svn path=/trunk/KDE/kdebase/apps/; revision=722452
2007-10-05fixed most regressions due to the previous column-view refactoringPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=721706