diff options
Diffstat (limited to 'examples/quick/canvas/roundedrect/roundedrect.qml')
-rw-r--r-- | examples/quick/canvas/roundedrect/roundedrect.qml | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/examples/quick/canvas/roundedrect/roundedrect.qml b/examples/quick/canvas/roundedrect/roundedrect.qml index 08ede9b1e7..a4d6571cf8 100644 --- a/examples/quick/canvas/roundedrect/roundedrect.qml +++ b/examples/quick/canvas/roundedrect/roundedrect.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,9 +48,9 @@ ** ****************************************************************************/ -import QtQuick 2.0 -import "../contents" -import "../../shared" +import QtQuick +import QtQuick.Controls +import "../" Item { id:container @@ -61,7 +61,8 @@ Item { spacing: 6 anchors.fill: parent anchors.topMargin: 12 - Text { + + Label { font.pointSize: 24 font.bold: true text: "Rounded rectangle" @@ -125,7 +126,8 @@ Item { Column { anchors.bottom: parent.bottom anchors.bottomMargin: 12 - Slider {id: lineWidthCtrl ; min: 1 ; max: 10; init: 2 ; name: "Outline"} - Slider {id: rCtrl ; min: 10 ; max: 80 ; init: 40 ; name: "Radius"} + + LabeledSlider {id: lineWidthCtrl ; min: 1 ; max: 10; init: 2 ; name: "Outline"; width: container.width} + LabeledSlider {id: rCtrl ; min: 10 ; max: 80 ; init: 40 ; name: "Radius"; width: container.width} } } |