diff options
| author | J-P Nurmi <jpnurmi@digia.com> | 2013-08-20 16:13:12 +0200 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-08-20 16:35:27 +0200 |
| commit | 09b0cb956940f45deaf35392630bd05453558d43 (patch) | |
| tree | 62701f4b600ec4934aafd2d2b1761eecd7607ff1 | |
| parent | 3e8dd6cc1da45704c0b05e5350f408ac62ce3bb2 (diff) | |
| download | qtquickcontrols-09b0cb956940f45deaf35392630bd05453558d43.tar.gz | |
Base style: respect control.backgroundVisible for TableView & TextArea
Task-number: QTBUG-33085
Change-Id: Id9da78ca903f7205d5d493becbd62fd7672082c5
Reviewed-by: Jens Bache-Wiig <jens.bache-wiig@digia.com>
| -rw-r--r-- | src/styles/Base/ScrollViewStyle.qml | 2 | ||||
| -rw-r--r-- | src/styles/Base/TableViewStyle.qml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/styles/Base/ScrollViewStyle.qml b/src/styles/Base/ScrollViewStyle.qml index ed7dd171..e8df1a55 100644 --- a/src/styles/Base/ScrollViewStyle.qml +++ b/src/styles/Base/ScrollViewStyle.qml @@ -71,7 +71,7 @@ Style { /*! This Component paints the frame around scroll bars. */ property Component frame: Rectangle { - color: "white" + color: control["backgroundVisible"] ? "white": "transparent" border.color: "#999" border.width: 1 radius: 1 diff --git a/src/styles/Base/TableViewStyle.qml b/src/styles/Base/TableViewStyle.qml index 4484f1c9..dd47f7ca 100644 --- a/src/styles/Base/TableViewStyle.qml +++ b/src/styles/Base/TableViewStyle.qml @@ -61,7 +61,7 @@ ScrollViewStyle { property color textColor: __syspal.text /*! The background color. */ - property color backgroundColor: __syspal.base + property color backgroundColor: control.backgroundVisible ? __syspal.base : "transparent" /*! The alternate background color. */ property color alternateBackgroundColor: Qt.darker(__syspal.base, 1.06) |
