From 46f7f69d3e536112dbec96a0bd6b5342e285e86e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 28 Jun 2020 22:00:31 -0400 Subject: [PATCH] CPoiMapModel: Make use of Qt 5 signals and slots --- src/Editor/WorldEditor/CPoiMapModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Editor/WorldEditor/CPoiMapModel.cpp b/src/Editor/WorldEditor/CPoiMapModel.cpp index ef2edc85..79cac134 100644 --- a/src/Editor/WorldEditor/CPoiMapModel.cpp +++ b/src/Editor/WorldEditor/CPoiMapModel.cpp @@ -8,7 +8,7 @@ CPoiMapModel::CPoiMapModel(CWorldEditor *pEditor, QObject *pParent) : QAbstractListModel(pParent) , mpEditor(pEditor) { - connect(pEditor, SIGNAL(MapChanged(CWorld*,CGameArea*)), this, SLOT(OnMapChange(CWorld*,CGameArea*))); + connect(pEditor, &CWorldEditor::MapChanged, this, &CPoiMapModel::OnMapChange); } QVariant CPoiMapModel::headerData(int Section, Qt::Orientation Orientation, int Role) const