X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/fd74aa8e2057158d2eadb835eb61564854c81020..87e8d0ba:/src/settings/general/previewssettingspage.h diff --git a/src/settings/general/previewssettingspage.h b/src/settings/general/previewssettingspage.h index b14aa7ab4..875c19dd6 100644 --- a/src/settings/general/previewssettingspage.h +++ b/src/settings/general/previewssettingspage.h @@ -22,8 +22,9 @@ #include -class QListWidget; -class KIntSpinBox; +class QSpinBox; +class QListView; +class QModelIndex; /** * @brief Allows the configuration of file previews. @@ -33,34 +34,34 @@ class PreviewsSettingsPage : public SettingsPageBase Q_OBJECT public: - PreviewsSettingsPage(QWidget* parent); - virtual ~PreviewsSettingsPage(); + explicit PreviewsSettingsPage(QWidget* parent); + ~PreviewsSettingsPage() override; /** * Applies the general settings for the view modes * The settings are persisted automatically when * closing Dolphin. */ - virtual void applySettings(); + void applySettings() override; /** Restores the settings to default values. */ - virtual void restoreDefaults(); + void restoreDefaults() override; protected: - virtual void showEvent(QShowEvent* event); + void showEvent(QShowEvent* event) 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