@@ -29,13 +29,13 public: | |||
|
29 | 29 | QChart* m_chart; |
|
30 | 30 | }; |
|
31 | 31 | |
|
32 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
|
32 | /////////////////////////////////////////////////////////////////////////////////////////////////// | |
|
33 | 33 | |
|
34 | 34 | QChartWidget::QChartWidget(QWidget *parent) : |
|
35 | 35 | QWidget(parent), |
|
36 | 36 | d_ptr(new QChartWidgetPrivate(this)) |
|
37 | 37 | { |
|
38 | ||
|
38 | setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); | |
|
39 | 39 | } |
|
40 | 40 | |
|
41 | 41 | QChartWidget::~QChartWidget() |
@@ -52,6 +52,11 void QChartWidget::resizeEvent(QResizeEvent *event) | |||
|
52 | 52 | QWidget::resizeEvent(event); |
|
53 | 53 | } |
|
54 | 54 | |
|
55 | QSize QChartWidget::sizeHint() const | |
|
56 | { | |
|
57 | // TODO: calculate size hint based on contents? | |
|
58 | return QSize(100, 100); | |
|
59 | } | |
|
55 | 60 | |
|
56 | 61 | void QChartWidget::addSeries(QChartSeries* series) |
|
57 | 62 | { |
General Comments 0
You need to be logged in to leave comments.
Login now