diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-01-27 08:46:56 +0100 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2021-02-16 14:35:51 +0100 |
commit | 1bd978897334d7508aa432481efac0210018633d (patch) | |
tree | 4ea3d3a18bee164dd4412b8c9d235ea9d597ade0 /sources/pyside-tools/pyside_tool.py | |
parent | 82afd88245a17b6ba759937a2b391c216857565a (diff) |
Port the Qt Designer taskmenuextension example
Show how to use QDesignerTaskMenuExtension
for a custom widget.
Task-number: PYSIDE-1455
Change-Id: Ia3a1a65890747a0d960702c25dfe20e75084a2b2
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside-tools/pyside_tool.py')
-rw-r--r-- | sources/pyside-tools/pyside_tool.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/pyside-tools/pyside_tool.py b/sources/pyside-tools/pyside_tool.py index c49b05054..d4f283bfc 100644 --- a/sources/pyside-tools/pyside_tool.py +++ b/sources/pyside-tools/pyside_tool.py @@ -97,6 +97,8 @@ def designer(): # Add the Wiggly Widget example wiggly_dir = os.fspath(pyside_dir / 'examples' / 'widgetbinding') _append_to_path_var('PYSIDE_DESIGNER_PLUGINS', wiggly_dir) + taskmenu_dir = os.fspath(pyside_dir / 'examples' / 'designer' / 'taskmenuextension') + _append_to_path_var('PYSIDE_DESIGNER_PLUGINS', taskmenu_dir) if sys.platform == "darwin": qt_tool_wrapper("Designer.app/Contents/MacOS/Designer", sys.argv[1:]) |