Commit f31c8c1b authored by Jens Bache-Wiig's avatar Jens Bache-Wiig Committed by The Qt Project
Browse files

Replace backgroundColor with backgroundVisible


This exposes backgroundVisible to TableView and
replaces backgroundColor in TextArea.

We think the backgroundVisible is more flexible and allows us
to find a more appropriate solution to support palette in the
future.

Change-Id: Icfcd512c29cf030059c4ce2d32feb402d1a33662
Reviewed-by: default avatarCaroline Chao <caroline.chao@digia.com>
Reviewed-by: default avatarJ-P Nurmi <jpnurmi@digia.com>
parent 420bb714
Branches
Tags
No related merge requests found
Showing with 14 additions and 5 deletions
...@@ -123,6 +123,16 @@ ScrollView { ...@@ -123,6 +123,16 @@ ScrollView {
The default value is \c true. */ The default value is \c true. */
property bool headerVisible: true property bool headerVisible: true
/*! \qmlproperty bool TableView::backgroundVisible
This property determines if the background should be filled or not.
The default value is \c true.
\note The rowDelegate is not affected by this property
*/
property alias backgroundVisible: colorRect.visible
/*! This property defines a delegate to draw a specific cell. /*! This property defines a delegate to draw a specific cell.
In the item delegate you have access to the following special properties: In the item delegate you have access to the following special properties:
......
...@@ -599,14 +599,13 @@ ScrollView { ...@@ -599,14 +599,13 @@ ScrollView {
edit.undo(); edit.undo();
} }
/*! /*! \qmlproperty bool TextArea::backgroundVisible
\qmlproperty color TextArea::backgroundColor
This property sets the background color of the viewport. This property determines if the background should be filled or not.
The default value is the base color of the SystemPalette. The default value is \c true.
*/ */
property alias backgroundColor: colorRect.color property alias backgroundVisible: colorRect.visible
/*! \internal */ /*! \internal */
default property alias data: area.data default property alias data: area.data
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment