#include <settings/settingspagebase.h>
-class QListWidget;
-class KIntSpinBox;
+class QSpinBox;
+class QListView;
+class QModelIndex;
/**
* @brief Allows the configuration of file previews.
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