1 | // Copyright (C) 2016 The Qt Company Ltd. |
---|---|
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
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 Qt Designer. This header file may change from version to version |
10 | // without notice, or even be removed. |
11 | // |
12 | // We mean it. |
13 | // |
14 | |
15 | #ifndef QTBUTTONPROPERTYBROWSER_H |
16 | #define QTBUTTONPROPERTYBROWSER_H |
17 | |
18 | #include "qtpropertybrowser_p.h" |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | class QtButtonPropertyBrowserPrivate; |
23 | |
24 | class QtButtonPropertyBrowser : public QtAbstractPropertyBrowser |
25 | { |
26 | Q_OBJECT |
27 | public: |
28 | QtButtonPropertyBrowser(QWidget *parent = 0); |
29 | ~QtButtonPropertyBrowser(); |
30 | |
31 | void setExpanded(QtBrowserItem *item, bool expanded); |
32 | bool isExpanded(QtBrowserItem *item) const; |
33 | |
34 | Q_SIGNALS: |
35 | void collapsed(QtBrowserItem *item); |
36 | void expanded(QtBrowserItem *item); |
37 | |
38 | protected: |
39 | void itemInserted(QtBrowserItem *item, QtBrowserItem *afterItem) override; |
40 | void itemRemoved(QtBrowserItem *item) override; |
41 | void itemChanged(QtBrowserItem *item) override; |
42 | |
43 | private: |
44 | QScopedPointer<QtButtonPropertyBrowserPrivate> d_ptr; |
45 | Q_DECLARE_PRIVATE(QtButtonPropertyBrowser) |
46 | Q_DISABLE_COPY_MOVE(QtButtonPropertyBrowser) |
47 | }; |
48 | |
49 | QT_END_NAMESPACE |
50 | |
51 | #endif |
52 |