X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fbufferview.cpp;h=e06ef720df0dbae563e6c59a1111761278d5bef4;hb=fbc4df88ae0bb5e4d9394922395ce2ba29d9108e;hp=4ad1138eaf3cea587b0729c5f0860106e1bbb997;hpb=cd122ca8e0d2c0ffc5397e0a813c75d791a7e6e3;p=quassel.git diff --git a/src/qtui/bufferview.cpp b/src/qtui/bufferview.cpp index 4ad1138e..e06ef720 100644 --- a/src/qtui/bufferview.cpp +++ b/src/qtui/bufferview.cpp @@ -44,14 +44,12 @@ void BufferView::init() { setSortingEnabled(true); sortByColumn(0, Qt::AscendingOrder); - connect(this, SIGNAL(activated(QModelIndex)), this, SLOT(joinChannel(QModelIndex))); } -void BufferView::setFilteredModel(QAbstractItemModel *model, BufferViewFilter::Modes mode, QStringList nets) { +void BufferView::setFilteredModel(QAbstractItemModel *model, BufferViewFilter::Modes mode, QList nets) { BufferViewFilter *filter = new BufferViewFilter(model, mode, nets); setModel(filter); - connect(this, SIGNAL(eventDropped(QDropEvent *)), filter, SLOT(dropEvent(QDropEvent *))); connect(this, SIGNAL(removeBuffer(const QModelIndex &)), filter, SLOT(removeBuffer(const QModelIndex &))); } @@ -62,16 +60,6 @@ void BufferView::setModel(QAbstractItemModel *model) { } -void BufferView::dropEvent(QDropEvent *event) { - if(event->source() != this) { - // another view(?) or widget is the source. maybe it's a drag 'n drop - // view customization -> we tell our friend the filter: - emit eventDropped(event); - } - // in the case that the filter did not accept the event or if it's a merge - QTreeView::dropEvent(event); -} - void BufferView::joinChannel(const QModelIndex &index) { Buffer::Type bufferType = (Buffer::Type)index.data(BufferTreeModel::BufferTypeRole).toInt();