X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fqtui%2Fqtui.cpp;h=46c657cecd03cdc2eb5c22e70b9536e2b90f96dd;hb=ef12cc4010e853348474b4ea15c383dd596d4858;hp=7ad2aca7e6b61223c1a99af06df4497d436998b2;hpb=d6b056e936ec441258d291b7a8af7b83f9f53016;p=quassel.git diff --git a/src/qtui/qtui.cpp b/src/qtui/qtui.cpp index 7ad2aca7..46c657ce 100644 --- a/src/qtui/qtui.cpp +++ b/src/qtui/qtui.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-07 by the Quassel IRC Team * + * Copyright (C) 2005-08 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -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); }