drop inheritance of PropertyItem from BaseClass

This commit is contained in:
wmayer 2016-12-13 14:53:43 +01:00
parent 0afd327f2a
commit 433202a881
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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 {