forked from brmlab/brmbar-github
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
27
brmbar3/brmbar-gui-qt4/BarClock.qml
Normal file
27
brmbar3/brmbar-gui-qt4/BarClock.qml
Normal file
|
@ -0,0 +1,27 @@
|
|||
// import QtQuick 1.0 // to target S60 5th Edition or Maemo 5
|
||||
import QtQuick 1.1
|
||||
|
||||
Rectangle {
|
||||
id: clock
|
||||
width: 320
|
||||
height: 65
|
||||
property variant now: new Date()
|
||||
property variant textColor: "#000000"
|
||||
property variant textSize: 12
|
||||
Timer {
|
||||
id: clockUpdater
|
||||
interval: 1000 // update clock every second
|
||||
running: true
|
||||
repeat: true
|
||||
onTriggered: {
|
||||
parent.now = new Date()
|
||||
}
|
||||
}
|
||||
Text {
|
||||
id: clockLabel
|
||||
anchors.centerIn: parent
|
||||
text: Qt.formatDateTime(parent.now, "hh:mm:ss")
|
||||
color: parent.textColor
|
||||
font.pointSize: parent.textSize
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue