Debian Codegraph @

tests/manual/chartdesigner/penwidget.h

raw
1 // Copyright (C) 2016 The Qt Company Ltd.
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4 #ifndef PENWIDGET_H
5 #define PENWIDGET_H
6
7 #include <QtWidgets/QWidget>
8 #include <QtGui/QPen>
9
10 class QComboBox;
11 class QSpinBox;
12
13 class PenWidget : public QWidget
14 {
15 public:
16 explicit PenWidget(QWidget* parent = 0);
17 ~PenWidget();
18
19 QPen pen() const { return m_pen; }
20 private:
21 void createContent();
22 void createLayout();
23
24 private:
25 QPen m_pen;
26 QComboBox *m_colorComboBox;
27 QComboBox *m_lineStyleComboBox;
28 QSpinBox *m_widthSpinBox;
29 };
30
31 #endif /* PENWIDGET_H */