CLayerEditor: Make use of Qt 5 signals and slots
This commit is contained in:
parent
e108c25396
commit
6d21b568cb
|
@ -12,9 +12,9 @@ CLayerEditor::CLayerEditor(QWidget *parent)
|
|||
ui->setupUi(this);
|
||||
ui->LayerSelectComboBox->setModel(mpModel);
|
||||
|
||||
connect(ui->LayerSelectComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(SetCurrentIndex(int)));
|
||||
connect(ui->NameLineEdit, SIGNAL(textEdited(QString)), this, SLOT(EditLayerName(QString)));
|
||||
connect(ui->ActiveCheckBox, SIGNAL(toggled(bool)), this, SLOT(EditLayerActive(bool)));
|
||||
connect(ui->LayerSelectComboBox, qOverload<int>(&QComboBox::currentIndexChanged), this, &CLayerEditor::SetCurrentIndex);
|
||||
connect(ui->NameLineEdit, &QLineEdit::textEdited, this, &CLayerEditor::EditLayerName);
|
||||
connect(ui->ActiveCheckBox, &QCheckBox::toggled, this, &CLayerEditor::EditLayerActive);
|
||||
}
|
||||
|
||||
CLayerEditor::~CLayerEditor() = default;
|
||||
|
|
Loading…
Reference in New Issue