projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Quassel no longer gets a nervous breakdown when you select too many buffers - fixes...
[quassel.git]
/
src
/
uisupport
/
uistyle.cpp
diff --git
a/src/uisupport/uistyle.cpp
b/src/uisupport/uistyle.cpp
index
b277438
..
afa77e6
100644
(file)
--- 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();
}
// 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 {
}
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) {
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;
continue;
}
curfmt ^= ftype;