This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
ESGRAF48/source/SubTests/Plural/PluralModel.cpp

23 lines
494 B
C++
Raw Normal View History

2018-06-04 16:48:58 +00:00
#include "PluralModel.h"
2018-08-26 12:24:05 +00:00
#include <QSize>
2018-06-04 16:48:58 +00:00
PluralModel::PluralModel(QObject *parent)
: CheckableTestModel(parent)
{
m_tests = { { "",
{ "Fisch /-e/", "Banane /-n/", "Bonbon /-s/", "Ei /-er/", "Eimer /-ø/",
2018-08-26 12:24:05 +00:00
"Korn UML+/-er/", "Nuss UML+/-e/", "Bär /-en/", "Apfel UML" } } };
}
QVariant PluralModel::data(const QModelIndex &index, int role) const
{
if (role == Qt::SizeHintRole)
{
return QSize(180, 0);
}
return CheckableTestModel::data(index, role);
2018-06-04 16:48:58 +00:00
}