feat: dateEdit is now, instead of static day.
This commit is contained in:
parent
a89f43ba2e
commit
894d444f91
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue