summaryrefslogtreecommitdiffstats
path: root/src/datavis3d/axis/qcategoryaxis.h
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2013-06-25 13:17:44 +0300
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2013-06-25 13:45:48 +0300
commitbb1c0b074db0cf6dbf4815f310b349e64e5422df (patch)
treee07fd7d4cb23ff0e5863a872449478b52eaf64e9 /src/datavis3d/axis/qcategoryaxis.h
parenta2d8a5ae5a4b0f50ac420f713cce4cd7d9e1a024 (diff)
Axis abstraction
Axis related data is now stored in separate axis classes, but have not yet been exposed beyond QDataSet. Also contains unrelated gitignore change Change-Id: I130ee6557accfab672d5014f47bb74be08e6feef Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavis3d/axis/qcategoryaxis.h')
-rw-r--r--src/datavis3d/axis/qcategoryaxis.h64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/datavis3d/axis/qcategoryaxis.h b/src/datavis3d/axis/qcategoryaxis.h
new file mode 100644
index 00000000..e66b397f
--- /dev/null
+++ b/src/datavis3d/axis/qcategoryaxis.h
@@ -0,0 +1,64 @@
+/****************************************************************************
+**
+** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
+** Contact: http://www.qt-project.org/legal
+**
+** This file is part of the QtDataVis3D module.
+**
+** $QT_BEGIN_LICENSE:LGPL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and Digia. For licensing terms and
+** conditions see http://qt.digia.com/licensing. For further information
+** use the contact form at http://qt.digia.com/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 2.1 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 2.1 requirements
+** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
+**
+** In addition, as a special exception, Digia gives you certain additional
+** rights. These rights are described in the Digia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 3.0 as published by the Free Software
+** Foundation and appearing in the file LICENSE.GPL included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 3.0 requirements will be
+** met: http://www.gnu.org/copyleft/gpl.html.
+**
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+#ifndef QCATEGORYAXIS_H
+#define QCATEGORYAXIS_H
+
+#include "qabstractaxis.h"
+
+QT_DATAVIS3D_BEGIN_NAMESPACE
+
+class QT_DATAVIS3D_EXPORT QCategoryAxis : public QAbstractAxis
+{
+ Q_OBJECT
+public:
+ explicit QCategoryAxis(QObject *parent = 0);
+ ~QCategoryAxis();
+
+ void setLabels(const QVector<QString> &labels);
+
+private:
+ Q_DISABLE_COPY(QCategoryAxis)
+};
+
+QT_DATAVIS3D_END_NAMESPACE
+
+#endif // QCATEGORYAXIS_H