diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2013-12-09 10:49:49 +0200 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@digia.com> | 2013-12-10 09:01:45 +0200 |
commit | 3573055abe42ff283d011d8550bc8495156338a1 (patch) | |
tree | bb45d4f7e32a0c63329d9f52639081162b34e17e /src/datavisualization/engine/q3dbars.cpp | |
parent | 22557b312570cbefde584466a28f2b9bfcc570ba (diff) |
Move series specific visual elements to series, part 4
Colors to series
- Multiselection labels in bar slices still buggy
- Selection in bars doesn't work correctly if not all
series have items in that grid
Task-number: QTRD-2557
Change-Id: Icd38428e5337a26b8410476104bb1f1f784cdc7f
Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'src/datavisualization/engine/q3dbars.cpp')
-rw-r--r-- | src/datavisualization/engine/q3dbars.cpp | 143 |
1 files changed, 0 insertions, 143 deletions
diff --git a/src/datavisualization/engine/q3dbars.cpp b/src/datavisualization/engine/q3dbars.cpp index 1eece537..d84b0cac 100644 --- a/src/datavisualization/engine/q3dbars.cpp +++ b/src/datavisualization/engine/q3dbars.cpp @@ -108,20 +108,6 @@ Q3DBars::Q3DBars() &Q3DBars::shadowQualityChanged); QObject::connect(d_ptr->m_shared, &Abstract3DController::themeChanged, this, &Q3DBars::themeChanged); - QObject::connect(d_ptr->m_shared, &Abstract3DController::colorStyleChanged, this, - &Q3DBars::colorStyleChanged); - QObject::connect(d_ptr->m_shared, &Abstract3DController::objectColorChanged, this, - &Q3DBars::barColorChanged); - QObject::connect(d_ptr->m_shared, &Abstract3DController::objectGradientChanged, this, - &Q3DBars::barGradientChanged); - QObject::connect(d_ptr->m_shared, &Abstract3DController::singleHighlightColorChanged, this, - &Q3DBars::singleHighlightColorChanged); - QObject::connect(d_ptr->m_shared, &Abstract3DController::singleHighlightGradientChanged, this, - &Q3DBars::singleHighlightGradientChanged); - QObject::connect(d_ptr->m_shared, &Abstract3DController::multiHighlightColorChanged, this, - &Q3DBars::multiHighlightColorChanged); - QObject::connect(d_ptr->m_shared, &Abstract3DController::multiHighlightGradientChanged, this, - &Q3DBars::multiHighlightGradientChanged); QObject::connect(d_ptr->m_shared, &Abstract3DController::needRender, this, &Q3DWindow::renderLater); } @@ -361,135 +347,6 @@ QDataVis::ShadowQuality Q3DBars::shadowQuality() const } /*! - * \property Q3DBars::colorStyle - * - * Sets the color \a style used to render bars. - * Defaults to true. - * - * \sa barColor, barGradient - */ -void Q3DBars::setColorStyle(Q3DTheme::ColorStyle style) -{ - d_ptr->m_shared->setColorStyle(style); -} - -Q3DTheme::ColorStyle Q3DBars::colorStyle() const -{ - return d_ptr->m_shared->colorStyle(); -} - -/*! - * \property Q3DBars::barColor - * - * Set bar color to the \a color for this set. Overrides any previously set bar gradient for this - * set, as well as any bar gradient or color from the theme. - * - * \sa theme, barGradient - */ -void Q3DBars::setBarColor(const QColor &color) -{ - d_ptr->m_shared->setBaseColor(color); -} - -QColor Q3DBars::barColor() const -{ - return d_ptr->m_shared->baseColor(); -} - -/*! - * \property Q3DBars::barGradient - * - * Set bar gradient to the \a gradient for this set. Overrides any previously set bar color for this - * set, as well as any bar gradient or color from the theme. - * - * \sa theme, barColor, colorStyle - */ -void Q3DBars::setBarGradient(const QLinearGradient &gradient) -{ - d_ptr->m_shared->setBaseGradient(gradient); -} - -QLinearGradient Q3DBars::barGradient() const -{ - return d_ptr->m_shared->baseGradient(); -} - -/*! - * \property Q3DBars::singleHighlightColor - * - * Set single bar highlight color to the \a color for this set. Overrides any previously set single - * bar highlight gradient for this set, as well as any single bar highlight gradient or color from the theme. - * - * \sa theme, singleHighlightGradient - */ -void Q3DBars::setSingleHighlightColor(const QColor &color) -{ - d_ptr->m_shared->setSingleHighlightColor(color); -} - -QColor Q3DBars::singleHighlightColor() const -{ - return d_ptr->m_shared->singleHighlightColor(); -} - -/*! - * \property Q3DBars::singleHighlightGradient - * - * Set single bar highlight gradient to the \a gradient for this set. - * Overrides any previously set single bar highlight color for this - * set, as well as any single bar highlight gradient or color from the theme. - * - * \sa theme, singleHighlightColor, colorStyle - */ -void Q3DBars::setSingleHighlightGradient(const QLinearGradient &gradient) -{ - d_ptr->m_shared->setSingleHighlightGradient(gradient); -} - -QLinearGradient Q3DBars::singleHighlightGradient() const -{ - return d_ptr->m_shared->singleHighlightGradient(); -} - -/*! - * \property Q3DBars::multiHighlightColor - * - * Set multiple bar highlight (e.g. row/column highlight) color to the \a color for this set. - * Overrides any previously set multiple bar highlight gradient for this set, as well as any - * multiple bar highlight gradient or color from the theme. - * - * \sa theme, multiHighlightGradient - */ -void Q3DBars::setMultiHighlightColor(const QColor &color) -{ - d_ptr->m_shared->setMultiHighlightColor(color); -} - -QColor Q3DBars::multiHighlightColor() const -{ - return d_ptr->m_shared->multiHighlightColor(); -} - -/*! - * \property Q3DBars::multiHighlightGradient - * - * Set multiple bar highlight (e.g. row/column highlight) gradient to the \a gradient for this set. - * Overrides any previously set multiple bar highlight color for this - * set, as well as any multiple bar highlight gradient or color from the theme. - * - * \sa theme, multiHighlightColor, colorStyle - */ -void Q3DBars::setMultiHighlightGradient(const QLinearGradient &gradient) -{ - d_ptr->m_shared->setMultiHighlightGradient(gradient); -} - -QLinearGradient Q3DBars::multiHighlightGradient() const -{ - return d_ptr->m_shared->multiHighlightGradient(); -} - -/*! * Sets a user-defined row \a axis. Implicitly calls addAxis() to transfer ownership of * the \a axis to this graph. * |