X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fbufferviewfilter.cpp;h=84dc447c158937f1def4f6d81c48a47de045dcf3;hb=8a618fb4514d83a76cec8e7cd1319b935366a616;hp=8dca8fa283430287d8f79feab064fe72145d7b84;hpb=c0ca17fde48836a5d2e7ea9ceaaabcdd7225d9b8;p=quassel.git diff --git a/src/qtui/bufferviewfilter.cpp b/src/qtui/bufferviewfilter.cpp index 8dca8fa2..84dc447c 100644 --- a/src/qtui/bufferviewfilter.cpp +++ b/src/qtui/bufferviewfilter.cpp @@ -37,9 +37,6 @@ BufferViewFilter::BufferViewFilter(QAbstractItemModel *model, const Modes &filte connect(this, SIGNAL(currentChanged(const QModelIndex &, const QModelIndex &)), model, SLOT(changeCurrent(const QModelIndex &, const QModelIndex &))); - - connect(this, SIGNAL(doubleClicked(const QModelIndex &)), - model, SLOT(doubleClickReceived(const QModelIndex &))); } void BufferViewFilter::invalidateMe() { @@ -99,7 +96,7 @@ void BufferViewFilter::removeBuffer(const QModelIndex &index) { if(index.parent() == QModelIndex()) return; // only child elements can be deleted - uint bufferuid = index.data(BufferTreeModel::BufferInfoRole).toUInt(); + uint bufferuid = index.data(BufferTreeModel::BufferUidRole).toUInt(); if(customBuffers.contains(bufferuid)) { beginRemoveRows(index.parent(), index.row(), index.row()); customBuffers.removeAt(customBuffers.indexOf(bufferuid)); @@ -121,7 +118,7 @@ bool BufferViewFilter::filterAcceptBuffer(const QModelIndex &source_bufferIndex) if((mode & NoInactive) && !isActive) return false; if((mode & FullCustom)) { - uint bufferuid = source_bufferIndex.data(BufferTreeModel::BufferInfoRole).toUInt(); + uint bufferuid = source_bufferIndex.data(BufferTreeModel::BufferUidRole).toUInt(); if(!customBuffers.contains(bufferuid)) return false; } @@ -138,7 +135,7 @@ bool BufferViewFilter::filterAcceptNetwork(const QModelIndex &source_index) cons int childcount = sourceModel()->rowCount(source_index); for(int rowid = 0; rowid < childcount; rowid++) { QModelIndex child = sourceModel()->index(rowid, 0, source_index); - uint bufferuid = child.data(BufferTreeModel::BufferInfoRole).toUInt(); + uint bufferuid = child.data(BufferTreeModel::BufferUidRole).toUInt(); if(customBuffers.contains(bufferuid)) return true; }