Commit ee5ec831 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: Remove out commented code



There is no reason to keep this along.

Change-Id: Ibcc9fb80621686d5fc953e8ccdb6440b21a79335
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent 6c110d31
......@@ -147,60 +147,6 @@ bool AbstractProperty::isValid() const
!m_propertyName.isEmpty();
}
//bool AbstractProperty::isValueAPropertyBinding() const
//{
// const QVariant propertyValue = value();
//
// return propertyValue.type() == QVariant::UserType && propertyValue.userType() == qMetaTypeId<QmlDesigner::PropertyBinding>();
//}
//
//PropertyBinding AbstractProperty::valueToPropertyBinding() const
//{
// if (isValueAPropertyBinding())
// return value().value<PropertyBinding>();
// else
// return PropertyBinding();
//}
//
//bool AbstractProperty::isValueAModelNode() const
//{
// const QVariant propertyValue = value();
//
// return propertyValue.type() == QVariant::UserType && propertyValue.userType() == ModelNode::variantUserType();
//}
//
//ModelNode AbstractProperty::valueToModelNode() const
//{
// if (isValueAModelNode())
// return value().value<ModelNode>();
// else
// return ModelNode();
//}
//
//bool AbstractProperty::isValueAList() const
//{
// const QVariant propertyValue = value();
//
// return propertyValue.type() == QVariant::List;
//}
//
//QVariantList AbstractProperty::valueToList() const
//{
// if (isValueAList())
// return value().toList();
// else
// return QVariantList();
//}
//
//ModelNode AbstractProperty::addModelNodeToValueList(const QString &type, int majorVersion, int minorVersion, const QList<QPair<QString, QVariant> > &propertyList)
//{
// //if (isValueAList())
// // return m_model->addModelNode(state(), m_propertyName, type, majorVersion, minorVersion, propertyList);
// //else
// // throw InvalidPropertyException(__LINE__, __FUNCTION__, __FILE__, m_propertyName);
// return ModelNode();
//}
/*!
Returns the model node to which the property belongs.
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment