From cb139c6fbfb2fd63b886f2c4a9622777afd9831c Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Wed, 9 Sep 2020 23:42:51 +0200 Subject: [PATCH] Added mene item to clear fields --- ui_mainwindow.py | 20 +++++++++++++------- ui_mainwindow.ui | 23 +++++++++++++++-------- 2 files changed, 28 insertions(+), 15 deletions(-) diff --git a/ui_mainwindow.py b/ui_mainwindow.py index e6717ec..6041ef5 100644 --- a/ui_mainwindow.py +++ b/ui_mainwindow.py @@ -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")) diff --git a/ui_mainwindow.ui b/ui_mainwindow.ui index caf6143..755b70f 100644 --- a/ui_mainwindow.ui +++ b/ui_mainwindow.ui @@ -98,13 +98,6 @@ - - - - - - - @@ -150,6 +143,13 @@ + + + + + + + @@ -792,19 +792,26 @@ 0 0 800 - 30 + 28 Me&nü + + + + + Eingaben löschen + + &Schließen