mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Qbs: fix build clang, mingw
This commit is contained in:
@ -984,7 +984,7 @@ QStringList GeneratedBase::getFormattedTextWithLayout(QString firstPrefix, QStri
|
||||
int usedLength = indent + qMax(firstPrefix.length(), prefix.length());
|
||||
int length = 80 - usedLength;
|
||||
QString testText(length, QChar('A'));
|
||||
int width = fontMetrics.width(testText);
|
||||
int width = fontMetrics.horizontalAdvance(testText);
|
||||
|
||||
QTextLayout layout(text, font);
|
||||
layout.setCacheEnabled(false);
|
||||
|
Reference in New Issue
Block a user