// 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) {
+ setExpanded(parent, true);
+}
class BufferView : public QTreeView {
Q_OBJECT
-public:
- BufferView(QWidget *parent = 0);
- void init();
- void setModel(QAbstractItemModel *model);
- void setFilteredModel(QAbstractItemModel *model, BufferViewFilter::Modes mode, QStringList nets);
-
- void dragEnterEvent(QDragEnterEvent *);
+ public:
+ BufferView(QWidget *parent = 0);
+ void init();
+ void setModel(QAbstractItemModel *model);
+ void setFilteredModel(QAbstractItemModel *model, BufferViewFilter::Modes mode, QStringList nets);
+ void dragEnterEvent(QDragEnterEvent *);
+
+ protected:
+ void rowsInserted (const QModelIndex & parent, int start, int end);
};