mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-01 07:14:14 +02:00
Fix captor operator [=] which needs to be written explciitly [this] in C++20.
This commit is contained in:
@@ -612,7 +612,7 @@ void QETDiagramEditor::setUpActions()
|
||||
|
||||
//Add a nomenclature item
|
||||
m_add_nomenclature = new QAction(QET::Icons::TableOfContent, tr("Ajouter une nomenclature"), this);
|
||||
connect(m_add_nomenclature, &QAction::triggered, this, [=]() {
|
||||
connect(m_add_nomenclature, &QAction::triggered, this, [this]() {
|
||||
if(this->currentDiagramView()) {
|
||||
QetGraphicsTableFactory::createAndAddNomenclature(this->currentDiagramView()->diagram());
|
||||
}
|
||||
@@ -620,14 +620,14 @@ void QETDiagramEditor::setUpActions()
|
||||
|
||||
//Add a summary item
|
||||
m_add_summary = new QAction(QET::Icons::TableOfContent, tr("Ajouter un sommaire"), this);
|
||||
connect(m_add_summary, &QAction::triggered, this, [=]() {
|
||||
connect(m_add_summary, &QAction::triggered, this, [this]() {
|
||||
if(this->currentDiagramView()) {
|
||||
QetGraphicsTableFactory::createAndAddSummary(this->currentDiagramView()->diagram());
|
||||
}
|
||||
});
|
||||
|
||||
m_terminal_strip_dialog = new QAction(QET::Icons::TerminalStrip, tr("Gestionnaire de borniers (DEV)"), this);
|
||||
connect(m_terminal_strip_dialog, &QAction::triggered, this, [=]()
|
||||
connect(m_terminal_strip_dialog, &QAction::triggered, this, [this]()
|
||||
{
|
||||
if (auto project = this->currentProject())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user