-
Notifications
You must be signed in to change notification settings - Fork 1
/
ContextMenu.qml
61 lines (45 loc) · 1.59 KB
/
ContextMenu.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
/*******************************************************************/
/* Original File Name: ContextMenu.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
Menu {
id: contextMenu
width: 325
background: Rectangle {
color: "#0d0d0d"
opacity: 0.85
radius: 2
}
property alias isLoops: repeatSwitch.checked
property alias repeatSwitchCheckable: repeatSwitch.checkable
property alias repeatSwitchChecked: repeatSwitch.checked
MenuItem {
text: qsTr("Повтор")
Switch {
id: repeatSwitch
anchors {
right: parent.right
rightMargin: 2
}
}
onTriggered: repeatSwitch.toggle()
}
MenuItem {
text: qsTr("Перейти по таймингу")
onTriggered: goToPopup.open()
}
MenuItem {
text: qsTr("Решить проблему с воспроизведением")
onTriggered: feedbackPopup.open()
}
//MenuItem {
// text: qsTr("Статистика для разработчиков")
// onTriggered: satisticsPopup.open()
//}
}