-
Notifications
You must be signed in to change notification settings - Fork 1
/
StatisticsPopup.qml
95 lines (76 loc) · 2.55 KB
/
StatisticsPopup.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*******************************************************************/
/* Original File Name: Reference.qml */
/* Date: 04-08-2018 */
/* Developer: Dionysus Benstein */
/* Copyright © 2018 Dionysus Benstein. All rights reserved. */
/* Description: Всплывающее меню с информацие о хоткеях. */
/*******************************************************************/
import QtQuick 2.11
import QtQuick.Controls 2.4
import QtQuick.Controls.Material 2.3
Popup {
id: popup
x: Math.round((parent.width - width) / 2)
y: Math.round((parent.height - height) / 2)
width: 500; height: 320
parent: Overlay.overlay
modal: true
focus: true
clip: true
padding: 0
Material.theme: Material.Light
background: Rectangle {
color: "#0d0d0d"
opacity: 0.85
radius: 2
}
ListModel {
id: referenceModel
ListElement { description: qsTr("Viewport"); shortcut: "854x480" }
//ListElement { description: qsTr("Volume"); shortcut: volumeSlider.value }
}
ListView {
anchors.fill: parent
delegate: ItemDelegate {
id: itemDelegate
height: 48
anchors {
left: parent.left
right: parent.right
}
Text {
text: description
anchors {
verticalCenter: parent.verticalCenter
left: parent.left
leftMargin: 16
}
font {
pixelSize: 14
family: robotoMediumFont.name
}
color: "#f1f1f1"
renderType: Text.NativeRendering
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter
}
Text {
text: shortcut
anchors {
verticalCenter: parent.verticalCenter
right: parent.right
rightMargin: 16
}
font {
pixelSize: 14
family: robotoMediumFont.name
}
color: "#f1f1f1"
renderType: Text.NativeRendering
horizontalAlignment: Text.AlignLeft
verticalAlignment: Text.AlignVCenter
}
}
model: referenceModel
}
}