##// END OF EJS Templates
Removed resize hack from chartwidgettest theme change
Removed resize hack from chartwidgettest theme change

File last commit:

r794:4c76de65bbac
r824:921979357fc9
Show More
areachartitem_p.h
92 lines | 2.3 KiB | text/x-c | CLexer
Jani Honkonen
Add license headers
r794 /****************************************************************************
**
** 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$
**
****************************************************************************/
Michal Klocek
Adds area chart...
r421 #ifndef AREACHARTITEM_H
#define AREACHARTITEM_H
#include "qchartglobal.h"
#include "linechartitem_p.h"
#include <QPen>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QAreaSeries;
class AreaChartItem;
Michal Klocek
Release compilation fixes
r689 class AreaChartItem : public ChartItem
Michal Klocek
Adds area chart...
r421 {
Q_OBJECT
public:
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 AreaChartItem(QAreaSeries *areaSeries, ChartPresenter *presenter);
Tero Ahola
Internal review: fixed minor issues in Area and XySeries
r761 ~AreaChartItem();
Michal Klocek
Adds area chart...
r421
//from QGraphicsItem
QRectF boundingRect() const;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
QPainterPath shape() const;
Tero Ahola
Internal review: Removed extra semicolons
r760 LineChartItem* upperLineItem() const { return m_upper; }
LineChartItem* lowerLineItem() const { return m_lower; }
Michal Klocek
Adds area chart animations...
r560
Michal Klocek
Adds area chart...
r421 void updatePath();
Michal Klocek
Refactors click signal to line,area,spline,scatter charts
r571
protected:
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 void mousePressEvent(QGraphicsSceneMouseEvent *event);
Michal Klocek
Refactors click signal to line,area,spline,scatter charts
r571
sauimone
Q_SIGNALS and Q_SLOTS
r775 Q_SIGNALS:
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 void clicked(const QPointF &point);
Michal Klocek
Refactors click signal to line,area,spline,scatter charts
r571
sauimone
Q_SIGNALS and Q_SLOTS
r775 public Q_SLOTS:
Michal Klocek
Adds area chart...
r421 void handleUpdated();
Michal Klocek
Refactor domain model...
r439 void handleDomainChanged(qreal minX, qreal maxX, qreal minY, qreal maxY);
sauimone
minor code review issues. indent, spaces, brackets etc.
r743 void handleGeometryChanged(const QRectF &size);
Michal Klocek
Adds area chart...
r421
private:
QAreaSeries* m_series;
LineChartItem* m_upper;
LineChartItem* m_lower;
Michal Klocek
Refactor domain model...
r439 QPainterPath m_path;
Michal Klocek
Adds area chart...
r421 QRectF m_rect;
QRectF m_clipRect;
Michal Klocek
Adds visiblePoints handling to area chart
r563 QPen m_linePen;
QPen m_pointPen;
Michal Klocek
Adds area chart...
r421 QBrush m_brush;
Michal Klocek
Adds visiblePoints handling to area chart
r563 bool m_pointsVisible;
Michal Klocek
Adds area chart...
r421 };
class AreaBoundItem : public LineChartItem
{
public:
Tero Ahola
Internal review: Removed extra semicolons
r760 AreaBoundItem(AreaChartItem *item,QLineSeries *lineSeries) : LineChartItem(lineSeries, 0), m_item(item) {}
Tero Ahola
Internal review: fixed minor issues in Area and XySeries
r761 ~AreaBoundItem() {}
Michal Klocek
Adds area chart...
r421
Tero Ahola
Internal review: Removed extra semicolons
r760 void setLayout(QVector<QPointF> &points) {
Michal Klocek
Unify naming setGeometry -> setLayout
r557 LineChartItem::setLayout(points);
Michal Klocek
Adds area chart...
r421 m_item->updatePath();
}
private:
AreaChartItem* m_item;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif