mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-24 03:35:54 +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()) {
|
if (hasHalo()) {
|
||||||
QStaticText st(text());
|
QStaticText st(text());
|
||||||
|
st.setTextFormat(Qt::PlainText);
|
||||||
st.setTextWidth(textRect.width());
|
st.setTextWidth(textRect.width());
|
||||||
st.setTextOption(QTextOption(Qt::AlignHCenter));
|
st.setTextOption(QTextOption(Qt::AlignHCenter));
|
||||||
st.setPerformanceHint(QStaticText::AggressiveCaching);
|
st.setPerformanceHint(QStaticText::AggressiveCaching);
|
||||||
|
Loading…
Reference in New Issue
Block a user