Update ChatViews whenever the stylesheet is reloaded
[quassel.git] / src / uisupport / uistyle.h
index 5c6f090..9b9365d 100644 (file)
@@ -103,8 +103,6 @@ public:
 
   class StyledMessage;
 
 
   class StyledMessage;
 
-  void loadStyleSheet();
-
   static FormatType formatType(Message::Type msgType);
   static StyledString styleString(const QString &string, quint32 baseFormat = None);
   static QString mircToInternal(const QString &);
   static FormatType formatType(Message::Type msgType);
   static StyledString styleString(const QString &string, quint32 baseFormat = None);
   static QString mircToInternal(const QString &);
@@ -116,6 +114,12 @@ public:
 
   QList<QTextLayout::FormatRange> toTextLayoutList(const FormatList &, int textLength, quint32 messageLabel = 0);
 
 
   QList<QTextLayout::FormatRange> toTextLayoutList(const FormatList &, int textLength, quint32 messageLabel = 0);
 
+public slots:
+  void loadStyleSheet();
+
+signals:
+  void changed();
+
 protected:
   QString loadStyleSheet(const QString &name, bool shouldExist = false);
 
 protected:
   QString loadStyleSheet(const QString &name, bool shouldExist = false);