From 0dd70e8461a7ad11806a538099c4f16ce86be4a6 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Thu, 30 Apr 2020 21:34:35 +0200 Subject: [PATCH] Morphed all QListViews to QListWidgets --- ui_mainwindow.py | 18 +++++++++--------- ui_mainwindow.ui | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/ui_mainwindow.py b/ui_mainwindow.py index 2ac2c2b..0b654cf 100644 --- a/ui_mainwindow.py +++ b/ui_mainwindow.py @@ -74,7 +74,7 @@ class Ui_MainWindow(object): self.verticalLayout_9.addLayout(self.y_basics) self.horizontalLayout_16 = QtWidgets.QHBoxLayout() self.horizontalLayout_16.setObjectName("horizontalLayout_16") - self.v_categories = QtWidgets.QListView(self.t_basics) + self.v_categories = QtWidgets.QListWidget(self.t_basics) self.v_categories.setObjectName("v_categories") self.horizontalLayout_16.addWidget(self.v_categories) self.verticalLayout_8 = QtWidgets.QVBoxLayout() @@ -108,7 +108,7 @@ class Ui_MainWindow(object): self.t_ingredients.setObjectName("t_ingredients") self.horizontalLayout_14 = QtWidgets.QHBoxLayout(self.t_ingredients) self.horizontalLayout_14.setObjectName("horizontalLayout_14") - self.v_ingredients = QtWidgets.QListView(self.t_ingredients) + self.v_ingredients = QtWidgets.QListWidget(self.t_ingredients) self.v_ingredients.setObjectName("v_ingredients") self.horizontalLayout_14.addWidget(self.v_ingredients) self.verticalLayout_7 = QtWidgets.QVBoxLayout() @@ -150,7 +150,7 @@ class Ui_MainWindow(object): self.t_utensils.setObjectName("t_utensils") self.horizontalLayout_11 = QtWidgets.QHBoxLayout(self.t_utensils) self.horizontalLayout_11.setObjectName("horizontalLayout_11") - self.v_utensils = QtWidgets.QListView(self.t_utensils) + self.v_utensils = QtWidgets.QListWidget(self.t_utensils) self.v_utensils.setObjectName("v_utensils") self.horizontalLayout_11.addWidget(self.v_utensils) self.verticalLayout_6 = QtWidgets.QVBoxLayout() @@ -194,7 +194,7 @@ class Ui_MainWindow(object): self.b_step_add.setObjectName("b_step_add") self.horizontalLayout_9.addWidget(self.b_step_add) self.verticalLayout_5.addLayout(self.horizontalLayout_9) - self.v_steps = QtWidgets.QListView(self.t_steps) + self.v_steps = QtWidgets.QListWidget(self.t_steps) self.v_steps.setObjectName("v_steps") self.verticalLayout_5.addWidget(self.v_steps) self.horizontalLayout_10 = QtWidgets.QHBoxLayout() @@ -224,7 +224,7 @@ class Ui_MainWindow(object): self.b_note_add.setObjectName("b_note_add") self.horizontalLayout_7.addWidget(self.b_note_add) self.verticalLayout_4.addLayout(self.horizontalLayout_7) - self.v_notes = QtWidgets.QListView(self.t_notes) + self.v_notes = QtWidgets.QListWidget(self.t_notes) self.v_notes.setObjectName("v_notes") self.verticalLayout_4.addWidget(self.v_notes) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() @@ -254,7 +254,7 @@ class Ui_MainWindow(object): self.e_tip_add.setObjectName("e_tip_add") self.horizontalLayout_5.addWidget(self.e_tip_add) self.verticalLayout_2.addLayout(self.horizontalLayout_5) - self.v_tips = QtWidgets.QListView(self.t_tips) + self.v_tips = QtWidgets.QListWidget(self.t_tips) self.v_tips.setObjectName("v_tips") self.verticalLayout_2.addWidget(self.v_tips) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() @@ -284,7 +284,7 @@ class Ui_MainWindow(object): self.b_variation_add.setObjectName("b_variation_add") self.horizontalLayout_3.addWidget(self.b_variation_add) self.verticalLayout_3.addLayout(self.horizontalLayout_3) - self.v_variations = QtWidgets.QListView(self.t_variations) + self.v_variations = QtWidgets.QListWidget(self.t_variations) self.v_variations.setObjectName("v_variations") self.verticalLayout_3.addWidget(self.v_variations) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() @@ -314,7 +314,7 @@ class Ui_MainWindow(object): self.b_rating_add.setObjectName("b_rating_add") self.horizontalLayout_2.addWidget(self.b_rating_add) self.verticalLayout.addLayout(self.horizontalLayout_2) - self.v_ratings = QtWidgets.QListView(self.t_rating) + self.v_ratings = QtWidgets.QListWidget(self.t_rating) self.v_ratings.setObjectName("v_ratings") self.verticalLayout.addWidget(self.v_ratings) self.horizontalLayout = QtWidgets.QHBoxLayout() @@ -347,7 +347,7 @@ class Ui_MainWindow(object): self.menuBar.addAction(self.menuMen.menuAction()) self.retranslateUi(MainWindow) - self.tabWidget.setCurrentIndex(0) + self.tabWidget.setCurrentIndex(7) QtCore.QMetaObject.connectSlotsByName(MainWindow) MainWindow.setTabOrder(self.e_recipe_name, self.e_servings) MainWindow.setTabOrder(self.e_servings, self.e_time) diff --git a/ui_mainwindow.ui b/ui_mainwindow.ui index b4422b0..93423ae 100644 --- a/ui_mainwindow.ui +++ b/ui_mainwindow.ui @@ -68,7 +68,7 @@ - 0 + 7 @@ -139,7 +139,7 @@ - + @@ -213,7 +213,7 @@ - + @@ -302,7 +302,7 @@ - + @@ -401,7 +401,7 @@ - + @@ -469,7 +469,7 @@ - + @@ -537,7 +537,7 @@ - + @@ -605,7 +605,7 @@ - + @@ -673,7 +673,7 @@ - +