Allow clicking on a date in the Statistics heatmap and have it open that page
All checks were successful
CI / test (push) Successful in 3m14s
Lint / test (push) Successful in 27s
Trivy / test (push) Successful in 23s

This commit is contained in:
Miguel Jacq 2025-11-17 17:48:33 +11:00
parent 34349c6133
commit c2b2eee022
Signed by: mig5
GPG key ID: 59B3F0C24135C6A9
3 changed files with 52 additions and 1 deletions

View file

@ -1163,6 +1163,14 @@ class MainWindow(QMainWindow):
return
dlg = StatisticsDialog(self.db, self)
if hasattr(dlg, "_heatmap"):
def on_date_clicked(d: datetime.date):
qd = QDate(d.year, d.month, d.day)
self._open_date_in_tab(qd)
dlg._heatmap.date_clicked.connect(on_date_clicked)
dlg.exec()
# ------------ Window positioning --------------- #