diff options
Diffstat (limited to 'examples/designer/customwidgetplugin/customwidgetplugin.pro')
-rw-r--r-- | examples/designer/customwidgetplugin/customwidgetplugin.pro | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/examples/designer/customwidgetplugin/customwidgetplugin.pro b/examples/designer/customwidgetplugin/customwidgetplugin.pro index 1ff6aa7e1..db6538664 100644 --- a/examples/designer/customwidgetplugin/customwidgetplugin.pro +++ b/examples/designer/customwidgetplugin/customwidgetplugin.pro @@ -1,12 +1,25 @@ -#! [0] #! [1] -CONFIG += plugin +#! [0] QT += widgets designer #! [0] -TARGET = $$qtLibraryTarget($$TARGET) + +QTDIR_build { +# This is only for the Qt build. Do not use externally. We mean it. +PLUGIN_TYPE = designer +load(qt_plugin) +} else { +# Public example: + #! [2] +CONFIG += plugin TEMPLATE = lib -#! [1] #! [2] -DESTDIR = $$QT.designer.plugins/designer +#! [2] + +TARGET = $$qtLibraryTarget($$TARGET) + +target.path = $$[QT_INSTALL_PLUGINS]/designer +INSTALLS += target + +} #! [3] HEADERS = analogclock.h \ @@ -17,7 +30,6 @@ OTHER_FILES += analogclock.json #! [3] # install -target.path = $$[QT_INSTALL_PLUGINS]/designer sources.files = $$SOURCES $$HEADERS *.pro sources.path = $$[QT_INSTALL_EXAMPLES]/qttools/designer/customwidgetplugin -INSTALLS += target sources +INSTALLS += sources |