mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
desktop: reinstate WSInfoModel constructor
In 1af00703b3
the constructor of
WSInfoModel was removed, not realizing that it contains a crucial
call to setHeaderDataStrings().
Fixes #4294
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
8b435c9d8f
commit
7106c4d5f0
2 changed files with 6 additions and 1 deletions
|
@ -31,3 +31,8 @@ int WSInfoModel::rowCount(const QModelIndex&) const
|
||||||
{
|
{
|
||||||
return static_cast<int>(ws_info_table.size());
|
return static_cast<int>(ws_info_table.size());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WSInfoModel::WSInfoModel(QObject *parent) : CleanerTableModel(parent)
|
||||||
|
{
|
||||||
|
setHeaderDataStrings(QStringList() << tr("Description") << tr("kg"));
|
||||||
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ public:
|
||||||
DESCRIPTION,
|
DESCRIPTION,
|
||||||
GR
|
GR
|
||||||
};
|
};
|
||||||
using CleanerTableModel::CleanerTableModel;
|
WSInfoModel(QObject *parent);
|
||||||
|
|
||||||
QVariant data(const QModelIndex &index, int role) const override;
|
QVariant data(const QModelIndex &index, int role) const override;
|
||||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||||
|
|
Loading…
Add table
Reference in a new issue