diff options
author | Oliver Eftevaag <oliver.eftevaag@qt.io> | 2021-02-04 11:46:07 +0100 |
---|---|---|
committer | Oliver Eftevaag <oliver.eftevaag@qt.io> | 2021-03-10 17:53:22 +0100 |
commit | 1d3cdac6e448479127d3077c6e011d75fa77e6d6 (patch) | |
tree | 15d60db3bb5116159ab795aac0765bde07c60138 /examples/quick/canvas/canvas.qml | |
parent | ea8f8e09007f4acb5530b1966bc5b2afab609064 (diff) |
Update canvas example to use QtQuickControls2
The QtQuick examples should ideally have a more native look and feel.
Making them use controls from QtQuickControl will cause them to adapt to
the desktop style.
This patch replaces the previous Sliders from the 'shared' directory,
with Sliders from QtQuickControls2
Task-number: QTBUG-90880
Change-Id: I90521abf7059950521bc3d1a54994d2cca07259d
Reviewed-by: Jan Arve Sæther <jan-arve.saether@qt.io>
Diffstat (limited to 'examples/quick/canvas/canvas.qml')
-rw-r--r-- | examples/quick/canvas/canvas.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/canvas/canvas.qml b/examples/quick/canvas/canvas.qml index 7768e1092b..34e4f5a07b 100644 --- a/examples/quick/canvas/canvas.qml +++ b/examples/quick/canvas/canvas.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,7 +48,7 @@ ** ****************************************************************************/ -import QtQuick 2.0 +import QtQuick import "../shared" as Examples Item { |