diff options
| author | Peter Penz <[email protected]> | 2007-03-01 20:36:15 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-03-01 20:36:15 +0000 |
| commit | 31e75f52964d8160126ddb62bed533462347efee (patch) | |
| tree | a79d33dd8575a7d3d527bd502d591b820061f335 | |
| parent | 78cb4cae3d97ee1fc843b0500872cf2dbde8f723 (diff) | |
Respect text size for the width of the grid (this is just code for testing, the whole settings dialog for the icons will be reworked later).
svn path=/trunk/KDE/kdebase/apps/; revision=638402
| -rw-r--r-- | src/iconsviewsettingspage.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/iconsviewsettingspage.cpp b/src/iconsviewsettingspage.cpp index 67538c801..c1b0d51c3 100644 --- a/src/iconsviewsettingspage.cpp +++ b/src/iconsviewsettingspage.cpp @@ -204,12 +204,13 @@ void IconsViewSettingsPage::applySettings() // width and height int gridWidth = defaultSize; int gridHeight = defaultSize; + const int textSizeIndex = m_textWidthBox->currentIndex(); if (arrangement == QListView::TopToBottom) { - gridWidth += 96; + gridWidth += 96 + textSizeIndex * 32; gridHeight += 64; } else { - gridWidth += 256; + gridWidth += 128 + textSizeIndex * 64; } settings->setGridWidth(gridWidth); |
