CWorldTreeModel: Make use of Qt 5 signals and slots
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
