diff options
| author | Peter Penz <[email protected]> | 2011-12-21 21:45:46 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-12-21 21:48:24 +0100 |
| commit | 965107fd024be86eb014ee360211a66b320a3b43 (patch) | |
| tree | 7f9f21326b890811febc9e98d0224649acb99f12 /src/kitemviews/kfileitemlistview.h | |
| parent | 5e0e05e8f0c82e987cc56a17bdac1718e8feb320 (diff) | |
Update previews when the preview-plugin settings have changed
Thanks to Janardhan Reddy for the initial patch.
BUG: 288726
FIXED-IN: 4.8.0
Diffstat (limited to 'src/kitemviews/kfileitemlistview.h')
| -rw-r--r-- | src/kitemviews/kfileitemlistview.h | 17 |
1 files changed, 17 insertions, 0 deletions
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; |
