QmlDesigner: Fix warnings about unused lambda cpatures

Change-Id: I73e7aeed02527efd657df44232c13bb2e136f5ee
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Christian Kandeler
2020-04-23 16:27:35 +02:00
parent 69f7865c72
commit 4c064c5f9b
4 changed files with 4 additions and 4 deletions

View File

@@ -108,7 +108,7 @@ void IconRenderer::setupRender()
if (m_contentItem->height() > containerItem->height())
containerItem->setHeight(m_contentItem->height());
QTimer::singleShot(0, this, [this, containerItem, is3D]() {
QTimer::singleShot(0, this, [this, is3D]() {
m_designerSupport.refFromEffectItem(m_quickView->rootObject(), false);
QQuickDesignerSupportItems::disableNativeTextRendering(m_quickView->rootObject());

View File

@@ -1045,7 +1045,7 @@ void addTransition(const SelectionContext &selectionContext)
view->executeInTransaction("DesignerActionManager:addTransition",
[view, targetNode, &sourceNode](){
[targetNode, &sourceNode](){
sourceNode.assignTargetItem(targetNode);
});
}

View File

@@ -338,7 +338,7 @@ void GraphicsView::contextMenuEvent(QContextMenuEvent *event)
QAction *insertKeyframeAction = menu.addAction(tr("Insert Keyframe"));
connect(insertKeyframeAction, &QAction::triggered, insertKeyframes);
auto deleteKeyframes = [this, event] { m_scene->deleteSelectedKeyframes(); };
auto deleteKeyframes = [this] { m_scene->deleteSelectedKeyframes(); };
QAction *deleteKeyframeAction = menu.addAction(tr("Delete Selected Keyframes"));
connect(deleteKeyframeAction, &QAction::triggered, deleteKeyframes);

View File

@@ -204,7 +204,7 @@ bool EasingCurveDialog::apply()
}
AbstractView *view = m_frames.first().view();
return view->executeInTransaction("EasingCurveDialog::apply", [this, view](){
return view->executeInTransaction("EasingCurveDialog::apply", [this](){
auto expression = m_splineEditor->easingCurve().toString();
for (const auto &frame : m_frames)
frame.bindingProperty("easing.bezierCurve").setExpression(expression);