formatting

This commit is contained in:
Michael Mandl 2018-05-23 18:02:02 +02:00
parent 060933f716
commit 498abc873e
2 changed files with 8 additions and 8 deletions

View file

@ -10,11 +10,11 @@ class GenusModel : public QAbstractTableModel
Q_OBJECT
private:
CheckableItems m_tiere = {
"Tiger", "Bär", "Katze", "Pferd", "Gans", "Elefant", "Katze", "Hund"};
CheckableItems m_futter = {"Salat", "Fleisch", "Knocken", "Banane", "Apfel",
"Möhre", "Honig", "Zucker"};
CheckableItems m_zirkus = {"Kiste", "Holz", "Vorhang", "Baum"};
CheckableItems m_tiere = { "Tiger", "Bär", "Katze", "Pferd", "Gans",
"Elefant", "Katze", "Hund" };
CheckableItems m_futter = { "Salat", "Fleisch", "Knocken", "Banane",
"Apfel", "Möhre", "Honig", "Zucker" };
CheckableItems m_zirkus = { "Kiste", "Holz", "Vorhang", "Baum" };
public:
GenusModel(QObject *parent);
@ -27,7 +27,7 @@ public:
int role = Qt::EditRole) override;
QVariant headerData(int section, Qt::Orientation orientation,
int role = Qt::DisplayRole) const;
int role = Qt::DisplayRole) const override;
void write(QJsonObject &json) const;
void read(const QJsonObject &json);