75 int indentation()
const;
76 void setIndentation(
int i);
78 bool rootIsDecorated()
const;
79 void setRootIsDecorated(
bool show);
81 bool alternatingRowColors()
const;
82 void setAlternatingRowColors(
bool enable);
84 bool isHeaderVisible()
const;
85 void setHeaderVisible(
bool visible);
87 ResizeMode resizeMode()
const;
88 void setResizeMode(ResizeMode mode);
90 int splitterPosition()
const;
91 void setSplitterPosition(
int position);
99 void setBackgroundColor(
QtBrowserItem* item,
const QColor& color);
103 void setPropertiesWithoutValueMarked(
bool mark);
104 bool propertiesWithoutValueMarked()
const;
123 Q_PRIVATE_SLOT(d_func(),
void slotCollapsed(
const QModelIndex&))
124 Q_PRIVATE_SLOT(d_func(),
void slotExpanded(
const QModelIndex&))
125 Q_PRIVATE_SLOT(d_func(),
void slotCurrentBrowserItemChanged(
QtBrowserItem*))
126 Q_PRIVATE_SLOT(d_func(),
void slotCurrentTreeItemChanged(QTreeWidgetItem*, QTreeWidgetItem*))
QtAbstractPropertyBrowser(QWidget *parent=0)
virtual void itemInserted(QtBrowserItem *item, QtBrowserItem *afterItem)=0
virtual void itemChanged(QtBrowserItem *item)=0
virtual void itemRemoved(QtBrowserItem *item)=0
The QtBrowserItem class represents a property in a property browser instance.
The QtTreePropertyBrowser class provides QTreeWidget based property browser.
void setPropertiesWithoutValueMarked(bool mark)
bool alternatingRowColors
whether to draw the background using alternating colors. By default this property is set to true.
int splitterPosition
the position of the splitter between the colunms.
bool rootIsDecorated
whether to show controls for expanding and collapsing root items.
QtTreePropertyBrowser(QWidget *parent=0)
ResizeMode resizeMode
the resize mode of setions in the header.
int indentation
indentation of the items in the tree view.
void collapsed(QtBrowserItem *item)
void setRootIsDecorated(bool show)
void setResizeMode(ResizeMode mode)
bool propertiesWithoutValueMarked
whether to enable or disable marking properties without value.
void setSplitterPosition(int position)
void setHeaderVisible(bool visible)
void expanded(QtBrowserItem *item)
bool isHeaderVisible() const
bool headerVisible
whether to show the header.
void setIndentation(int i)
void setAlternatingRowColors(bool enable)
#define QT_QTPROPERTYBROWSER_EXPORT