diff options
| author | Peter Penz <[email protected]> | 2009-05-07 17:30:25 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-05-07 17:30:25 +0000 |
| commit | 6a0a4708c242642ef4e6b9d831792d336b9545a9 (patch) | |
| tree | 5618a68fab89077128a02a904905a616ffad1f52 /src | |
| parent | b8fa103e8a7e9942f472f6e5c931a0db31263568 (diff) | |
* Use the height of the icon as factor for the toggle size. This prevents that the size of the toggle changes within one view because of items having one or two text lines.
* Use a larger toggle size starting with 48x48-sized icons.
svn path=/trunk/KDE/kdebase/apps/; revision=964943
Diffstat (limited to 'src')
| -rw-r--r-- | src/selectionmanager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/selectionmanager.cpp b/src/selectionmanager.cpp index 129e7e2ca..7dd07e63e 100644 --- a/src/selectionmanager.cpp +++ b/src/selectionmanager.cpp @@ -88,9 +88,10 @@ void SelectionManager::slotEntered(const QModelIndex& index) m_toggle->move(QPoint(x, y)); // increase the size of the toggle for large items - if (rect.height() >= KIconLoader::SizeEnormous) { + const int height = m_view->iconSize().height(); + if (height >= KIconLoader::SizeEnormous) { m_toggle->resize(KIconLoader::SizeMedium, KIconLoader::SizeMedium); - } else if (rect.height() >= KIconLoader::SizeHuge) { + } else if (height >= KIconLoader::SizeLarge) { m_toggle->resize(KIconLoader::SizeSmallMedium, KIconLoader::SizeSmallMedium); } else { m_toggle->resize(KIconLoader::SizeSmall, KIconLoader::SizeSmall); |
