diff options
author | Paul Olav Tvete <paul.tvete@gmail.com> | 2016-09-03 13:58:38 +0200 |
---|---|---|
committer | Paul Olav Tvete <paul.tvete@qt.io> | 2016-09-08 13:26:35 +0000 |
commit | 004c6ffdbdb91f215364740a1975b37fe54b757c (patch) | |
tree | 5284348819486de178c51209f95482e10847c1c5 /examples/wayland/custom-extension/qml-client/qml-client.pro | |
parent | 7310fd4c925df7a3de0ae63e44ba0627228adc84 (diff) |
Simplify custom-extension example
Don't confuse people by creating the extension inside a platform plugin.
It's only necessary when modifying Qt's default behaviour, and we're not going
to teach that in this example.
Also remove the load/unload extension logic from the qml example. Don't make
people believe that they have to use a loader.
Change-Id: Id263bb7d77fba176bfb8b6843a6ece9a0a203754
Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@hawaiios.org>
Diffstat (limited to 'examples/wayland/custom-extension/qml-client/qml-client.pro')
-rw-r--r-- | examples/wayland/custom-extension/qml-client/qml-client.pro | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/examples/wayland/custom-extension/qml-client/qml-client.pro b/examples/wayland/custom-extension/qml-client/qml-client.pro new file mode 100644 index 000000000..aec29d2b3 --- /dev/null +++ b/examples/wayland/custom-extension/qml-client/qml-client.pro @@ -0,0 +1,28 @@ +TEMPLATE = app + +QT += qml quick waylandclient-private + +CONFIG += c++11 +CONFIG += wayland-scanner +CONFIG += link_pkgconfig + +WAYLANDCLIENTSOURCES += ../protocol/custom.xml + +!contains(QT_CONFIG, no-pkg-config) { + PKGCONFIG += wayland-client +} else { + LIBS += -lwayland-client +} + +SOURCES += main.cpp \ + ../client-common/customextension.cpp + +HEADERS += \ + ../client-common/customextension.h + +RESOURCES += qml.qrc + +target.path = $$[QT_INSTALL_EXAMPLES]/wayland/custom-extension/qml-client +INSTALLS += target + + |