##// END OF EJS Templates
Clear chart image to transparent when necessary....
Clear chart image to transparent when necessary. If there is any transparency in the background, image clear should be done every time chart is rendered to avoid artifacts from previous render. Background shape change also triggers the clear, but that is needed only once. Change-Id: If0a762d2e2e01cf3a94a5d2f6845613deb619bdd Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>

File last commit:

r2845:ae12522d475c
r2850:57e4c71e5532
Show More
chartelement.cpp
68 lines | 1.6 KiB | text/x-c | CppLexer
Titta Heikkala
Updated license headers...
r2845 /******************************************************************************
Jani Honkonen
Add license headers
r794 **
Titta Heikkala
Updated license headers...
r2845 ** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
Jani Honkonen
Add license headers
r794 **
Titta Heikkala
Updated license headers...
r2740 ** This file is part of the Qt Charts module.
Jani Honkonen
Add license headers
r794 **
Titta Heikkala
Updated license headers...
r2845 ** $QT_BEGIN_LICENSE:COMM$
Jani Honkonen
Add license headers
r794 **
Titta Heikkala
Updated license headers...
r2845 ** 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 The Qt Company. For licensing terms
** and conditions see http://www.qt.io/terms-conditions. For further
** information use the contact form at http://www.qt.io/contact-us.
Jani Honkonen
Add license headers
r794 **
Titta Heikkala
Updated license headers...
r2845 ** $QT_END_LICENSE$
**
******************************************************************************/
Jani Honkonen
Add license headers
r794
Titta Heikkala
Fix include syntax...
r2714 #include <private/chartelement_p.h>
#include <private/chartpresenter_p.h>
#include <private/abstractdomain_p.h>
Miikka Heikkinen
Accelerating lineseries with OpenGL...
r2820 #include <private/chartdataset_p.h>
Michal Klocek
Add missing files from previous commit
r680
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_BEGIN_NAMESPACE
Michal Klocek
Add missing files from previous commit
r680
Michal Klocek
Refactors internals...
r2273 ChartElement::ChartElement(QGraphicsItem* item):
QGraphicsObject(item),
m_presenter(0),
Miikka Heikkinen
Accelerating lineseries with OpenGL...
r2820 m_themeManager(0),
m_dataSet(0)
Michal Klocek
Add missing files from previous commit
r680 {
Michal Klocek
Refactors internals...
r2273
Tero Ahola
Internal review: Removed extra semicolons
r760 }
Michal Klocek
Add missing files from previous commit
r680
Michal Klocek
Refactors Chart to ChartElement
r1736 void ChartElement::setPresenter(ChartPresenter *presenter)
Michal Klocek
Refactors animation handling for xyseries
r1217 {
Jani Honkonen
astyle and manual coding style fixes for src-folder
r2097 m_presenter = presenter;
Michal Klocek
Refactors animation handling for xyseries
r1217 }
Jani Honkonen
more coding style fixes for src-folder...
r2104 ChartPresenter *ChartElement::presenter() const
Michal Klocek
Add missing files from previous commit
r680 {
return m_presenter;
}
Michal Klocek
Refactors internals...
r2273 void ChartElement::setThemeManager(ChartThemeManager *manager)
Michal Klocek
Add missing files from previous commit
r680 {
Michal Klocek
Refactors internals...
r2273 m_themeManager = manager;
Michal Klocek
Add missing files from previous commit
r680 }
Michal Klocek
Refactors internals...
r2273 ChartThemeManager* ChartElement::themeManager() const
Michal Klocek
Refactors Domain and Axis...
r1698 {
Michal Klocek
Refactors internals...
r2273 return m_themeManager;
Michal Klocek
Refactors Domain and Axis...
r1698 }
Miikka Heikkinen
Accelerating lineseries with OpenGL...
r2820 void ChartElement::setDataSet(ChartDataSet *dataSet)
{
m_dataSet = dataSet;
}
ChartDataSet *ChartElement::dataSet() const
{
return m_dataSet;
}
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_END_NAMESPACE