summaryrefslogtreecommitdiff
path: root/src/controls
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2013-05-24 09:31:37 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-24 17:12:57 +0200
commit7adbdc017982aec8645e152c7891ea51f84ff8ee (patch)
tree6f5242608cdfbba0ac0669f16ba2d5b646f5f96d /src/controls
parent5dc6a9d8e5c0c962009129cf35361412db1b8f96 (diff)
downloadqtquickcontrols-7adbdc017982aec8645e152c7891ea51f84ff8ee.tar.gz
Make QQuickSettings::style a property with a notifier signal
Change-Id: I9f1690524e29cd7fe0ab35be216aca9a6edd35ca Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
Diffstat (limited to 'src/controls')
-rw-r--r--src/controls/Button.qml2
-rw-r--r--src/controls/CheckBox.qml2
-rw-r--r--src/controls/ComboBox.qml2
-rw-r--r--src/controls/GroupBox.qml2
-rw-r--r--src/controls/Menu.qml2
-rw-r--r--src/controls/MenuBar.qml2
-rw-r--r--src/controls/ProgressBar.qml2
-rw-r--r--src/controls/RadioButton.qml2
-rw-r--r--src/controls/ScrollView.qml2
-rw-r--r--src/controls/Slider.qml2
-rw-r--r--src/controls/SpinBox.qml2
-rw-r--r--src/controls/StatusBar.qml2
-rw-r--r--src/controls/TabView.qml2
-rw-r--r--src/controls/TableView.qml2
-rw-r--r--src/controls/TextField.qml2
-rw-r--r--src/controls/ToolBar.qml2
-rw-r--r--src/controls/ToolButton.qml2
17 files changed, 17 insertions, 17 deletions
diff --git a/src/controls/Button.qml b/src/controls/Button.qml
index cf725085..2418bfa2 100644
--- a/src/controls/Button.qml
+++ b/src/controls/Button.qml
@@ -102,7 +102,7 @@ BasicButton {
Accessible.name: text
- style: Qt.createComponent(Settings.theme() + "/ButtonStyle.qml", button)
+ style: Qt.createComponent(Settings.style + "/ButtonStyle.qml", button)
Binding {
target: menu
diff --git a/src/controls/CheckBox.qml b/src/controls/CheckBox.qml
index 46f9068d..ad82a948 100644
--- a/src/controls/CheckBox.qml
+++ b/src/controls/CheckBox.qml
@@ -129,7 +129,7 @@ AbstractCheckable {
*/
property bool __ignoreChecked: false
- style: Qt.createComponent(Settings.theme() + "/CheckBoxStyle.qml", checkBox)
+ style: Qt.createComponent(Settings.style + "/CheckBoxStyle.qml", checkBox)
activeFocusOnTab: true
diff --git a/src/controls/ComboBox.qml b/src/controls/ComboBox.qml
index 219dc3b3..4d207360 100644
--- a/src/controls/ComboBox.qml
+++ b/src/controls/ComboBox.qml
@@ -97,7 +97,7 @@ Control {
/*! \internal */
property var __popup: popup
- style: Qt.createComponent(Settings.theme() + "/ComboBoxStyle.qml", comboBox)
+ style: Qt.createComponent(Settings.style + "/ComboBoxStyle.qml", comboBox)
activeFocusOnTab: true
diff --git a/src/controls/GroupBox.qml b/src/controls/GroupBox.qml
index 6342d278..e358dd9d 100644
--- a/src/controls/GroupBox.qml
+++ b/src/controls/GroupBox.qml
@@ -151,7 +151,7 @@ Item {
readonly property alias contentItem: container
/*! \internal */
- property Component style: Qt.createComponent(Settings.theme() + "/GroupBoxStyle.qml", groupbox)
+ property Component style: Qt.createComponent(Settings.style + "/GroupBoxStyle.qml", groupbox)
/*! \internal */
property alias __checkbox: check
diff --git a/src/controls/Menu.qml b/src/controls/Menu.qml
index 8b6a35b9..e89099db 100644
--- a/src/controls/Menu.qml
+++ b/src/controls/Menu.qml
@@ -130,7 +130,7 @@ MenuPrivate {
property Component __selfComponent: null
/*! \internal */
- property Component style: Qt.createComponent(Settings.theme() + "/MenuStyle.qml", root)
+ property Component style: Qt.createComponent(Settings.style + "/MenuStyle.qml", root)
/*! \internal */
property var __menuBar: null
diff --git a/src/controls/MenuBar.qml b/src/controls/MenuBar.qml
index cee21396..65af1c12 100644
--- a/src/controls/MenuBar.qml
+++ b/src/controls/MenuBar.qml
@@ -74,7 +74,7 @@ MenuBarPrivate {
id: root
/*! \internal */
- property Component style: Qt.createComponent(Settings.theme() + "/MenuBarStyle.qml", root)
+ property Component style: Qt.createComponent(Settings.style + "/MenuBarStyle.qml", root)
/*! \internal */
__contentItem: Loader {
diff --git a/src/controls/ProgressBar.qml b/src/controls/ProgressBar.qml
index 92181df1..1e78ed92 100644
--- a/src/controls/ProgressBar.qml
+++ b/src/controls/ProgressBar.qml
@@ -97,7 +97,7 @@ Control {
property int orientation: Qt.Horizontal
/*! \internal */
- style: Qt.createComponent(Settings.theme() + "/ProgressBarStyle.qml", progressbar)
+ style: Qt.createComponent(Settings.style + "/ProgressBarStyle.qml", progressbar)
/*! \internal */
property bool __initialized: false
diff --git a/src/controls/RadioButton.qml b/src/controls/RadioButton.qml
index 7fb4decd..963d085c 100644
--- a/src/controls/RadioButton.qml
+++ b/src/controls/RadioButton.qml
@@ -87,7 +87,7 @@ AbstractCheckable {
\codeline Qt.createComponent("path/to/style.qml", radioButtonId);
*/
- style: Qt.createComponent(Settings.theme() + "/RadioButtonStyle.qml", radioButton)
+ style: Qt.createComponent(Settings.style + "/RadioButtonStyle.qml", radioButton)
__cycleStatesHandler: function() { checked = !checked; }
}
diff --git a/src/controls/ScrollView.qml b/src/controls/ScrollView.qml
index 4d06c3f3..bbd21b24 100644
--- a/src/controls/ScrollView.qml
+++ b/src/controls/ScrollView.qml
@@ -144,7 +144,7 @@ FocusScope {
/*! \internal */
property alias __verticalScrollBar: scroller.verticalScrollBar
/*! \internal */
- property Component style: Qt.createComponent(Settings.theme() + "/ScrollViewStyle.qml", root)
+ property Component style: Qt.createComponent(Settings.style + "/ScrollViewStyle.qml", root)
/* \internal */
property Style __style: styleLoader.item
diff --git a/src/controls/Slider.qml b/src/controls/Slider.qml
index d53255a3..469843c6 100644
--- a/src/controls/Slider.qml
+++ b/src/controls/Slider.qml
@@ -187,7 +187,7 @@ Control {
return Math.round(v);
}
- style: Qt.createComponent(Settings.theme() + "/SliderStyle.qml", slider)
+ style: Qt.createComponent(Settings.style + "/SliderStyle.qml", slider)
Keys.onRightPressed: value += (maximumValue - minimumValue)/10.0
Keys.onLeftPressed: value -= (maximumValue - minimumValue)/10.0
diff --git a/src/controls/SpinBox.qml b/src/controls/SpinBox.qml
index ab0eeb0b..bf8e6647 100644
--- a/src/controls/SpinBox.qml
+++ b/src/controls/SpinBox.qml
@@ -131,7 +131,7 @@ Control {
*/
property bool activeFocusOnPress: true
- style: Qt.createComponent(Settings.theme() + "/SpinBoxStyle.qml", spinbox)
+ style: Qt.createComponent(Settings.style + "/SpinBoxStyle.qml", spinbox)
/*! \internal */
function __increment() {
diff --git a/src/controls/StatusBar.qml b/src/controls/StatusBar.qml
index 248c16ee..13edc5ef 100644
--- a/src/controls/StatusBar.qml
+++ b/src/controls/StatusBar.qml
@@ -73,7 +73,7 @@ Item {
width: parent ? parent.width : implicitWidth
implicitWidth: loader.item.implicitHeight
implicitHeight: loader.item ? loader.item.implicitHeight : 0
- property Component style: Qt.createComponent(Settings.theme() + "/StatusBarStyle.qml", statusbar)
+ property Component style: Qt.createComponent(Settings.style + "/StatusBarStyle.qml", statusbar)
Loader {
id: loader
anchors.fill: parent
diff --git a/src/controls/TabView.qml b/src/controls/TabView.qml
index 7871cdd6..98c2466b 100644
--- a/src/controls/TabView.qml
+++ b/src/controls/TabView.qml
@@ -141,7 +141,7 @@ FocusScope {
property ListModel __tabs: ListModel { }
/*! \internal */
- property Component style: Qt.createComponent(Settings.theme() + "/TabViewStyle.qml", root)
+ property Component style: Qt.createComponent(Settings.style + "/TabViewStyle.qml", root)
/*! \internal */
property var __styleItem: loader.item
diff --git a/src/controls/TableView.qml b/src/controls/TableView.qml
index 5d7a3472..6efee30d 100644
--- a/src/controls/TableView.qml
+++ b/src/controls/TableView.qml
@@ -279,7 +279,7 @@ ScrollView {
}
- style: Qt.createComponent(Settings.theme() + "/TableViewStyle.qml", root)
+ style: Qt.createComponent(Settings.style + "/TableViewStyle.qml", root)
Accessible.role: Accessible.Table
diff --git a/src/controls/TextField.qml b/src/controls/TextField.qml
index e374c83d..81c30fc1 100644
--- a/src/controls/TextField.qml
+++ b/src/controls/TextField.qml
@@ -533,7 +533,7 @@ Control {
/*! \internal */
property alias __contentWidth: textInput.contentWidth
- style: Qt.createComponent(Settings.theme() + "/TextFieldStyle.qml", textInput)
+ style: Qt.createComponent(Settings.style + "/TextFieldStyle.qml", textInput)
activeFocusOnTab: true
diff --git a/src/controls/ToolBar.qml b/src/controls/ToolBar.qml
index 71ef30a5..d2adea56 100644
--- a/src/controls/ToolBar.qml
+++ b/src/controls/ToolBar.qml
@@ -76,7 +76,7 @@ Item {
width: parent ? parent.width : implicitWidth
implicitWidth: loader.item ? loader.item.implicitWidth : 0
implicitHeight: loader.item ? loader.item.implicitHeight : 0
- property Component style: Qt.createComponent(Settings.theme() + "/ToolBarStyle.qml", toolbar)
+ property Component style: Qt.createComponent(Settings.style + "/ToolBarStyle.qml", toolbar)
Loader {
id: loader
anchors.fill: parent
diff --git a/src/controls/ToolButton.qml b/src/controls/ToolButton.qml
index 106a947f..d6607d28 100644
--- a/src/controls/ToolButton.qml
+++ b/src/controls/ToolButton.qml
@@ -78,5 +78,5 @@ BasicButton {
Accessible.name: text
- style: Qt.createComponent(Settings.theme() + "/ToolButtonStyle.qml", button)
+ style: Qt.createComponent(Settings.style + "/ToolButtonStyle.qml", button)
}