Mercurial > hg > syntilista
comparison main.h @ 13:ca5ce74c0563
Refactoring.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 30 Mar 2017 16:54:11 +0300 |
parents | 07db1a0bbdc7 |
children | 466417b7a1e4 |
comparison
equal
deleted
inserted
replaced
12:07db1a0bbdc7 | 13:ca5ce74c0563 |
---|---|
60 public: | 60 public: |
61 PersonSQLModel(QObject *parent = 0); | 61 PersonSQLModel(QObject *parent = 0); |
62 | 62 |
63 QVariant data(const QModelIndex &item, int role) const Q_DECL_OVERRIDE; | 63 QVariant data(const QModelIndex &item, int role) const Q_DECL_OVERRIDE; |
64 | 64 |
65 void updatePerson(const PersonInfo &person); | 65 int updatePerson(const PersonInfo &person); |
66 void addPerson(const PersonInfo &person); | 66 int addPerson(const PersonInfo &person); |
67 int deletePerson(qint64 id); | |
67 void updateModel(); | 68 void updateModel(); |
68 }; | 69 }; |
69 | 70 |
70 | 71 |
71 | 72 |
107 void saveSettings(); | 108 void saveSettings(); |
108 void setActivePerson(qint64 id); | 109 void setActivePerson(qint64 id); |
109 int addTransaction(qint64 id, double value, PersonInfo &info); | 110 int addTransaction(qint64 id, double value, PersonInfo &info); |
110 int addTransactionGUI(qint64 id, bool debt, double value); | 111 int addTransactionGUI(qint64 id, bool debt, double value); |
111 void updatePersonList(); | 112 void updatePersonList(); |
112 int deletePerson(qint64 id); | |
113 | 113 |
114 PersonSQLModel *model_People; | 114 PersonSQLModel *model_People; |
115 | 115 |
116 private slots: | 116 private slots: |
117 void on_button_AddPerson_clicked(); | 117 void on_button_AddPerson_clicked(); |