From 5fde532408da5b6b3ddef13aff5e07f32015e7d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Korpip=C3=A4=C3=A4?= Date: Thu, 28 Nov 2013 06:40:59 +0200 Subject: Visual properties moved to theme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task-number: QTRD-2632 Change-Id: I91eaa8fa26e232de24fe89ef0c8a2fc53f31fb8c Reviewed-by: Tomi Korpipää --- src/datavisualization/engine/q3dsurface.cpp | 69 ----------------------------- 1 file changed, 69 deletions(-) (limited to 'src/datavisualization/engine/q3dsurface.cpp') 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); } @@ -214,36 +206,6 @@ void Q3DSurface::resizeEvent(QResizeEvent *event) d_ptr->m_shared->setHeight(height()); } -/*! - * \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 * @@ -345,21 +307,6 @@ QLinearGradient Q3DSurface::gradient() const return d_ptr->m_shared->gradient(); } -/*! - * \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 * @@ -370,22 +317,6 @@ Q3DScene *Q3DSurface::scene() const return d_ptr->m_shared->scene(); } -/*! - * \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. -- cgit v1.2.3