mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-06-26 00:13:32 +00:00
WInstancesTab: Make use of initializer list over operator<<
This commit is contained in:
parent
1a4666e510
commit
b868a94182
@ -59,12 +59,17 @@ WInstancesTab::WInstancesTab(CWorldEditor *pEditor, QWidget *parent) :
|
|||||||
mpUnhideAllTypes = new QAction(tr("UnhideAllTypes"), this);
|
mpUnhideAllTypes = new QAction(tr("UnhideAllTypes"), this);
|
||||||
mpUnhideAll = new QAction(tr("Unhide all"), this);
|
mpUnhideAll = new QAction(tr("Unhide all"), this);
|
||||||
|
|
||||||
QList<QAction*> ActionList;
|
|
||||||
ActionList << mpHideInstance << mpHideType << mpHideAllTypes << mpHideAllExceptType << mpSeparator
|
|
||||||
<< mpUnhideAllTypes << mpUnhideAll;
|
|
||||||
|
|
||||||
mpTreeContextMenu = new QMenu(this);
|
mpTreeContextMenu = new QMenu(this);
|
||||||
mpTreeContextMenu->addActions(ActionList);
|
mpTreeContextMenu->addActions({
|
||||||
|
mpHideInstance,
|
||||||
|
mpHideType,
|
||||||
|
mpHideAllTypes,
|
||||||
|
mpHideAllExceptType,
|
||||||
|
mpSeparator,
|
||||||
|
mpUnhideAllTypes,
|
||||||
|
mpUnhideAll,
|
||||||
|
});
|
||||||
|
|
||||||
connect(mpHideInstance, &QAction::triggered, this, &WInstancesTab::OnHideInstanceAction);
|
connect(mpHideInstance, &QAction::triggered, this, &WInstancesTab::OnHideInstanceAction);
|
||||||
connect(mpHideType, &QAction::triggered, this, &WInstancesTab::OnHideTypeAction);
|
connect(mpHideType, &QAction::triggered, this, &WInstancesTab::OnHideTypeAction);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user