mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-06-30 18:33:39 +00:00
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->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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user