MessageModel(QObject *parent);
inline QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
MessageModel(QObject *parent);
inline QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
inline int rowCount(const QModelIndex &parent = QModelIndex()) const override { return parent.isValid() ? 0 : messageCount(); }
inline int columnCount(const QModelIndex & /*parent*/ = QModelIndex()) const override { return 3; }
inline int rowCount(const QModelIndex &parent = QModelIndex()) const override { return parent.isValid() ? 0 : messageCount(); }
inline int columnCount(const QModelIndex & /*parent*/ = QModelIndex()) const override { return 3; }
QModelIndex MessageModel::index(int row, int column, const QModelIndex &parent) const
{
if (row < 0 || row >= rowCount(parent) || column < 0 || column >= columnCount(parent))
QModelIndex MessageModel::index(int row, int column, const QModelIndex &parent) const
{
if (row < 0 || row >= rowCount(parent) || column < 0 || column >= columnCount(parent))