40 #pragma GCC system_header
42 #ifndef QTBUTTONPROPERTYBROWSER_H
43 #define QTBUTTONPROPERTYBROWSER_H
45 #include <QtGui/QToolButton>
46 #include <QtGui/QLabel>
47 #include <QtGui/QGridLayout>
51 #if QT_VERSION >= 0x040400
84 Q_PRIVATE_SLOT(d_func(),
void slotUpdate())
85 Q_PRIVATE_SLOT(d_func(),
void slotEditorDestroyed())
86 Q_PRIVATE_SLOT(d_func(),
void slotToggled(
bool))
97 void init(QWidget *parent);
102 QWidget *createEditor(
QtProperty *property, QWidget *parent)
const
105 void slotEditorDestroyed();
107 void slotToggled(
bool checked);
111 WidgetItem() : widget(0), label(0), widgetLabel(0),
112 button(0), container(0), layout(0), parent(0),
123 QList<WidgetItem *> children;
128 void updateItem(WidgetItem *item);
129 void insertRow(QGridLayout *layout,
int row)
const;
130 void removeRow(QGridLayout *layout,
int row)
const;
131 int gridRow(WidgetItem *item)
const;
132 int gridSpan(WidgetItem *item)
const;
133 void setExpanded(WidgetItem *item,
bool expanded);
134 QToolButton *createButton(QWidget *panret = 0)
const;
136 QMap<QtBrowserItem *, WidgetItem *> m_indexToItem;
137 QMap<WidgetItem *, QtBrowserItem *> m_itemToIndex;
138 QMap<QWidget *, WidgetItem *> m_widgetToItem;
139 QMap<QObject *, WidgetItem *> m_buttonToItem;
140 QGridLayout *m_mainLayout;
141 QList<WidgetItem *> m_children;
142 QList<WidgetItem *> m_recreateQueue;
144 #if QT_VERSION >= 0x040400
Definition: qtpropertybrowser.h:384
virtual void itemChanged(QtBrowserItem *item)=0
Definition: qtpropertybrowser.h:311
virtual void itemRemoved(QtBrowserItem *item)=0
#define NULL
Definition: CommonTypes.hh:31
virtual QWidget * createEditor(QtProperty *property, QWidget *parent)
#define QT_QTPROPERTYBROWSER_EXPORT
Definition: qtpropertybrowser.h:68
virtual void itemInserted(QtBrowserItem *item, QtBrowserItem *afterItem)=0
Definition: qtpropertybrowser.h:77