CWorldTreeModel: Make use of Qt 5 signals and slots

This commit is contained in:
Lioncash 2020-06-29 05:14:31 -04:00
parent b31f9c9347
commit 8634d9b29e
1 changed files with 2 additions and 2 deletions

View File

@ -8,8 +8,8 @@
CWorldTreeModel::CWorldTreeModel(CWorldEditor *pEditor)
{
connect(gpEdApp, SIGNAL(ActiveProjectChanged(CGameProject*)), this, SLOT(OnProjectChanged(CGameProject*)));
connect(pEditor, SIGNAL(MapChanged(CWorld*,CGameArea*)), this, SLOT(OnMapChanged()));
connect(gpEdApp, &CEditorApplication::ActiveProjectChanged, this, &CWorldTreeModel::OnProjectChanged);
connect(pEditor, &CWorldEditor::MapChanged, this, &CWorldTreeModel::OnMapChanged);
}
int CWorldTreeModel::rowCount(const QModelIndex& rkParent) const