33 #ifndef _pqOutputWindowModel_h 34 #define _pqOutputWindowModel_h 36 #include "pqCoreModule.h" 38 #include <QAbstractTableModel> 44 MessageT(
int type,
int count,
const QString& location,
const QString& message)
68 int rowCount(
const QModelIndex& parent = QModelIndex())
const;
70 int columnCount(
const QModelIndex& parent = QModelIndex())
const;
72 QVariant data(
const QModelIndex& index,
int role = Qt::DisplayRole)
const;
74 virtual Qt::ItemFlags flags(
const QModelIndex& index)
const;
76 virtual bool setData(
const QModelIndex& index,
const QVariant& value,
int role = Qt::EditRole);
78 void setView(QTableView* view);
95 void ShowMessages(
bool* show);
100 void expandRow(
int r);
101 void contractRow(
int r);
107 void updateCount(
int messageIndex);
113 void resizeColumnsToContents();
116 const QList<MessageT>& Messages;
122 QScopedPointer<pqInternals> Internals;
125 #endif // !_pqOutputWindowModel_h
This is a model for the pqOutputWindow table that shows collated and abbreviated messages.
MessageT(int type, int count, const QString &location, const QString &message)