diff options
author | Friedrich W. H. Kossebau <kossebau@kde.org> | 2019-07-24 19:55:58 +0200 |
---|---|---|
committer | Friedrich W. H. Kossebau <kossebau@kde.org> | 2019-08-05 19:16:45 +0200 |
commit | 6709de184aa397b6b4f9f4d11d21cd8fce9d708c (patch) | |
tree | ed5b84a61ddff73cf9afa6e87d3026f162f8b370 /docs | |
parent | 101474c7a59492a6c0d953ca58020e6ff1bfa515 (diff) | |
download | extra-cmake-modules-6709de184aa397b6b4f9f4d11d21cd8fce9d708c.tar.gz extra-cmake-modules-6709de184aa397b6b4f9f4d11d21cd8fce9d708c.tar.bz2 |
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
Diffstat (limited to 'docs')
-rw-r--r-- | docs/module/ECMAddQtDesignerPlugin.rst | 1 |
1 files changed, 1 insertions, 0 deletions
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 |