#include <PropertyEditor.h>
Public Member Functions | |
bool | appendProperty (const App::Property &) |
void | buildUp (PropertyModel::PropertyList &&props=PropertyModel::PropertyList(), bool checkDocument=false) |
Builds up the list view with the properties. More... | |
QBrush | groupBackground () const |
QColor | groupTextColor () const |
bool | isAutomaticDocumentUpdate (bool) const |
bool | isBinding () const |
PropertyEditor (QWidget *parent=0) | |
void | removeProperty (const App::Property &) |
virtual void | reset () |
void | setAutomaticDocumentUpdate (bool) |
void | setGroupBackground (const QBrush &c) |
void | setGroupTextColor (const QColor &c) |
void | updateEditorMode (const App::Property &) |
void | updateProperty (const App::Property &) |
~PropertyEditor () | |
Protected Slots | |
void | onItemActivated (const QModelIndex &index) |
Protected Member Functions | |
virtual void | closeEditor (QWidget *editor, QAbstractItemDelegate::EndEditHint hint) |
virtual void | commitData (QWidget *editor) |
virtual void | contextMenuEvent (QContextMenuEvent *event) |
virtual void | currentChanged (const QModelIndex ¤t, const QModelIndex &previous) |
virtual void | drawBranches (QPainter *painter, const QRect &rect, const QModelIndex &index) const |
virtual void | editorDestroyed (QObject *editor) |
virtual bool | event (QEvent *) |
virtual void | rowsInserted (const QModelIndex &parent, int start, int end) |
virtual QStyleOptionViewItem | viewOptions () const |
Properties | |
QBrush | groupBackground |
QColor | groupTextColor |
Friends | |
class | Gui::PropertyView |
Detailed Description
Put this into the .qss file after Gui–PropertyEditor–PropertyEditor
Gui–PropertyEditor–PropertyEditor { qproperty-groupBackground: gray; qproperty-groupTextColor: white; }
See also: https://man42.net/blog/2011/09/qt-4-7-modify-a-custom-q_property-with-a-qt-style-sheet/
Constructor & Destructor Documentation
◆ PropertyEditor()
PropertyEditor::PropertyEditor | ( | QWidget * | parent = 0 | ) |
◆ ~PropertyEditor()
PropertyEditor::~PropertyEditor | ( | ) |
Member Function Documentation
◆ appendProperty()
bool PropertyEditor::appendProperty | ( | const App::Property & | prop | ) |
References App::Property::getContainer().
◆ buildUp()
void PropertyEditor::buildUp | ( | PropertyModel::PropertyList && | props = PropertyModel::PropertyList() , |
bool | checkDocument = false |
||
) |
Builds up the list view with the properties.
References Gui::PropertyEditor::PropertyModel::buildUp(), Base::Console(), Base::Persistence::getClassTypeId(), Gui::PropertyEditor::PropertyModel::propertyIndexFromPath(), Gui::PropertyEditor::PropertyModel::propertyPathFromIndex(), and Base::ConsoleSingleton::Warning().
Referenced by Gui::PropertyView::hideEvent(), and Gui::PropertyView::onTimer().
◆ closeEditor()
|
protectedvirtual |
◆ commitData()
|
protectedvirtual |
References Gui::PropertyEditor::PropertyModel::buildUp().
◆ contextMenuEvent()
|
protectedvirtual |
References Gui::PropertyEditor::PropertyModel::buddy(), Base::Persistence::getClassTypeId(), Gui::getMainWindow(), Gui::PropertyEditor::PropertyItem::getPropertyData(), App::Property::LockDynamic, App::Prop_ReadOnly, App::Property::PropDynamic, Gui::PropertyView::setShowAll(), and Gui::PropertyView::showAll().
◆ currentChanged()
|
protectedvirtual |
◆ drawBranches()
|
protectedvirtual |
References viewOptions().
◆ editorDestroyed()
|
protectedvirtual |
◆ event()
◆ groupBackground()
QBrush Gui::PropertyEditor::PropertyEditor::groupBackground | ( | ) | const |
◆ groupTextColor()
QColor Gui::PropertyEditor::PropertyEditor::groupTextColor | ( | ) | const |
◆ isAutomaticDocumentUpdate()
◆ isBinding()
bool Gui::PropertyEditor::PropertyEditor::isBinding | ( | ) | const |
Referenced by Gui::PropertyEditor::PropertyItemDelegate::createEditor().
◆ onItemActivated
|
protectedslot |
◆ removeProperty()
void PropertyEditor::removeProperty | ( | const App::Property & | prop | ) |
◆ reset()
|
virtual |
Reset the internal state of the view.
References Gui::PropertyEditor::PropertyModel::rowCount().
Referenced by draftguitools.gui_trackers.gridTracker::set().
◆ rowsInserted()
|
protectedvirtual |
◆ setAutomaticDocumentUpdate()
void PropertyEditor::setAutomaticDocumentUpdate | ( | bool | v | ) |
Referenced by Gui::PropertyView::PropertyView().
◆ setGroupBackground()
void PropertyEditor::setGroupBackground | ( | const QBrush & | c | ) |
◆ setGroupTextColor()
void PropertyEditor::setGroupTextColor | ( | const QColor & | c | ) |
◆ updateEditorMode()
void PropertyEditor::updateEditorMode | ( | const App::Property & | prop | ) |
References App::Property::getEditorName(), Gui::PropertyEditor::PropertyItem::hasProperty(), Gui::PropertyEditor::PropertyModel::index(), Gui::PropertyView::isPropertyHidden(), App::Property::ReadOnly, Gui::PropertyEditor::PropertyModel::rowCount(), Gui::PropertyView::showAll(), App::Property::testStatus(), and Gui::PropertyEditor::PropertyItem::updateData().
◆ updateProperty()
void PropertyEditor::updateProperty | ( | const App::Property & | prop | ) |
◆ viewOptions()
|
protectedvirtual |
Referenced by drawBranches().
Friends And Related Function Documentation
◆ Gui::PropertyView
|
friend |
Property Documentation
◆ groupBackground
|
readwrite |
◆ groupTextColor
|
readwrite |
The documentation for this class was generated from the following files:
- src/Gui/propertyeditor/PropertyEditor.h
- src/Gui/propertyeditor/PropertyEditor.cpp