X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fnickview.cpp;h=5db46c80a8d059c6aa20b00eb7255b31c0bb6000;hp=9894ba80f61f53d58a57b1ba4cdf44a3c124e88c;hb=012e3de3c07f201ec337ebe586190281c83c9e5b;hpb=ec17201104f75eafaddccc174de8709b42b15ccb diff --git a/src/uisupport/nickview.cpp b/src/uisupport/nickview.cpp index 9894ba80..5db46c80 100644 --- a/src/uisupport/nickview.cpp +++ b/src/uisupport/nickview.cpp @@ -5,7 +5,7 @@ * 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,6 +22,7 @@ #include "nickmodel.h" #include +#include NickView::NickView(QWidget *parent) : QTreeView(parent) { setGeometry(0, 0, 30, 30); @@ -47,3 +48,9 @@ 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? +} +