1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
3 | |
4 | // |
5 | // W A R N I N G |
6 | // ------------- |
7 | // |
8 | // This file is not part of the Qt API. It exists for the convenience |
9 | // of the Qt tools. This header |
10 | // file may change from version to version without notice, or even be removed. |
11 | // |
12 | // We mean it. |
13 | // |
14 | |
15 | #ifndef GRIDPANEL_H |
16 | #define GRIDPANEL_H |
17 | |
18 | #include "shared_global_p.h" |
19 | |
20 | #include <QtWidgets/qwidget.h> |
21 | |
22 | QT_BEGIN_NAMESPACE |
23 | |
24 | namespace qdesigner_internal { |
25 | |
26 | class Grid; |
27 | |
28 | namespace Ui { |
29 | class GridPanel; |
30 | } |
31 | |
32 | class QDESIGNER_SHARED_EXPORT GridPanel : public QWidget |
33 | { |
34 | Q_OBJECT |
35 | public: |
36 | GridPanel(QWidget *parent = nullptr); |
37 | ~GridPanel(); |
38 | |
39 | void setTitle(const QString &title); |
40 | |
41 | void setGrid(const Grid &g); |
42 | Grid grid() const; |
43 | |
44 | void setCheckable (bool c); |
45 | bool isCheckable () const; |
46 | |
47 | bool isChecked () const; |
48 | void setChecked(bool c); |
49 | |
50 | void setResetButtonVisible(bool v); |
51 | |
52 | private slots: |
53 | void reset(); |
54 | |
55 | private: |
56 | Ui::GridPanel *m_ui; |
57 | }; |
58 | |
59 | } // qdesigner_internal |
60 | |
61 | QT_END_NAMESPACE |
62 | |
63 | #endif // GRIDPANEL_H |
64 | |