diff options
| author | Peter Penz <[email protected]> | 2008-02-02 23:17:14 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-02-02 23:17:14 +0000 |
| commit | cd65336b8cfa38756bc63e7203b2b7397d8639ec (patch) | |
| tree | dd21eb1540499051593f5b9a1233796ea7b4c797 /src/pixmapviewer.h | |
| parent | a6d36df99ee82c4b081f67f6cf19e2f6fe65e253 (diff) | |
Information Panel: If the width of the panel is increased, also increase the size of the item preview to take advantege of the additional space.
BUG: 156046
svn path=/trunk/KDE/kdebase/apps/; revision=770173
Diffstat (limited to 'src/pixmapviewer.h')
| -rw-r--r-- | src/pixmapviewer.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pixmapviewer.h b/src/pixmapviewer.h index 01d8cf1c1..26e520aab 100644 --- a/src/pixmapviewer.h +++ b/src/pixmapviewer.h @@ -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 |
