-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.h
More file actions
54 lines (39 loc) · 1.07 KB
/
Copy pathmainwindow.h
File metadata and controls
54 lines (39 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QTabWidget>
#include <QTreeView>
#include <QTableView>
#include "QutePtr.h"
#include "defaulttheme.h"
class ScoresModel;
class TransactionsModel;
class QSpinBox;
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget* parent = nullptr);
public slots:
void updateScoreActions();
void updateTransactionActions();
private slots:
void addScore();
void removeScore();
void changeYear(int val);
void scoresChanged(const QModelIndex& begin, const QModelIndex& end);
void modelsErrors(const QString& title, const QString& text);
void changeDescription();
protected:
virtual bool eventFilter(QObject* watched, QEvent* event);
private:
void _updateMonthView();
void _updateMonthViewHeaders();
DefaultTheme m_defaultTheme;
qt_ptr<QSpinBox> m_years;
qt_ptr<ScoresModel> m_scoresmodel;
qt_ptr<QTreeView> m_scoresview;
qt_ptr<TransactionsModel> m_monthmodel;
qt_ptr<QTableView> m_monthview;
};
#endif // MAINWINDOW_H