aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/formeditor/resizemanipulator.h
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@nokia.com>2011-06-27 15:52:14 +0200
committerMarco Bubke <marco.bubke@nokia.com>2011-06-27 16:22:02 +0200
commitd7ed0667e95690b9c1382534518940d03b179cf0 (patch)
tree381597f9029bc2904c6a86ea3e346fcd68a6cb09 /src/plugins/qmldesigner/components/formeditor/resizemanipulator.h
parenta9f53ec9c5629cd2a9914fa6b8d7cba7612f4bbb (diff)
QmlDesigner.formeEditor: add handler for context menu
This patch adds a handler for a context menu to AbstactFormEditorTool. Also all the tools are patched to ignore right mouse keys for now. The ResizeManipulator gets an active property. Change-Id: I66b247ce6ae8e9f88517a1c1698432fb64f70da7 Reviewed-on: http://codereview.qt.nokia.com/770 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Marco Bubke <marco.bubke@nokia.com>
Diffstat (limited to 'src/plugins/qmldesigner/components/formeditor/resizemanipulator.h')
-rw-r--r--src/plugins/qmldesigner/components/formeditor/resizemanipulator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/formeditor/resizemanipulator.h b/src/plugins/qmldesigner/components/formeditor/resizemanipulator.h
index c8d4a9aa59..7f04f39ae7 100644
--- a/src/plugins/qmldesigner/components/formeditor/resizemanipulator.h
+++ b/src/plugins/qmldesigner/components/formeditor/resizemanipulator.h
@@ -67,6 +67,8 @@ public:
void clear();
+ bool isActive() const;
+
protected:
bool isInvalidSize(const QSizeF & size);
void deleteSnapLines();
@@ -91,6 +93,7 @@ private:
QWeakPointer<LayerItem> m_layerItem;
ResizeHandleItem *m_resizeHandle;
RewriterTransaction m_rewriterTransaction;
+ bool m_isActive;
};
}