]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/settings/general/previewssettingspage.h
Don't block unmounting when terminal panel's cwd is the mountpoint
[dolphin.git] / src / settings / general / previewssettingspage.h
index b14aa7ab458cc8d47e1daabf86d4c4702771d0f3..6e896f05ecdf4c406c92fa7c5410462be69cfbfb 100644 (file)
@@ -22,8 +22,9 @@
 
 #include <settings/settingspagebase.h>
 
-class QListWidget;
-class KIntSpinBox;
+class QSpinBox;
+class QListView;
+class QModelIndex;
 
 /**
  * @brief Allows the configuration of file previews.
@@ -41,26 +42,26 @@ public:
      * The settings are persisted automatically when
      * closing Dolphin.
      */
-    virtual void applySettings();
+    virtual void applySettings() Q_DECL_OVERRIDE;
 
     /** Restores the settings to default values. */
-    virtual void restoreDefaults();
+    virtual void restoreDefaults() Q_DECL_OVERRIDE;
 
 protected:
-    virtual void showEvent(QShowEvent* event);
+    virtual void showEvent(QShowEvent* event) Q_DECL_OVERRIDE;
 
 private slots:
-    void loadPreviewPlugins();
+    void configureService(const QModelIndex& index);
 
 private:
+    void loadPreviewPlugins();
     void loadSettings();
 
 private:
     bool m_initialized;
-    QListWidget* m_previewPluginsList;
+    QListView *m_listView;
     QStringList m_enabledPreviewPlugins;
-    KIntSpinBox* m_localFileSizeBox;
-    KIntSpinBox* m_remoteFileSizeBox;
+    QSpinBox* m_remoteFileSizeBox;
 };
 
 #endif