CWorldTreeModel: Make use of Qt 5 signals and slots
This commit is contained in:
parent
b31f9c9347
commit
8634d9b29e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue