summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Caulier <[email protected]>2015-10-15 14:19:16 +0200
committerGilles Caulier <[email protected]>2015-10-15 14:19:16 +0200
commita19dd6547250a370db2fc196935ddaacb85d0296 (patch)
tree9b299716c2a77200f1d3d33f674bc61476c21a58
parent22a705b07012e3e715b9a8b926233e049e8555cd (diff)
set default values
-rw-r--r--src/interface.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/interface.h b/src/interface.h
index 46310d7..105a3ad 100644
--- a/src/interface.h
+++ b/src/interface.h
@@ -252,12 +252,13 @@ public:
virtual QImage preview(const QUrl& url, int minSize);
/**
- * Tells to host application to render a preview image for one item at mininimum size and resized to a specific
- * size if preview is largest than. Apsect ratio is preserved while redering.
+ * Tells to host application to render a preview image for one item at mininimum size.
+ * A resizement to to a specific size will be generated if preview is largest than.
+ * Use a positive resizedTo value in this case. Aspect ratio is preserved while rendering.
* This asynchronous method must be re-implemented in host application.
* Use gotPreview() signal to take preview.
*/
- virtual void preview(const QUrl& url, int minSize, int resizedTo);
+ virtual void preview(const QUrl& url, int minSize, int resizedTo=-1);
/**
* Tells to host application to render a thumbnail for one item. This asynchronous method must be