projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed annoying bug where the nicklist wouldn't be shown sometimes because of an incon...
[quassel.git]
/
src
/
uisupport
/
nickview.cpp
diff --git
a/src/uisupport/nickview.cpp
b/src/uisupport/nickview.cpp
index
9894ba8
..
68b51cf
100644
(file)
--- a/
src/uisupport/nickview.cpp
+++ b/
src/uisupport/nickview.cpp
@@
-22,6
+22,7
@@
#include "nickmodel.h"
#include <QHeaderView>
#include "nickmodel.h"
#include <QHeaderView>
+#include <QDebug>
NickView::NickView(QWidget *parent) : QTreeView(parent) {
setGeometry(0, 0, 30, 30);
NickView::NickView(QWidget *parent) : QTreeView(parent) {
setGeometry(0, 0, 30, 30);
@@
-47,3
+48,9
@@
void NickView::setModel(NickModel *model) {
filteredModel->setSourceModel(model);
expandAll();
}
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?
+}
+