| 1 |
// Copyright (C) 2016 The Qt Company Ltd. |
| 2 |
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause |
| 3 |
|
| 4 |
#ifndef WINDOW_H |
| 5 |
#define WINDOW_H |
| 6 |
|
| 7 |
#include <QWidget> |
| 8 |
|
| 9 |
QT_BEGIN_NAMESPACE |
| 10 |
class QComboBox; |
| 11 |
class QLabel; |
| 12 |
class QSpinBox; |
| 13 |
QT_END_NAMESPACE |
| 14 |
class RenderArea; |
| 15 |
|
| 16 |
//! [0] |
| 17 |
class Window : public QWidget |
| 18 |
{ |
| 19 |
Q_OBJECT |
| 20 |
|
| 21 |
public: |
| 22 |
Window(); |
| 23 |
|
| 24 |
private slots: |
| 25 |
void fillRuleChanged(); |
| 26 |
void fillGradientChanged(); |
| 27 |
void penColorChanged(); |
| 28 |
//! [0] |
| 29 |
|
| 30 |
//! [1] |
| 31 |
private: |
| 32 |
void populateWithColors(QComboBox *comboBox); |
| 33 |
QVariant currentItemData(QComboBox *comboBox); |
| 34 |
//! [1] |
| 35 |
|
| 36 |
//! [2] |
| 37 |
QList<RenderArea*> renderAreas; |
| 38 |
QLabel *fillRuleLabel; |
| 39 |
QLabel *fillGradientLabel; |
| 40 |
QLabel *fillToLabel; |
| 41 |
QLabel *penWidthLabel; |
| 42 |
QLabel *penColorLabel; |
| 43 |
QLabel *rotationAngleLabel; |
| 44 |
QComboBox *fillRuleComboBox; |
| 45 |
QComboBox *fillColor1ComboBox; |
| 46 |
QComboBox *fillColor2ComboBox; |
| 47 |
QSpinBox *penWidthSpinBox; |
| 48 |
QComboBox *penColorComboBox; |
| 49 |
QSpinBox *rotationAngleSpinBox; |
| 50 |
}; |
| 51 |
//! [2] |
| 52 |
|
| 53 |
#endif // WINDOW_H |