diff options
| author | Peter Penz <[email protected]> | 2009-02-17 22:24:14 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-02-17 22:24:14 +0000 |
| commit | 93b955c3e634530a1910c522a3c973ba031df6bb (patch) | |
| tree | 4bf48104878e9c70bfe0d9b9427d5f87d0e3b2eb /src/panels/information/metatextlabel.h | |
| parent | 85dbeb2598c5e57235e4c8df0239ce8fe89dea6e (diff) | |
assure that the size hint calculation and the painting code are consistent
svn path=/trunk/KDE/kdebase/apps/; revision=927623
Diffstat (limited to 'src/panels/information/metatextlabel.h')
| -rw-r--r-- | src/panels/information/metatextlabel.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/panels/information/metatextlabel.h b/src/panels/information/metatextlabel.h index 36ae88e99..e1486c675 100644 --- a/src/panels/information/metatextlabel.h +++ b/src/panels/information/metatextlabel.h @@ -40,6 +40,7 @@ public: protected: virtual void paintEvent(QPaintEvent* event); + virtual void resizeEvent(QResizeEvent* event); private: enum { Spacing = 2 }; @@ -57,6 +58,13 @@ private: * fit into the available width of the widget. */ int requiredHeight(const MetaInfo& metaInfo) const; + + /** + * Returns the maximum height in pixels for the text of + * one added line. The returned value does not contain + * any additional spacing between texts. + */ + int maxHeightPerLine() const; }; #endif |
