]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/pixmapviewer.h
* Use Nepomuk for getting the meta data instead of KFileMetaInfo.
[dolphin.git] / src / pixmapviewer.h
index 01d8cf1c18a842a0038ca2446ae449e71421d765..26e520aab3bc05e117bbdf1d242aa4c011891580 100644 (file)
@@ -66,6 +66,13 @@ public:
     void setPixmap(const QPixmap& pixmap);
     const QPixmap& pixmap() const;
 
+    /**
+     * Sets the size hint to \a size and triggers a relayout
+     * of the parent widget. Per default no size hint is given.
+     */
+    void setSizeHint(const QSize& size);
+    virtual QSize sizeHint() const;
+
 protected:
     virtual void paintEvent(QPaintEvent* event);
 
@@ -79,6 +86,7 @@ private:
     QTimeLine m_animation;
     Transition m_transition;
     int m_animationStep;
+    QSize m_sizeHint;
 };
 
 inline const QPixmap& PixmapViewer::pixmap() const