aboutsummaryrefslogtreecommitdiff
path: root/cashflow.h
diff options
context:
space:
mode:
authorCalvin Morrison <calvin@pobox.com>2026-01-03 11:57:44 -0500
committerCalvin Morrison <calvin@pobox.com>2026-01-03 11:57:44 -0500
commitfb51ae563d69944d8399d8b4705f2714d15a74c1 (patch)
tree6f2bee73dce53d3526da64563d0ef00e3a5df26e /cashflow.h
parenta6e05ddd0add4500877ceb2df69ea3e0d5ca9b15 (diff)
nu stuff
Diffstat (limited to 'cashflow.h')
-rw-r--r--cashflow.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cashflow.h b/cashflow.h
index 4bc0e7b..92be93d 100644
--- a/cashflow.h
+++ b/cashflow.h
@@ -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();