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;
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;
+ 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; }
void setConfig(BufferViewConfig *config);
inline BufferViewConfig *config() const { return _config; }
void checkPreviousCurrentForRemoval(const QModelIndex ¤t, const QModelIndex &previous);
void checkItemForRemoval(const QModelIndex &index) { checkItemsForRemoval(index, index); }
void checkItemsForRemoval(const QModelIndex &topLeft, const QModelIndex &bottomRight);
void checkPreviousCurrentForRemoval(const QModelIndex ¤t, const QModelIndex &previous);
void checkItemForRemoval(const QModelIndex &index) { checkItemsForRemoval(index, index); }
void checkItemsForRemoval(const QModelIndex &topLeft, const QModelIndex &bottomRight);
protected:
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
bool lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const;
protected:
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
bool lessThan(const QModelIndex &source_left, const QModelIndex &source_right) const;
-
- QColor _FgColorInactiveActivity;
- QColor _FgColorNoActivity;
- QColor _FgColorHighlightActivity;
- QColor _FgColorNewMessageActivity;
- QColor _FgColorOtherActivity;
- void loadColors();
+ Qt::SortOrder _sortOrder;
+
+ bool _showServerQueries;
+ bool _editMode;
+ QAction _enableEditMode;
+ QSet<BufferId> _toAdd;
+ QSet<BufferId> _toTempRemove;
+ QSet<BufferId> _toRemove;
bool filterAcceptBuffer(const QModelIndex &) const;
bool filterAcceptNetwork(const QModelIndex &) const;
bool filterAcceptBuffer(const QModelIndex &) const;
bool filterAcceptNetwork(const QModelIndex &) const;
- void addBuffer(const BufferId &);
+ void addBuffer(const BufferId &bufferId) const;
+ void addBuffers(const QList<BufferId> &bufferIds) const;
+ static bool bufferIdLessThan(const BufferId &, const BufferId &);