##// END OF EJS Templates
Fixed manual test...
Titta Heikkala -
r2823:3c528f4f0388
parent child
Show More
@@ -1,46 +1,46
1 /****************************************************************************
1 /****************************************************************************
2 **
2 **
3 ** Copyright (C) 2015 The Qt Company Ltd
3 ** Copyright (C) 2015 The Qt Company Ltd
4 ** All rights reserved.
4 ** All rights reserved.
5 ** For any questions to The Qt Company, please use contact form at http://qt.io
5 ** For any questions to The Qt Company, please use contact form at http://qt.io
6 **
6 **
7 ** This file is part of the Qt Charts module.
7 ** This file is part of the Qt Charts module.
8 **
8 **
9 ** Licensees holding valid commercial license for Qt may use this file in
9 ** Licensees holding valid commercial license for Qt may use this file in
10 ** accordance with the Qt License Agreement provided with the Software
10 ** accordance with the Qt License Agreement provided with the Software
11 ** or, alternatively, in accordance with the terms contained in a written
11 ** or, alternatively, in accordance with the terms contained in a written
12 ** agreement between you and The Qt Company.
12 ** agreement between you and The Qt Company.
13 **
13 **
14 ** If you have questions regarding the use of this file, please use
14 ** If you have questions regarding the use of this file, please use
15 ** contact form at http://qt.io
15 ** contact form at http://qt.io
16 **
16 **
17 ****************************************************************************/
17 ****************************************************************************/
18
18
19 #ifndef PENWIDGET_H
19 #ifndef PENWIDGET_H
20 #define PENWIDGET_H
20 #define PENWIDGET_H
21
21
22 #include <QtWidgets/QWidget>
22 #include <QtWidgets/QWidget>
23 #include <QtWidgets/QPen>
23 #include <QtGui/QPen>
24
24
25 class QComboBox;
25 class QComboBox;
26 class QSpinBox;
26 class QSpinBox;
27
27
28 class PenWidget : public QWidget
28 class PenWidget : public QWidget
29 {
29 {
30 public:
30 public:
31 explicit PenWidget(QWidget* parent = 0);
31 explicit PenWidget(QWidget* parent = 0);
32 ~PenWidget();
32 ~PenWidget();
33
33
34 QPen pen() const { return m_pen; }
34 QPen pen() const { return m_pen; }
35 private:
35 private:
36 void createContent();
36 void createContent();
37 void createLayout();
37 void createLayout();
38
38
39 private:
39 private:
40 QPen m_pen;
40 QPen m_pen;
41 QComboBox *m_colorComboBox;
41 QComboBox *m_colorComboBox;
42 QComboBox *m_lineStyleComboBox;
42 QComboBox *m_lineStyleComboBox;
43 QSpinBox *m_widthSpinBox;
43 QSpinBox *m_widthSpinBox;
44 };
44 };
45
45
46 #endif /* PENWIDGET_H */
46 #endif /* PENWIDGET_H */
General Comments 0
You need to be logged in to leave comments. Login now