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

source code of qttools/src/shared/qtpropertybrowser/qtbuttonpropertybrowser.h