ScxmlEditor: Pass context object to lambda connections

Remove some unneeded lambda () brackets.

Change-Id: I12a3498c3c13121e021e13b763905fc6a41b214d
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Jarek Kobus
2022-12-07 20:59:51 +01:00
parent a499058a6f
commit 94e98281e9
9 changed files with 30 additions and 33 deletions

View File

@@ -17,15 +17,10 @@ TagTextItem::TagTextItem(QGraphicsItem *parent)
setFlag(ItemIsFocusable, true);
setFlag(ItemIsSelectable, true);
m_textItem = new TextItem(this);
connect(m_textItem, &TextItem::textChanged, this, [=](){
emit textChanged();
});
connect(m_textItem, &TextItem::textReady, this, [=](const QString &text){
emit textReady(text);
});
connect(m_textItem, &TextItem::selected, this, [=](bool sel){
emit selected(sel);
});
connect(m_textItem, &TextItem::textChanged, this, [this] { emit textChanged(); });
connect(m_textItem, &TextItem::textReady,
this, [this](const QString &text) { emit textReady(text); });
connect(m_textItem, &TextItem::selected, this, [this](bool sel) { emit selected(sel); });
setAcceptHoverEvents(true);
}