#include <kglobalsettings.h>
#include <klocale.h>
-#include <QtGui/QComboBox>
-#include <QtGui/QGroupBox>
-#include <QtGui/QLabel>
-#include <QtGui/QListView>
-#include <QtGui/QPushButton>
-#include <QtGui/QSpinBox>
-#include <QtGui/QGridLayout>
-#include <QtCore/QDebug>
+#include <QCheckBox>
+#include <QComboBox>
+#include <QGroupBox>
+#include <QLabel>
+#include <QListView>
+#include <QPushButton>
+#include <QSpinBox>
+#include <QGridLayout>
+#include <QVBoxLayout>
IconsViewSettingsPage::IconsViewSettingsPage(DolphinMainWindow* mainWindow,
QWidget* parent) :
m_fontRequester = new KFontRequester(textGroup);
QLabel* textlinesCountLabel = new QLabel(i18nc("@label:textbox", "Number of lines:"), textGroup);
- m_textlinesCountBox = new QSpinBox(1, 5, 1, textGroup);
+ m_textlinesCountBox = new QSpinBox(textGroup);
+ m_textlinesCountBox->setMinimum(1);
+ m_textlinesCountBox->setMaximum(5);
QLabel* textWidthLabel = new QLabel(i18nc("@label:listbox", "Text width:"), textGroup);
m_textWidthBox = new QComboBox(textGroup);
- m_textWidthBox->addItem(i18nc("Text width", "Small"));
- m_textWidthBox->addItem(i18nc("Text width", "Medium"));
- m_textWidthBox->addItem(i18nc("Text width", "Large"));
+ m_textWidthBox->addItem(i18nc("@item:inlistbox Text width", "Small"));
+ m_textWidthBox->addItem(i18nc("@item:inlistbox Text width", "Medium"));
+ m_textWidthBox->addItem(i18nc("@item:inlistbox Text width", "Large"));
QGridLayout* textGroupLayout = new QGridLayout(textGroup);
textGroupLayout->addWidget(fontLabel, 0, 0);
}
IconsViewSettingsPage::~IconsViewSettingsPage()
-{}
+{
+}
void IconsViewSettingsPage::applySettings()
{
const int textSizeIndex = m_textWidthBox->currentIndex();
if (arrangement == QListView::TopToBottom) {
itemWidth += TopToBottomBase + textSizeIndex * TopToBottomInc;
- itemHeight += fontHeight * numberOfTextlines + 16;
+ itemHeight += fontHeight * numberOfTextlines + 10;
} else {
itemWidth += LeftToRightBase + textSizeIndex * LeftToRightInc;
}