Commit 0edde8f8 authored by Marco Bubke's avatar Marco Bubke

QmlDesigner.FormEditor: Add instancePropertyChange to tools

Change-Id: Ibd2e30f97117ec2c20240e115e57f387fd220686
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent 725853f8
......@@ -82,6 +82,7 @@ public:
virtual void instancesCompleted(const QList<FormEditorItem*> &itemList) = 0;
virtual void instancesParentChanged(const QList<FormEditorItem*> &itemList) = 0;
virtual void instancePropertyChange(const QList<QPair<ModelNode, PropertyName> > &propertyList) = 0;
void setItems(const QList<FormEditorItem*> &itemList);
QList<FormEditorItem*> items() const;
......
......@@ -244,6 +244,9 @@ void DragTool::instancesParentChanged(const QList<FormEditorItem *> &itemList)
m_moveManipulator.synchronizeInstanceParent(itemList);
}
void DragTool::instancePropertyChange(const QList<QPair<ModelNode, PropertyName> > & /*propertyList*/)
{
}
void DragTool::clearMoveDelay()
{
......
......@@ -84,6 +84,7 @@ public:
void selectedItemsChanged(const QList<FormEditorItem*> &itemList);
void instancesParentChanged(const QList<FormEditorItem *> &itemList);
void instancePropertyChange(const QList<QPair<ModelNode, PropertyName> > &propertyList) QTC_OVERRIDE;
void updateMoveManipulator();
......
......@@ -268,6 +268,10 @@ void MoveTool::instancesParentChanged(const QList<FormEditorItem *> &itemList)
m_moveManipulator.synchronizeInstanceParent(itemList);
}
void MoveTool::instancePropertyChange(const QList<QPair<ModelNode, PropertyName> > & /*propertyList*/)
{
}
bool MoveTool::haveSameParent(const QList<FormEditorItem*> &itemList)
{
if (itemList.isEmpty())
......
......@@ -69,6 +69,7 @@ public:
void instancesCompleted(const QList<FormEditorItem*> &itemList);
void instancesParentChanged(const QList<FormEditorItem *> &itemList);
void instancePropertyChange(const QList<QPair<ModelNode, PropertyName> > &propertyList) QTC_OVERRIDE;
void updateMoveManipulator();
......
......@@ -208,6 +208,10 @@ void ResizeTool::instancesCompleted(const QList<FormEditorItem*> &/*itemList*/)
{
}
void ResizeTool::instancePropertyChange(const QList<QPair<ModelNode, PropertyName> > & /*propertyList*/)
{
}
void ResizeTool::instancesParentChanged(const QList<FormEditorItem *> &/*itemList*/)
{
......
......@@ -71,6 +71,7 @@ public:
void instancesParentChanged(const QList<FormEditorItem *> &itemList);
void instancesCompleted(const QList<FormEditorItem*> &itemList);
void instancePropertyChange(const QList<QPair<ModelNode, PropertyName> > &propertyList) QTC_OVERRIDE;
private:
......
......@@ -284,6 +284,10 @@ void SelectionTool::instancesParentChanged(const QList<FormEditorItem *> &/*item
}
void SelectionTool::instancePropertyChange(const QList<QPair<ModelNode, PropertyName> > & /*propertyList*/)
{
}
void SelectionTool::selectUnderPoint(QGraphicsSceneMouseEvent *event)
{
m_singleSelectionManipulator.begin(event->scenePos());
......
......@@ -82,6 +82,7 @@ public:
void instancesCompleted(const QList<FormEditorItem*> &itemList);
void instancesParentChanged(const QList<FormEditorItem *> &itemList);
void instancePropertyChange(const QList<QPair<ModelNode, PropertyName> > &propertyList) QTC_OVERRIDE;
void selectUnderPoint(QGraphicsSceneMouseEvent *event);
......
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