diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-07-18 14:40:10 +0200 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-07-18 14:40:10 +0200 |
commit | d94231bc05f56252416857725ae8a4398436f12a (patch) | |
tree | 93502218c7ddbe4051dbca1e6579f7b321693d1c /qtmips_gui/messagesmodel.h | |
parent | ee34605308d5e946700fbc5840f8cd0a302c0019 (diff) | |
download | qtmips-d94231bc05f56252416857725ae8a4398436f12a.tar.gz qtmips-d94231bc05f56252416857725ae8a4398436f12a.tar.bz2 qtmips-d94231bc05f56252416857725ae8a4398436f12a.zip |
Parent models created by views to ensure their deletion.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_gui/messagesmodel.h')
-rw-r--r-- | qtmips_gui/messagesmodel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qtmips_gui/messagesmodel.h b/qtmips_gui/messagesmodel.h index d9c35e5..16c65e2 100644 --- a/qtmips_gui/messagesmodel.h +++ b/qtmips_gui/messagesmodel.h @@ -51,6 +51,7 @@ class MessagesModel : public QAbstractListModel using Super = QAbstractListModel; public: MessagesModel(QObject *parent); + ~MessagesModel(); int rowCount(const QModelIndex &parent = QModelIndex()) const override ; int columnCount(const QModelIndex &parent = QModelIndex()) const override; QVariant headerData(int section, Qt::Orientation orientation, int role) const override; |