mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-23 19:25:55 +01:00
Explicitly set the text format (optimization)
This commit is contained in:
parent
8da172c0ff
commit
cc0c16cfd6
@ -140,6 +140,7 @@ void TextPointItem::paint(QPainter *painter) const
|
||||
|
||||
if (hasHalo()) {
|
||||
QStaticText st(text());
|
||||
st.setTextFormat(Qt::PlainText);
|
||||
st.setTextWidth(textRect.width());
|
||||
st.setTextOption(QTextOption(Qt::AlignHCenter));
|
||||
st.setPerformanceHint(QStaticText::AggressiveCaching);
|
||||
|
Loading…
Reference in New Issue
Block a user