┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRafael Fernández López <[email protected]>2007-12-14 19:27:50 +0000
committerRafael Fernández López <[email protected]>2007-12-14 19:27:50 +0000
commit6be0981c7db34e10d20320c380c90c572f75ccf2 (patch)
tree5b1c02f176356c68e4b5685377e91460677bda7e /src
parent737b74aa294e05cebc2cd1e48a4fa66cf62f222e (diff)
Oh, this won't let Ctrl+click for deselecting items ... OK, a different hack is needed.
CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=748549
Diffstat (limited to 'src')
-rw-r--r--src/kcategorizedview.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/kcategorizedview.cpp b/src/kcategorizedview.cpp
index 152573214..6590c4b2a 100644
--- a/src/kcategorizedview.cpp
+++ b/src/kcategorizedview.cpp
@@ -39,11 +39,6 @@
// Qt 4.4, so that this workaround can be skipped.
#define DOLPHIN_DRAGANDDROP
-// By defining KDE_WORKAROUND_FOR_QT_VIEW_BUG we save the selection being held
-// before mousePressEvent happens. On Qt there is something clearing the last
-// selection made, what make it impossible to save our very last selection.
-#define KDE_WORKAROUND_FOR_QT_VIEW_BUG
-
KCategorizedView::Private::Private(KCategorizedView *listView)
: listView(listView)
, categoryDrawer(0)
@@ -1043,13 +1038,7 @@ void KCategorizedView::mousePressEvent(QMouseEvent *event)
horizontalOffset());
}
-#ifdef KDE_WORKAROUND_FOR_QT_VIEW_BUG
- QItemSelection prevSelection = selectionModel()->selection();
-#endif
QListView::mousePressEvent(event);
-#ifdef KDE_WORKAROUND_FOR_QT_VIEW_BUG
- selectionModel()->select(prevSelection, QItemSelectionModel::Select);
-#endif
viewport()->update(d->categoryVisualRect(d->hoveredCategory));
}