From: Peter Penz Date: Sat, 2 Feb 2008 22:20:41 +0000 (+0000) Subject: stay consistent with Plasma and move the selection icon on the top/left of items... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/a6d36df99ee82c4b081f67f6cf19e2f6fe65e253?ds=sidebyside 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 --- 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();