X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fnickview.cpp;h=fe4b9e76b640733e2e411f32abe2af61a29f0903;hp=d4eb827d7b4f56d76706c1ccbb3cc8459e26f12e;hb=72d25daa2c6cc00c17e79f756ad70bc00b41f9a8;hpb=fb1c465a71b110984d59722bbf0ed873674daf94 diff --git a/src/uisupport/nickview.cpp b/src/uisupport/nickview.cpp index d4eb827d..fe4b9e76 100644 --- a/src/uisupport/nickview.cpp +++ b/src/uisupport/nickview.cpp @@ -1,11 +1,11 @@ /*************************************************************************** - * 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 * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * + * (at your option) version 3. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * @@ -22,7 +22,7 @@ #include "nickmodel.h" #include -#include +#include NickView::NickView(QWidget *parent) : QTreeView(parent) { setGeometry(0, 0, 30, 30); @@ -35,8 +35,8 @@ NickView::NickView(QWidget *parent) : QTreeView(parent) { setSortingEnabled(true); sortByColumn(0, Qt::AscendingOrder); - filteredModel = new FilteredNickModel(this); - QTreeView::setModel(filteredModel); +// filteredModel = new FilteredNickModel(this); +// QTreeView::setModel(filteredModel); } NickView::~NickView() { @@ -44,8 +44,13 @@ NickView::~NickView() { } -void NickView::setModel(NickModel *model) { - filteredModel->setSourceModel(model); - expandAll(); - +// void NickView::setModel(NickModel *model) { +// filteredModel->setSourceModel(model); +// expandAll(); +// } + +void NickView::rowsInserted(const QModelIndex &index, int start, int end) { + QTreeView::rowsInserted(index, start, end); + expandAll(); // FIXME We need to do this more intelligently. Maybe a pimped TreeView? } +