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);
+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);
+public slots:
+ void select(const QModelIndex &);
+
+signals:
+ void eventDropped(QDropEvent *);
+ void removeBuffer(const QModelIndex &);
+ void selectionChanged(const QModelIndex &, QItemSelectionModel::SelectionFlags);
+
+protected:
+ void dropEvent(QDropEvent *);
+ void keyPressEvent(QKeyEvent *);
+ void rowsInserted (const QModelIndex & parent, int start, int end);
};