DoughnutChart2D Example

#include <QtitanChart.h>
#include "DemoChartWindow.h"

class QComboBox;
class QCheckBox;
class QSlider;
class QSpinBox;

/* MainWindow */
class MainWindow : public DemoChartWindow
{
    Q_OBJECT
public:
    MainWindow();

protected:
    void createSeriesParametrs();
    void createDoughnutSeries();
    void setValueHole(int val);
    virtual void updateValueParameters();

protected slots:
    void labelsPositionChanged(int);
    void explodedSeriesChanged(int);
    void rotateSeriesChanged(int);
    void holeSeriesChanged(int);

protected:
    QComboBox* m_posDataLabelsSwitcher;
    QCheckBox* m_explodedCheckBox;
    QSlider* m_rotateSlider;
    QLabel* m_captionAspectAngle;
    QLabel* m_captionEditorHole;
    QSpinBox* m_editorHole;

private:
    Q_DISABLE_COPY(MainWindow)
};