Diff-PDF-Icon auf Einfachklick statt Doppelklick umgestellt

Der PDF-Vergleich im integrierten Viewer wird jetzt durch einen einfachen
Klick auf das Diff-Icon geladen, nicht mehr durch Doppelklick.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-14 15:28:36 +01:00
parent e49af98cc0
commit 2f7d5b5431
+3 -3
View File
@@ -1324,10 +1324,10 @@ class MainWindow(QMainWindow):
icon_label = QLabel() icon_label = QLabel()
icon_label.setPixmap(QIcon.fromTheme("document-preview").pixmap(16, 16)) icon_label.setPixmap(QIcon.fromTheme("document-preview").pixmap(16, 16))
icon_label.setCursor(QCursor(Qt.CursorShape.PointingHandCursor)) icon_label.setCursor(QCursor(Qt.CursorShape.PointingHandCursor))
icon_label.setToolTip("Diff-PDF in Viewer laden (Doppelklick)") icon_label.setToolTip("Diff-PDF in Viewer laden")
# Klick-Event für Icon (Doppelklick lädt PDF in Viewer) # Klick-Event für Icon (Einfacher Klick lädt PDF in Viewer)
icon_label.mouseDoubleClickEvent = lambda event: self._load_pdf_for_comparison(xml_file_path, xsl_id_str) icon_label.mousePressEvent = lambda event: self._load_pdf_for_comparison(xml_file_path, xsl_id_str)
layout.addWidget(icon_label) layout.addWidget(icon_label)