CPoiMapModel: Make use of Qt 5 signals and slots

This commit is contained in:
Lioncash 2020-06-28 22:00:31 -04:00
parent fa1b99f7d4
commit 46f7f69d3e
1 changed files with 1 additions and 1 deletions

View File

@ -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