Update ChatViews whenever the stylesheet is reloaded
[quassel.git] / src / uisupport / uistyle.cpp
index 6478f8c..5ad89f0 100644 (file)
@@ -27,7 +27,7 @@
 
 QHash<QString, UiStyle::FormatType> UiStyle::_formatCodes;
 
-UiStyle::UiStyle() {
+UiStyle::UiStyle(QObject *parent) : QObject(parent) {
   // register FormatList if that hasn't happened yet
   // FIXME I don't think this actually avoids double registration... then again... does it hurt?
   if(QVariant::nameToType("UiStyle::FormatList") == QVariant::Invalid) {
@@ -77,6 +77,8 @@ void UiStyle::loadStyleSheet() {
   _formatCache = parser.formats();
 
   qApp->setStyleSheet(styleSheet); // pass the remaining sections to the application
+
+  emit changed();
 }
 
 QString UiStyle::loadStyleSheet(const QString &styleSheet, bool shouldExist) {