| 1 | // Copyright (C) 2016 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | // W A R N I N G |
| 5 | // ------------- |
| 6 | // |
| 7 | // This file is not part of the Qt Chart API. It exists purely as an |
| 8 | // implementation detail. This header file may change from version to |
| 9 | // version without notice, or even be removed. |
| 10 | // |
| 11 | // We mean it. |
| 12 | |
| 13 | #ifndef CHARTTITLE_P_H_ |
| 14 | #define CHARTTITLE_P_H_ |
| 15 | |
| 16 | #include <QtCharts/QChartGlobal> |
| 17 | #include <QtWidgets/QGraphicsTextItem> |
| 18 | #include <QtCharts/private/qchartglobal_p.h> |
| 19 | |
| 20 | QT_BEGIN_NAMESPACE |
| 21 | |
| 22 | class Q_CHARTS_EXPORT ChartTitle : public QGraphicsTextItem |
| 23 | { |
| 24 | public: |
| 25 | ChartTitle(QGraphicsItem *parent = 0); |
| 26 | ~ChartTitle(); |
| 27 | QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const; |
| 28 | void setText(const QString &text); |
| 29 | QString text() const; |
| 30 | void setGeometry(const QRectF &rect); |
| 31 | private: |
| 32 | QString m_text; |
| 33 | }; |
| 34 | |
| 35 | QT_END_NAMESPACE |
| 36 | |
| 37 | #endif /* CHARTTITLE_P_H_ */ |
| 38 | |