From a6d36df99ee82c4b081f67f6cf19e2f6fe65e253 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 2 Feb 2008 22:20:41 +0000 Subject: [PATCH] stay consistent with Plasma and move the selection icon on the top/left of items (thanks to Jan Klein-Hitpass for the hint) svn path=/trunk/KDE/kdebase/apps/; revision=770151 --- src/selectionmanager.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/selectionmanager.cpp b/src/selectionmanager.cpp index f79e1ada0..02125d7c9 100644 --- a/src/selectionmanager.cpp +++ b/src/selectionmanager.cpp @@ -68,16 +68,10 @@ void SelectionManager::slotEntered(const QModelIndex& index) this, SLOT(slotRowsRemoved(const QModelIndex&, int, int))); const QRect rect = m_view->visualRect(index); - const int gap = 2; - const int x = rect.right() - m_toggle->width() - gap; - int y = rect.top(); - if (rect.height() <= m_toggle->height() * 2) { - // center the button vertically - y += (rect.height() - m_toggle->height()) / 2; - } else { - y += gap; - } + const int gap = 2; + const int x = rect.left() + gap; + const int y = rect.top() + gap; m_toggle->move(QPoint(x, y)); QItemSelectionModel* selModel = m_view->selectionModel(); -- 2.47.3