]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/settings/viewpropsprogressinfo.h
Dolphin Service Menu Installer: Launch certain scripts in Konsole
[dolphin.git] / src / settings / viewpropsprogressinfo.h
index 7522cf84c5549458773eaa7893e7798b9c43965c..05eafa6f5dd98e5b2e5cf18fa5706f85cfef9975 100644 (file)
@@ -20,8 +20,9 @@
 #ifndef VIEWPROPSPROGRESSINFO_H
 #define VIEWPROPSPROGRESSINFO_H
 
-#include <KDialog>
 #include <kio/directorysizejob.h>
+
+#include <QDialog>
 #include <QUrl>
 
 class ApplyViewPropsJob;
@@ -37,7 +38,7 @@ class ViewProperties;
  * It is possible to cancel the applying. In this case the already applied
  * view properties won't get reverted.
  */
-class ViewPropsProgressInfo : public KDialog
+class ViewPropsProgressInfo : public QDialog
 {
     Q_OBJECT
 
@@ -53,15 +54,17 @@ public:
                           const QUrl& dir,
                           const ViewProperties& viewProps);
 
-    virtual ~ViewPropsProgressInfo();
+    ~ViewPropsProgressInfo() override;
 
 protected:
-    virtual void closeEvent(QCloseEvent* event);
+    void closeEvent(QCloseEvent* event) override;
+
+public slots:
+    void reject() override;
 
 private slots:
     void updateProgress();
     void applyViewProperties();
-    void cancelApplying();
 
 private:
     QUrl m_dir;