Factor out text building for label view items for proper sizeHint.

This commit is contained in:
Teo Mrnjavac 2015-12-15 16:56:10 +01:00
parent 0be736acf7
commit 0af434bfc1
2 changed files with 49 additions and 44 deletions

View file

@ -66,6 +66,7 @@ private:
QSize sizeForLabel( const QStringList& text ) const;
void drawLabel( QPainter* painter, const QStringList& text, const QColor& color, const QPoint& pos );
QModelIndexList getIndexesToDraw( const QModelIndex& parent ) const;
QStringList buildTexts( const QModelIndex& index ) const;
};
#endif // PARTITIONLABELSVIEW_H