-
Notifications
You must be signed in to change notification settings - Fork 1
/
Mic.qml
48 lines (41 loc) · 1.71 KB
/
Mic.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
import QtQuick 1.0
import "startupChecks.js" as Checks
import "popups.js" as Popups
Item{
id: mic
//color:"transparent"
width: 360
height: 640
Image{
source: "images/bg6.jpg"
}
Column{
id: col
spacing: 5
anchors.top: parent.top
anchors.topMargin: 75
anchors.horizontalCenter: parent.horizontalCenter
Slider{id:micamp; anchors.horizontalCenter: parent.horizontalCenter; propertyname: "Mic Amp"; value: 0; step: 6; minimum: 0; maximum: 30}
Slider{id:channel; anchors.horizontalCenter: parent.horizontalCenter; propertyname: "Mic Channel"; value: 0; step: 1; minimum: 0; maximum: 31}
Image{
id:micimg
anchors.horizontalCenter: parent.horizontalCenter
width: 260
height: 75
source: "images/butt.png"
Text{
anchors.centerIn:parent
text: "Apply"
}
MouseArea{
id: micButt
anchors.fill: parent
onClicked: {if (i8910tuning.changeMicSens_slot(micamp.value, channel.value)) {Popups.showErrorBox("Could not change Mic Settings");} else {Popups.showSuccessBox("Mic Settings changed and saved");}}
}
states: State {
name: "pressed"; when: micButt.pressed == true
PropertyChanges { target: micimg; source: "images/butt_pressed.png" }
}
}
}
}