Ergänzungen in de Wrappern/ Prüfmanager für Layouts

This commit is contained in:
2026-03-20 14:01:57 +01:00
parent ae5f88c5b8
commit f19fe71bfa
5 changed files with 210 additions and 2 deletions

View File

@@ -76,6 +76,9 @@ except Exception:
def removeToolBar(self, *args, **kwargs):
pass
def openLayoutDesigner(self, layout):
return layout
iface = _MockIface()
class _MockQgsFileWidget:
@@ -132,6 +135,13 @@ def get_main_window():
return None
def open_layout_designer(layout: Any) -> Any:
try:
return iface.openLayoutDesigner(layout)
except Exception:
return None
# ---------------------------------------------------------
# Dock-Handling
# ---------------------------------------------------------