From e3bd93fe73f41730555e8c225ee51f93e29c228c Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 5 Nov 2010 17:32:46 +0000 Subject: [PATCH] Take care to listen for changes of the settings-widgets after loadSettings() is invoked, otherwise it is possible that a change is accidently indicated. svn path=/trunk/KDE/kdebase/apps/; revision=1193350 --- src/settings/general/behaviorsettingspage.cpp | 24 +++++++++---------- .../general/contextmenusettingspage.cpp | 5 ++-- src/settings/general/previewssettingspage.cpp | 10 ++++---- .../general/statusbarsettingspage.cpp | 5 ++-- .../navigation/navigationsettingspage.cpp | 9 +++---- src/settings/startup/startupsettingspage.cpp | 3 +-- src/settings/trash/trashsettingspage.cpp | 3 ++- .../viewmodes/columnviewsettingspage.cpp | 12 ++++------ .../viewmodes/detailsviewsettingspage.cpp | 12 ++++------ .../viewmodes/iconsviewsettingspage.cpp | 18 +++++++------- 10 files changed, 48 insertions(+), 53 deletions(-) diff --git a/src/settings/general/behaviorsettingspage.cpp b/src/settings/general/behaviorsettingspage.cpp index 0dae09d525..0864a4bba8 100644 --- a/src/settings/general/behaviorsettingspage.cpp +++ b/src/settings/general/behaviorsettingspage.cpp @@ -59,10 +59,8 @@ BehaviorSettingsPage::BehaviorSettingsPage(const KUrl& url, QWidget* parent) : propsBox->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum); m_localProps = new QRadioButton(i18nc("@option:radio", "Remember view properties for each folder"), propsBox); - connect(m_localProps, SIGNAL(toggled(bool)), this, SIGNAL(changed())); m_globalProps = new QRadioButton(i18nc("@option:radio", "Use common view properties for all folders"), propsBox); - connect(m_globalProps, SIGNAL(toggled(bool)), this, SIGNAL(changed())); QVBoxLayout* propsBoxLayout = new QVBoxLayout(propsBox); propsBoxLayout->addWidget(m_localProps); @@ -73,13 +71,10 @@ BehaviorSettingsPage::BehaviorSettingsPage(const KUrl& url, QWidget* parent) : confirmBox->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum); m_confirmMoveToTrash = new QCheckBox(i18nc("@option:check Ask for Confirmation When", "Moving files or folders to trash"), confirmBox); - connect(m_confirmMoveToTrash, SIGNAL(toggled(bool)), this, SIGNAL(changed())); m_confirmDelete = new QCheckBox(i18nc("@option:check Ask for Confirmation When", "Deleting files or folders"), confirmBox); - connect(m_confirmDelete, SIGNAL(toggled(bool)), this, SIGNAL(changed())); m_confirmClosingMultipleTabs = new QCheckBox(i18nc("@option:check Ask for Confirmation When", "Closing windows with multiple tabs"), confirmBox); - connect(m_confirmClosingMultipleTabs, SIGNAL(toggled(bool)), this, SIGNAL(changed())); QVBoxLayout* confirmBoxLayout = new QVBoxLayout(confirmBox); confirmBoxLayout->addWidget(m_confirmMoveToTrash); @@ -88,30 +83,23 @@ BehaviorSettingsPage::BehaviorSettingsPage(const KUrl& url, QWidget* parent) : // 'Rename inline' m_renameInline = new QCheckBox(i18nc("@option:check", "Rename inline"), this); - connect(m_renameInline, SIGNAL(toggled(bool)), this, SIGNAL(changed())); // 'Show tooltips' QWidget* toolTipContainer = new QWidget(this); QHBoxLayout* toolTipsLayout = new QHBoxLayout(toolTipContainer); toolTipsLayout->setMargin(0); m_showToolTips = new QCheckBox(i18nc("@option:check", "Show tooltips"), toolTipContainer); - connect(m_showToolTips, SIGNAL(toggled(bool)), this, SIGNAL(changed())); - connect(m_showToolTips, SIGNAL(toggled(bool)), this, SLOT(updateConfigureButton())); m_configureToolTips = new QLabel(toolTipContainer); - connect(m_configureToolTips, SIGNAL(linkActivated(const QString&)), - this, SLOT(configureToolTips())); toolTipsLayout->addWidget(m_showToolTips); toolTipsLayout->addWidget(m_configureToolTips, 1, Qt::AlignLeft); // 'Show selection marker' m_showSelectionToggle = new QCheckBox(i18nc("@option:check", "Show selection marker"), this); - connect(m_showSelectionToggle, SIGNAL(toggled(bool)), this, SIGNAL(changed())); // 'Natural sorting of items' m_naturalSorting = new QCheckBox(i18nc("option:check", "Natural sorting of items"), this); - connect(m_naturalSorting, SIGNAL(toggled(bool)), this, SIGNAL(changed())); topLayout->addWidget(propsBox); topLayout->addWidget(confirmBox); @@ -122,6 +110,18 @@ BehaviorSettingsPage::BehaviorSettingsPage(const KUrl& url, QWidget* parent) : topLayout->addStretch(); loadSettings(); + + connect(m_localProps, SIGNAL(toggled(bool)), this, SIGNAL(changed())); + connect(m_globalProps, SIGNAL(toggled(bool)), this, SIGNAL(changed())); + connect(m_confirmMoveToTrash, SIGNAL(toggled(bool)), this, SIGNAL(changed())); + connect(m_confirmDelete, SIGNAL(toggled(bool)), this, SIGNAL(changed())); + connect(m_confirmClosingMultipleTabs, SIGNAL(toggled(bool)), this, SIGNAL(changed())); + connect(m_renameInline, SIGNAL(toggled(bool)), this, SIGNAL(changed())); + connect(m_showToolTips, SIGNAL(toggled(bool)), this, SIGNAL(changed())); + connect(m_showToolTips, SIGNAL(toggled(bool)), this, SLOT(updateConfigureButton())); + connect(m_configureToolTips, SIGNAL(linkActivated(const QString&)), this, SLOT(configureToolTips())); + connect(m_showSelectionToggle, SIGNAL(toggled(bool)), this, SIGNAL(changed())); + connect(m_naturalSorting, SIGNAL(toggled(bool)), this, SIGNAL(changed())); } BehaviorSettingsPage::~BehaviorSettingsPage() diff --git a/src/settings/general/contextmenusettingspage.cpp b/src/settings/general/contextmenusettingspage.cpp index 233e899b4a..592e25ba76 100644 --- a/src/settings/general/contextmenusettingspage.cpp +++ b/src/settings/general/contextmenusettingspage.cpp @@ -41,10 +41,8 @@ ContextMenuSettingsPage::ContextMenuSettingsPage(QWidget* parent) : vBox->setSpacing(KDialog::spacingHint()); m_showDeleteCommand = new QCheckBox(i18nc("@option:check", "Show 'Delete' command"), vBox); - connect(m_showDeleteCommand, SIGNAL(toggled(bool)), this, SIGNAL(changed())); m_showCopyMoveMenu = new QCheckBox(i18nc("@option:check", "Show 'Copy To' and 'Move To' commands"), vBox); - connect(m_showCopyMoveMenu, SIGNAL(toggled(bool)), this, SIGNAL(changed())); // Add a dummy widget with no restriction regarding // a vertical resizing. This assures that the dialog layout @@ -54,6 +52,9 @@ ContextMenuSettingsPage::ContextMenuSettingsPage(QWidget* parent) : topLayout->addWidget(vBox); loadSettings(); + + connect(m_showDeleteCommand, SIGNAL(toggled(bool)), this, SIGNAL(changed())); + connect(m_showCopyMoveMenu, SIGNAL(toggled(bool)), this, SIGNAL(changed())); } ContextMenuSettingsPage::~ContextMenuSettingsPage() diff --git a/src/settings/general/previewssettingspage.cpp b/src/settings/general/previewssettingspage.cpp index 1059e85477..265dc209fa 100644 --- a/src/settings/general/previewssettingspage.cpp +++ b/src/settings/general/previewssettingspage.cpp @@ -65,8 +65,6 @@ PreviewsSettingsPage::PreviewsSettingsPage(QWidget* parent) : m_previewPluginsList = new QListWidget(this); m_previewPluginsList->setSortingEnabled(true); m_previewPluginsList->setSelectionMode(QAbstractItemView::NoSelection); - connect(m_previewPluginsList, SIGNAL(itemClicked(QListWidgetItem*)), - this, SIGNAL(changed())); QVBoxLayout* listBoxLayout = new QVBoxLayout(listBox); listBoxLayout->addWidget(m_previewPluginsList); @@ -81,8 +79,6 @@ PreviewsSettingsPage::PreviewsSettingsPage(QWidget* parent) : m_localFileSizeBox->setSingleStep(1); m_localFileSizeBox->setSuffix(QLatin1String(" MB")); m_localFileSizeBox->setRange(0, 9999); /* MB */ - connect(m_localFileSizeBox, SIGNAL(valueChanged(int)), - this, SIGNAL(changed())); QLabel* remoteFileSizeLabel = new QLabel(i18nc("@label Don't create previews for: XX MByte", "Remote files above:"), this); @@ -91,8 +87,6 @@ PreviewsSettingsPage::PreviewsSettingsPage(QWidget* parent) : m_remoteFileSizeBox->setSingleStep(1); m_remoteFileSizeBox->setSuffix(QLatin1String(" MB")); m_remoteFileSizeBox->setRange(0, 9999); /* MB */ - connect(m_remoteFileSizeBox, SIGNAL(valueChanged(int)), - this, SIGNAL(changed())); QGridLayout* fileSizeBoxLayout = new QGridLayout(fileSizeBox); fileSizeBoxLayout->addWidget(localFileSizeLabel, 0, 0, Qt::AlignRight); @@ -104,6 +98,10 @@ PreviewsSettingsPage::PreviewsSettingsPage(QWidget* parent) : topLayout->addWidget(fileSizeBox); loadSettings(); + + connect(m_previewPluginsList, SIGNAL(itemClicked(QListWidgetItem*)), this, SIGNAL(changed())); + connect(m_localFileSizeBox, SIGNAL(valueChanged(int)), this, SIGNAL(changed())); + connect(m_remoteFileSizeBox, SIGNAL(valueChanged(int)), this, SIGNAL(changed())); } diff --git a/src/settings/general/statusbarsettingspage.cpp b/src/settings/general/statusbarsettingspage.cpp index 5c2d34af80..4d9b9a3f2c 100644 --- a/src/settings/general/statusbarsettingspage.cpp +++ b/src/settings/general/statusbarsettingspage.cpp @@ -40,10 +40,8 @@ StatusBarSettingsPage::StatusBarSettingsPage(QWidget* parent) : vBox->setSpacing(KDialog::spacingHint()); m_showZoomSlider = new QCheckBox(i18nc("@option:check", "Show zoom slider"), vBox); - connect(m_showZoomSlider, SIGNAL(toggled(bool)), this, SIGNAL(changed())); m_showSpaceInfo = new QCheckBox(i18nc("@option:check", "Show space information"), vBox); - connect(m_showSpaceInfo, SIGNAL(toggled(bool)), this, SIGNAL(changed())); // Add a dummy widget with no restriction regarding // a vertical resizing. This assures that the dialog layout @@ -53,6 +51,9 @@ StatusBarSettingsPage::StatusBarSettingsPage(QWidget* parent) : topLayout->addWidget(vBox); loadSettings(); + + connect(m_showZoomSlider, SIGNAL(toggled(bool)), this, SIGNAL(changed())); + connect(m_showSpaceInfo, SIGNAL(toggled(bool)), this, SIGNAL(changed())); } StatusBarSettingsPage::~StatusBarSettingsPage() diff --git a/src/settings/navigation/navigationsettingspage.cpp b/src/settings/navigation/navigationsettingspage.cpp index 31f4d47c0b..00ea3aad3e 100644 --- a/src/settings/navigation/navigationsettingspage.cpp +++ b/src/settings/navigation/navigationsettingspage.cpp @@ -50,20 +50,16 @@ NavigationSettingsPage::NavigationSettingsPage(QWidget* parent) : mouseBox->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Maximum); m_singleClick = new QRadioButton(i18nc("@option:check Mouse Settings", "Single-click to open files and folders"), mouseBox); - connect(m_singleClick, SIGNAL(toggled(bool)), this, SIGNAL(changed())); m_doubleClick = new QRadioButton(i18nc("@option:check Mouse Settings", "Double-click to open files and folders"), mouseBox); - connect(m_doubleClick, SIGNAL(toggled(bool)), this, SIGNAL(changed())); QVBoxLayout* mouseBoxLayout = new QVBoxLayout(mouseBox); mouseBoxLayout->addWidget(m_singleClick); mouseBoxLayout->addWidget(m_doubleClick); m_openArchivesAsFolder = new QCheckBox(i18nc("@option:check", "Open archives as folder"), vBox); - connect(m_openArchivesAsFolder, SIGNAL(toggled(bool)), this, SIGNAL(changed())); m_autoExpandFolders = new QCheckBox(i18nc("option:check", "Open folders during drag operations"), vBox); - connect(m_autoExpandFolders, SIGNAL(toggled(bool)), this, SIGNAL(changed())); // Add a dummy widget with no restriction regarding // a vertical resizing. This assures that the dialog layout @@ -73,6 +69,11 @@ NavigationSettingsPage::NavigationSettingsPage(QWidget* parent) : topLayout->addWidget(vBox); loadSettings(); + + connect(m_singleClick, SIGNAL(toggled(bool)), this, SIGNAL(changed())); + connect(m_doubleClick, SIGNAL(toggled(bool)), this, SIGNAL(changed())); + connect(m_openArchivesAsFolder, SIGNAL(toggled(bool)), this, SIGNAL(changed())); + connect(m_autoExpandFolders, SIGNAL(toggled(bool)), this, SIGNAL(changed())); } NavigationSettingsPage::~NavigationSettingsPage() diff --git a/src/settings/startup/startupsettingspage.cpp b/src/settings/startup/startupsettingspage.cpp index 907b3f2cd3..4dd7d19f55 100644 --- a/src/settings/startup/startupsettingspage.cpp +++ b/src/settings/startup/startupsettingspage.cpp @@ -98,8 +98,7 @@ StartupSettingsPage::StartupSettingsPage(const KUrl& url, QWidget* parent) : loadSettings(); - // Connecting the signals must be done after loading the settings - connect(m_homeUrl, SIGNAL(textChanged(const QString&)), this, SIGNAL(changed())); + connect(m_homeUrl, SIGNAL(textChanged(const QString&)), this, SLOT(slotSettingsChanged())); connect(m_splitView, SIGNAL(toggled(bool)), this, SLOT(slotSettingsChanged())); connect(m_editableUrl, SIGNAL(toggled(bool)), this, SLOT(slotSettingsChanged())); connect(m_showFullPath, SIGNAL(toggled(bool)), this, SLOT(slotSettingsChanged())); diff --git a/src/settings/trash/trashsettingspage.cpp b/src/settings/trash/trashsettingspage.cpp index e23028b082..f507cbab5b 100644 --- a/src/settings/trash/trashsettingspage.cpp +++ b/src/settings/trash/trashsettingspage.cpp @@ -37,7 +37,6 @@ TrashSettingsPage::TrashSettingsPage(QWidget* parent) : vBox->setSpacing(spacing); m_proxy = new KCModuleProxy("kcmtrash"); - connect(m_proxy, SIGNAL(changed(bool)), this, SIGNAL(changed())); topLayout->addWidget(m_proxy); // Add a dummy widget with no restriction regarding @@ -47,6 +46,8 @@ TrashSettingsPage::TrashSettingsPage(QWidget* parent) : topLayout->addWidget(vBox); loadSettings(); + + connect(m_proxy, SIGNAL(changed(bool)), this, SIGNAL(changed())); } TrashSettingsPage::~TrashSettingsPage() diff --git a/src/settings/viewmodes/columnviewsettingspage.cpp b/src/settings/viewmodes/columnviewsettingspage.cpp index 2a6265f2fd..0919e1618f 100644 --- a/src/settings/viewmodes/columnviewsettingspage.cpp +++ b/src/settings/viewmodes/columnviewsettingspage.cpp @@ -61,18 +61,12 @@ ColumnViewSettingsPage::ColumnViewSettingsPage(QWidget* parent) : m_iconSizeGroupBox->setDefaultSizeRange(min, max); m_iconSizeGroupBox->setPreviewSizeRange(min, max); - connect(m_iconSizeGroupBox, SIGNAL(defaultSizeChanged(int)), - this, SIGNAL(changed())); - connect(m_iconSizeGroupBox, SIGNAL(previewSizeChanged(int)), - this, SIGNAL(changed())); - // create "Text" properties QGroupBox* textGroup = new QGroupBox(i18nc("@title:group", "Text"), this); textGroup->setSizePolicy(sizePolicy); QLabel* fontLabel = new QLabel(i18nc("@label:listbox", "Font:"), textGroup); m_fontRequester = new DolphinFontRequester(textGroup); - connect(m_fontRequester, SIGNAL(changed()), this, SIGNAL(changed())); QLabel* textWidthLabel = new QLabel(i18nc("@label:listbox", "Text width:"), textGroup); m_textWidthBox = new KComboBox(textGroup); @@ -80,7 +74,6 @@ ColumnViewSettingsPage::ColumnViewSettingsPage(QWidget* parent) : m_textWidthBox->addItem(i18nc("@item:inlistbox Text width", "Medium")); m_textWidthBox->addItem(i18nc("@item:inlistbox Text width", "Large")); m_textWidthBox->addItem(i18nc("@item:inlistbox Text width", "Huge")); - connect(m_textWidthBox, SIGNAL(currentIndexChanged(int)), this, SIGNAL(changed())); QGridLayout* textGroupLayout = new QGridLayout(textGroup); textGroupLayout->addWidget(fontLabel, 0, 0, Qt::AlignRight); @@ -94,6 +87,11 @@ ColumnViewSettingsPage::ColumnViewSettingsPage(QWidget* parent) : new QWidget(this); loadSettings(); + + connect(m_iconSizeGroupBox, SIGNAL(defaultSizeChanged(int)), this, SIGNAL(changed())); + connect(m_iconSizeGroupBox, SIGNAL(previewSizeChanged(int)), this, SIGNAL(changed())); + connect(m_fontRequester, SIGNAL(changed()), this, SIGNAL(changed())); + connect(m_textWidthBox, SIGNAL(currentIndexChanged(int)), this, SIGNAL(changed())); } ColumnViewSettingsPage::~ColumnViewSettingsPage() diff --git a/src/settings/viewmodes/detailsviewsettingspage.cpp b/src/settings/viewmodes/detailsviewsettingspage.cpp index 253d12a799..79fedd5102 100644 --- a/src/settings/viewmodes/detailsviewsettingspage.cpp +++ b/src/settings/viewmodes/detailsviewsettingspage.cpp @@ -61,18 +61,12 @@ DetailsViewSettingsPage::DetailsViewSettingsPage(QWidget* parent) : m_iconSizeGroupBox->setDefaultSizeRange(min, max); m_iconSizeGroupBox->setPreviewSizeRange(min, max); - connect(m_iconSizeGroupBox, SIGNAL(defaultSizeChanged(int)), - this, SIGNAL(changed())); - connect(m_iconSizeGroupBox, SIGNAL(previewSizeChanged(int)), - this, SIGNAL(changed())); - // create "Text" properties QWidget* textGroup = new QGroupBox(i18nc("@title:group", "Text"), this); textGroup->setSizePolicy(sizePolicy); QLabel* fontLabel = new QLabel(i18nc("@label:listbox", "Font:"), textGroup); m_fontRequester = new DolphinFontRequester(textGroup); - connect(m_fontRequester, SIGNAL(changed()), this, SIGNAL(changed())); QHBoxLayout* textLayout = new QHBoxLayout(textGroup); textLayout->addWidget(fontLabel, 0, Qt::AlignRight); @@ -80,7 +74,6 @@ DetailsViewSettingsPage::DetailsViewSettingsPage(QWidget* parent) : // create "Expandable Folders" checkbox m_expandableFolders = new QCheckBox(i18nc("@option:check", "Expandable folders"), this); - connect(m_expandableFolders, SIGNAL(toggled(bool)), this, SIGNAL(changed())); // Add a dummy widget with no restriction regarding // a vertical resizing. This assures that the dialog layout @@ -88,6 +81,11 @@ DetailsViewSettingsPage::DetailsViewSettingsPage(QWidget* parent) : new QWidget(this); loadSettings(); + + connect(m_iconSizeGroupBox, SIGNAL(defaultSizeChanged(int)), this, SIGNAL(changed())); + connect(m_iconSizeGroupBox, SIGNAL(previewSizeChanged(int)), this, SIGNAL(changed())); + connect(m_fontRequester, SIGNAL(changed()), this, SIGNAL(changed())); + connect(m_expandableFolders, SIGNAL(toggled(bool)), this, SIGNAL(changed())); } DetailsViewSettingsPage::~DetailsViewSettingsPage() diff --git a/src/settings/viewmodes/iconsviewsettingspage.cpp b/src/settings/viewmodes/iconsviewsettingspage.cpp index a01b4a2db6..a711254c33 100644 --- a/src/settings/viewmodes/iconsviewsettingspage.cpp +++ b/src/settings/viewmodes/iconsviewsettingspage.cpp @@ -67,11 +67,6 @@ IconsViewSettingsPage::IconsViewSettingsPage(QWidget* parent) : m_iconSizeGroupBox->setDefaultSizeRange(min, max); m_iconSizeGroupBox->setPreviewSizeRange(min, max); - connect(m_iconSizeGroupBox, SIGNAL(defaultSizeChanged(int)), - this, SIGNAL(changed())); - connect(m_iconSizeGroupBox, SIGNAL(previewSizeChanged(int)), - this, SIGNAL(changed())); - // create 'Text' group for selecting the font, the number of lines // and the text width QGroupBox* textGroup = new QGroupBox(i18nc("@title:group", "Text"), this); @@ -79,13 +74,11 @@ IconsViewSettingsPage::IconsViewSettingsPage(QWidget* parent) : QLabel* fontLabel = new QLabel(i18nc("@label:listbox", "Font:"), textGroup); m_fontRequester = new DolphinFontRequester(textGroup); - connect(m_fontRequester, SIGNAL(changed()), this, SIGNAL(changed())); QLabel* textlinesCountLabel = new QLabel(i18nc("@label:textbox", "Number of lines:"), textGroup); m_textlinesCountBox = new KIntSpinBox(textGroup); m_textlinesCountBox->setMinimum(1); m_textlinesCountBox->setMaximum(5); - connect(m_textlinesCountBox, SIGNAL(valueChanged(int)), this, SIGNAL(changed())); QLabel* textWidthLabel = new QLabel(i18nc("@label:listbox", "Text width:"), textGroup); m_textWidthBox = new KComboBox(textGroup); @@ -93,7 +86,6 @@ IconsViewSettingsPage::IconsViewSettingsPage(QWidget* parent) : m_textWidthBox->addItem(i18nc("@item:inlistbox Text width", "Medium")); m_textWidthBox->addItem(i18nc("@item:inlistbox Text width", "Large")); m_textWidthBox->addItem(i18nc("@item:inlistbox Text width", "Huge")); - connect(m_textWidthBox, SIGNAL(currentIndexChanged(int)), this, SIGNAL(changed())); QGridLayout* textGroupLayout = new QGridLayout(textGroup); textGroupLayout->addWidget(fontLabel, 0, 0, Qt::AlignRight); @@ -111,7 +103,6 @@ IconsViewSettingsPage::IconsViewSettingsPage(QWidget* parent) : m_arrangementBox = new KComboBox(gridGroup); m_arrangementBox->addItem(i18nc("@item:inlistbox Arrangement", "Columns")); m_arrangementBox->addItem(i18nc("@item:inlistbox Arrangement", "Rows")); - connect(m_arrangementBox, SIGNAL(currentIndexChanged(int)), this, SIGNAL(changed())); QLabel* gridSpacingLabel = new QLabel(i18nc("@label:listbox", "Grid spacing:"), gridGroup); m_gridSpacingBox = new KComboBox(gridGroup); @@ -119,7 +110,6 @@ IconsViewSettingsPage::IconsViewSettingsPage(QWidget* parent) : m_gridSpacingBox->addItem(i18nc("@item:inlistbox Grid spacing", "Small")); m_gridSpacingBox->addItem(i18nc("@item:inlistbox Grid spacing", "Medium")); m_gridSpacingBox->addItem(i18nc("@item:inlistbox Grid spacing", "Large")); - connect(m_gridSpacingBox, SIGNAL(currentIndexChanged(int)), this, SIGNAL(changed())); QGridLayout* gridGroupLayout = new QGridLayout(gridGroup); gridGroupLayout->addWidget(arrangementLabel, 0, 0, Qt::AlignRight); @@ -133,6 +123,14 @@ IconsViewSettingsPage::IconsViewSettingsPage(QWidget* parent) : new QWidget(this); loadSettings(); + + connect(m_iconSizeGroupBox, SIGNAL(defaultSizeChanged(int)), this, SIGNAL(changed())); + connect(m_iconSizeGroupBox, SIGNAL(previewSizeChanged(int)), this, SIGNAL(changed())); + connect(m_fontRequester, SIGNAL(changed()), this, SIGNAL(changed())); + connect(m_textlinesCountBox, SIGNAL(valueChanged(int)), this, SIGNAL(changed())); + connect(m_textWidthBox, SIGNAL(currentIndexChanged(int)), this, SIGNAL(changed())); + connect(m_arrangementBox, SIGNAL(currentIndexChanged(int)), this, SIGNAL(changed())); + connect(m_gridSpacingBox, SIGNAL(currentIndexChanged(int)), this, SIGNAL(changed())); } IconsViewSettingsPage::~IconsViewSettingsPage()