Mercurial > hg > syntilista
diff src/main.h @ 109:62e570222f66
Return inserted person ID from addPerson() (or negative value in case of errors.)
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 04 Jul 2017 09:53:38 +0300 |
parents | 6d02b4ae936c |
children | 2524434a7193 |
line wrap: on
line diff
--- a/src/main.h Mon Jul 03 11:55:59 2017 +0300 +++ b/src/main.h Tue Jul 04 09:53:38 2017 +0300 @@ -68,7 +68,7 @@ QVariant data(const QModelIndex &item, int role) const Q_DECL_OVERRIDE; int updatePerson(const PersonInfo &person); - int addPerson(const PersonInfo &person); + qint64 addPerson(const PersonInfo &person); int deletePerson(qint64 id); void updateModel(); }; @@ -120,6 +120,9 @@ PersonSQLModel *model_People; +public slots: + void focusDebtEdit(); + private slots: void on_button_AddPerson_clicked(); void on_button_EditPerson_clicked(); @@ -139,7 +142,6 @@ void selectedPersonChanged(const QModelIndex &, const QModelIndex &); - void focusDebtEdit(); void selectRowPrev(); void selectRowNext();