X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fuistyle.h;h=98e15ed8da41dbb2006f7e1bd2022bf2c82a1a28;hb=04c923c596fbde976b23979b92b0636635f97951;hp=f031085ef894fcfbec172a15432dc3f5fb722d17;hpb=c870a4980ba79f784781e75b89ec537f1ec343ac;p=quassel.git diff --git a/src/uisupport/uistyle.h b/src/uisupport/uistyle.h index f031085e..98e15ed8 100644 --- a/src/uisupport/uistyle.h +++ b/src/uisupport/uistyle.h @@ -103,6 +103,8 @@ public: class StyledMessage; + void loadStyleSheet(); + static FormatType formatType(Message::Type msgType); static StyledString styleString(const QString &string, quint32 baseFormat = None); static QString mircToInternal(const QString &); @@ -115,11 +117,7 @@ public: QList toTextLayoutList(const FormatList &, int textLength, quint32 messageLabel = 0); protected: - void loadStyleSheet(); - - //! Determines the format set to be used for the given hostmask - //int formatSetIndex(const QString &hostmask) const; - //int formatSetIndexForSelf() const; + QString loadStyleSheet(const QString &name, bool shouldExist = false); QTextCharFormat cachedFormat(quint64 key) const; QTextCharFormat cachedFormat(quint32 formatType, quint32 messageLabel = 0) const;