void loadStyleSheet(const QString &sheet);
inline QPalette palette() const { return _palette; }
+ inline const QHash<quint64, QTextCharFormat>& formats() const { return _formats; }
protected:
typedef QList<qreal> ColorTuple;
private:
QPalette _palette;
+ QHash<quint64, QTextCharFormat> _formats;
int _maxSenderHash;
};
// TODO handle results
QApplication::setPalette(parser.palette());
- //QApplication::setStyleSheet(qApp->styleSheet()); // reload with custom palette settings
+
+ qDeleteAll(_metricsCache);
+ _metricsCache.clear();
+ _formatCache = parser.formats();
+
}