]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/settings/trash/trashsettingspage.cpp
Merge remote-tracking branch 'origin/master' into frameworks
[dolphin.git] / src / settings / trash / trashsettingspage.cpp
index e23028b082accd39936ccf55268f7cc2c78acbf2..d42ae8f0caa4e3cfda2199ff0d7d57fcad040936 100644 (file)
 #include "trashsettingspage.h"
 
 #include <KCModuleProxy>
-#include <kdialog.h>
-#include <kvbox.h>
-
-#include <settings/dolphinsettings.h>
+#include <KDialog>
+#include <KVBox>
 
 #include <QVBoxLayout>
 
@@ -37,7 +35,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 +44,8 @@ TrashSettingsPage::TrashSettingsPage(QWidget* parent) :
     topLayout->addWidget(vBox);
 
     loadSettings();
+
+    connect(m_proxy, static_cast<void(KCModuleProxy::*)(bool)>(&KCModuleProxy::changed), this, &TrashSettingsPage::changed);
 }
 
 TrashSettingsPage::~TrashSettingsPage()