summaryrefslogtreecommitdiffstats
path: root/src/datavis3d/engine/bars3dcontroller.cpp
diff options
context:
space:
mode:
authorTomi Korpipää <tomi.korpipaa@digia.com>2013-08-14 13:50:52 +0300
committerTomi Korpipää <tomi.korpipaa@digia.com>2013-08-14 13:52:21 +0300
commit3b7fb533df9212df76c7c90a067ae3a3219b003a (patch)
treeeef561dcf6cdf9319a74e78d615bb210620383f3 /src/datavis3d/engine/bars3dcontroller.cpp
parent31714127f9ad60bd3f0fc4ea29531f759503241d (diff)
Enums moved to a class to be usable from QML and C++
Task-number: QTRD-2126 Change-Id: I280047cc7101292d17111babb7735c03436a40f4 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Diffstat (limited to 'src/datavis3d/engine/bars3dcontroller.cpp')
-rw-r--r--src/datavis3d/engine/bars3dcontroller.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/datavis3d/engine/bars3dcontroller.cpp b/src/datavis3d/engine/bars3dcontroller.cpp
index 0a48f0ed..4394c133 100644
--- a/src/datavis3d/engine/bars3dcontroller.cpp
+++ b/src/datavis3d/engine/bars3dcontroller.cpp
@@ -40,7 +40,7 @@ Bars3dController::Bars3dController(QRect boundRect)
m_columnCount(0),
m_mouseState(MouseNone),
m_mousePos(QPoint(0, 0)),
- m_selectionMode(ModeItem),
+ m_selectionMode(QDataVis::ModeItem),
m_isSlicingActivated(false),
m_isBarSpecRelative(true),
m_barThickness(QSizeF(0.75f, 0.75f)),
@@ -349,29 +349,29 @@ QString Bars3dController::objFile()
return m_objFile;
}
-void Bars3dController::setBarType(MeshStyle style, bool smooth)
+void Bars3dController::setBarType(QDataVis::MeshStyle style, bool smooth)
{
- if (style == Bars) {
+ if (style == QDataVis::Bars) {
if (smooth)
m_objFile = QStringLiteral(":/defaultMeshes/barSmooth");
else
m_objFile = QStringLiteral(":/defaultMeshes/bar");
- } else if (style == Pyramids) {
+ } else if (style == QDataVis::Pyramids) {
if (smooth)
m_objFile = QStringLiteral(":/defaultMeshes/pyramidSmooth");
else
m_objFile = QStringLiteral(":/defaultMeshes/pyramid");
- } else if (style == Cones) {
+ } else if (style == QDataVis::Cones) {
if (smooth)
m_objFile = QStringLiteral(":/defaultMeshes/coneSmooth");
else
m_objFile = QStringLiteral(":/defaultMeshes/cone");
- } else if (style == Cylinders) {
+ } else if (style == QDataVis::Cylinders) {
if (smooth)
m_objFile = QStringLiteral(":/defaultMeshes/cylinderSmooth");
else
m_objFile = QStringLiteral(":/defaultMeshes/cylinder");
- } else if (style == BevelBars) {
+ } else if (style == QDataVis::BevelBars) {
if (smooth)
m_objFile = QStringLiteral(":/defaultMeshes/bevelbarSmooth");
else
@@ -403,7 +403,7 @@ void Bars3dController::setupSampleSpace(int rowCount, int columnCount)
}
-void Bars3dController::setSelectionMode(SelectionMode mode)
+void Bars3dController::setSelectionMode(QDataVis::SelectionMode mode)
{
m_selectionMode = mode;
// Disable zoom if selection mode changes
@@ -416,7 +416,7 @@ QPoint Bars3dController::mousePosition()
return m_mousePos;
}
-SelectionMode Bars3dController::selectionMode()
+QDataVis::SelectionMode Bars3dController::selectionMode()
{
return m_selectionMode;
}