projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixing multiple adds of the same entry to the input history (thanks seezer for pointi...
[quassel.git]
/
src
/
qtui
/
qtui.cpp
diff --git
a/src/qtui/qtui.cpp
b/src/qtui/qtui.cpp
index
b353921
..
e58777e
100644
(file)
--- a/
src/qtui/qtui.cpp
+++ b/
src/qtui/qtui.cpp
@@
-20,8
+20,12
@@
#include "qtui.h"
#include "qtui.h"
+#ifdef SPUTDEV
+# include "chatlinemodel.h"
+#else
+# include "chatline-old.h"
+#endif
#include "mainwin.h"
#include "mainwin.h"
-#include "chatline-old.h"
QtUiStyle *QtUi::_style;
QtUiStyle *QtUi::_style;
@@
-48,8
+52,21
@@
QtUiStyle *QtUi::style() {
return _style;
}
return _style;
}
+MessageModel *QtUi::createMessageModel(QObject *parent) {
+#ifndef SPUTDEV
+ Q_UNUSED(parent)
+ return 0;
+#else
+ return new ChatLineModel(parent);
+#endif
+}
+
AbstractUiMsg *QtUi::layoutMsg(const Message &msg) {
AbstractUiMsg *QtUi::layoutMsg(const Message &msg) {
+#ifndef SPUTDEV
return new ChatLineOld(msg);
return new ChatLineOld(msg);
+#else
+ return 0;
+#endif
}
void QtUi::connectedToCore() {
}
void QtUi::connectedToCore() {