CLayerEditor: Make use of Qt 5 signals and slots

This commit is contained in:
Lioncash 2020-06-28 20:00:58 -04:00
parent e108c25396
commit 6d21b568cb
1 changed files with 3 additions and 3 deletions

View File

@ -12,9 +12,9 @@ CLayerEditor::CLayerEditor(QWidget *parent)
ui->setupUi(this); ui->setupUi(this);
ui->LayerSelectComboBox->setModel(mpModel); ui->LayerSelectComboBox->setModel(mpModel);
connect(ui->LayerSelectComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(SetCurrentIndex(int))); connect(ui->LayerSelectComboBox, qOverload<int>(&QComboBox::currentIndexChanged), this, &CLayerEditor::SetCurrentIndex);
connect(ui->NameLineEdit, SIGNAL(textEdited(QString)), this, SLOT(EditLayerName(QString))); connect(ui->NameLineEdit, &QLineEdit::textEdited, this, &CLayerEditor::EditLayerName);
connect(ui->ActiveCheckBox, SIGNAL(toggled(bool)), this, SLOT(EditLayerActive(bool))); connect(ui->ActiveCheckBox, &QCheckBox::toggled, this, &CLayerEditor::EditLayerActive);
} }
CLayerEditor::~CLayerEditor() = default; CLayerEditor::~CLayerEditor() = default;