Fix for build on Windows.

--HG--
branch : develop
This commit is contained in:
dismine 2014-09-20 18:19:38 +03:00
parent 6d1639cdfa
commit cbd432075f
2 changed files with 1 additions and 7 deletions

View File

@ -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<VToolLineIntersect *>(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<VToolPointOfIntersection *>(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<VToolTriangle *>(currentItem);
SCASSERT(i != nullptr);
switch (PropertiesList().indexOf(id))
{
case 0: // VAbstractTool::AttrName

View File

@ -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<QEvent::Type>(MyCustomEventType)) {}