From f28e4d491462f2fd4126d9d848e83ce7f5cbd6a5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 29 Jun 2020 04:40:58 -0400 Subject: [PATCH] CSelectInstanceDialog: Make use of Qt 5 signals and slots --- src/Editor/WorldEditor/CSelectInstanceDialog.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Editor/WorldEditor/CSelectInstanceDialog.cpp b/src/Editor/WorldEditor/CSelectInstanceDialog.cpp index ce8af7cd..00eaaef6 100644 --- a/src/Editor/WorldEditor/CSelectInstanceDialog.cpp +++ b/src/Editor/WorldEditor/CSelectInstanceDialog.cpp @@ -35,11 +35,11 @@ CSelectInstanceDialog::CSelectInstanceDialog(CWorldEditor *pEditor, QWidget *pPa ui->ButtonBox->button(QDialogButtonBox::Ok)->setEnabled(false); - connect(ui->TabWidget, SIGNAL(currentChanged(int)), this, SLOT(OnTabChanged(int))); - connect(ui->LayersTreeView, SIGNAL(clicked(QModelIndex)), this, SLOT(OnTreeClicked(QModelIndex))); - connect(ui->LayersTreeView, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(OnTreeDoubleClicked(QModelIndex))); - connect(ui->TypesTreeView, SIGNAL(clicked(QModelIndex)), this, SLOT(OnTreeClicked(QModelIndex))); - connect(ui->TypesTreeView, SIGNAL(doubleClicked(QModelIndex)), this, SLOT(OnTreeDoubleClicked(QModelIndex))); + connect(ui->TabWidget, &QTabWidget::currentChanged, this, &CSelectInstanceDialog::OnTabChanged); + connect(ui->LayersTreeView, &QTreeView::clicked, this, &CSelectInstanceDialog::OnTreeClicked); + connect(ui->LayersTreeView, &QTreeView::doubleClicked, this, &CSelectInstanceDialog::OnTreeDoubleClicked); + connect(ui->TypesTreeView, &QTreeView::clicked, this, &CSelectInstanceDialog::OnTreeClicked); + connect(ui->TypesTreeView, &QTreeView::doubleClicked, this, &CSelectInstanceDialog::OnTreeDoubleClicked); } CSelectInstanceDialog::~CSelectInstanceDialog() = default;