aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/keyinteraction/keyinteraction.qml
diff options
context:
space:
mode:
authorOliver Eftevaag <oliver.eftevaag@qt.io>2021-11-08 14:59:43 +0100
committerOliver Eftevaag <oliver.eftevaag@qt.io>2021-11-11 12:11:40 +0100
commit750e7d946ca8c059151e91c57da243bdc787ea6e (patch)
treef335f1ee81989a9cdb0d73b3372c55be51e1c734 /examples/quick/keyinteraction/keyinteraction.qml
parent28bfd773cac84d228df9e6bdcc9bed84d79935c5 (diff)
Keyinteraction example: use qt_add_qml_module() in CMakeLists.txt
We want to use the new cmake api instead of qt6_add_resources() The file structure has also been flattened a bit. Task-number: QTBUG-98130 Pick-to: 6.2 Change-Id: I1651d25e2902bf6932b78c2224ee4ffe454b658d Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'examples/quick/keyinteraction/keyinteraction.qml')
-rw-r--r--examples/quick/keyinteraction/keyinteraction.qml6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/quick/keyinteraction/keyinteraction.qml b/examples/quick/keyinteraction/keyinteraction.qml
index 7fa3078803..c79ba7217e 100644
--- a/examples/quick/keyinteraction/keyinteraction.qml
+++ b/examples/quick/keyinteraction/keyinteraction.qml
@@ -1,6 +1,6 @@
/****************************************************************************
**
-** Copyright (C) 2017 The Qt Company Ltd.
+** Copyright (C) 2021 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
@@ -48,10 +48,10 @@
**
****************************************************************************/
-import QtQuick 2.1
+import QtQuick
Loader {//Just loader, since there's only one.
- source: "focus/focus.qml"
+ source: "focus.qml"
focus: true
// Exception to the standard sizing, because this is primarily a desktop
// example and it benefits from being able to see everything at once.