feat: dateEdit is now, instead of static day.
All checks were successful
ci/woodpecker/push/woodpecker_ci Pipeline was successful
ci/woodpecker/tag/woodpecker_ci Pipeline was successful

This commit is contained in:
Mr Finchum 2025-05-30 12:17:12 +02:00
parent a89f43ba2e
commit 894d444f91
Signed by: CodeByMrFinchum
GPG key ID: C06071E8082FFA0B
2 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,7 @@
# Changelog # Changelog
## 1.5.x
### 1.5.0: Feature - Time of dateEdit now today
- Changes that instead of the dateEdit elements being always set to a last day of 2024 it is the current day.
## 1.4.x ## 1.4.x
### 1.4.2: Fix links ### 1.4.2: Fix links

View file

@ -25,7 +25,8 @@ from PySide6.QtCore import (
Signal, Signal,
QObject, QObject,
QRegularExpression, QRegularExpression,
Qt Qt,
QDate
) )
from PySide6.QtWidgets import ( from PySide6.QtWidgets import (
@ -96,7 +97,7 @@ class OptimaLab35(QMainWindow, Ui_MainWindow):
validator = QRegularExpressionValidator(regex) validator = QRegularExpressionValidator(regex)
self.ui.lat_lineEdit.setValidator(validator) self.ui.lat_lineEdit.setValidator(validator)
self.ui.long_lineEdit.setValidator(validator) self.ui.long_lineEdit.setValidator(validator)
self.ui.dateEdit.setDate(QDate.currentDate())
# UI related function, changing parts, open, etc. # UI related function, changing parts, open, etc.
def open_preview_window(self): def open_preview_window(self):
self.preview_window = PreviewWindow() self.preview_window = PreviewWindow()