From 92ee7767f81f7a15b8773ed97356f01ecac68d0c Mon Sep 17 00:00:00 2001 From: Miikka Heikkinen Date: Fri, 16 May 2014 15:26:14 +0300 Subject: Implement axis label autorotation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QTRD-2857 Change-Id: I158abb75272813cf7eb5d4b419e24325389d940e Reviewed-by: Tomi Korpipää --- src/datavisualization/engine/abstract3dcontroller_p.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/datavisualization/engine/abstract3dcontroller_p.h') diff --git a/src/datavisualization/engine/abstract3dcontroller_p.h b/src/datavisualization/engine/abstract3dcontroller_p.h index bd78b6fa..e1b266ce 100644 --- a/src/datavisualization/engine/abstract3dcontroller_p.h +++ b/src/datavisualization/engine/abstract3dcontroller_p.h @@ -83,6 +83,9 @@ struct Abstract3DChangeBitField { bool axisYFormatterChanged : 1; bool axisZFormatterChanged : 1; bool projectionChanged : 1; + bool axisXLabelAutoRotationChanged : 1; + bool axisYLabelAutoRotationChanged : 1; + bool axisZLabelAutoRotationChanged : 1; Abstract3DChangeBitField() : zoomLevelChanged(true), @@ -117,7 +120,10 @@ struct Abstract3DChangeBitField { axisXFormatterChanged(true), axisYFormatterChanged(true), axisZFormatterChanged(true), - projectionChanged(true) + projectionChanged(true), + axisXLabelAutoRotationChanged(true), + axisYLabelAutoRotationChanged(true), + axisZLabelAutoRotationChanged(true) { } }; @@ -276,6 +282,7 @@ public: virtual void handleAxisLabelFormatChangedBySender(QObject *sender); virtual void handleAxisReversedChangedBySender(QObject *sender); virtual void handleAxisFormatterDirtyBySender(QObject *sender); + virtual void handleAxisLabelAutoRotationChangedBySender(QObject *sender); virtual void handleSeriesVisibilityChangedBySender(QObject *sender); virtual void handlePendingClick() = 0; virtual void adjustAxisRanges() = 0; @@ -292,6 +299,7 @@ public slots: void handleAxisLabelFormatChanged(const QString &format); void handleAxisReversedChanged(bool enable); void handleAxisFormatterDirty(); + void handleAxisLabelAutoRotationChanged(float angle); void handleInputViewChanged(QAbstract3DInputHandler::InputView view); void handleInputPositionChanged(const QPoint &position); void handleSeriesVisibilityChanged(bool visible); -- cgit v1.2.3