┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-03-01 20:36:15 +0000
committerPeter Penz <[email protected]>2007-03-01 20:36:15 +0000
commit31e75f52964d8160126ddb62bed533462347efee (patch)
treea79d33dd8575a7d3d527bd502d591b820061f335 /src
parent78cb4cae3d97ee1fc843b0500872cf2dbde8f723 (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
Diffstat (limited to 'src')
-rw-r--r--src/iconsviewsettingspage.cpp5
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);