X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fclient%2Fmessagefilter.cpp;h=e375b2e7a192d4b78235a370666b21555e9bb14b;hb=e528271e366acaa788b420bdfab8e1dd03b43e12;hp=4ee6b16accb4e177bf85a87eff735c4453c0f71c;hpb=9ce42695baef3bdd6f61aaff23c4b59061e46fe6;p=quassel.git diff --git a/src/client/messagefilter.cpp b/src/client/messagefilter.cpp index 4ee6b16a..e375b2e7 100644 --- a/src/client/messagefilter.cpp +++ b/src/client/messagefilter.cpp @@ -20,6 +20,10 @@ #include "messagefilter.h" +MessageFilter::MessageFilter(QAbstractItemModel *source, QObject *parent) : QSortFilterProxyModel(parent) { + setSourceModel(source); +} + MessageFilter::MessageFilter(MessageModel *source, const QList &buffers, QObject *parent) : QSortFilterProxyModel(parent), _bufferList(buffers) @@ -32,7 +36,7 @@ QString MessageFilter::idString() const { if(_bufferList.isEmpty()) return "*"; QString idstr; QStringList bufids; - foreach(BufferId id, _bufferList) bufids << QString(id.toInt()); + foreach(BufferId id, _bufferList) bufids << QString::number(id.toInt()); bufids.sort(); foreach(QString id, bufids) idstr += id + '|'; idstr.chop(1);