feat: dateEdit is now, instead of static day. #4

Merged
CodeByMrFinchum merged 1 commit from feat/dateEdit into main 2025-05-30 12:18:06 +02:00
2 changed files with 6 additions and 2 deletions
Showing only changes of commit 894d444f91 - Show all commits

View file

@ -1,4 +1,7 @@
# 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.2: Fix links

View file

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