Fix for build on Windows.
--HG-- branch : develop
This commit is contained in:
parent
6d1639cdfa
commit
cbd432075f
|
@ -650,8 +650,6 @@ void VToolOptionsPropertyBrowser::ChangeDataToolLineIntersect(VProperty *propert
|
||||||
QVariant value = property->data(VProperty::DPC_Data, Qt::DisplayRole);
|
QVariant value = property->data(VProperty::DPC_Data, Qt::DisplayRole);
|
||||||
const QString id = propertyToId[property];
|
const QString id = propertyToId[property];
|
||||||
|
|
||||||
VToolLineIntersect *i = qgraphicsitem_cast<VToolLineIntersect *>(currentItem);
|
|
||||||
SCASSERT(i != nullptr);
|
|
||||||
switch (PropertiesList().indexOf(id))
|
switch (PropertiesList().indexOf(id))
|
||||||
{
|
{
|
||||||
case 0: // VAbstractTool::AttrName
|
case 0: // VAbstractTool::AttrName
|
||||||
|
@ -725,8 +723,6 @@ void VToolOptionsPropertyBrowser::ChangeDataToolPointOfIntersection(VProperty *p
|
||||||
QVariant value = property->data(VProperty::DPC_Data, Qt::DisplayRole);
|
QVariant value = property->data(VProperty::DPC_Data, Qt::DisplayRole);
|
||||||
const QString id = propertyToId[property];
|
const QString id = propertyToId[property];
|
||||||
|
|
||||||
VToolPointOfIntersection *i = qgraphicsitem_cast<VToolPointOfIntersection *>(currentItem);
|
|
||||||
SCASSERT(i != nullptr);
|
|
||||||
switch (PropertiesList().indexOf(id))
|
switch (PropertiesList().indexOf(id))
|
||||||
{
|
{
|
||||||
case 0: // VAbstractTool::AttrName
|
case 0: // VAbstractTool::AttrName
|
||||||
|
@ -823,8 +819,6 @@ void VToolOptionsPropertyBrowser::ChangeDataToolTriangle(VProperty *property)
|
||||||
QVariant value = property->data(VProperty::DPC_Data, Qt::DisplayRole);
|
QVariant value = property->data(VProperty::DPC_Data, Qt::DisplayRole);
|
||||||
const QString id = propertyToId[property];
|
const QString id = propertyToId[property];
|
||||||
|
|
||||||
VToolTriangle *i = qgraphicsitem_cast<VToolTriangle *>(currentItem);
|
|
||||||
SCASSERT(i != nullptr);
|
|
||||||
switch (PropertiesList().indexOf(id))
|
switch (PropertiesList().indexOf(id))
|
||||||
{
|
{
|
||||||
case 0: // VAbstractTool::AttrName
|
case 0: // VAbstractTool::AttrName
|
||||||
|
|
|
@ -37,7 +37,7 @@ enum class Property : char{Simple, Complex};
|
||||||
|
|
||||||
static const int MyCustomEventType = 1099;
|
static const int MyCustomEventType = 1099;
|
||||||
|
|
||||||
class UserChangeEvent : public QEvent
|
class VPROPERTYEXPLORERSHARED_EXPORT UserChangeEvent : public QEvent
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
UserChangeEvent() : QEvent(static_cast<QEvent::Type>(MyCustomEventType)) {}
|
UserChangeEvent() : QEvent(static_cast<QEvent::Type>(MyCustomEventType)) {}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user