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 | #ifndef QTBUTTONPROPERTYBROWSER_H |
5 | #define QTBUTTONPROPERTYBROWSER_H |
6 | |
7 | #include "qtpropertybrowser.h" |
8 | |
9 | QT_BEGIN_NAMESPACE |
10 | |
11 | class QtButtonPropertyBrowserPrivate; |
12 | |
13 | class QtButtonPropertyBrowser : public QtAbstractPropertyBrowser |
14 | { |
15 | Q_OBJECT |
16 | public: |
17 | QtButtonPropertyBrowser(QWidget *parent = 0); |
18 | ~QtButtonPropertyBrowser(); |
19 | |
20 | void setExpanded(QtBrowserItem *item, bool expanded); |
21 | bool isExpanded(QtBrowserItem *item) const; |
22 | |
23 | Q_SIGNALS: |
24 | void collapsed(QtBrowserItem *item); |
25 | void expanded(QtBrowserItem *item); |
26 | |
27 | protected: |
28 | void itemInserted(QtBrowserItem *item, QtBrowserItem *afterItem) override; |
29 | void itemRemoved(QtBrowserItem *item) override; |
30 | void itemChanged(QtBrowserItem *item) override; |
31 | |
32 | private: |
33 | QScopedPointer<QtButtonPropertyBrowserPrivate> d_ptr; |
34 | Q_DECLARE_PRIVATE(QtButtonPropertyBrowser) |
35 | Q_DISABLE_COPY_MOVE(QtButtonPropertyBrowser) |
36 | }; |
37 | |
38 | QT_END_NAMESPACE |
39 | |
40 | #endif |
41 |