Added mene item to clear fields

This commit is contained in:
Marcel Kapfer 2020-09-09 23:42:51 +02:00
parent 2b9e2292fa
commit cb139c6fbf
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09
2 changed files with 28 additions and 15 deletions

View file

@ -2,9 +2,10 @@
# Form implementation generated from reading ui file 'ui_mainwindow.ui'
#
# Created by: PyQt5 UI code generator 5.14.2
# Created by: PyQt5 UI code generator 5.15.0
#
# WARNING! All changes made in this file will be lost!
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
@ -49,10 +50,6 @@ class Ui_MainWindow(object):
self.e_servings.setText("")
self.e_servings.setObjectName("e_servings")
self.y_basics.addWidget(self.e_servings, 1, 1, 1, 1)
self.e_url = QtWidgets.QLineEdit(self.t_basics)
self.e_url.setText("")
self.e_url.setObjectName("e_url")
self.y_basics.addWidget(self.e_url, 2, 3, 1, 1)
self.l_recipe_name = QtWidgets.QLabel(self.t_basics)
self.l_recipe_name.setObjectName("l_recipe_name")
self.y_basics.addWidget(self.l_recipe_name, 0, 0, 1, 1)
@ -75,6 +72,10 @@ class Ui_MainWindow(object):
self.e_rating_overall.setProperty("value", 3)
self.e_rating_overall.setObjectName("e_rating_overall")
self.y_basics.addWidget(self.e_rating_overall, 2, 1, 1, 1)
self.e_url = QtWidgets.QLineEdit(self.t_basics)
self.e_url.setText("")
self.e_url.setObjectName("e_url")
self.y_basics.addWidget(self.e_url, 2, 3, 1, 1)
self.verticalLayout_9.addLayout(self.y_basics)
self.horizontalLayout_16 = QtWidgets.QHBoxLayout()
self.horizontalLayout_16.setObjectName("horizontalLayout_16")
@ -361,15 +362,19 @@ class Ui_MainWindow(object):
self.gridLayout.addWidget(self.tabWidget, 0, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.menuBar = QtWidgets.QMenuBar(MainWindow)
self.menuBar.setGeometry(QtCore.QRect(0, 0, 800, 30))
self.menuBar.setGeometry(QtCore.QRect(0, 0, 800, 28))
self.menuBar.setObjectName("menuBar")
self.menuMen = QtWidgets.QMenu(self.menuBar)
self.menuMen.setObjectName("menuMen")
MainWindow.setMenuBar(self.menuBar)
self.ma_clear_fields = QtWidgets.QAction(MainWindow)
self.ma_clear_fields.setObjectName("ma_clear_fields")
self.ma_close = QtWidgets.QAction(MainWindow)
self.ma_close.setObjectName("ma_close")
self.ma_information = QtWidgets.QAction(MainWindow)
self.ma_information.setObjectName("ma_information")
self.menuMen.addAction(self.ma_clear_fields)
self.menuMen.addSeparator()
self.menuMen.addAction(self.ma_information)
self.menuMen.addSeparator()
self.menuMen.addAction(self.ma_close)
@ -454,5 +459,6 @@ class Ui_MainWindow(object):
self.b_rating_remove.setText(_translate("MainWindow", "Entfernen"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.t_rating), _translate("MainWindow", "Bewertung"))
self.menuMen.setTitle(_translate("MainWindow", "Me&nü"))
self.ma_clear_fields.setText(_translate("MainWindow", "Eingaben löschen"))
self.ma_close.setText(_translate("MainWindow", "&Schließen"))
self.ma_information.setText(_translate("MainWindow", "Informationen"))

View file

@ -98,13 +98,6 @@
</property>
</widget>
</item>
<item row="2" column="3">
<widget class="QLineEdit" name="e_url">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="l_recipe_name">
<property name="text">
@ -150,6 +143,13 @@
</property>
</widget>
</item>
<item row="2" column="3">
<widget class="QLineEdit" name="e_url">
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</item>
<item>
@ -792,19 +792,26 @@
<x>0</x>
<y>0</y>
<width>800</width>
<height>30</height>
<height>28</height>
</rect>
</property>
<widget class="QMenu" name="menuMen">
<property name="title">
<string>Me&amp;nü</string>
</property>
<addaction name="ma_clear_fields"/>
<addaction name="separator"/>
<addaction name="ma_information"/>
<addaction name="separator"/>
<addaction name="ma_close"/>
</widget>
<addaction name="menuMen"/>
</widget>
<action name="ma_clear_fields">
<property name="text">
<string>Eingaben löschen</string>
</property>
</action>
<action name="ma_close">
<property name="text">
<string>&amp;Schließen</string>