┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kcategorizedview.cpp
AgeCommit message (Collapse)Author
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
2007-07-18When derived classes overwrite KCategorizedView::visualRect() to adjust the ↵Peter Penz
visual width or height, drawing errors occur as internally always d->visualRect() is used -> always use KCategorizedView::visualRect()... svn path=/trunk/KDE/kdebase/apps/; revision=689662
2007-07-14Fix small adjustments with items-categoriesRafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=687902
2007-07-14Better spacing for extreme casesRafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=687855
2007-07-14Even better behavior when different possibilities, grid or not grid, spacing ↵Rafael Fernández López
or not spacing svn path=/trunk/KDE/kdebase/apps/; revision=687849
2007-07-14If we have different heights on the same row, make it possible to update ↵Rafael Fernández López
taller items correctly when the mouse is over the part that goes "out of the little one" line svn path=/trunk/KDE/kdebase/apps/; revision=687625
2007-07-14Follow QListView behavior. Each item has the exact size to fit its contents. ↵Rafael Fernández López
Not bigger for little elements. CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=687624
2007-07-14Respect grid sizes.Rafael Fernández López
CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=687616
2007-07-13remove unused variablesPeter Penz
svn path=/trunk/KDE/kdebase/apps/; revision=687466
2007-07-13Update property when needed.Rafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=687397
2007-07-13Take in count item sizes. As we want all elements of the same size we check ↵Rafael Fernández López
for the biggest one. This way we have visible columns too, what makes everything more ordered, and to the user eye as well. svn path=/trunk/KDE/kdebase/apps/; revision=687387
2007-07-13Select elements correctly when clicking on the category for selecting.Rafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=687361
2007-07-13It would be nice if we fill correctly option views :)Rafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=687151
2007-07-09Rename KListView to KCategorizedView as decidedRafael Fernández López
svn path=/trunk/KDE/kdebase/apps/; revision=685767