Debian Codegraph @

tests/manual/chartdesigner/brushwidget.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 BRUSHWIDGET_H
5 #define BRUSHWIDGET_H
6
7 #include <QtWidgets/QWidget>
8
9 class BrushWidget: public QWidget
10 {
11 public:
12 explicit BrushWidget(QWidget *parent = 0);
13 ~BrushWidget();
14
15 QBrush brush() const { return m_brush; }
16 void setBrush(const QBrush &brush);
17
18 private:
19 QBrush m_brush;
20 };
21
22 #endif /* BRUSHWIDGET_H */