qareaseries.h
71 lines
| 1.8 KiB
| text/x-c
|
CLexer
|
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$ | ||||
** | ||||
****************************************************************************/ | ||||
|
r969 | #ifndef QAREASERIES_H | ||
#define QAREASERIES_H | ||||
|
r421 | |||
|
r697 | #include <qchartglobal.h> | ||
|
r988 | #include <qabstractseries.h> | ||
|
r421 | #include <QPen> | ||
#include <QBrush> | ||||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class QLineSeries; | ||||
|
r938 | class QAreaSeriesPrivate; | ||
|
r421 | |||
|
r988 | class QTCOMMERCIALCHART_EXPORT QAreaSeries : public QAbstractSeries | ||
|
r421 | { | ||
Q_OBJECT | ||||
public: | ||||
|
r970 | explicit QAreaSeries(QLineSeries *upperSeries, QLineSeries *lowerSeries = 0); | ||
~QAreaSeries(); | ||||
|
r421 | |||
|
r938 | public: | ||
|
r1107 | QAbstractSeries::SeriesType type() const; | ||
|
r421 | |||
|
r938 | QLineSeries* upperSeries() const; | ||
QLineSeries* lowerSeries() const; | ||||
|
r421 | |||
|
r743 | void setPen(const QPen &pen); | ||
|
r938 | QPen pen() const; | ||
|
r421 | |||
|
r743 | void setBrush(const QBrush &brush); | ||
|
r938 | QBrush brush() const; | ||
|
r421 | |||
|
r987 | void setPointsVisible(bool visible = true); | ||
|
r938 | bool pointsVisible() const; | ||
|
r1164 | void setModel(QAbstractItemModel* model); | ||
|
r938 | QAbstractItemModel* model() const; | ||
|
r421 | |||
|
r775 | Q_SIGNALS: | ||
|
r743 | void clicked(const QPointF &point); | ||
|
r855 | void selected(); | ||
|
r421 | |||
private: | ||||
|
r938 | Q_DECLARE_PRIVATE(QAreaSeries); | ||
Q_DISABLE_COPY(QAreaSeries); | ||||
friend class AreaLegendMarker; | ||||
friend class AreaChartItem; | ||||
|
r421 | }; | ||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif | ||||