From d7f57e37acff8931da2bb060276fd88c5fb3d8d0 Mon Sep 17 00:00:00 2001 From: Jens Bache-Wiig <jensbw@gmail.com> Date: Fri, 7 Oct 2011 12:31:54 +0200 Subject: [PATCH] Added Label to the API --- components/ApplicationWindow.qml | 9 +++++++++ components/Label.qml | 8 ++++++++ components/components.pro | 1 + components/qmldir | 1 + 4 files changed, 19 insertions(+) create mode 100644 components/Label.qml diff --git a/components/ApplicationWindow.qml b/components/ApplicationWindow.qml index 001a17d1a..bb19a91e4 100644 --- a/components/ApplicationWindow.qml +++ b/components/ApplicationWindow.qml @@ -8,6 +8,15 @@ Window { property alias statusBar: statusBarArea.data default property alias data: contentArea.data + SystemPalette {id: syspal} + + + Rectangle { + anchors.fill: parent + color: syspal.button + } + + Column { id: toolBarArea anchors.top: parent.top diff --git a/components/Label.qml b/components/Label.qml new file mode 100644 index 000000000..fe1e3769f --- /dev/null +++ b/components/Label.qml @@ -0,0 +1,8 @@ +import QtQuick 1.1 + +Text { + id: label + font.pixelSize: 11 + color: pal.text + SystemPalette {id:pal} +} diff --git a/components/components.pro b/components/components.pro index 5d8865697..368ca8724 100644 --- a/components/components.pro +++ b/components/components.pro @@ -9,6 +9,7 @@ symbian { QML_FILES = \ qmldir \ + Label.qml \ Button.qml \ ComboBox.qml \ Dial.qml \ diff --git a/components/qmldir b/components/qmldir index 9264cd462..571583c88 100644 --- a/components/qmldir +++ b/components/qmldir @@ -2,6 +2,7 @@ Slider 0.1 Slider.qml SpinBox 0.1 SpinBox.qml GroupBox 0.1 GroupBox.qml Button 0.1 Button.qml +Label 0.1 Label.qml ToolBar 0.1 ToolBar.qml TabFrame 0.1 TabFrame.qml TabBar 0.1 TabBar.qml -- GitLab