┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-05-07 16:28:34 +0000
committerPeter Penz <[email protected]>2009-05-07 16:28:34 +0000
commitc4a72177e2c115870d26b4dfae894d824ce40183 (patch)
treeceb88359dc4b62e7df53acb4fc3ed46b297b0529
parent1cbd4a24b04dcf895deb7fa324e7c13968702acc (diff)
don't show the selection toggle during a rubberband selection
BUG: 181783 svn path=/trunk/KDE/kdebase/apps/; revision=964913
-rw-r--r--src/selectionmanager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/selectionmanager.cpp b/src/selectionmanager.cpp
index 1722bc3c5..7a7034d22 100644
--- a/src/selectionmanager.cpp
+++ b/src/selectionmanager.cpp
@@ -27,6 +27,7 @@
#include <QAbstractButton>
#include <QAbstractItemView>
#include <QAbstractProxyModel>
+#include <QApplication>
#include <QModelIndex>
#include <QPainter>
#include <QPaintEvent>
@@ -62,7 +63,10 @@ void SelectionManager::reset()
void SelectionManager::slotEntered(const QModelIndex& index)
{
m_toggle->hide();
- if (index.isValid() && (index.column() == DolphinModel::Name)) {
+ const bool showToggle = index.isValid() &&
+ (index.column() == DolphinModel::Name) &&
+ (QApplication::mouseButtons() == Qt::NoButton);
+ if (showToggle) {
m_toggle->setUrl(urlForIndex(index));
if (!m_connected) {