]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/pixmapviewer.h
There are some extractable strings in subdirs too.
[dolphin.git] / src / pixmapviewer.h
index ba0dda9cdf064e5dd435c834868d66ed0f66a1b1..26e520aab3bc05e117bbdf1d242aa4c011891580 100644 (file)
@@ -64,7 +64,14 @@ public:
 
     virtual ~PixmapViewer();
     void setPixmap(const QPixmap& pixmap);
-    inline const QPixmap& pixmap() const;
+    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,9 +86,10 @@ private:
     QTimeLine m_animation;
     Transition m_transition;
     int m_animationStep;
+    QSize m_sizeHint;
 };
 
-const QPixmap& PixmapViewer::pixmap() const
+inline const QPixmap& PixmapViewer::pixmap() const
 {
     return m_pixmap;
 }