##// END OF EJS Templates
Adds dettimeaxisy to chartviewer
Adds dettimeaxisy to chartviewer

File last commit:

r2105:984dd120480b
r2126:569ff81434f6
Show More
chartpresenter.cpp
432 lines | 10.4 KiB | text/x-c | CppLexer
/ src / chartpresenter.cpp
Jani Honkonen
Add license headers
r794 /****************************************************************************
Michal Klocek
Fixes header guard style issues
r969 **
** Copyright (C) 2012 Digia Plc
** All rights reserved.
** For any questions to Digia, please use contact form at http://qt.digia.com
**
** This file is part of the Qt Commercial Charts Add-on.
**
** $QT_BEGIN_LICENSE$
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
** contact form at http://qt.digia.com
** $QT_END_LICENSE$
**
****************************************************************************/
#include "chartpresenter_p.h"
Michal Klocek
Refactored for MVP...
r139 #include "qchart.h"
Michal Klocek
Refactor qledgend handling...
r855 #include "qchart_p.h"
Michal Klocek
Refactors QAxis to QAbstractAxis...
r1541 #include "qabstractaxis.h"
Michal Klocek
Refactors core to support mulitpile axis and domains...
r1556 #include "qabstractaxis_p.h"
Michal Klocek
Refactors qchart , adds line animation...
r131 #include "chartdataset_p.h"
Michal Klocek
Refactor themes...
r143 #include "charttheme_p.h"
Michal Klocek
Refactors axis animation, line animations
r1241 #include "chartanimation_p.h"
Tero Ahola
Renamed QSeries to QAbstractSeries
r988 #include "qabstractseries_p.h"
Michal Klocek
Adds area chart...
r421 #include "qareaseries.h"
Michal Klocek
Changes QChartAxis -> QAxis
r1006 #include "chartaxis_p.h"
#include "chartbackground_p.h"
Michal Klocek
Refactors layout managment...
r1534 #include "chartlayout_p.h"
Michal Klocek
Refactors layout...
r1965 #include "charttitle_p.h"
Michal Klocek
Refactors axis animation, line animations
r1241 #include <QTimer>
Michal Klocek
Refactors qchart , adds line animation...
r131
QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Refactors layout:...
r2105 ChartPresenter::ChartPresenter(QChart* chart,ChartDataSet* dataset):QObject(chart),
m_chart(chart),
m_dataset(dataset),
m_chartTheme(0),
m_options(QChart::NoAnimation),
m_state(ShowState),
m_layout(new ChartLayout(this)),
m_background(0),
m_title(0)
Michal Klocek
Refactors qchart , adds line animation...
r131 {
Michal Klocek
Refactors axis animation, line animations
r1241
Michal Klocek
Refactors qchart , adds line animation...
r131 }
ChartPresenter::~ChartPresenter()
{
Michal Klocek
Fixes header guard style issues
r969 delete m_chartTheme;
Michal Klocek
Refactors qchart , adds line animation...
r131 }
Michal Klocek
Refactors layout:...
r2105 void ChartPresenter::handleAxisAdded(QAbstractAxis* axis,Domain* domain)
Michal Klocek
Refactors qchart , adds line animation...
r131 {
Michal Klocek
Refactors layout:...
r2105 ChartAxis* item = axis->d_ptr->createGraphics(this);
Michal Klocek
Refactors core to support mulitpile axis and domains...
r1556 item->setDomain(domain);
Michal Klocek
Adds animation settings handling
r298
Michal Klocek
Refactors layout:...
r2105 if(m_options.testFlag(QChart::GridAxisAnimations)){
Michal Klocek
Refactors axis animation, line animations
r1241 item->setAnimation(new AxisAnimation(item));
Michal Klocek
Refactors layout:...
r2105 }
Michal Klocek
Animation refactor...
r530
Michal Klocek
Refactors layout:...
r2105 QObject::connect(domain,SIGNAL(updated()),item,SLOT(handleDomainUpdated()));
QObject::connect(axis,SIGNAL(visibleChanged(bool)),this,SLOT(handleAxisVisibleChanged(bool)));
Michal Klocek
Refactors Domain and Axis...
r1698
Michal Klocek
Refactor domain model...
r439 //initialize
Michal Klocek
Refactors Domain and Axis...
r1698 domain->emitUpdated();
m_chartTheme->decorate(axis);
axis->d_ptr->setDirty(false);
axis->d_ptr->emitUpdated();
Tero Ahola
Now using either vertical or horizontal grid shades
r561 m_axisItems.insert(axis, item);
Michal Klocek
Add defualt show axis...
r1628 selectVisibleAxis();
Michal Klocek
Refactors layout:...
r2105 m_layout->invalidate();
Michal Klocek
Refactors axis handling...
r223 }
Michal Klocek
Refactors layout:...
r2105 void ChartPresenter::handleAxisRemoved(QAbstractAxis* axis)
Michal Klocek
Refactors axis handling...
r223 {
Michal Klocek
Refactors layout:...
r2105 ChartAxis* item = m_axisItems.take(axis);
Michal Klocek
Refactors axis handling...
r223 Q_ASSERT(item);
Michal Klocek
Add defualt show axis...
r1628 selectVisibleAxis();
Michal Klocek
Refactor Visibly methods of axis...
r1729 item->hide();
item->disconnect();
Michal Klocek
Refactors layout:...
r2105 QObject::disconnect(this,0,item,0);
sauimone
fixed bug in series deletion
r1562 item->deleteLater();
Michal Klocek
Refactors axis handling...
r223 }
Michal Klocek
Refactors layout:...
r2105 void ChartPresenter::handleSeriesAdded(QAbstractSeries* series,Domain* domain)
Michal Klocek
Refactors qchart , adds line animation...
r131 {
Michal Klocek
Refactors Chart to ChartElement
r1736 ChartElement *item = series->d_ptr->createGraphics(this);
Michal Klocek
Fixes header guard style issues
r969 Q_ASSERT(item);
Michal Klocek
Refactors core to support mulitpile axis and domains...
r1556 item->setDomain(domain);
Michal Klocek
Refactors layout:...
r2105 QObject::connect(domain,SIGNAL(updated()),item,SLOT(handleDomainUpdated()));
Michal Klocek
Fixes header guard style issues
r969 //initialize
Michal Klocek
Refactors Domain and Axis...
r1698 item->handleDomainUpdated();
Michal Klocek
Refactors layout:...
r2105 m_chartItems.insert(series,item);
m_layout->invalidate();
Michal Klocek
Refactors qchart , adds line animation...
r131 }
Michal Klocek
Refactors layout:...
r2105 void ChartPresenter::handleSeriesRemoved(QAbstractSeries* series)
Michal Klocek
Refactored for MVP...
r139 {
Michal Klocek
Refactors layout:...
r2105 ChartElement* item = m_chartItems.take(series);
Michal Klocek
Animation refactor...
r530 Q_ASSERT(item);
sauimone
fixed bug in series deletion
r1562 item->deleteLater();
Michal Klocek
Refactored for MVP...
r139 }
Michal Klocek
Refactors qchart , adds line animation...
r131
Michal Klocek
Add defualt show axis...
r1628 void ChartPresenter::selectVisibleAxis()
{
Michal Klocek
Refactors layout:...
r2105 QMapIterator<QAbstractAxis*, ChartAxis*> i(m_axisItems);
Michal Klocek
Add defualt show axis...
r1628
while (i.hasNext()) {
i.next();
Marek Rosa
Multiaxis support...
r2093 // i.key()->hide();
i.key()->show();
Michal Klocek
Add defualt show axis...
r1628 }
Marek Rosa
Multiaxis support...
r2093 // i.toFront();
Michal Klocek
Add defualt show axis...
r1628
Marek Rosa
Multiaxis support...
r2093 // bool axisX=false;
// bool axisY=false;
Michal Klocek
Add defualt show axis...
r1628
Marek Rosa
Multiaxis support...
r2093 // while (i.hasNext()) {
// i.next();
// if(i.key()->orientation()==Qt::Vertical && !axisY) {
// axisY=true;
// i.key()->show();
// }
// if(i.key()->orientation()==Qt::Horizontal && !axisX) {
// axisX=true;
// i.key()->show();
// }
Michal Klocek
Add defualt show axis...
r1628
Marek Rosa
Multiaxis support...
r2093 // }
Michal Klocek
Add defualt show axis...
r1628 }
Michal Klocek
Adds logic to fix overlaping axes
r1626
void ChartPresenter::handleAxisVisibleChanged(bool visible)
{
Michal Klocek
Refactors layout:...
r2105 QAbstractAxis* axis = static_cast<QAbstractAxis*> (sender());
Michal Klocek
Adds logic to fix overlaping axes
r1626 Q_ASSERT(axis);
Michal Klocek
Refactors layout:...
r2105 if(visible){
Michal Klocek
Adds logic to fix overlaping axes
r1626
Michal Klocek
Refactors layout:...
r2105 QMapIterator<QAbstractAxis*, ChartAxis*> i(m_axisItems);
Michal Klocek
Adds logic to fix overlaping axes
r1626
while (i.hasNext()) {
Michal Klocek
Refactors layout:...
r2105 i.next();
if(i.key()==axis) {
continue;
}
if(i.key()->orientation()==axis->orientation()) {
i.key()->setVisible(false);
}
Michal Klocek
Adds logic to fix overlaping axes
r1626 }
}
}
Michal Klocek
Refactors layout:...
r2105 void ChartPresenter::setTheme(QChart::ChartTheme theme,bool force)
Michal Klocek
Refactor themes...
r143 {
Michal Klocek
Refactors layout:...
r2105 if(m_chartTheme && m_chartTheme->id() == theme) return;
Michal Klocek
Refactor themes...
r143 delete m_chartTheme;
m_chartTheme = ChartTheme::createTheme(theme);
Michal Klocek
Refactor to use qseries private for implmentation interface...
r943 m_chartTheme->setForced(force);
m_chartTheme->decorate(m_chart);
m_chartTheme->decorate(m_chart->legend());
Michal Klocek
Adds scroll support...
r531 resetAllElements();
Jani Honkonen
Bugfix: Adding/removing slices erased users colors....
r1093
// We do not want "force" to stay on.
// Bar/pie are calling decorate when adding/removing slices/bars which means
// that to preserve users colors "force" must not be on.
m_chartTheme->setForced(false);
Michal Klocek
Adds more axis handling...
r176 }
Michal Klocek
Adds PIMPL to qchart
r740 QChart::ChartTheme ChartPresenter::theme()
Michal Klocek
Refactor themes...
r143 {
Michal Klocek
Adds missing ids to theme classes
r153 return m_chartTheme->id();
}
Michal Klocek
Adds animation settings handling
r298 void ChartPresenter::setAnimationOptions(QChart::AnimationOptions options)
{
Michal Klocek
Refactors layout:...
r2105 if(m_options!=options) {
m_options=options;
Michal Klocek
Adds scroll support...
r531 resetAllElements();
Michal Klocek
Adds animation settings handling
r298 }
Michal Klocek
Animation refactor...
r530
Michal Klocek
Adds animation settings handling
r298 }
Michal Klocek
Adds scroll support...
r531 void ChartPresenter::resetAllElements()
{
Michal Klocek
Refactors layout:...
r2105 QMapIterator<QAbstractAxis*, ChartAxis*> i(m_axisItems);
Michal Klocek
Refactors core to support mulitpile axis and domains...
r1556 while (i.hasNext()) {
Michal Klocek
Refactors layout:...
r2105 i.next();
Domain* domain = i.value()->domain();
QAbstractAxis* axis = i.key();
handleAxisRemoved(axis);
handleAxisAdded(axis,domain);
Michal Klocek
Fixes header guard style issues
r969 }
Michal Klocek
Refactors core to support mulitpile axis and domains...
r1556
Michal Klocek
Refactors layout:...
r2105 QMapIterator<QAbstractSeries*, ChartElement*> j(m_chartItems);
while (j.hasNext()) {
j.next();
Domain* domain = j.value()->domain();
QAbstractSeries* series = j.key();
handleSeriesRemoved(series);
handleSeriesAdded(series,domain);
}
Michal Klocek
Refactors layout...
r1965
Michal Klocek
Refactors layout:...
r2105 layout()->invalidate();
Michal Klocek
Adds scroll support...
r531 }
Jani Honkonen
Add gestures support for zoomlinechart example...
r1187 void ChartPresenter::zoomIn(qreal factor)
Michal Klocek
Refactor domain model...
r439 {
Michal Klocek
Refactors layout:...
r2105 QRectF rect = m_layout->chartsGeometry();
rect.setWidth(rect.width()/factor);
rect.setHeight(rect.height()/factor);
rect.moveCenter(m_layout->chartsGeometry().center());
Michal Klocek
Fixes header guard style issues
r969 zoomIn(rect);
Michal Klocek
Refactor domain model...
r439 }
Michal Klocek
Refactors layout:...
r2105 void ChartPresenter::zoomIn(const QRectF& rect)
Michal Klocek
Refactor domain model...
r439 {
Michal Klocek
Fixes header guard style issues
r969 QRectF r = rect.normalized();
Michal Klocek
Refactors layout:...
r2105 r.translate(-m_layout->chartsGeometry().topLeft());
Jani Honkonen
Add gestures support for zoomlinechart example...
r1187 if (!r.isValid())
return;
Michal Klocek
Fixes header guard style issues
r969
Michal Klocek
Refactors axis animation, line animations
r1241 m_state = ZoomInState;
Michal Klocek
Refactors layout:...
r2105 m_statePoint = QPointF(r.center().x()/m_layout->chartsGeometry().width(),r.center().y()/m_layout->chartsGeometry().height());
m_dataset->zoomInDomain(r,m_layout->chartsGeometry().size());
Michal Klocek
Refactors axis animation, line animations
r1241 m_state = ShowState;
Michal Klocek
Refactor domain model...
r439 }
Jani Honkonen
Add gestures support for zoomlinechart example...
r1187 void ChartPresenter::zoomOut(qreal factor)
Michal Klocek
Refactor domain model...
r439 {
Michal Klocek
Refactors axis animation, line animations
r1241 m_state = ZoomOutState;
Michal Klocek
Adds loosenumber algorithm...
r678
Jani Honkonen
Add gestures support for zoomlinechart example...
r1187 QRectF chartRect;
Michal Klocek
Refactors layout:...
r2105 chartRect.setSize(m_layout->chartsGeometry().size());
Michal Klocek
Adds loosenumber algorithm...
r678
Jani Honkonen
Add gestures support for zoomlinechart example...
r1187 QRectF rect;
Michal Klocek
Refactors layout:...
r2105 rect.setSize(chartRect.size()/factor);
Jani Honkonen
Add gestures support for zoomlinechart example...
r1187 rect.moveCenter(chartRect.center());
if (!rect.isValid())
return;
Michal Klocek
Refactors layout:...
r2105 m_statePoint = QPointF(rect.center().x()/m_layout->chartsGeometry().width(),rect.center().y()/m_layout->chartsGeometry().height());
Jani Honkonen
Add gestures support for zoomlinechart example...
r1187 m_dataset->zoomOutDomain(rect, chartRect.size());
Michal Klocek
Refactors axis animation, line animations
r1241 m_state = ShowState;
Michal Klocek
Refactor domain model...
r439 }
Michal Klocek
Refactors layout:...
r2105 void ChartPresenter::scroll(qreal dx,qreal dy)
Michal Klocek
Adds scroll support...
r531 {
Michal Klocek
Refactors layout:...
r2105 if(dx<0) m_state=ScrollLeftState;
if(dx>0) m_state=ScrollRightState;
if(dy<0) m_state=ScrollUpState;
if(dy>0) m_state=ScrollDownState;
Michal Klocek
Adds scroll support...
r531
Michal Klocek
Refactors layout:...
r2105 m_dataset->scrollDomain(dx,dy,m_layout->chartsGeometry().size());
Michal Klocek
Refactors axis animation, line animations
r1241 m_state = ShowState;
Michal Klocek
Adds scroll support...
r531 }
Michal Klocek
Adds animation settings handling
r298 QChart::AnimationOptions ChartPresenter::animationOptions() const
{
return m_options;
}
Michal Klocek
Refactors layout managment...
r1534 void ChartPresenter::createBackgroundItem()
Michal Klocek
Refactor qledgend handling...
r855 {
Michal Klocek
Refactors layout...
r1965 if (!m_background) {
m_background = new ChartBackground(rootItem());
m_background->setPen(Qt::NoPen);
m_background->setZValue(ChartPresenter::BackgroundZValue);
Michal Klocek
Refactors layout managment...
r1534 }
}
Michal Klocek
Refactor qledgend handling...
r855
Michal Klocek
Refactors layout managment...
r1534 void ChartPresenter::createTitleItem()
{
Michal Klocek
Refactors layout...
r1965 if (!m_title) {
m_title = new ChartTitle(rootItem());
m_title->setZValue(ChartPresenter::BackgroundZValue);
Michal Klocek
Refactors layout managment...
r1534 }
}
Tero Ahola
Added property definitions to QChart
r1524
Michal Klocek
Refactor qledgend handling...
r855
Michal Klocek
Refactors layout managment...
r1534 void ChartPresenter::handleAnimationFinished()
{
Michal Klocek
Refactors layout:...
r2105 m_animations.removeAll(qobject_cast<ChartAnimation*>(sender()));
if(m_animations.empty()) emit animationsFinished();
Michal Klocek
Refactors layout managment...
r1534 }
Michal Klocek
Refactor qledgend handling...
r855
Michal Klocek
Refactors layout:...
r2105 void ChartPresenter::startAnimation(ChartAnimation* animation)
Michal Klocek
Refactors layout managment...
r1534 {
Michal Klocek
Refactors layout:...
r2105 if (animation->state() != QAbstractAnimation::Stopped) animation->stop();
QObject::connect(animation, SIGNAL(finished()),this,SLOT(handleAnimationFinished()),Qt::UniqueConnection);
if(!m_animations.isEmpty()){
Michal Klocek
Refactors layout managment...
r1534 m_animations.append(animation);
Michal Klocek
Refactors layout:...
r2105 }
Michal Klocek
Refactors layout managment...
r1534 QTimer::singleShot(0, animation, SLOT(start()));
}
Michal Klocek
Refactor qledgend handling...
r855
Michal Klocek
Refactors layout:...
r2105 void ChartPresenter::setBackgroundBrush(const QBrush& brush)
Michal Klocek
Refactors layout managment...
r1534 {
createBackgroundItem();
Michal Klocek
Refactors layout...
r1965 m_background->setBrush(brush);
Michal Klocek
Refactors layout managment...
r1534 m_layout->invalidate();
}
Michal Klocek
Refactor qledgend handling...
r855
Michal Klocek
Refactors layout managment...
r1534 QBrush ChartPresenter::backgroundBrush() const
{
Michal Klocek
Refactors layout:...
r2105 if (!m_background) return QBrush();
Michal Klocek
Refactors layout...
r1965 return m_background->brush();
Michal Klocek
Refactors layout managment...
r1534 }
Michal Klocek
Refactor qledgend handling...
r855
Michal Klocek
Refactors layout:...
r2105 void ChartPresenter::setBackgroundPen(const QPen& pen)
Michal Klocek
Refactors layout managment...
r1534 {
createBackgroundItem();
Michal Klocek
Refactors layout...
r1965 m_background->setPen(pen);
Michal Klocek
Refactors layout managment...
r1534 m_layout->invalidate();
}
Michal Klocek
Refactor qledgend handling...
r855
Michal Klocek
Refactors layout managment...
r1534 QPen ChartPresenter::backgroundPen() const
{
Michal Klocek
Refactors layout:...
r2105 if (!m_background) return QPen();
Michal Klocek
Refactors layout...
r1965 return m_background->pen();
Michal Klocek
Refactors layout managment...
r1534 }
Michal Klocek
Add minimum size back to chartview and qchart
r913
Michal Klocek
Refactors layout:...
r2105 void ChartPresenter::setTitle(const QString& title)
Michal Klocek
Refactors layout managment...
r1534 {
createTitleItem();
Michal Klocek
Refactors layout...
r1965 m_title->setText(title);
Michal Klocek
Refactors layout managment...
r1534 m_layout->invalidate();
}
Michal Klocek
Add minimum size back to chartview and qchart
r913
Michal Klocek
Refactors layout managment...
r1534 QString ChartPresenter::title() const
{
Michal Klocek
Refactors layout:...
r2105 if (!m_title) return QString();
Michal Klocek
Refactors layout...
r1965 return m_title->text();
Michal Klocek
Refactors layout managment...
r1534 }
Michal Klocek
Refactor qledgend handling...
r855
Michal Klocek
Refactors layout:...
r2105 void ChartPresenter::setTitleFont(const QFont& font)
Michal Klocek
Refactors layout managment...
r1534 {
createTitleItem();
Michal Klocek
Refactors layout...
r1965 m_title->setFont(font);
Michal Klocek
Refactors layout managment...
r1534 m_layout->invalidate();
}
Michal Klocek
Refactor qledgend handling...
r855
Michal Klocek
Refactors layout managment...
r1534 QFont ChartPresenter::titleFont() const
{
Michal Klocek
Refactors layout:...
r2105 if (!m_title) return QFont();
Michal Klocek
Refactors layout...
r1965 return m_title->font();
Michal Klocek
Refactors layout managment...
r1534 }
Michal Klocek
Add minimum size back to chartview and qchart
r913
Michal Klocek
Refactors layout managment...
r1534 void ChartPresenter::setTitleBrush(const QBrush &brush)
{
createTitleItem();
Michal Klocek
Refactors layout...
r1965 m_title->setBrush(brush);
Michal Klocek
Refactors layout managment...
r1534 m_layout->invalidate();
}
Michal Klocek
Bugfixes for unnesery geometry changes
r869
Michal Klocek
Refactors layout managment...
r1534 QBrush ChartPresenter::titleBrush() const
{
Michal Klocek
Refactors layout:...
r2105 if (!m_title) return QBrush();
Michal Klocek
Refactors layout...
r1965 return m_title->brush();
Michal Klocek
Refactors layout managment...
r1534 }
void ChartPresenter::setBackgroundVisible(bool visible)
{
createBackgroundItem();
Michal Klocek
Refactors layout...
r1965 m_background->setVisible(visible);
Michal Klocek
Refactors layout managment...
r1534 }
Michal Klocek
Refactor , move dataset legend presentr connections to one place
r871
Michal Klocek
Refactor qledgend handling...
r855
Michal Klocek
Refactors layout managment...
r1534 bool ChartPresenter::isBackgroundVisible() const
{
Michal Klocek
Refactors layout:...
r2105 if (!m_background) return false;
Michal Klocek
Refactors layout...
r1965 return m_background->isVisible();
Michal Klocek
Refactor qledgend handling...
r855 }
Michal Klocek
Refactors layout managment...
r1534 void ChartPresenter::setBackgroundDropShadowEnabled(bool enabled)
Michal Klocek
Refactor qledgend handling...
r855 {
Michal Klocek
Refactors layout managment...
r1534 createBackgroundItem();
Michal Klocek
Refactors layout...
r1965 m_background->setDropShadowEnabled(enabled);
Michal Klocek
Refactor qledgend handling...
r855 }
Michal Klocek
Refactors layout managment...
r1534 bool ChartPresenter::isBackgroundDropShadowEnabled() const
Michal Klocek
Refactor qledgend handling...
r855 {
Michal Klocek
Refactors layout:...
r2105 if (!m_background) return false;
Michal Klocek
Refactors layout...
r1965 return m_background->isDropShadowEnabled();
Michal Klocek
Refactor qledgend handling...
r855 }
Michal Klocek
Refactor themes...
r143
Michal Klocek
Refactors layout managment...
r1534
Michal Klocek
Refactors layout:...
r2105 ChartLayout* ChartPresenter::layout()
Michal Klocek
Refactors axis animation, line animations
r1241 {
Michal Klocek
Refactors layout managment...
r1534 return m_layout;
Michal Klocek
Refactors axis animation, line animations
r1241 }
Michal Klocek
Refactors layout:...
r2105 QLegend* ChartPresenter::legend()
Michal Klocek
Refactors layout managment...
r1534 {
return m_chart->legend();
}
Michal Klocek
Refactors layout...
r1965 void ChartPresenter::setVisible(bool visible)
{
m_chart->setVisible(visible);
}
Michal Klocek
Refactors layout:...
r2105 ChartBackground* ChartPresenter::backgroundElement()
Michal Klocek
Refactors layout...
r1965 {
return m_background;
}
Michal Klocek
Refactors layout:...
r2105 QList<ChartAxis*> ChartPresenter::axisItems() const
Michal Klocek
Refactors layout managment...
r1534 {
return m_axisItems.values();
}
Michal Klocek
Refactors layout:...
r2105 QList<ChartElement*> ChartPresenter::chartItems() const
{
return m_chartItems.values();
}
ChartTitle* ChartPresenter::titleElement()
Michal Klocek
Refactors layout managment...
r1534 {
Michal Klocek
Refactors layout...
r1965 return m_title;
Michal Klocek
Refactors axis animation, line animations
r1241 }
Michal Klocek
Refactors qchart , adds line animation...
r131 #include "moc_chartpresenter_p.cpp"
QTCOMMERCIALCHART_END_NAMESPACE