blob: 80897cc44c09d52b84f2e3808df6fcdd448056ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import Qt 4.6
Item {
id: Toolbar
property var button1Label
property var button2Label
signal button1Clicked
signal button2Clicked
BorderImage { source: "images/titlebar2.sci"; width: parent.width; height: parent.height + 14; y: -7 }
Button {
anchors.left: parent.left; anchors.leftMargin: 5; y: 3; width: 140; height: 32; text: button1Label
onClicked: Toolbar.button1Clicked()
}
Button {
anchors.right: parent.right; anchors.rightMargin: 5; y: 3; width: 140; height: 32; text: button2Label
onClicked: Toolbar.button2Clicked()
}
}
|