diff main.h @ 13:ca5ce74c0563

Refactoring.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 30 Mar 2017 16:54:11 +0300
parents 07db1a0bbdc7
children 466417b7a1e4
line wrap: on
line diff
--- a/main.h	Thu Mar 30 15:53:10 2017 +0300
+++ b/main.h	Thu Mar 30 16:54:11 2017 +0300
@@ -62,8 +62,9 @@
 
     QVariant data(const QModelIndex &item, int role) const Q_DECL_OVERRIDE;
 
-    void updatePerson(const PersonInfo &person);
-    void addPerson(const PersonInfo &person);
+    int  updatePerson(const PersonInfo &person);
+    int  addPerson(const PersonInfo &person);
+    int  deletePerson(qint64 id);
     void updateModel();
 };
 
@@ -109,7 +110,6 @@
     int  addTransaction(qint64 id, double value, PersonInfo &info);
     int  addTransactionGUI(qint64 id, bool debt, double value);
     void updatePersonList();
-    int  deletePerson(qint64 id);
 
     PersonSQLModel *model_People;