projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring the GUI. Work in progress.
[quassel.git]
/
gui
/
bufferview.cpp
diff --git
a/gui/bufferview.cpp
b/gui/bufferview.cpp
index
4045f20
..
017ce25
100644
(file)
--- a/
gui/bufferview.cpp
+++ b/
gui/bufferview.cpp
@@
-75,6
+75,8
@@
bool BufferViewFilter::filterAcceptsRow(int source_row, const QModelIndex &sourc
/*****************************************
* The TreeView showing the Buffers
*****************************************/
/*****************************************
* The TreeView showing the Buffers
*****************************************/
+// Please be carefull when reimplementing methods which are used to inform the view about changes to the data
+// to be on the safe side: call QTreeView's method aswell
BufferView::BufferView(QWidget *parent) : QTreeView(parent) {
}
BufferView::BufferView(QWidget *parent) : QTreeView(parent) {
}
@@
-106,3
+108,8
@@
void BufferView::dragEnterEvent(QDragEnterEvent *event) {
// not yet needed... this will be usefull to keep track of the active view when customizing them with drag and drop
QTreeView::dragEnterEvent(event);
}
// not yet needed... this will be usefull to keep track of the active view when customizing them with drag and drop
QTreeView::dragEnterEvent(event);
}
+
+void BufferView::rowsInserted(const QModelIndex & parent, int start, int end) {
+ if(parent.parent() == QModelIndex()) setExpanded(parent, true); qDebug() << "expanded";
+ QTreeView::rowsInserted(parent, start, end);
+}