summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2014-06-12 12:58:22 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-06-12 15:08:43 +0200
commit94d3210b1b6c7ad16776a760e7299b0bf5cbfaf8 (patch)
tree9ff3f0a736e9eab65173a43cc055a66a1de5693b
parentd6b0dac2d2859e4f1c6f8bd0e147d16f43343784 (diff)
downloadqtquickcontrols-94d3210b1b6c7ad16776a760e7299b0bf5cbfaf8.tar.gz
CalendarStyle: make it possible to specify color of the separators
Change-Id: I4f2bf294f3965f1e244fe2e5a6c2e52904ad6a8b Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
-rw-r--r--src/controls/Styles/Base/CalendarStyle.qml10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/controls/Styles/Base/CalendarStyle.qml b/src/controls/Styles/Base/CalendarStyle.qml
index db007812..bbadf577 100644
--- a/src/controls/Styles/Base/CalendarStyle.qml
+++ b/src/controls/Styles/Base/CalendarStyle.qml
@@ -148,6 +148,12 @@ Style {
*/
property real __gridLineWidth: 1
+ /*! \internal */
+ property color __horizontalSeparatorColor: gridColor
+
+ /*! \internal */
+ property color __verticalSeparatorColor: gridColor
+
function __cellRectAt(index) {
return CalendarUtils.cellRectAt(index, control.__panel.columns, control.__panel.rows,
control.__panel.availableWidth, control.__panel.availableHeight, gridVisible ? __gridLineWidth : 0);
@@ -426,7 +432,7 @@ Style {
Rectangle {
id: topGridLine
- color: gridColor
+ color: __horizontalSeparatorColor
width: parent.width
height: __gridLineWidth
visible: gridVisible
@@ -482,7 +488,7 @@ Style {
anchors.bottom: weekNumbersItem.bottom
width: __gridLineWidth
- color: gridColor
+ color: __verticalSeparatorColor
visible: control.weekNumbersVisible
}