aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmleasing/splineeditor.cpp
diff options
context:
space:
mode:
authorShrikant Dhumal <teck.shri@gmail.com>2015-09-09 16:55:34 -0700
committerShrikant Dhumal <teck.shri@gmail.com>2015-09-10 19:30:20 +0000
commit483d5256c0a06e52430364d033db1f305bf167f8 (patch)
treee57bfc3b213d110c0eda50dec0f66d3c9d9f85de /tools/qmleasing/splineeditor.cpp
parent6338e98729f811fd3a2d960c184e76357e908ab7 (diff)
Added QT_NO_CONTEXTMENU check for contextMenuEvent() handler
If Qt is configured with -no-feature-CONTEXTMENU it fails to compile qmleasing. Change-Id: I5ca001bbd0da5630fdfb54c5240e9bf4a5a81338 Reviewed-by: Jake Petroules <jake.petroules@theqtcompany.com>
Diffstat (limited to 'tools/qmleasing/splineeditor.cpp')
-rw-r--r--tools/qmleasing/splineeditor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/qmleasing/splineeditor.cpp b/tools/qmleasing/splineeditor.cpp
index b957cab4fe..56444f6b3b 100644
--- a/tools/qmleasing/splineeditor.cpp
+++ b/tools/qmleasing/splineeditor.cpp
@@ -228,6 +228,7 @@ void SplineEditor::mouseReleaseEvent(QMouseEvent *e)
}
}
+#ifndef QT_NO_CONTEXTMENU
void SplineEditor::contextMenuEvent(QContextMenuEvent *e)
{
int index = findControlPoint(e->pos());
@@ -247,6 +248,7 @@ void SplineEditor::contextMenuEvent(QContextMenuEvent *e)
addPoint(e->pos());
}
}
+#endif // QT_NO_CONTEXTMENU
void SplineEditor::invalidate()
{