diff options
author | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-11-28 06:40:59 +0200 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-11-28 08:10:29 +0200 |
commit | 5fde532408da5b6b3ddef13aff5e07f32015e7d9 (patch) | |
tree | 8a243126c37a92be3ca14734adc5074a9642c129 /src/datavisualization/engine/q3dsurface.cpp | |
parent | 964897e316c0fd524cba3a3cbb3c32fad53f965a (diff) |
Visual properties moved to theme
Task-number: QTRD-2632
Change-Id: I91eaa8fa26e232de24fe89ef0c8a2fc53f31fb8c
Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavisualization/engine/q3dsurface.cpp')
-rw-r--r-- | src/datavisualization/engine/q3dsurface.cpp | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/src/datavisualization/engine/q3dsurface.cpp b/src/datavisualization/engine/q3dsurface.cpp index a84a5ad6..22b671e1 100644 --- a/src/datavisualization/engine/q3dsurface.cpp +++ b/src/datavisualization/engine/q3dsurface.cpp @@ -101,22 +101,14 @@ Q3DSurface::Q3DSurface() d_ptr->m_shared->initializeOpenGL(); QObject::connect(d_ptr->m_shared, &Abstract3DController::selectionModeChanged, this, &Q3DSurface::selectionModeChanged); - QObject::connect(d_ptr->m_shared, &Abstract3DController::labelStyleChanged, this, - &Q3DSurface::labelStyleChanged); QObject::connect(d_ptr->m_shared, &Abstract3DController::themeChanged, this, &Q3DSurface::themeChanged); QObject::connect(d_ptr->m_shared, &Abstract3DController::shadowQualityChanged, this, &Q3DSurface::shadowQualityChanged); - QObject::connect(d_ptr->m_shared, &Abstract3DController::gridVisibleChanged, this, - &Q3DSurface::gridVisibleChanged); - QObject::connect(d_ptr->m_shared, &Abstract3DController::backgroundVisibleChanged, this, - &Q3DSurface::backgroundVisibleChanged); QObject::connect(d_ptr->m_shared, &Surface3DController::smoothSurfaceEnabledChanged, this, &Q3DSurface::smoothSurfaceEnabledChanged); QObject::connect(d_ptr->m_shared, &Surface3DController::surfaceGridEnabledChanged, this, &Q3DSurface::surfaceGridEnabledChanged); - QObject::connect(d_ptr->m_shared, &Abstract3DController::fontChanged, this, - &Q3DSurface::fontChanged); QObject::connect(d_ptr->m_shared, &Abstract3DController::needRender, this, &Q3DWindow::renderLater); } @@ -215,36 +207,6 @@ void Q3DSurface::resizeEvent(QResizeEvent *event) } /*! - * \property Q3DSurface::gridVisible - * - * Sets grid visibility to \a visible. It is preset to \c true by default. - */ -void Q3DSurface::setGridVisible(bool visible) -{ - d_ptr->m_shared->setGridEnabled(visible); -} - -bool Q3DSurface::isGridVisible() const -{ - return d_ptr->m_shared->gridEnabled(); -} - -/*! - * \property Q3DSurface::backgroundVisible - * - * Sets background visibility to \a visible. It is preset to \c true by default. - */ -void Q3DSurface::setBackgroundVisible(bool visible) -{ - d_ptr->m_shared->setBackgroundEnabled(visible); -} - -bool Q3DSurface::isBackgroundVisible() const -{ - return d_ptr->m_shared->backgroundEnabled(); -} - -/*! * \property Q3DSurface::theme * * TODO: Add docs @@ -346,21 +308,6 @@ QLinearGradient Q3DSurface::gradient() const } /*! - * \property Q3DSurface::font - * - * Sets the \a font for labels. It is preset to \c Arial by default. - */ -void Q3DSurface::setFont(const QFont &font) -{ - d_ptr->m_shared->setFont(font); -} - -QFont Q3DSurface::font() const -{ - return d_ptr->m_shared->font(); -} - -/*! * \property Q3DSurface::scene * * This property contains the read only Q3DScene that can be used to access, for example, a camera object. @@ -371,22 +318,6 @@ Q3DScene *Q3DSurface::scene() const } /*! - * \property Q3DSurface::labelStyle - * - * Sets label \a style to one of \c QDataVis::LabelStyle. It is preset to - * \c QDataVis::LabelStyleFromTheme by default. - */ -void Q3DSurface::setLabelStyle(QDataVis::LabelStyle style) -{ - d_ptr->m_shared->setLabelStyle(style); -} - -QDataVis::LabelStyle Q3DSurface::labelStyle() const -{ - return d_ptr->m_shared->labelStyle(); -} - -/*! * Sets a user-defined X-axis. Implicitly calls addAxis() to transfer ownership * of the \a axis to this graph. * |