diff options
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 |
