diff options
| author | Peter Penz <[email protected]> | 2008-02-02 22:20:41 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-02-02 22:20:41 +0000 |
| commit | a6d36df99ee82c4b081f67f6cf19e2f6fe65e253 (patch) | |
| tree | 033198f940875cbad469ead71f0c505cb2ed93e5 /src/selectionmanager.cpp | |
| parent | a50c7b6bd1a924425a1f165e3b910209f005b35a (diff) | |
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
Diffstat (limited to 'src/selectionmanager.cpp')
| -rw-r--r-- | src/selectionmanager.cpp | 12 |
1 files 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(); |
