2014-01-29 05:50:19 +05:30
|
|
|
#pragma once
|
2022-07-15 06:53:41 +05:30
|
|
|
|
2014-01-29 05:50:19 +05:30
|
|
|
#include <QTextLayout>
|
|
|
|
|
2022-07-15 06:53:41 +05:30
|
|
|
/** 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);
|