projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
constify
[quassel.git]
/
src
/
qtui
/
chatviewsettings.h
diff --git
a/src/qtui/chatviewsettings.h
b/src/qtui/chatviewsettings.h
index
2398f77
..
ef5f4d3
100644
(file)
--- a/
src/qtui/chatviewsettings.h
+++ b/
src/qtui/chatviewsettings.h
@@
-1,5
+1,5
@@
/***************************************************************************
/***************************************************************************
- * Copyright (C) 2005-0
8
by the Quassel Project *
+ * Copyright (C) 2005-0
9
by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
* 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:
class ChatViewSettings : public QtUiSettings {
public:
- Q_ENUMS(OperationMode)
;
+ Q_ENUMS(OperationMode)
public:
enum OperationMode {
InvalidMode = 0,
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 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
};
Q_DECLARE_METATYPE(ChatViewSettings::OperationMode);
#endif //CHATVIEWSETTINGS_H