-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathSelectionInfo.qml
37 lines (30 loc) · 978 Bytes
/
SelectionInfo.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//Copyright (c) 2017 Ultimaker B.V.
//This example is released under the terms of the AGPLv3 or higher.
import UM 1.1 as UM //This allows you to use all of Uranium's built-in QML items.
import QtQuick 2.2 //This allows you to use QtQuick's built-in QML items.
import QtQuick.Controls //Contains the "Label" element.
UM.Dialog //Creates a modal window that pops up above the interface.
{
id: base
width: 200
height: 200
minimumWidth: 200
minimumHeight: 200
Label
{
id: id_label
//Positions the label on the top-left side of the window.
anchors.top: base.top
anchors.topMargin: 10
anchors.left: base.left
anchors.leftMargin: 10
text: "Selected objects: "
}
Text
{
//Positions this text right of the accompanying label.
anchors.verticalCenter: id_label.verticalCenter
anchors.left: id_label.right
text: UM.Selection.selectionNames.join()
}
}