X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fuisupport%2Fuistyle.cpp;h=afa77e654c04458230a670b1b68dcc250d32fb83;hb=73696998505c35c02bd019f78e9f502cbc36da5b;hp=b2774388acab94528a056079858df421de28556a;hpb=94f1513df11401c44e79278c838a0708bcd83823;p=quassel.git diff --git a/src/uisupport/uistyle.cpp b/src/uisupport/uistyle.cpp index b2774388..afa77e65 100644 --- a/src/uisupport/uistyle.cpp +++ b/src/uisupport/uistyle.cpp @@ -145,6 +145,7 @@ void UiStyle::setFormat(FormatType ftype, QTextCharFormat fmt, Settings::Mode mo } // TODO: invalidate only affected cached formats... if that's possible with less overhead than just rebuilding them _cachedFormats.clear(); + _cachedFontMetrics.clear(); } QTextCharFormat UiStyle::format(FormatType ftype, Settings::Mode mode) const { @@ -251,7 +252,7 @@ UiStyle::StyledString UiStyle::styleString(const QString &s_) { if(s[pos+1] == 'D') code += s[pos+2]; FormatType ftype = formatType(code); if(ftype == Invalid) { - qWarning(qPrintable(QString("Invalid format code in string: %1").arg(s))); + qWarning() << (QString("Invalid format code in string: %1").arg(s)); continue; } curfmt ^= ftype;