// check if we have exactly this format readily cached already
QTextCharFormat fmt = cachedFormat(key);
- if(fmt.isValid())
+ if(fmt.properties().count())
return fmt;
fmt.merge(cachedFormat(key & 0x0000000000000000)); // basic
// TODO handle results
QApplication::setPalette(parser.palette());
- //QApplication::setStyleSheet(qApp->styleSheet()); // reload with custom palette settings
+
+ qDeleteAll(_metricsCache);
+ _metricsCache.clear();
+ _formatCache = parser.formats();
+
}