blob: b3dd5ca8c2c263f199ba5acc2cc9c4ad4e359f0c (
plain)
1
2
3
4
5
6
7
8
9
|
#pragma once
#include <QTextLayout>
/** Cuts out the text in textLayout into smaller pieces, according to the lineWidth.
* Returns a list of pairs, each containing the width of that line and that line's string, respectively.
* The total height of those lines is set in the last argument, 'height'.
*/
QList<std::pair<qreal, QString>> viewItemTextLayout(QTextLayout& textLayout, int lineWidth, qreal& height);
|