41#ifndef QTTREEPROPERTYBROWSER_H
42#define QTTREEPROPERTYBROWSER_H
46#if QT_VERSION >= 0x040400
82 int indentation()
const;
83 void setIndentation(
int i);
85 bool rootIsDecorated()
const;
86 void setRootIsDecorated(
bool show);
88 bool alternatingRowColors()
const;
89 void setAlternatingRowColors(
bool enable);
91 bool isHeaderVisible()
const;
92 void setHeaderVisible(
bool visible);
94 ResizeMode resizeMode()
const;
95 void setResizeMode(ResizeMode mode);
97 int splitterPosition()
const;
98 void setSplitterPosition(
int position);
106 void setBackgroundColor(
QtBrowserItem* item,
const QColor& color);
110 void setPropertiesWithoutValueMarked(
bool mark);
111 bool propertiesWithoutValueMarked()
const;
129#if QT_VERSION >= QT_VERSION_CHECK(5, 13, 0)
135 Q_PRIVATE_SLOT(d_func(),
void slotCollapsed(
const QModelIndex&))
136 Q_PRIVATE_SLOT(d_func(),
void slotExpanded(
const QModelIndex&))
137 Q_PRIVATE_SLOT(d_func(),
void slotCurrentBrowserItemChanged(
QtBrowserItem*))
138 Q_PRIVATE_SLOT(d_func(),
void slotCurrentTreeItemChanged(QTreeWidgetItem*, QTreeWidgetItem*))
142#if QT_VERSION >= 0x040400
virtual void itemInserted(QtBrowserItem *item, QtBrowserItem *afterItem)=0
virtual void itemRemoved(QtBrowserItem *item)=0
virtual void itemChanged(QtBrowserItem *item)=0
QtAbstractPropertyBrowser(QWidget *parent=nullptr)
Definition qtpropertybrowser.cpp:1656
The QtBrowserItem class represents a property in a property browser instance.
Definition qtpropertybrowser.h:277
Definition qttreepropertybrowser.cpp:60
The description of this class will come soon !
Definition qttreepropertybrowser.h:60
int indentation
indentation of the items in the tree view.
Definition qttreepropertybrowser.h:62
void setRootIsDecorated(bool show)
Definition qttreepropertybrowser.cpp:789
int splitterPosition
the position of the splitter between the colunms.
Definition qttreepropertybrowser.h:67
bool rootIsDecorated
whether to show controls for expanding and collapsing root items.
Definition qttreepropertybrowser.h:63
bool headerVisible
whether to show the header.
Definition qttreepropertybrowser.h:65
void expanded(QtBrowserItem *item)
QtTreePropertyBrowser(QWidget *parent=nullptr)
Definition qttreepropertybrowser.cpp:746
bool propertiesWithoutValueMarked
whether to enable or disable marking properties without value.
Definition qttreepropertybrowser.h:68
ResizeMode
Definition qttreepropertybrowser.h:71
@ Stretch
Definition qttreepropertybrowser.h:73
@ ResizeToContents
Definition qttreepropertybrowser.h:75
@ Fixed
Definition qttreepropertybrowser.h:74
@ Interactive
Definition qttreepropertybrowser.h:72
void setHeaderVisible(bool visible)
Definition qttreepropertybrowser.cpp:822
bool isHeaderVisible() const
Definition qttreepropertybrowser.cpp:818
void setResizeMode(ResizeMode mode)
Definition qttreepropertybrowser.cpp:861
void collapsed(QtBrowserItem *item)
void setAlternatingRowColors(bool enable)
Definition qttreepropertybrowser.cpp:809
bool alternatingRowColors
whether to draw the background using alternating colors. By default this property is set to true.
Definition qttreepropertybrowser.h:64
void setSplitterPosition(int position)
Definition qttreepropertybrowser.cpp:878
void setPropertiesWithoutValueMarked(bool mark)
Definition qttreepropertybrowser.cpp:987
ResizeMode resizeMode
the resize mode of setions in the header.
Definition qttreepropertybrowser.h:66
void setIndentation(int i)
Definition qttreepropertybrowser.cpp:777
#define QT_QTPROPERTYBROWSER_EXPORT
Definition qtpropertybrowser.h:59