Skip to content

Commit

Permalink
Added THIS to connect for lambda functions
Browse files Browse the repository at this point in the history
  • Loading branch information
foldynl committed Nov 24, 2023
1 parent b30d7bf commit e27aed3
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions ui/MainLayoutEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void MainLayoutEditor::connectQSORowButtons()
/*********************/
/* QSO Row A Buttons */
/*********************/
connect(ui->qsoRowADownButton, &QPushButton::clicked, [this]()
connect(ui->qsoRowADownButton, &QPushButton::clicked, this, [this]()
{
QModelIndexList modelList = ui->qsoRowAFieldsListView->selectionModel()->selectedRows();

Expand All @@ -170,7 +170,7 @@ void MainLayoutEditor::connectQSORowButtons()
}
});

connect(ui->qsoRowAUpButton, &QPushButton::clicked, [this]()
connect(ui->qsoRowAUpButton, &QPushButton::clicked, this, [this]()
{
QModelIndexList modelList = ui->qsoRowAFieldsListView->selectionModel()->selectedRows();

Expand All @@ -180,14 +180,14 @@ void MainLayoutEditor::connectQSORowButtons()
}
});

connect(ui->moveToQSORowAButton, &QPushButton::clicked, [this]()
connect(ui->moveToQSORowAButton, &QPushButton::clicked, this, [this]()
{
moveField(availableFieldsModel,
qsoRowAFieldsModel,
ui->availableFieldsListView->selectionModel()->selectedIndexes());
});

connect(ui->removeFromQSORowAButton, &QPushButton::clicked, [this]()
connect(ui->removeFromQSORowAButton, &QPushButton::clicked, this, [this]()
{
moveField(qsoRowAFieldsModel,
availableFieldsModel,
Expand All @@ -196,7 +196,7 @@ void MainLayoutEditor::connectQSORowButtons()
/*********************/
/* QSO Row B Buttons */
/*********************/
connect(ui->qsoRowBDownButton, &QPushButton::clicked, [this]()
connect(ui->qsoRowBDownButton, &QPushButton::clicked, this, [this]()
{
QModelIndexList modelList = ui->qsoRowBFieldsListView->selectionModel()->selectedRows();

Expand All @@ -206,7 +206,7 @@ void MainLayoutEditor::connectQSORowButtons()
}
});

connect(ui->qsoRowBUpButton, &QPushButton::clicked, [this]()
connect(ui->qsoRowBUpButton, &QPushButton::clicked, this, [this]()
{
QModelIndexList modelList = ui->qsoRowBFieldsListView->selectionModel()->selectedRows();

Expand All @@ -216,14 +216,14 @@ void MainLayoutEditor::connectQSORowButtons()
}
});

connect(ui->moveToQSORowBButton, &QPushButton::clicked, [this]()
connect(ui->moveToQSORowBButton, &QPushButton::clicked, this, [this]()
{
moveField(availableFieldsModel,
qsoRowBFieldsModel,
ui->availableFieldsListView->selectionModel()->selectedIndexes());
});

connect(ui->removeFromQSORowBButton, &QPushButton::clicked, [this]()
connect(ui->removeFromQSORowBButton, &QPushButton::clicked, this, [this]()
{
moveField(qsoRowBFieldsModel,
availableFieldsModel,
Expand All @@ -238,7 +238,7 @@ void MainLayoutEditor::connectDetailColsButtons()
/****************************/
/* QSO Detail Col A Buttons */
/****************************/
connect(ui->detailColADownButton, &QPushButton::clicked, [this]()
connect(ui->detailColADownButton, &QPushButton::clicked, this, [this]()
{
QModelIndexList modelList = ui->detailColAFieldsListView->selectionModel()->selectedRows();

Expand All @@ -248,7 +248,7 @@ void MainLayoutEditor::connectDetailColsButtons()
}
});

connect(ui->detailColAUpButton, &QPushButton::clicked, [this]()
connect(ui->detailColAUpButton, &QPushButton::clicked, this, [this]()
{
QModelIndexList modelList = ui->detailColAFieldsListView->selectionModel()->selectedRows();

Expand All @@ -258,14 +258,14 @@ void MainLayoutEditor::connectDetailColsButtons()
}
});

connect(ui->moveToDetailColAButton, &QPushButton::clicked, [this]()
connect(ui->moveToDetailColAButton, &QPushButton::clicked, this, [this]()
{
moveField(availableFieldsModel,
detailColAFieldsModel,
ui->availableFieldsListView->selectionModel()->selectedIndexes());
});

connect(ui->removeFromDetailColAButton, &QPushButton::clicked, [this]()
connect(ui->removeFromDetailColAButton, &QPushButton::clicked, this, [this]()
{
moveField(detailColAFieldsModel,
availableFieldsModel,
Expand All @@ -275,7 +275,7 @@ void MainLayoutEditor::connectDetailColsButtons()
/****************************/
/* QSO Detail Col B Buttons */
/****************************/
connect(ui->detailColBDownButton, &QPushButton::clicked, [this]()
connect(ui->detailColBDownButton, &QPushButton::clicked, this, [this]()
{
QModelIndexList modelList = ui->detailColBFieldsListView->selectionModel()->selectedRows();

Expand All @@ -285,7 +285,7 @@ void MainLayoutEditor::connectDetailColsButtons()
}
});

connect(ui->detailColBUpButton, &QPushButton::clicked, [this]()
connect(ui->detailColBUpButton, &QPushButton::clicked, this, [this]()
{
QModelIndexList modelList = ui->detailColBFieldsListView->selectionModel()->selectedRows();

Expand All @@ -295,14 +295,14 @@ void MainLayoutEditor::connectDetailColsButtons()
}
});

connect(ui->moveToDetailColBButton, &QPushButton::clicked, [this]()
connect(ui->moveToDetailColBButton, &QPushButton::clicked, this, [this]()
{
moveField(availableFieldsModel,
detailColBFieldsModel,
ui->availableFieldsListView->selectionModel()->selectedIndexes());
});

connect(ui->removeFromDetailColBButton, &QPushButton::clicked, [this]()
connect(ui->removeFromDetailColBButton, &QPushButton::clicked, this, [this]()
{
moveField(detailColBFieldsModel,
availableFieldsModel,
Expand All @@ -312,7 +312,7 @@ void MainLayoutEditor::connectDetailColsButtons()
/****************************/
/* QSO Detail Col C Buttons */
/****************************/
connect(ui->detailColCDownButton, &QPushButton::clicked, [this]()
connect(ui->detailColCDownButton, &QPushButton::clicked, this, [this]()
{
QModelIndexList modelList = ui->detailColCFieldsListView->selectionModel()->selectedRows();

Expand All @@ -322,7 +322,7 @@ void MainLayoutEditor::connectDetailColsButtons()
}
});

connect(ui->detailColCUpButton, &QPushButton::clicked, [this]()
connect(ui->detailColCUpButton, &QPushButton::clicked, this, [this]()
{
QModelIndexList modelList = ui->detailColCFieldsListView->selectionModel()->selectedRows();

Expand All @@ -332,14 +332,14 @@ void MainLayoutEditor::connectDetailColsButtons()
}
});

connect(ui->moveToDetailColCButton, &QPushButton::clicked, [this]()
connect(ui->moveToDetailColCButton, &QPushButton::clicked, this, [this]()
{
moveField(availableFieldsModel,
detailColCFieldsModel,
ui->availableFieldsListView->selectionModel()->selectedIndexes());
});

connect(ui->removeFromDetailColCButton, &QPushButton::clicked, [this]()
connect(ui->removeFromDetailColCButton, &QPushButton::clicked, this, [this]()
{
moveField(detailColCFieldsModel,
availableFieldsModel,
Expand Down

0 comments on commit e27aed3

Please sign in to comment.