-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.qml
53 lines (42 loc) · 1.03 KB
/
main.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
import QtQuick 2.10
import QtQuick.Window 2.2
import QtQuick.Layouts 1.2
import QtQuick.Controls 2.3
import Configurator 1.0
import "./resources"
import "./resources/colors.js" as Color
import "./scripts/MainContext.js" as Context
Window {
height: 667
width: 375
color: Color.dark
id: root
title: qsTr("Tune Spot")
visible: true
// This is the backend btw
Configurator {
id: configurator
active: true
onPercentageChanged: {
tuner.percentage_changed(note, configurator.percentage)
}
}
FrequencySelector {
anchors.left: parent.left
anchors.bottom: tuner.top
anchors.leftMargin: 20;
anchors.bottomMargin: 55;
configurator: configurator;
}
Tuner {
anchors.bottom: list.top
height: parent.height * 0.7; width: parent.width
id: tuner
}
Instruments_list {
width: parent.width
anchors.bottom: parent.bottom
configurator: configurator
id: list
}
}