┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kcategorizedview.cpp
AgeCommit message (Collapse)Author
2008-01-13Move KCategorizedView to kdelibs. Use that one.Rafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=760873
2008-01-13Improve the categorized view for the list modeRafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=760866
2008-01-10Fix selectionsRafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=759098
2008-01-02Better looking categories. Thanks to Aurélien Gâteau for the original patch.Rafael Fernández López
CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=755674
2007-12-27Get the biggest item size for recalculating scrollbar size.Aleix Pol Gonzalez
This patch was made by ereslibre, I'm commiting it because he is kind of offline. svn path=/trunk/KDE/kdebase/apps/; revision=753426
2007-12-26When there is no grid, we need to recalculate correctly the vertical ↵Rafael Fernández López
scrollbar size svn path=/trunk/KDE/kdebase/apps/; revision=753192
2007-12-25Fixes, fixes, fixes:Rafael Fernández López
* Better item appearance (selected and hover) on systemsettings. * Keyboard navigation improved in dolphin, and now is possible to navigate with keyboard in systemsettings (it was not possible before). * No rubberband or multiple selection on systemsettings. * Single or double click for item activation depends on the system state on systemsettings. * On KCategoryDrawer now titles are drawn with more margin, as happens on DolphinCategoryDrawer. This gives more consistency to its look. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=752784
2007-12-20Now we have it: don't update the whole viewport, and be safe when drawing, ↵Rafael Fernández López
so there are not parts forgetting to be updated svn path=/trunk/KDE/kdebase/apps/; revision=750990
2007-12-20Improve performanceRafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=750928
2007-12-18Give visual feedback when dragging with the cursor also. If you are not able ↵Rafael Fernández López
to drop to an item (for example, a txt file) the cursor also changes to "forbidden" with the categorized view. svn path=/trunk/KDE/kdebase/apps/; revision=750059
2007-12-16Avoid painting problems with the rubberbandRafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=749270
2007-12-16The latest fix still had the same problem when dragging went out of the ↵Rafael Fernández López
viewport and entered again. Non droppable places (e.g. files) were still drawn with MouseOver flag. This completely fixes the problem for all cases, the problem was the hovered cached index being updated at indexAt() method used for general purposes. Now it is updated on the MouseMove method, and this gives consistence. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=748970
2007-12-16Fix the problem of the elements being rendered as hovered when a dragging ↵Rafael Fernández López
was being done. Regarding your mail Peter, well some variables are bad-named, but their values were correct :) CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=748962
2007-12-15This fixes the selection problem with the mouse _only_ for the categorized ↵Rafael Fernández López
view. QListView has a bug that will toggle the last selection done, have to report it to TT. BUG: 154028 CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=748822
2007-12-14Oh, this won't let Ctrl+click for deselecting items ... OK, a different hack ↵Rafael Fernández López
is needed. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=748549
2007-12-14Very interesting bug in Qt in which I will debug. For now, and since we need ↵Rafael Fernández López
to release with the source version of Qt (not patched) we need this workaround. The problem is that when you select by dragging with a rect a set of items, say (1, 2, 3) and you Ctrl+drag another set (5,6) the (1,2,3) selection is lost. If you do the same, that is: select (1, 2, 3), now Ctrl+click on (4), it is not lost. Now, ctrl+drag another set (5, 6), the selection lost is (4). So we can say that the selection lost is the last one done. This is only a workaround and should be removed when fixed on Qt (I am going to debug it on Qt, to see where the fail is). This workaround does not only fix KCategorizedView, but QListView also. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=748545
2007-12-13Forgot to modify the code for category selection. Fixed.Rafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=748264
2007-12-13Fix the bug reported by Will. Now this code is also more polite. This was a ↵Rafael Fernández López
TODO and now is fixed :) Still a bug somewhere on Qt... when you ctrl+selection rect (with mouse), it is lost the last selection done if they were done by groups. Going to dive more into this problem, but it lives on Qt. BUG: 153876 CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=748258
2007-12-12Fixes the problem with the keyboard navigation when a selection with the ↵Rafael Fernández López
right-click or a dragging unitary selection was done. BUG: 153875 svn path=/trunk/KDE/kdebase/apps/; revision=747421
2007-12-07workaround no longer neededRafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=746029
2007-12-06Fix palette problem as workaround. This is needed if the categorization is ↵Rafael Fernández López
enabled svn path=/trunk/KDE/kdebase/apps/; revision=745630
2007-12-06We didn't want this changes here... of course... Qt bugRafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=745561
2007-12-06Fix the problem of the palette not being updated... this is a workaround. It ↵Rafael Fernández López
should have been done automatically svn path=/trunk/KDE/kdebase/apps/; revision=745558
2007-12-03More changes will follow to fix logic. This makes the stuff compile.Rafael Fernández López
CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=744626
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-14Fixes the small problem:Rafael Fernández López
* Left to Right arrangement * Elements enough to be needed an horizontal scroll bar with categorized view disabled * Enable categorized view * Horizontal scrollbar still visible Now it is hidden, because the way KCategorizedView shows items is not needed. svn path=/trunk/KDE/kdebase/apps/; revision=736809
2007-10-14Take also in count if the rowcount was changed. Then everything needs to be ↵Rafael Fernández López
recached again svn path=/trunk/KDE/kdebase/apps/; revision=725218
2007-10-14If we are out of the screen and we will be, why keep asking when we know ↵Rafael Fernández López
that no category will intersect from now with the viewport svn path=/trunk/KDE/kdebase/apps/; revision=725213
2007-10-14The sorting on dolphinview is no more needed, it is done automatically by ↵Rafael Fernández López
KCategorizedSortFilterProxyModel when setCategorizedModel is changed. Bug fixed for the categorized view: Details => Icons (with no categories) => Categorized was resulting in no items in the view or all items in the same position svn path=/trunk/KDE/kdebase/apps/; revision=725212
2007-10-13If grid size is changed, update correctly items positionRafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=724802
2007-10-13If the categorizing has been enabled/disabled we need to update the ↵Rafael Fernández López
scrollbar in certain conditions svn path=/trunk/KDE/kdebase/apps/; revision=724701
2007-10-13One loop instead of two is enoughRafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=724700
2007-10-13With latest code at slotLayoutChanged is not more necessary Rafael Fernández López
slotLayoutAboutToBeChanged. Reacts as it should when removing items svn path=/trunk/KDE/kdebase/apps/; revision=724693
2007-10-12Even better...Rafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=724538
2007-10-12This makes the categorized view amazingly fast in directories with a huge ↵Rafael Fernández López
number of files (tested with a folder with 10000 files here) CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=724536
2007-10-05Nice catch on keyboard navigation when RightToLeft is set... :)Rafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=721340
2007-10-05Ooops I had this one for testing purposes locally...Rafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=721338
2007-10-04Changes related to the smooth scrolling. We can enable it since icefox has ↵Rafael Fernández López
submitted his "division by zero" to Qt, so it should be safe. If we experience any division by zero or report, we just disable them commenting them out and with a comment to remind ourselves to uncomment them after. The smooth scrolling is being combined with a good behavior when using the mouse wheel. Some investigation on QListView found nice stuff for KCategorizedView. Peter, I have the smooth scrolling for KDirOperator too, let me that one... I have binary incompatible changes merged there with this ones and I am committing everything together on friday. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=720918
2007-10-03Update my email addressRafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=720339
2007-09-19++keyboard navigationRafael Fernández López
CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=714261
2007-09-18Fix selections problems (like flickering). Click on category ↵Rafael Fernández López
select/deselects all items inside it. Ctrl+Click categories lets you add categories to already created selections, as well as inverting selections inside the same category. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=714051
2007-09-18(Un)selections working properlyRafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=713803
2007-09-17Give feedback to user when clicking on a category and the user is not ↵Rafael Fernández López
dragging from it. Beauty, come to me :) CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=713337
2007-09-17Create the new architecture for KCategorizedView. Now DolphinModel is ↵Rafael Fernández López
created, inheriting KDirModel for returning valid data for the role of the category of an item. DolphinSortFilterProxyModel implements now methods lessThanCategoryMethod and lessThanGeneralMethod from KCategorizedSortFilterProxyModel. The only thing that needs to be adapted is the keyboard navigation on the KCategorizedView. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=713319
2007-07-25ok, second try: make use of KDirSortFilterProxyModel. 'Show in Groups' still ↵Nick Shaforostoff
works, haven't tested nepomuk part though. NOTE to dolphin devs: please, consider using 'left.column()' instead of 'sortRole()' in lessThan methods, and 'sorting()' instead of 'sortRole()' in other places. Didn't make switch by myself because it needs nepomk testing (shouldn't be too hard though). svn path=/trunk/KDE/kdebase/apps/; revision=692517
2007-07-24Fix crash when category view is enabled if there are no categories in ↵Robert Knight
KCategorizedView::moveCursor() svn path=/trunk/KDE/kdebase/apps/; revision=692073
2007-07-23Fix a couple of crashes. First was to avoid problem caused by ↵Robert Knight
KIconLoader::global()->theme() returning 0 (which according to the API, it can do). Second was to fix the 'lastIndex' member of KCategorizedView::Private being out of date when used. According to the comments this member existed as an optimization. However in the only function where it is used, scrollbar updates are also performed. This will be several orders of magnitude more expensive than the 3 constant-time operations on Qt containers (QHash,QList) which the optimization avoided. So I removed the 'lastIndex' member and moved the calculation to where the data is needed. svn path=/trunk/KDE/kdebase/apps/; revision=691574
2007-07-21ok, reverting as requested by Peter Penz.Nick Shaforostoff
svn path=/trunk/KDE/kdebase/apps/; revision=690417
2007-07-20Make use of the newly added KDirSortFilterProxyModel class -- that is, ↵Nick Shaforostoff
essentially, remove all the code being duplicated :) Make manpart use KEncodingDetector capabilities along the way (it was <meta ... charset="System"> before) svn path=/trunk/KDE/kdebase/apps/; revision=690382
2007-07-18QAbstractItemView::viewOptions() only returns an instance of the class ↵Peter Penz
QStyleOptionViewItem, so the text wrapping property of QStyleOptionViewItemV3 will never be set -> check whether wrapping has been enabled inside QListView svn path=/trunk/KDE/kdebase/apps/; revision=689676