Diff-Icon und Progress-Bar im TreeWidget linksbündig positioniert
Ä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 <noreply@anthropic.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user