From 677f94c80078aed63fa714f00f72f444060b2d8a Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Wed, 21 Dec 2011 21:45:46 +0100 Subject: Update previews when the preview-plugin settings have changed Thanks to Janardhan Reddy for the initial patch. BUG: 288726 FIXED-IN: 4.8.0 --- src/kitemviews/kfileitemlistview.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/kitemviews/kfileitemlistview.h') diff --git a/src/kitemviews/kfileitemlistview.h b/src/kitemviews/kfileitemlistview.h index a41d091b7..203fb78c4 100644 --- a/src/kitemviews/kfileitemlistview.h +++ b/src/kitemviews/kfileitemlistview.h @@ -57,6 +57,23 @@ public: void setItemLayout(Layout layout); Layout itemLayout() const; + /** + * Sets the list of enabled thumbnail plugins that are used for previews. + * Per default all plugins enabled in the KConfigGroup "PreviewSettings" + * are used. + * + * For a list of available plugins, call KServiceTypeTrader::self()->query("ThumbCreator"). + * + * @see enabledPlugins + */ + void setEnabledPlugins(const QStringList& list); + + /** + * Returns the list of enabled thumbnail plugins. + * @see setEnabledPlugins + */ + QStringList enabledPlugins() const; + /** @reimp */ virtual QSizeF itemSizeHint(int index) const; -- cgit v1.3