CPoiMapModel: Make use of Qt 5 signals and slots
This commit is contained in:
parent
fa1b99f7d4
commit
46f7f69d3e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue