Refactor: projectPath-Widget in Qt Designer verlagert
- projectPath-Label jetzt vollständig in MainWinddow.ui definiert - StyleSheet (padding, font-weight) in UI-Datei integriert - Dynamische Widget-Erstellung aus MainWindow.py entfernt (9 Zeilen Code) - MainWinddow_ui.py automatisch neu generiert mit Styling
This commit is contained in:
@@ -79,6 +79,7 @@ class Ui_MainWindow(object):
|
||||
self.verticalLayout.setContentsMargins(-1, -1, -1, 0)
|
||||
self.projectPath = QLabel(self.frame)
|
||||
self.projectPath.setObjectName(u"projectPath")
|
||||
self.projectPath.setStyleSheet(u"QLabel { padding: 5px; font-weight: bold; }")
|
||||
|
||||
self.verticalLayout.addWidget(self.projectPath)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user