From f591be2ea9c1ad02074427806feceea3267d4da5 Mon Sep 17 00:00:00 2001 From: Vitali Graf Date: Sun, 14 Dec 2025 20:32:40 +0100 Subject: [PATCH] =?UTF-8?q?Diff-Icon=20und=20Progress-Bar=20im=20TreeWidge?= =?UTF-8?q?t=20linksb=C3=BCndig=20positioniert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ändert die Ausrichtung von zentriert zu linksbündig in der dritten Spalte des TreeWidgets für bessere Übersichtlichkeit. Änderungen: - _create_centered_progress_bar(): AlignCenter → AlignLeft - _create_centered_diff_icon(): AlignCenter → AlignLeft - Docstrings aktualisiert 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- src/ui/MainWindow.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/MainWindow.py b/src/ui/MainWindow.py index 45f1168..1592ede 100644 --- a/src/ui/MainWindow.py +++ b/src/ui/MainWindow.py @@ -1285,7 +1285,7 @@ class MainWindow(QMainWindow): def _create_centered_progress_bar(self) -> tuple[QWidget, QProgressBar]: """ - Erstellt eine zentrierte Progress Bar in einem Container-Widget. + Erstellt eine linksbündige Progress Bar in einem Container-Widget. Returns: tuple: (container_widget, progress_bar) @@ -1294,7 +1294,7 @@ class MainWindow(QMainWindow): container = QWidget() layout = QHBoxLayout(container) layout.setContentsMargins(0, 0, 0, 0) - layout.setAlignment(Qt.AlignmentFlag.AlignCenter) + layout.setAlignment(Qt.AlignmentFlag.AlignLeft) # Progress Bar erstellen (indeterminate mode für pulsierenden Effekt) progress_bar = QProgressBar() @@ -1310,7 +1310,7 @@ class MainWindow(QMainWindow): def _create_centered_diff_icon(self, xml_file_path: Path, xsl_id_str: str) -> QWidget: """ - Erstellt ein zentriertes, klickbares Icon für Diff-PDF. + Erstellt ein linksbündiges, klickbares Icon für Diff-PDF. Args: xml_file_path: Pfad zur XML-Datei (relativ) @@ -1323,7 +1323,7 @@ class MainWindow(QMainWindow): container = QWidget() layout = QHBoxLayout(container) layout.setContentsMargins(0, 0, 0, 0) - layout.setAlignment(Qt.AlignmentFlag.AlignCenter) + layout.setAlignment(Qt.AlignmentFlag.AlignLeft) # Icon-Label icon_label = QLabel()