┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/iconsviewsettingspage.h
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-03-11 14:41:09 +0000
committerPeter Penz <[email protected]>2007-03-11 14:41:09 +0000
commit57e674992771b9dc885097d1ea1b50e5c41cd5a4 (patch)
tree30390d4c7f66f54e49101e62fe68161f4d75f4c0 /src/iconsviewsettingspage.h
parent49f881f5ec01014e7b6b0c7fa14abd7e99f605fc (diff)
assure that the iconsview settings-dialog fits on a 800 x 600 screen
svn path=/trunk/KDE/kdebase/apps/; revision=641493
Diffstat (limited to 'src/iconsviewsettingspage.h')
-rw-r--r--src/iconsviewsettingspage.h34
1 files changed, 13 insertions, 21 deletions
diff --git a/src/iconsviewsettingspage.h b/src/iconsviewsettingspage.h
index aa106ef27..c9f5b8a74 100644
--- a/src/iconsviewsettingspage.h
+++ b/src/iconsviewsettingspage.h
@@ -1,6 +1,5 @@
/***************************************************************************
- * Copyright (C) 2006 by Peter Penz *
+ * Copyright (C) 2006 by Peter Penz <[email protected]> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
@@ -31,7 +30,6 @@ class QCheckBox;
class QPushButton;
class QSpinBox;
class QFontComboBox;
-class PixmapViewer;
/**
* @brief Tab page for the 'Icons Mode' and 'Previews Mode' settings
@@ -65,15 +63,21 @@ public:
void applySettings();
private slots:
- void slotIconSizeChanged(int value);
- void slotPreviewSizeChanged(int value);
+ void openIconSizeDialog();
+
+private:
+ /**
+ * Adjusts the selection of the text width combo box dependant
+ * from the grid width and grid height settings.
+ */
+ void adjustTextWidthSelection();
private:
DolphinMainWindow* m_mainWindow;
- QSlider* m_iconSizeSlider;
- PixmapViewer* m_iconSizeViewer;
- QSlider* m_previewSizeSlider;
- PixmapViewer* m_previewSizeViewer;
+ int m_iconSize;
+ int m_previewSize;
+
+ QPushButton* m_iconSizeButton;
QComboBox* m_textWidthBox;
QFontComboBox* m_fontFamilyBox;
QSpinBox* m_fontSizeBox;
@@ -82,18 +86,6 @@ private:
QComboBox* m_arrangementBox;
QComboBox* m_gridSpacingBox;
-
- /** Returns the icon size for the given slider value. */
- int iconSize(int sliderValue) const;
-
- /** Returns the slider value for the given icon size. */
- int sliderValue(int iconSize) const;
-
- /**
- * Adjusts the selection of the text width combo box dependant
- * from the grid width and grid height settings.
- */
- void adjustTextWidthSelection();
};
#endif