]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Fixed signal to signal connection in Dolphin's view modes.
authorDawit Alemayehu <adawit@kde.org>
Tue, 14 Feb 2012 22:06:41 +0000 (17:06 -0500)
committerDawit Alemayehu <adawit@kde.org>
Mon, 20 Feb 2012 23:07:20 +0000 (18:07 -0500)
REVIEW: 104033
(cherry picked from commit b484b87376646420a2cd6c568736dfa21b80bf05)

src/settings/kcm/kcmdolphinviewmodes.cpp
src/settings/kcm/kcmdolphinviewmodes.h

index 5441b78da18dee0455c867f2193cefd77f1a157c..73b0557f779a3ed5dbc16b592f428e782f216781 100644 (file)
@@ -55,17 +55,17 @@ DolphinViewModesConfigModule::DolphinViewModesConfigModule(QWidget* parent, cons
     // Initialize 'Icons' tab
     ViewSettingsTab* iconsTab = new ViewSettingsTab(ViewSettingsTab::IconsMode, tabWidget);
     tabWidget->addTab(iconsTab, KIcon("view-list-icons"), i18nc("@title:tab", "Icons"));
-    connect(iconsTab, SIGNAL(changed()), this, SIGNAL(changed()));
+    connect(iconsTab, SIGNAL(changed()), this, SLOT(viewModeChanged()));
 
     // Initialize 'Compact' tab
     ViewSettingsTab* compactTab = new ViewSettingsTab(ViewSettingsTab::CompactMode, tabWidget);
     tabWidget->addTab(compactTab, KIcon("view-list-details"), i18nc("@title:tab", "Compact"));
-    connect(compactTab, SIGNAL(changed()), this, SIGNAL(changed()));
+    connect(compactTab, SIGNAL(changed()), this, SLOT(viewModeChanged()));
 
     // Initialize 'Details' tab
     ViewSettingsTab* detailsTab = new ViewSettingsTab(ViewSettingsTab::DetailsMode, tabWidget);
     tabWidget->addTab(detailsTab, KIcon("view-list-tree"), i18nc("@title:tab", "Details"));
-    connect(detailsTab, SIGNAL(changed()), this, SIGNAL(changed()));
+    connect(detailsTab, SIGNAL(changed()), this, SLOT(viewModeChanged()));
 
     m_tabs.append(iconsTab);
     m_tabs.append(compactTab);
@@ -100,4 +100,9 @@ void DolphinViewModesConfigModule::reparseConfiguration()
     QDBusConnection::sessionBus().send(message);
 }
 
+void DolphinViewModesConfigModule::viewModeChanged()
+{
+    emit changed(true);
+}
+
 #include "kcmdolphinviewmodes.moc"
index 4ec29db356c6fc680c88836be0cfb0f61292a44b..3181198fecc27ab7b9f5ce9460a1dffd7814df8f 100644 (file)
@@ -41,6 +41,9 @@ public:
 private:
     void reparseConfiguration();
 
+private Q_SLOTS:
+   void viewModeChanged();
+
 private:
     QList<ViewSettingsTab*> m_tabs;
 };