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:
Berthold Stoeger 2024-08-22 17:06:36 +02:00 committed by bstoeger
parent 8b435c9d8f
commit 7106c4d5f0
2 changed files with 6 additions and 1 deletions

View file

@ -31,3 +31,8 @@ int WSInfoModel::rowCount(const QModelIndex&) const
{
return static_cast<int>(ws_info_table.size());
}
WSInfoModel::WSInfoModel(QObject *parent) : CleanerTableModel(parent)
{
setHeaderDataStrings(QStringList() << tr("Description") << tr("kg"));
}

View file

@ -12,7 +12,7 @@ public:
DESCRIPTION,
GR
};
using CleanerTableModel::CleanerTableModel;
WSInfoModel(QObject *parent);
QVariant data(const QModelIndex &index, int role) const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;