diff options
author | Christian Stenger <christian.stenger@qt.io> | 2016-06-28 13:35:37 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2016-06-28 11:53:04 +0000 |
commit | 06b2df0e2731c60cefa7a2655204431f16110310 (patch) | |
tree | a8da8dd1cd60343a871cef70d66404cb604d24e2 | |
parent | 0a3f59659915f4c1cb974d20bb2ba3ff40cba79d (diff) |
QmlJSEditor: Fix compile with Qt5.5
Avoid using functionality introduced with Qt5.6.
Change-Id: Icfa4eeb547b651a19aa745b5de1cb413f9b6b4ef
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
-rw-r--r-- | src/plugins/qmljseditor/qmljsoutlinetreeview.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/qmljseditor/qmljsoutlinetreeview.cpp b/src/plugins/qmljseditor/qmljsoutlinetreeview.cpp index f20715ad50..996c17dca9 100644 --- a/src/plugins/qmljseditor/qmljsoutlinetreeview.cpp +++ b/src/plugins/qmljseditor/qmljsoutlinetreeview.cpp @@ -57,8 +57,10 @@ void QmlJSOutlineTreeView::contextMenuEvent(QContextMenuEvent *event) QMenu contextMenu; - contextMenu.addAction(tr("Expand All"), this, [this] { expandAll(); }); - contextMenu.addAction(tr("Collapse All"), this, [this] { collapseAllExceptRoot(); }); + QAction *action = contextMenu.addAction(tr("Expand All")); + connect(action, &QAction::triggered, this, [this] () { expandAll(); }); + action = contextMenu.addAction(tr("Collapse All")); + connect(action, &QAction::triggered, this, [this] () { collapseAllExceptRoot(); }); contextMenu.exec(event->globalPos()); |