File indexing completed on 2024-05-12 04:35:08
0001 /**************************************************************************** 0002 ** 0003 ** Copyright (C) 2016 The Qt Company Ltd. 0004 ** Contact: https://www.qt.io/licensing/ 0005 ** 0006 ** This file is part of the tools applications of the Qt Toolkit. 0007 ** 0008 ** $QT_BEGIN_LICENSE:LGPL$ 0009 ** Commercial License Usage 0010 ** Licensees holding valid commercial Qt licenses may use this file in 0011 ** accordance with the commercial license agreement provided with the 0012 ** Software or, alternatively, in accordance with the terms contained in 0013 ** a written agreement between you and The Qt Company. For licensing terms 0014 ** and conditions see https://www.qt.io/terms-conditions. For further 0015 ** information use the contact form at https://www.qt.io/contact-us. 0016 ** 0017 ** GNU Lesser General Public License Usage 0018 ** Alternatively, this file may be used under the terms of the GNU Lesser 0019 ** General Public License version 3 as published by the Free Software 0020 ** Foundation and appearing in the file LICENSE.LGPL3 included in the 0021 ** packaging of this file. Please review the following information to 0022 ** ensure the GNU Lesser General Public License version 3 requirements 0023 ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. 0024 ** 0025 ** GNU General Public License Usage 0026 ** Alternatively, this file may be used under the terms of the GNU 0027 ** General Public License version 2.0 or (at your option) the GNU General 0028 ** Public license version 3 or any later version approved by the KDE Free 0029 ** Qt Foundation. The licenses are as published by the Free Software 0030 ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 0031 ** included in the packaging of this file. Please review the following 0032 ** information to ensure the GNU General Public License requirements will 0033 ** be met: https://www.gnu.org/licenses/gpl-2.0.html and 0034 ** https://www.gnu.org/licenses/gpl-3.0.html. 0035 ** 0036 ** $QT_END_LICENSE$ 0037 ** 0038 ****************************************************************************/ 0039 0040 #ifndef QTBUTTONPROPERTYBROWSER_H 0041 #define QTBUTTONPROPERTYBROWSER_H 0042 0043 #include "qtpropertybrowser.h" 0044 0045 QT_BEGIN_NAMESPACE 0046 0047 class QtButtonPropertyBrowserPrivate; 0048 0049 class QT_QTPROPERTYBROWSER_EXPORT QtButtonPropertyBrowser : public QtAbstractPropertyBrowser 0050 { 0051 Q_OBJECT 0052 public: 0053 0054 QtButtonPropertyBrowser(QWidget *parent = 0); 0055 ~QtButtonPropertyBrowser(); 0056 0057 void setExpanded(QtBrowserItem *item, bool expanded); 0058 bool isExpanded(QtBrowserItem *item) const; 0059 0060 Q_SIGNALS: 0061 0062 void collapsed(QtBrowserItem *item); 0063 void expanded(QtBrowserItem *item); 0064 0065 protected: 0066 virtual void itemInserted(QtBrowserItem *item, QtBrowserItem *afterItem); 0067 virtual void itemRemoved(QtBrowserItem *item); 0068 virtual void itemChanged(QtBrowserItem *item); 0069 0070 private: 0071 0072 QScopedPointer<QtButtonPropertyBrowserPrivate> d_ptr; 0073 Q_DECLARE_PRIVATE(QtButtonPropertyBrowser) 0074 Q_DISABLE_COPY(QtButtonPropertyBrowser) 0075 Q_PRIVATE_SLOT(d_func(), void slotUpdate()) 0076 Q_PRIVATE_SLOT(d_func(), void slotEditorDestroyed()) 0077 Q_PRIVATE_SLOT(d_func(), void slotToggled(bool)) 0078 0079 }; 0080 0081 QT_END_NAMESPACE 0082 0083 #endif