X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatviewsettings.h;h=ef5f4d382a0323d0a9bad65ba551820009d81789;hp=2398f77b68bb19d8268587acc4b00e3b50450d06;hb=960ed1ea65124794286c15a2d03bce60577556ee;hpb=77397f5e999830077fee13187c6a1ee044d92545 diff --git a/src/qtui/chatviewsettings.h b/src/qtui/chatviewsettings.h index 2398f77b..ef5f4d38 100644 --- a/src/qtui/chatviewsettings.h +++ b/src/qtui/chatviewsettings.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -28,7 +28,7 @@ class ChatView; class ChatViewSettings : public QtUiSettings { public: - Q_ENUMS(OperationMode); + Q_ENUMS(OperationMode) public: enum OperationMode { InvalidMode = 0, @@ -43,6 +43,9 @@ public: inline bool showWebPreview() { return localValue("ShowWebPreview", true).toBool(); } inline void enableWebPreview(bool enabled) { setLocalValue("ShowWebPreview", enabled); } + + inline QString timestampFormatString() { return localValue("TimestampFormat", "[hh:mm:ss]").toString(); } + inline void setTimestampFormatString(const QString &format) { setLocalValue("TimestampFormat", format); } }; Q_DECLARE_METATYPE(ChatViewSettings::OperationMode); #endif //CHATVIEWSETTINGS_H