From 6709de184aa397b6b4f9f4d11d21cd8fce9d708c Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Wed, 24 Jul 2019 19:55:58 +0200 Subject: Add ECMAddQtDesignerPlugin Summary: ECMAddQtDesignerPlugin provides two macros that can be used to replace the usage of the tool kgendesignerplugin from KDesignerPlugin. This allows to have ECM-using libraries to create Qt Designer plugins without the need for another separate tool. For that purpose option structure & defaults are inspired from that one, to allow simple porting. Main difference is that ECMAddQtDesignerPlugin expects the widget metadata definition to be done in CMake code, using a dedicated function, instead of in a ini-style separate ".widgets" file. Porting of ".widgets" files basically means: copy content into cmake, transform ini code into arguments to util method. Key names need a bit of adaption, current names are open for dicussion. Porting example: ``` [KActionSelector] IncludeFile=kactionselector.h ToolTip=A widget for selecting and arranging actions/objects Group=Views (KF5) ``` gets ``` ecm_qtdesignerplugin_widget(KActionSelector INCLUDE_FILE kactionselector.h TOOLTIP "A widget for selecting and arranging actions/objects" GROUP "Views (KF5)" ) ``` Reviewers: #build_system, #frameworks Subscribers: apol, kde-frameworks-devel, kde-buildsystem Tags: #frameworks, #build_system Differential Revision: https://phabricator.kde.org/D22724 --- docs/module/ECMAddQtDesignerPlugin.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/module/ECMAddQtDesignerPlugin.rst (limited to 'docs/module') diff --git a/docs/module/ECMAddQtDesignerPlugin.rst b/docs/module/ECMAddQtDesignerPlugin.rst new file mode 100644 index 00000000..052b08fa --- /dev/null +++ b/docs/module/ECMAddQtDesignerPlugin.rst @@ -0,0 +1 @@ +.. ecm-module:: ../../modules/ECMAddQtDesignerPlugin.cmake -- cgit v1.2.1