summaryrefslogtreecommitdiff
path: root/src/controls/StatusBar.qml
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@digia.com>2013-04-10 17:07:04 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-13 11:40:36 +0200
commit88e867cbeedd9063a08b9c401a8e56d0fb43d17b (patch)
tree64d6dc06d1459f603cae0c343b6f27e80bf42252 /src/controls/StatusBar.qml
parentb58966fb5d95f63793495e667184462182a98532 (diff)
downloadqtquickcontrols-88e867cbeedd9063a08b9c401a8e56d0fb43d17b.tar.gz
Remove StyleItem dependencies from controls
This is another step towards making controls work without the widgets module. Change-Id: I7066d79f42d90199cfd1a5d6f6ce6cf6cae381d6 Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'src/controls/StatusBar.qml')
-rw-r--r--src/controls/StatusBar.qml13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/controls/StatusBar.qml b/src/controls/StatusBar.qml
index b3987cb4..02ac5ab8 100644
--- a/src/controls/StatusBar.qml
+++ b/src/controls/StatusBar.qml
@@ -41,6 +41,7 @@
import QtQuick 2.1
import QtQuick.Controls 1.0
import QtQuick.Controls.Private 1.0
+import "Styles/Settings.js" as Settings
/*!
\qmltype StatusBar
@@ -67,12 +68,14 @@ import QtQuick.Controls.Private 1.0
Item {
id: statusbar
- implicitHeight: 20
- implicitWidth: parent ? parent.width : style.implicitWidth
activeFocusOnTab: false
- StyleItem {
- id: style
+ Accessible.role: Accessible.StatusBar
+ implicitWidth: parent ? parent.width : loader.item ? loader.item.implicitHeight : 0
+ implicitHeight: loader.item ? loader.item.implicitHeight : 0
+ property Component style: Qt.createComponent(Settings.THEME_PATH + "/StatusBarStyle.qml", statusbar)
+ Loader {
+ id: loader
anchors.fill: parent
- elementType: "statusbar"
+ sourceComponent: style
}
}