feat: add "save and create" button

This commit is contained in:
2024-11-26 10:18:27 +01:00
parent 7b11a10199
commit e3c81f1bbd
2 changed files with 8 additions and 8 deletions

View File

@@ -584,13 +584,13 @@ class Ui_MainWindow(object):
self.valid_check_telnr.setText("") self.valid_check_telnr.setText("")
self.valid_check_telnr.setAutoRaise(True) self.valid_check_telnr.setAutoRaise(True)
self.valid_check_telnr.setObjectName("valid_check_telnr") self.valid_check_telnr.setObjectName("valid_check_telnr")
self.pushButton = QtWidgets.QPushButton(parent=self.app_group_box) self.saveandcreate = QtWidgets.QPushButton(parent=self.app_group_box)
self.pushButton.setGeometry(QtCore.QRect(270, 180, 161, 24)) self.saveandcreate.setGeometry(QtCore.QRect(270, 180, 161, 24))
font = QtGui.QFont() font = QtGui.QFont()
font.setPointSize(9) font.setPointSize(9)
font.setBold(False) font.setBold(False)
self.pushButton.setFont(font) self.saveandcreate.setFont(font)
self.pushButton.setObjectName("pushButton") self.saveandcreate.setObjectName("saveandcreate")
self.gridLayout_2.addWidget(self.app_group_box, 1, 0, 1, 1) self.gridLayout_2.addWidget(self.app_group_box, 1, 0, 1, 1)
self.add_medium = QtWidgets.QPushButton(parent=self.createApparat) self.add_medium = QtWidgets.QPushButton(parent=self.createApparat)
self.add_medium.setGeometry(QtCore.QRect(3, 695, 121, 20)) self.add_medium.setGeometry(QtCore.QRect(3, 695, 121, 20))
@@ -816,7 +816,7 @@ class Ui_MainWindow(object):
MainWindow.setTabOrder(self.select_action_box, self.prof_id_adis) MainWindow.setTabOrder(self.select_action_box, self.prof_id_adis)
MainWindow.setTabOrder(self.prof_id_adis, self.apparat_id_adis) MainWindow.setTabOrder(self.prof_id_adis, self.apparat_id_adis)
MainWindow.setTabOrder(self.apparat_id_adis, self.automation_add_selected_books) MainWindow.setTabOrder(self.apparat_id_adis, self.automation_add_selected_books)
MainWindow.setTabOrder(self.automation_add_selected_books, self.pushButton) MainWindow.setTabOrder(self.automation_add_selected_books, self.saveandcreate)
def retranslateUi(self, MainWindow): def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate _translate = QtCore.QCoreApplication.translate
@@ -904,7 +904,7 @@ class Ui_MainWindow(object):
self.label_6.setText(_translate("MainWindow", "Semester")) self.label_6.setText(_translate("MainWindow", "Semester"))
self.valid_check_profname.setStatusTip(_translate("MainWindow", "Format: Nachname, Vorname")) self.valid_check_profname.setStatusTip(_translate("MainWindow", "Format: Nachname, Vorname"))
self.valid_check_mail.setStatusTip(_translate("MainWindow", "mail@irgendwas.wasanderes")) self.valid_check_mail.setStatusTip(_translate("MainWindow", "mail@irgendwas.wasanderes"))
self.pushButton.setText(_translate("MainWindow", "Speichern und anlegen")) self.saveandcreate.setText(_translate("MainWindow", "Speichern und anlegen"))
self.add_medium.setText(_translate("MainWindow", "Medien hinzufügen")) self.add_medium.setText(_translate("MainWindow", "Medien hinzufügen"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.createApparat), _translate("MainWindow", "Anlegen")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.createApparat), _translate("MainWindow", "Anlegen"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.search_statistics), _translate("MainWindow", "Suchen / Statistik")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.search_statistics), _translate("MainWindow", "Suchen / Statistik"))

View File

@@ -1484,7 +1484,7 @@
<bool>true</bool> <bool>true</bool>
</property> </property>
</widget> </widget>
<widget class="QPushButton" name="pushButton"> <widget class="QPushButton" name="saveandcreate">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>270</x> <x>270</x>
@@ -1978,7 +1978,7 @@
<tabstop>prof_id_adis</tabstop> <tabstop>prof_id_adis</tabstop>
<tabstop>apparat_id_adis</tabstop> <tabstop>apparat_id_adis</tabstop>
<tabstop>automation_add_selected_books</tabstop> <tabstop>automation_add_selected_books</tabstop>
<tabstop>pushButton</tabstop> <tabstop>saveandcreate</tabstop>
</tabstops> </tabstops>
<resources> <resources>
<include location="../../resources.qrc"/> <include location="../../resources.qrc"/>