X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fqtui.cpp;h=fb1bd50b518cc4198136bd30042ffd64de253386;hp=e58777e6291a65016ff288cb1c156528fc3355d0;hb=0d3d7a861472313710b51c8d19e81af56e2208a1;hpb=1817c8c8e2437d8aadcc1f07195fa4555cb1c17c diff --git a/src/qtui/qtui.cpp b/src/qtui/qtui.cpp index e58777e6..fb1bd50b 100644 --- a/src/qtui/qtui.cpp +++ b/src/qtui/qtui.cpp @@ -20,12 +20,9 @@ #include "qtui.h" -#ifdef SPUTDEV -# include "chatlinemodel.h" -#else -# include "chatline-old.h" -#endif +#include "chatlinemodel.h" #include "mainwin.h" +#include "qtuimessageprocessor.h" QtUiStyle *QtUi::_style; @@ -53,20 +50,11 @@ QtUiStyle *QtUi::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 +AbstractMessageProcessor *QtUi::createMessageProcessor(QObject *parent) { + return new QtUiMessageProcessor(parent); } void QtUi::connectedToCore() {