summaryrefslogtreecommitdiffstats
path: root/tests/manual/chartdesigner/penwidget.h
blob: 624bb3639d4e9a817ef85e427289e5cd9b2af699 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef PENWIDGET_H
#define PENWIDGET_H

#include <QtWidgets/QWidget>
#include <QtGui/QPen>

class QComboBox;
class QSpinBox;

class PenWidget : public QWidget
{
public:
    explicit PenWidget(QWidget* parent = 0);
    ~PenWidget();

    QPen pen() const { return m_pen; }
private:
    void createContent();
    void createLayout();

private:
    QPen m_pen;
    QComboBox *m_colorComboBox;
    QComboBox *m_lineStyleComboBox;
    QSpinBox *m_widthSpinBox;
};

#endif /* PENWIDGET_H */