┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kcategorizedview.cpp
AgeCommit message (Collapse)Author
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
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