X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fclient%2Fmessagefilter.cpp;h=4ee6b16accb4e177bf85a87eff735c4453c0f71c;hp=0c35ee9ffff93ffd913276fecdc937eb0ec9699d;hb=9ce42695baef3bdd6f61aaff23c4b59061e46fe6;hpb=5b0af9082dcf0672a98391ac12c6e6bbaaff7a64 diff --git a/src/client/messagefilter.cpp b/src/client/messagefilter.cpp index 0c35ee9f..4ee6b16a 100644 --- a/src/client/messagefilter.cpp +++ b/src/client/messagefilter.cpp @@ -28,6 +28,17 @@ MessageFilter::MessageFilter(MessageModel *source, const QList &buffer } +QString MessageFilter::idString() const { + if(_bufferList.isEmpty()) return "*"; + QString idstr; + QStringList bufids; + foreach(BufferId id, _bufferList) bufids << QString(id.toInt()); + bufids.sort(); + foreach(QString id, bufids) idstr += id + '|'; + idstr.chop(1); + return idstr; +} + bool MessageFilter::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const { Q_UNUSED(sourceParent); if(_bufferList.isEmpty()) return true;