- enum Mode {
- NoActive = 0x01,
- NoInactive = 0x02,
- SomeNets = 0x04,
- AllNets = 0x08,
- NoChannels = 0x10,
- NoQueries = 0x20,
- NoServers = 0x40,
- FullCustom = 0x80
- };
- Q_DECLARE_FLAGS(Modes, Mode);
-
- BufferViewFilter(QAbstractItemModel *model, BufferViewConfig *config = 0);
-
- virtual Qt::ItemFlags flags(const QModelIndex &index) const;
- virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
-
- QVariant data(const QModelIndex &index, int role) const;
- QVariant foreground(const QModelIndex &index) const;
-
- void setConfig(BufferViewConfig *config);
- inline BufferViewConfig *config() const { return _config; }
-
-public slots:
- void removeBuffer(const QModelIndex &);
- void source_rowsInserted(const QModelIndex &parent, int start, int end);
-
+ enum Mode {
+ NoActive = 0x01,
+ NoInactive = 0x02,
+ SomeNets = 0x04,
+ AllNets = 0x08,
+ NoChannels = 0x10,
+ NoQueries = 0x20,
+ NoServers = 0x40,
+ FullCustom = 0x80
+ };
+ Q_DECLARE_FLAGS(Modes, Mode)
+
+ BufferViewFilter(QAbstractItemModel *model, BufferViewConfig *config = 0);
+
+ virtual Qt::ItemFlags flags(const QModelIndex &index) const;
+ virtual bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
+
+ QVariant data(const QModelIndex &index, int role) const;
+ QVariant checkedState(const QModelIndex &index) const;
+
+ bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole);
+ bool setCheckedState(const QModelIndex &index, Qt::CheckState state);
+
+ void setConfig(BufferViewConfig *config);
+ inline BufferViewConfig *config() const { return _config; }
+
+ virtual void sort(int column, Qt::SortOrder order = Qt::AscendingOrder);
+
+ QList<QAction *> actions(const QModelIndex &index);
+
+ void setFilterString(const QString string);
+