From: Peter Penz Date: Thu, 1 Mar 2007 20:36:15 +0000 (+0000) Subject: Respect text size for the width of the grid (this is just code for testing, the whole... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/31e75f52964d8160126ddb62bed533462347efee 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 --- 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);