diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2023-02-08 13:38:22 +0100 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2023-03-02 11:44:51 +0000 |
commit | dfe0f9740620ef2267225eeef445bfd7e3cb3348 (patch) | |
tree | d709048fd51050c6942030c5166ea425fbd00134 /examples/wayland/custom-extension/compositor/main.cpp | |
parent | ee92c05f34e96431e22b5735d3b864d08e2e4ad3 (diff) |
Revamp/document custom-extension example
This is a very useful example which was unfortunately
undocumented.
It also needed some clean-up in the code, and as part of
writing the documentation, it became clear that it would be
an easier demonstration to follow if the QML client was
more similar to the C++ client, so that they were simply two
implementations of the same spec.
Fixes: QTBUG-110919
Change-Id: Ia4476cda34056e28722af6639f95d8c87819681a
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'examples/wayland/custom-extension/compositor/main.cpp')
-rw-r--r-- | examples/wayland/custom-extension/compositor/main.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/examples/wayland/custom-extension/compositor/main.cpp b/examples/wayland/custom-extension/compositor/main.cpp index a44027229..458f5b9a3 100644 --- a/examples/wayland/custom-extension/compositor/main.cpp +++ b/examples/wayland/custom-extension/compositor/main.cpp @@ -11,15 +11,9 @@ #include "customextension.h" -static void registerTypes() -{ - qmlRegisterType<CustomExtensionQuickExtension>("io.qt.examples.customextension", 1, 0, "CustomExtension"); -} - int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); - registerTypes(); QQmlApplicationEngine appEngine(QUrl("qrc:///qml/main.qml")); return app.exec(); |