formatting

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

View File

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

View File

@ -18,7 +18,7 @@
<item> <item>
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="currentIndex"> <property name="currentIndex">
<number>1</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="MetaDataTab"> <widget class="QWidget" name="MetaDataTab">
<attribute name="title"> <attribute name="title">
@ -50,7 +50,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>905</width> <width>905</width>
<height>17</height> <height>19</height>
</rect> </rect>
</property> </property>
<widget class="QMenu" name="menuFile"> <widget class="QMenu" name="menuFile">