diff --git a/src/ui/MainWinddow.ui b/src/ui/MainWinddow.ui index e7b5415..053f60f 100644 --- a/src/ui/MainWinddow.ui +++ b/src/ui/MainWinddow.ui @@ -61,13 +61,16 @@ 0 - - - - Kein Projekt geladen - - - + + + + Kein Projekt geladen + + + QLabel { padding: 5px; font-weight: bold; } + + + diff --git a/src/ui/MainWinddow_ui.py b/src/ui/MainWinddow_ui.py index 3ba265c..cd298fb 100644 --- a/src/ui/MainWinddow_ui.py +++ b/src/ui/MainWinddow_ui.py @@ -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) diff --git a/src/ui/MainWindow.py b/src/ui/MainWindow.py index a47a869..9f5a1bc 100644 --- a/src/ui/MainWindow.py +++ b/src/ui/MainWindow.py @@ -55,16 +55,6 @@ class MainWindow( self.ui = Ui_MainWindow() self.ui.setupUi(self) - # QLabel für Projektpfad über dem TreeWidget hinzufügen - from PySide6.QtWidgets import QLabel - - self.ui.projectPath = QLabel() - self.ui.projectPath.setObjectName("projectPath") - self.ui.projectPath.setText("Kein Projekt geladen") - self.ui.projectPath.setStyleSheet("QLabel { padding: 5px; font-weight: bold; }") - # Füge das Label als erstes Element in verticalLayout (über dem TreeWidget) ein - self.ui.verticalLayout.insertWidget(0, self.ui.projectPath) - # Dict zum Speichern der Beziehung zwischen Thumbnails und Seitennummern self.thumbnail_to_page = {}