23 #include <QAbstractItemView>
48 : QTreeView(parent), d_ptr(d)
64 d_ptr->PropertyDelegate->setRowHeight(height, add_to_standard);
69 setAlternatingRowColors(
true);
70 setUniformRowHeights(
true);
72 setItemDelegate(d_ptr->PropertyDelegate);
74 setSelectionMode(QTreeView::SingleSelection);
75 setSelectionBehavior(QTreeView::SelectRows);
76 setRootIsDecorated(
true);
78 setEditTriggers(QAbstractItemView::CurrentChanged | QAbstractItemView::SelectedClicked);
This is the base model for managing all the properties and passing them to the view.
void setRowHeight(int height=0, bool add_to_standard=false)
Sets the height for each row. Set this to 0 in order to let the standard delegate decide.
virtual ~VPropertyTreeView() Q_DECL_OVERRIDE
Destructor.
virtual void init()
This method is called by the constructors to initialize the view.
VPropertyTreeView(QWidget *parent=nullptr)
Default constructor.