##// END OF EJS Templates
Added HTML support for various text items...
Added HTML support for various text items - HTML tags can now be used in chart titles, legends, and labels - '\n' does no longer cause line break in multi-line text items. HTML tag <br/> can be used for line break now. - Setting pen for axis titles and labels is deprecated - When setting brush for titles and labels, only the color is relevant - Logic for identifying label format specifiers was improved, so adding additional information to labels via label format string is now more viable. Task-number: QTRD-1912 Change-Id: I8fa56df56fd656e2a3e427eff4abf3481435eec7 Reviewed-by: Mika Salmela <mika.salmela@digia.com>

File last commit:

r2433:4d17a12f375e
r2539:74f3dbde7a75
Show More
mainwidget.h
80 lines | 2.3 KiB | text/x-c | CLexer
Jani Honkonen
Add/modify license headers
r830 /****************************************************************************
**
Miikka Heikkinen
More copyright year changes
r2433 ** Copyright (C) 2013 Digia Plc
Jani Honkonen
Add/modify license headers
r830 ** 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$
**
****************************************************************************/
Tero Ahola
New features like chart type to the test app
r5 #ifndef MAINWIDGET_H
#define MAINWIDGET_H
Tero Ahola
Enabled chartwidgettest again
r815 #include "qchartglobal.h"
#include "qchart.h"
#include "qchartview.h"
Tero Ahola
New features like chart type to the test app
r5 #include <QWidget>
Tero Ahola
Added auto scaling option to test app
r6 class QSpinBox;
Tero Ahola
Drafting scatter type plotting...
r8 class QCheckBox;
Tero Ahola
Added size factor property to pie
r60 class QGridLayout;
Tero Ahola
New features like chart type to the test app
r5
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_USE_NAMESPACE
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19
Tero Ahola
Refactored chartwidgettest test data impl
r278 #define RealList QList<qreal>
Tero Ahola
Add dialog of chartwidgettest now remembers selections
r376 class DataSerieDialog;
Tero Ahola
Refactored chartwidgettest test data impl
r278
Tero Ahola
New features like chart type to the test app
r5 class MainWidget : public QWidget
{
Q_OBJECT
public:
explicit MainWidget(QWidget *parent = 0);
signals:
Tero Ahola
Refactored the test app
r110 private:
void initBackroundCombo(QGridLayout *grid);
void initScaleControls(QGridLayout *grid);
void initThemeCombo(QGridLayout *grid);
Tero Ahola
Checkbox for anti-alias to chartwidgettest
r379 void initCheckboxes(QGridLayout *grid);
Tero Ahola
Refactored the test app
r110
Tero Ahola
New features like chart type to the test app
r5 private slots:
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19 void addSeries();
Tero Ahola
Refactored chartwidgettest test data impl
r278 void addSeries(QString series, int columnCount, int rowCount, QString dataCharacteristics, bool labelsEnabled);
Tero Ahola
New features like chart type to the test app
r5 void backgroundChanged(int itemIndex);
Tero Ahola
Added auto scaling option to test app
r6 void autoScaleChanged(int value);
Tero Ahola
New features like chart type to the test app
r5 void xMinChanged(int value);
void xMaxChanged(int value);
void yMinChanged(int value);
void yMaxChanged(int value);
Tero Ahola
Checkbox for anti-alias to chartwidgettest
r379 void antiAliasToggled(bool enabled);
Tero Ahola
Added option for using QGLWidget in widget tester
r1778 void openGLToggled(bool enabled);
Tero Ahola
Draft implementation for setting color themes for a chart
r64 void changeChartTheme(int themeIndex);
Tero Ahola
Refactored chartwidgettest test data impl
r278 QList<RealList> generateTestData(int columnCount, int rowCount, QString dataCharacteristics);
QStringList generateLabels(int count);
Tero Ahola
New features like chart type to the test app
r5
private:
Tero Ahola
Add dialog of chartwidgettest now remembers selections
r376 DataSerieDialog *m_addSerieDialog;
Tero Ahola
Enabled chartwidgettest again
r815 QChart *m_chart;
Tero Ahola
Checkbox for anti-alias to chartwidgettest
r379 QChartView *m_chartView;
Tero Ahola
Drafting scatter type plotting...
r8 QCheckBox *m_autoScaleCheck;
Tero Ahola
Added auto scaling option to test app
r6 QSpinBox *m_xMinSpin;
QSpinBox *m_xMaxSpin;
QSpinBox *m_yMinSpin;
QSpinBox *m_yMaxSpin;
Tero Ahola
Added size factor property to pie
r60 QString m_defaultSeriesName;
QGridLayout *m_scatterLayout;
Tero Ahola
New features like chart type to the test app
r5 };
#endif // MAINWIDGET_H