Commit 11997e08 authored by Tim Jenssen's avatar Tim Jenssen Committed by Thomas Hartmann
Browse files

QmlDesigner: move compareBindingProperties method



Change-Id: Iaaeb7d4b43030e9c2efce50ff5463b670ee25fe7
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@theqtcompany.com>
parent e8cce2a3
......@@ -56,4 +56,6 @@ protected:
BindingProperty(const PropertyName &propertyName, const Internal::InternalNodePointer &internalNode, Model* model, AbstractView *view);
};
bool compareBindingProperties(const QmlDesigner::BindingProperty &bindingProperty01, const QmlDesigner::BindingProperty &bindingProperty02);
} // namespace QmlDesigner
......@@ -34,6 +34,15 @@
#include "model_p.h"
namespace QmlDesigner {
bool compareBindingProperties(const QmlDesigner::BindingProperty &bindingProperty01, const QmlDesigner::BindingProperty &bindingProperty02)
{
if (bindingProperty01.parentModelNode() != bindingProperty02.parentModelNode())
return false;
if (bindingProperty01.name() != bindingProperty02.name())
return false;
return true;
}
BindingProperty::BindingProperty()
{
}
......
......@@ -42,18 +42,6 @@
#include <QStyleFactory>
#include <QTimer>
namespace {
bool compareBindingProperties(const QmlDesigner::BindingProperty &bindingProperty01, const QmlDesigner::BindingProperty &bindingProperty02)
{
if (bindingProperty01.parentModelNode() != bindingProperty02.parentModelNode())
return false;
if (bindingProperty01.name() != bindingProperty02.name())
return false;
return true;
}
} //internal namespace
namespace QmlDesigner {
namespace Internal {
......
......@@ -45,15 +45,6 @@
namespace {
bool compareBindingProperties(const QmlDesigner::BindingProperty &bindingProperty01, const QmlDesigner::BindingProperty &bindingProperty02)
{
if (bindingProperty01.parentModelNode() != bindingProperty02.parentModelNode())
return false;
if (bindingProperty01.name() != bindingProperty02.name())
return false;
return true;
}
bool compareVariantProperties(const QmlDesigner::VariantProperty &variantProperty01, const QmlDesigner::VariantProperty &variantProperty02)
{
if (variantProperty01.parentModelNode() != variantProperty02.parentModelNode())
......
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