diff --git a/src/app/widgets/vtooloptionspropertybrowser.cpp b/src/app/widgets/vtooloptionspropertybrowser.cpp index 5816bf164..b450291f2 100644 --- a/src/app/widgets/vtooloptionspropertybrowser.cpp +++ b/src/app/widgets/vtooloptionspropertybrowser.cpp @@ -650,8 +650,6 @@ void VToolOptionsPropertyBrowser::ChangeDataToolLineIntersect(VProperty *propert QVariant value = property->data(VProperty::DPC_Data, Qt::DisplayRole); const QString id = propertyToId[property]; - VToolLineIntersect *i = qgraphicsitem_cast(currentItem); - SCASSERT(i != nullptr); switch (PropertiesList().indexOf(id)) { case 0: // VAbstractTool::AttrName @@ -725,8 +723,6 @@ void VToolOptionsPropertyBrowser::ChangeDataToolPointOfIntersection(VProperty *p QVariant value = property->data(VProperty::DPC_Data, Qt::DisplayRole); const QString id = propertyToId[property]; - VToolPointOfIntersection *i = qgraphicsitem_cast(currentItem); - SCASSERT(i != nullptr); switch (PropertiesList().indexOf(id)) { case 0: // VAbstractTool::AttrName @@ -823,8 +819,6 @@ void VToolOptionsPropertyBrowser::ChangeDataToolTriangle(VProperty *property) QVariant value = property->data(VProperty::DPC_Data, Qt::DisplayRole); const QString id = propertyToId[property]; - VToolTriangle *i = qgraphicsitem_cast(currentItem); - SCASSERT(i != nullptr); switch (PropertiesList().indexOf(id)) { case 0: // VAbstractTool::AttrName diff --git a/src/libs/vpropertyexplorer/vproperty.h b/src/libs/vpropertyexplorer/vproperty.h index a9126894a..d0371b20e 100644 --- a/src/libs/vpropertyexplorer/vproperty.h +++ b/src/libs/vpropertyexplorer/vproperty.h @@ -37,7 +37,7 @@ enum class Property : char{Simple, Complex}; static const int MyCustomEventType = 1099; -class UserChangeEvent : public QEvent +class VPROPERTYEXPLORERSHARED_EXPORT UserChangeEvent : public QEvent { public: UserChangeEvent() : QEvent(static_cast(MyCustomEventType)) {}