X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fqtui.cpp;h=e58777e6291a65016ff288cb1c156528fc3355d0;hp=b3539217d1858f7fb68b4377e4246ca991144d45;hb=1817c8c8e2437d8aadcc1f07195fa4555cb1c17c;hpb=374ea2a5188930b880ad67584a9b0055022feecf diff --git a/src/qtui/qtui.cpp b/src/qtui/qtui.cpp index b3539217..e58777e6 100644 --- a/src/qtui/qtui.cpp +++ b/src/qtui/qtui.cpp @@ -20,8 +20,12 @@ #include "qtui.h" +#ifdef SPUTDEV +# include "chatlinemodel.h" +#else +# include "chatline-old.h" +#endif #include "mainwin.h" -#include "chatline-old.h" QtUiStyle *QtUi::_style; @@ -48,8 +52,21 @@ 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) { +#ifndef SPUTDEV return new ChatLineOld(msg); +#else + return 0; +#endif } void QtUi::connectedToCore() {