]> cloud.milkyroute.net Git - dolphin.git/commitdiff
stay consistent with Plasma and move the selection icon on the top/left of items...
authorPeter Penz <peter.penz19@gmail.com>
Sat, 2 Feb 2008 22:20:41 +0000 (22:20 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Sat, 2 Feb 2008 22:20:41 +0000 (22:20 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=770151

src/selectionmanager.cpp

index f79e1ada00ca002055a9d3ceaf0ebe0329ab50c2..02125d7c9263dcb681e310053d5d0af7ad8e5bda 100644 (file)
@@ -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();