X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatviewsettings.h;h=a0f70f9d65b87826c3d2ca35e23ac03e2253388a;hp=286de7cc547328641a4c1c404817b8a15cd4a32f;hb=53861faa5551606eea31588b65ba501b24fb2e1a;hpb=b82e9603ab7ce1164e8f550132f0c649653ad8ab diff --git a/src/qtui/chatviewsettings.h b/src/qtui/chatviewsettings.h index 286de7cc..a0f70f9d 100644 --- a/src/qtui/chatviewsettings.h +++ b/src/qtui/chatviewsettings.h @@ -46,7 +46,20 @@ public: inline void enableWebPreview(bool enabled) { setLocalValue("ShowWebPreview", enabled); } /** - * Gets the format string for chat log timestamps + * Gets if a custom timestamp format is used. + * + * @returns True if custom timestamp format used, otherwise false + */ + inline bool useCustomTimestampFormat() { return localValue("UseCustomTimestampFormat", false).toBool(); } + /** + * Sets whether a custom timestamp format is used. + * + * @param[in] enabled True if custom timestamp format used, otherwise false + */ + inline void setUseCustomTimestampFormat(bool enabled) { setLocalValue("UseCustomTimestampFormat", enabled); } + + /** + * Gets the format string for chat log timestamps. * * @returns String representing timestamp format, e.g. "[hh:mm:ss]" or " hh:mm:ss" */ @@ -60,12 +73,19 @@ public: */ inline void setTimestampFormatString(const QString &format) { setLocalValue("TimestampFormat", format); } + /** + * Gets if prefixmodes are shown before sender names + * + * @returns True if sender prefixmodes enabled, otherwise false + */ + inline bool showSenderPrefixes() { return localValue("ShowSenderPrefixes", false).toBool(); } + /** * Gets if brackets are shown around sender names * * @returns True if sender brackets enabled, otherwise false */ - inline bool showSenderBrackets() { return localValue("ShowSenderBrackets", true).toBool(); } + inline bool showSenderBrackets() { return localValue("ShowSenderBrackets", false).toBool(); } /** * Sets whether brackets are shown around around sender names. *