| 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 QCheckBox; |
| 11 |
class QComboBox; |
| 12 |
class QLabel; |
| 13 |
class QSpinBox; |
| 14 |
QT_END_NAMESPACE |
| 15 |
class RenderArea; |
| 16 |
|
| 17 |
//! [0] |
| 18 |
class Window : public QWidget |
| 19 |
{ |
| 20 |
Q_OBJECT |
| 21 |
|
| 22 |
public: |
| 23 |
Window(); |
| 24 |
|
| 25 |
private slots: |
| 26 |
void shapeChanged(); |
| 27 |
void penChanged(); |
| 28 |
void brushChanged(); |
| 29 |
|
| 30 |
private: |
| 31 |
RenderArea *renderArea; |
| 32 |
QLabel *shapeLabel; |
| 33 |
QLabel *penWidthLabel; |
| 34 |
QLabel *penStyleLabel; |
| 35 |
QLabel *penCapLabel; |
| 36 |
QLabel *penJoinLabel; |
| 37 |
QLabel *brushStyleLabel; |
| 38 |
QLabel *otherOptionsLabel; |
| 39 |
QComboBox *shapeComboBox; |
| 40 |
QSpinBox *penWidthSpinBox; |
| 41 |
QComboBox *penStyleComboBox; |
| 42 |
QComboBox *penCapComboBox; |
| 43 |
QComboBox *penJoinComboBox; |
| 44 |
QComboBox *brushStyleComboBox; |
| 45 |
QCheckBox *antialiasingCheckBox; |
| 46 |
QCheckBox *transformationsCheckBox; |
| 47 |
}; |
| 48 |
//! [0] |
| 49 |
|
| 50 |
#endif // WINDOW_H |