X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/d93d198db6eef9186177aa5a918b300a6b749627..0f0d14d4c236eee7f1df4f0c21c60f6b784dab75:/src/settings/general/previewssettingspage.h diff --git a/src/settings/general/previewssettingspage.h b/src/settings/general/previewssettingspage.h index 4b59ec87b..a7f54f601 100644 --- a/src/settings/general/previewssettingspage.h +++ b/src/settings/general/previewssettingspage.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2006 by Peter Penz * + * Copyright (C) 2006 by Peter Penz * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -20,10 +20,11 @@ #ifndef PREVIEWSSETTINGSPAGE_H #define PREVIEWSSETTINGSPAGE_H -#include +#include "settings/settingspagebase.h" -class QListWidget; -class KIntSpinBox; +class QSpinBox; +class QListView; +class QModelIndex; /** * @brief Allows the configuration of file previews. @@ -33,34 +34,35 @@ 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_localFileSizeBox; + QSpinBox* m_remoteFileSizeBox; }; #endif