summaryrefslogtreecommitdiff
path: root/src/controls/Styles
diff options
context:
space:
mode:
authorJens Bache-Wiig <jens.bache-wiig@digia.com>2013-09-20 18:23:17 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-20 19:55:09 +0200
commitafc201aaf8ebd15b72ac52138cd77c5000167d14 (patch)
tree33d65d234e4e7d8268c4e13cb718938661e74e6b /src/controls/Styles
parent2ab5962b7a8af8d63023b8118082b49c33493121 (diff)
downloadqtquickcontrols-afc201aaf8ebd15b72ac52138cd77c5000167d14.tar.gz
Make SpinBoxStyle public
While it is still not possible to completely configure the look and feel, I think we can expose it as is. Change-Id: If05004ffa4425863fc28094c8c52ba981296882a Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/controls/Styles')
-rw-r--r--src/controls/Styles/Base/SpinBoxStyle.qml17
-rw-r--r--src/controls/Styles/qmldir1
2 files changed, 16 insertions, 2 deletions
diff --git a/src/controls/Styles/Base/SpinBoxStyle.qml b/src/controls/Styles/Base/SpinBoxStyle.qml
index c1d137e1..a983efbe 100644
--- a/src/controls/Styles/Base/SpinBoxStyle.qml
+++ b/src/controls/Styles/Base/SpinBoxStyle.qml
@@ -43,11 +43,24 @@ import QtQuick.Controls.Private 1.0
/*!
\qmltype SpinBoxStyle
- \internal
\inqmlmodule QtQuick.Controls.Styles
- \since QtQuick.Controls.Styles 1.0
+ \since QtQuick.Controls.Styles 1.1
\ingroup controlsstyling
\brief Provides custom styling for SpinBox
+
+ Example:
+ \qml
+ SpinBox {
+ style: SpinBoxStyle{
+ background: Rectangle {
+ implicitWidth: 100
+ implicitHeight: 20
+ border.color: "gray"
+ radius: 2
+ }
+ }
+ }
+ \endqml
*/
Style {
diff --git a/src/controls/Styles/qmldir b/src/controls/Styles/qmldir
index 8080acaf..f291f3ff 100644
--- a/src/controls/Styles/qmldir
+++ b/src/controls/Styles/qmldir
@@ -7,6 +7,7 @@ ProgressBarStyle 1.0 Base/ProgressBarStyle.qml
RadioButtonStyle 1.0 Base/RadioButtonStyle.qml
ScrollViewStyle 1.0 Base/ScrollViewStyle.qml
SliderStyle 1.0 Base/SliderStyle.qml
+SpinBoxStyle 1.1 Base/SpinBoxStyle.qml
TabViewStyle 1.0 Base/TabViewStyle.qml
TableViewStyle 1.0 Base/TableViewStyle.qml
TextFieldStyle 1.0 Base/TextFieldStyle.qml