forked from qt-creator/qt-creator
QmlDesigner: Fix warnings about unused lambda cpatures
Change-Id: I73e7aeed02527efd657df44232c13bb2e136f5ee Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -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());
|
||||
|
||||
|
@@ -1045,7 +1045,7 @@ void addTransition(const SelectionContext &selectionContext)
|
||||
|
||||
|
||||
view->executeInTransaction("DesignerActionManager:addTransition",
|
||||
[view, targetNode, &sourceNode](){
|
||||
[targetNode, &sourceNode](){
|
||||
sourceNode.assignTargetItem(targetNode);
|
||||
});
|
||||
}
|
||||
|
@@ -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);
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user