quassel no longer allocates an MessageItem on the heap for every message - working...
[quassel.git] / src / uisupport / uistyle.h
index 3bb1a45..6bd6801 100644 (file)
@@ -157,27 +157,26 @@ class UiStyle {
 };
 
 class UiStyle::StyledMessage {
-
-  public:
-    explicit StyledMessage(const Message &, UiStyle *style);
-
-    QDateTime timestamp() const;
-    QString decoratedTimestamp() const;
-    QString sender() const;             //!< Nickname (no decorations) for Plain and Notice, empty else
-    QString decoratedSender() const;
-    QString contents() const;
-
-    FormatType timestampFormat() const;
-    FormatType senderFormat() const;
-    FormatList contentsFormatList() const;
-
-    inline Message::Type type() const { return _msgType; }
-
-  private:
-    StyledString _contents;
-    QDateTime _timestamp;
-    QString _sender;
-    Message::Type _msgType;
+public:
+  explicit StyledMessage(const Message &, UiStyle *style);
+
+  QDateTime timestamp() const;
+  QString decoratedTimestamp() const;
+  QString sender() const;             //!< Nickname (no decorations) for Plain and Notice, empty else
+  QString decoratedSender() const;
+  QString contents() const;
+
+  FormatType timestampFormat() const;
+  FormatType senderFormat() const;
+  FormatList contentsFormatList() const;
+
+  inline Message::Type type() const { return _msgType; }
+
+private:
+  StyledString _contents;
+  QDateTime _timestamp;
+  QString _sender;
+  Message::Type _msgType;
 };
 
 QDataStream &operator<<(QDataStream &out, const UiStyle::FormatList &formatList);