Checking in WiP on the MessageModel. More cleanly separated code and compiling of...
[quassel.git] / src / qtui / qtui.cpp
index a799359..46c657c 100644 (file)
@@ -20,6 +20,9 @@
 
 #include "qtui.h"
 
+#ifdef SPUTDEV
+# include "chatlinemodel.h"
+#endif
 #include "mainwin.h"
 
 QtUiStyle *QtUi::_style;
@@ -46,6 +49,15 @@ QtUiStyle *QtUi::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) {
   return mainWin->layoutMsg(msg);
 }