drop inheritance of PropertyItem from BaseClass
This commit is contained in:
parent
0afd327f2a
commit
433202a881
|
@ -101,7 +101,7 @@ public:
|
|||
}
|
||||
};
|
||||
|
||||
class GuiExport PropertyItem : virtual public QObject, public Base::BaseClass, public ExpressionBinding
|
||||
class GuiExport PropertyItem : public QObject, public ExpressionBinding
|
||||
{
|
||||
Q_OBJECT
|
||||
PROPERTYITEM_HEADER
|
||||
|
@ -128,8 +128,8 @@ public:
|
|||
childs which like to be informed of a binding*/
|
||||
virtual void bind(const App::Property& prop);
|
||||
virtual void bind(const App::ObjectIdentifier& _path);
|
||||
virtual void propertyBound() {};
|
||||
|
||||
virtual void propertyBound() {}
|
||||
|
||||
void setParent(PropertyItem* parent);
|
||||
PropertyItem *parent() const;
|
||||
void appendChild(PropertyItem *child);
|
||||
|
|
|
@ -211,7 +211,7 @@ bool PropertyConstraintListItem::event (QEvent* ev)
|
|||
Sketcher::PropertyConstraintList* item;
|
||||
|
||||
int id = 0;
|
||||
if (this->parent()->getTypeId() == SketcherGui::PropertyConstraintListItem::getClassTypeId()) {
|
||||
if (dynamic_cast<SketcherGui::PropertyConstraintListItem*>(this->parent())) {
|
||||
item = static_cast<Sketcher::PropertyConstraintList*>(this->parent()->getFirstProperty());
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user