diff options
| author | Calvin Morrison <calvin@pobox.com> | 2026-01-03 11:57:44 -0500 |
|---|---|---|
| committer | Calvin Morrison <calvin@pobox.com> | 2026-01-03 11:57:44 -0500 |
| commit | fb51ae563d69944d8399d8b4705f2714d15a74c1 (patch) | |
| tree | 6f2bee73dce53d3526da64563d0ef00e3a5df26e /cashflow.h | |
| parent | a6e05ddd0add4500877ceb2df69ea3e0d5ca9b15 (diff) | |
nu stuff
Diffstat (limited to 'cashflow.h')
| -rw-r--r-- | cashflow.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -4,6 +4,11 @@ #include <QMainWindow> #include <QTableWidget> #include <QDate> +#include <QtCharts/QChartView> +#include <QtCharts/QLineSeries> +#include <QtCharts/QChart> +#include <QtCharts/QDateTimeAxis> +#include <QtCharts/QValueAxis> #include "database.h" #include "transaction.h" @@ -21,6 +26,7 @@ public: protected: void keyPressEvent(QKeyEvent *event) override; + bool eventFilter(QObject *watched, QEvent *event) override; private slots: void onDateRangeChanged(); @@ -64,11 +70,14 @@ private: int weekStartDay; QString currentFilePath; QMap<PeriodType, QSet<int>> collapsedPeriods; // Track which period end rows are collapsed per period type + QChartView *chartView; + QChart *chart; void setupConnections(); void refreshView(); void refreshTransactionTable(); void refreshRecurringTable(); + void refreshCharts(); void calculateAndDisplayBalance(); QList<Transaction> getAllTransactionsInRange(); void clearTransactionEntry(); |
