From 1b2b63eb3a01025e03ff964f187adda52c62bcb3 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Fri, 25 Feb 2011 20:39:18 +0100 Subject: Allow to configure thumbnail-plugins Adjust the preview-settings to allow users to configure thumbnail-plugins. For consistency also the service-settings have been adjusted to use the ServiceModel and ServiceItemDelegate. --- src/settings/general/previewssettingspage.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/settings/general/previewssettingspage.h') diff --git a/src/settings/general/previewssettingspage.h b/src/settings/general/previewssettingspage.h index b14aa7ab4..ef3ad267e 100644 --- a/src/settings/general/previewssettingspage.h +++ b/src/settings/general/previewssettingspage.h @@ -22,8 +22,9 @@ #include -class QListWidget; class KIntSpinBox; +class QListView; +class QModelIndex; /** * @brief Allows the configuration of file previews. @@ -50,14 +51,15 @@ protected: virtual void showEvent(QShowEvent* event); 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; -- cgit v1.3.1