diff --git a/demos/qmlcustommodel/qml/qmlcustommodel/main.qml b/demos/qmlcustommodel/qml/qmlcustommodel/main.qml index 89b0989..1b3eeb6 100644 --- a/demos/qmlcustommodel/qml/qmlcustommodel/main.qml +++ b/demos/qmlcustommodel/qml/qmlcustommodel/main.qml @@ -37,12 +37,14 @@ Rectangle { categories: ["2007", "2008", "2009", "2010", "2011", "2012", "2013", "2014" ] min: "2007" max: "2014" + title: "Year" } ValueAxis { id: valueAxis min: 0 max: 60 + title: "Sales count [ku]" } // ... //![1] diff --git a/src/axis/qabstractaxis.h b/src/axis/qabstractaxis.h index 37b3c2e..7e2f33a 100644 --- a/src/axis/qabstractaxis.h +++ b/src/axis/qabstractaxis.h @@ -44,6 +44,9 @@ class QTCOMMERCIALCHART_EXPORT QAbstractAxis : public QObject Q_PROPERTY(bool shadesVisible READ shadesVisible WRITE setShadesVisible NOTIFY shadesVisibleChanged) Q_PROPERTY(QColor shadesColor READ shadesColor WRITE setShadesColor NOTIFY shadesColorChanged) Q_PROPERTY(QColor shadesBorderColor READ shadesBorderColor WRITE setShadesBorderColor NOTIFY shadesBorderColorChanged) + Q_PROPERTY(bool titleVisible READ titleVisible WRITE setTitleVisible) + Q_PROPERTY(QFont titleFont READ titleFont WRITE setTitleFont) + Q_PROPERTY(QString title READ title WRITE setTitle) public: