diff options
author | Titta Heikkala <titta.heikkala@qt.io> | 2017-09-01 13:21:51 +0300 |
---|---|---|
committer | Titta Heikkala <titta.heikkala@qt.io> | 2017-09-04 07:15:06 +0000 |
commit | 5082ca305b14be3dde25862d0ce4fd32d688d985 (patch) | |
tree | 614508ac5f92eb466e446b7ed4708ea0a6e717ae /examples/charts/chartthemes/themewidget.h | |
parent | f64bd90920b80be63c318fed7613c87ff70cce1b (diff) |
Add Qt Designer UI file to Chart Themes Example
Add a UI file to Chart Themes Example. The UI file includes widgets
to change chart options along with signal slot connections.
Change-Id: I194624e23ebb785271a054cf1b2891d134fd2656
Task-number: QTBUG-60662
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'examples/charts/chartthemes/themewidget.h')
-rw-r--r-- | examples/charts/chartthemes/themewidget.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/examples/charts/chartthemes/themewidget.h b/examples/charts/chartthemes/themewidget.h index 5b31ab7c..e2e093ab 100644 --- a/examples/charts/chartthemes/themewidget.h +++ b/examples/charts/chartthemes/themewidget.h @@ -36,6 +36,7 @@ QT_BEGIN_NAMESPACE class QComboBox; class QCheckBox; +class Ui_ThemeWidgetForm; QT_END_NAMESPACE QT_CHARTS_BEGIN_NAMESPACE @@ -61,9 +62,9 @@ private Q_SLOTS: private: DataTable generateRandomData(int listCount, int valueMax, int valueCount) const; - QComboBox *createThemeBox() const; - QComboBox *createAnimationBox() const; - QComboBox *createLegendBox() const; + void populateThemeBox(); + void populateAnimationBox(); + void populateLegendBox(); void connectSignals(); QChart *createAreaChart() const; QChart *createBarChart(int valueCount) const; @@ -79,10 +80,7 @@ private: QList<QChartView *> m_charts; DataTable m_dataTable; - QComboBox *m_themeComboBox; - QCheckBox *m_antialiasCheckBox; - QComboBox *m_animatedComboBox; - QComboBox *m_legendComboBox; + Ui_ThemeWidgetForm *m_ui; }; #endif /* THEMEWIDGET_H */ |