X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatviewsettings.h;fp=src%2Fqtui%2Fchatviewsettings.h;h=b727ab8a3da18331040f7ba80a053b36d42e5c18;hp=cb57b68aa38cd953f21a13b0a140da3d5e4728bd;hb=27fe4e6f46547c45d19fa39c175fa2104a5feb28;hpb=fdd99d12760219b082d3d68af2c8bb2f1863745f diff --git a/src/qtui/chatviewsettings.h b/src/qtui/chatviewsettings.h index cb57b68a..b727ab8a 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" */