summaryrefslogtreecommitdiffstats
path: root/src/datavis3d/axis/q3dvalueaxis_p.h
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2013-09-04 12:46:41 +0300
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2013-09-04 13:04:35 +0300
commit8122450d4f17781a35ec595c846e05c4c1af394c (patch)
tree9b5711f08f419d1b9ae2393c7e8e49cdd4834eab /src/datavis3d/axis/q3dvalueaxis_p.h
parent4d453a939850638fa17b44b91d10b31acde10acd (diff)
Rename axes to avoid conflicts with Charts
+ Some doc fixes. Task-number: QTRD-2214 Change-Id: Idecec749a76ef6a5d84857d1396f25be3ef017ca Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavis3d/axis/q3dvalueaxis_p.h')
-rw-r--r--src/datavis3d/axis/q3dvalueaxis_p.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/src/datavis3d/axis/q3dvalueaxis_p.h b/src/datavis3d/axis/q3dvalueaxis_p.h
new file mode 100644
index 00000000..823983aa
--- /dev/null
+++ b/src/datavis3d/axis/q3dvalueaxis_p.h
@@ -0,0 +1,69 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc
+** All rights reserved.
+** For any questions to Digia, please use contact form at http://qt.digia.com
+**
+** This file is part of the QtDataVis3D module.
+**
+** Licensees holding valid Qt Enterprise licenses may use this file in
+** accordance with the Qt Enterprise License Agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia.
+**
+** If you have questions regarding the use of this file, please use
+** contact form at http://qt.digia.com
+**
+****************************************************************************/
+
+//
+// W A R N I N G
+// -------------
+//
+// This file is not part of the QtDataVis3D API. It exists purely as an
+// implementation detail. This header file may change from version to
+// version without notice, or even be removed.
+//
+// We mean it.
+
+#include "q3dvalueaxis.h"
+#include "q3dabstractaxis_p.h"
+
+#ifndef QVALUEAXIS_P_H
+#define QVALUEAXIS_P_H
+
+QT_DATAVIS3D_BEGIN_NAMESPACE
+
+class Q3DValueAxisPrivate : public Q3DAbstractAxisPrivate
+{
+ Q_OBJECT
+
+public:
+ Q3DValueAxisPrivate(Q3DValueAxis *q);
+ virtual ~Q3DValueAxisPrivate();
+
+ void setRange(qreal min, qreal max);
+ void setMin(qreal min);
+ void setMax (qreal max);
+
+protected:
+ void emitLabelsChanged();
+ virtual void updateLabels();
+
+ qreal m_min;
+ qreal m_max;
+ int m_segmentCount;
+ int m_subSegmentCount;
+ bool m_autoAdjust;
+ QString m_labelFormat;
+ bool m_labelsDirty;
+
+private:
+ Q3DValueAxis *qptr();
+
+ friend class Q3DValueAxis;
+};
+
+QT_DATAVIS3D_END_NAMESPACE
+
+#endif // QVALUEAXIS_P_H