Mercurial > hg > syntilista
diff src/main.h @ 218:c3f47d489097
Implement global transactions viewer dialog.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 06 Mar 2018 14:37:39 +0200 |
parents | 58af72da7f60 |
children | 54ab3f3e28c0 |
line wrap: on
line diff
--- a/src/main.h Tue Jan 02 01:47:38 2018 +0200 +++ b/src/main.h Tue Mar 06 14:37:39 2018 +0200 @@ -138,6 +138,7 @@ class SyntilistaMainWindow; class EditPerson; class AboutWindow; + class ViewTransactions; } typedef struct @@ -185,6 +186,7 @@ void on_button_Quit_clicked(); void on_button_About_clicked(); void on_button_Print_clicked(); + void on_button_ViewTransactions_clicked(); void on_button_AddDebt_clicked(); void on_button_PayDebt_clicked(); @@ -288,6 +290,29 @@ // +// Global transactions list viewer +// +class ViewTransactions : public QDialog +{ + Q_OBJECT + +public: + explicit ViewTransactions(QWidget *parent = 0); + ~ViewTransactions(); + +// void statusMsg(const QString &msg); + +private slots: + void on_button_Close_clicked(); + +private: + Ui::ViewTransactions *ui; + + SLTransactionSQLModel *model_Transactions; +}; + + +// // Custom painter drawing helper class // class SLDrawContext : public QObject