diff options
author | Titta Heikkala <titta.heikkala@theqtcompany.com> | 2015-09-14 10:46:29 +0300 |
---|---|---|
committer | Titta Heikkala <titta.heikkala@theqtcompany.com> | 2015-09-15 09:04:38 +0000 |
commit | 2db41b8cb90bf26d1c7b4021b730bcb1f8e6ac4c (patch) | |
tree | 327c83c6e9207f213325f03998510b187c886810 /src/charts/axis/chartaxiselement.cpp | |
parent | 3922a511f022703868f35f799349de4a96537e8b (diff) |
Added grid color property for value axis
Added possibility to set the color of the grid lines for value
axes.
Change-Id: I38b634410e7f1cb996d80f5ac1650a1be844ca01
Task-number: QTRD-3319
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
Diffstat (limited to 'src/charts/axis/chartaxiselement.cpp')
-rw-r--r-- | src/charts/axis/chartaxiselement.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/charts/axis/chartaxiselement.cpp b/src/charts/axis/chartaxiselement.cpp index 34d7e840..d8dcaad6 100644 --- a/src/charts/axis/chartaxiselement.cpp +++ b/src/charts/axis/chartaxiselement.cpp @@ -106,6 +106,10 @@ void ChartAxisElement::connectSlots() this, SLOT(handleMinorGridVisibleChanged(bool))); QObject::connect(axis(), SIGNAL(minorGridLinePenChanged(const QPen&)), this, SLOT(handleMinorGridPenChanged(const QPen&))); + QObject::connect(axis(), SIGNAL(gridLineColorChanged(const QColor&)), + this, SLOT(handleGridLineColorChanged(const QColor&))); + QObject::connect(axis(), SIGNAL(minorGridLineColorChanged(const QColor&)), + this, SLOT(handleMinorGridLineColorChanged(const QColor&))); if (axis()->type() == QAbstractAxis::AxisTypeCategory) { QCategoryAxis *categoryAxis = static_cast<QCategoryAxis *>(axis()); |