mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-08 13:24:01 +02:00
Brmbar v3: Support for simple GUI
All the CLI functionality implemented in the GUI.
This commit is contained in:
parent
049271118d
commit
e428d28e20
15 changed files with 973 additions and 2 deletions
34
brmbar3/brmbar-gui-qt4/BarButton.qml
Normal file
34
brmbar3/brmbar-gui-qt4/BarButton.qml
Normal file
|
@ -0,0 +1,34 @@
|
|||
// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
|
||||
import QtQuick 1.1
|
||||
|
||||
Rectangle {
|
||||
id: rectangle1
|
||||
width: 240
|
||||
height: 83
|
||||
color: "#000000"
|
||||
border.color: "#ffffff"
|
||||
|
||||
property string text: "Button"
|
||||
property int fontSize: 46
|
||||
|
||||
signal buttonClick
|
||||
onButtonClick: { /* Supplied by component user. */ }
|
||||
|
||||
Text {
|
||||
id: text1
|
||||
color: "#ffffff"
|
||||
text: parent.text
|
||||
font.pointSize: 44
|
||||
scale: if (!mousearea1.pressed) { 1 } else { 0.95 }
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
anchors.fill: parent
|
||||
smooth: true
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
id: mousearea1
|
||||
anchors.fill: parent
|
||||
onClicked: buttonClick()
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue