mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-26 16:01:36 +08:00
Changed CDockManager::addToggleViewActionToMenu to support later setting of group icon
This commit is contained in:
parent
59c783831a
commit
e85b4167bd
@ -778,6 +778,10 @@ QAction* CDockManager::addToggleViewActionToMenu(QAction* ToggleViewAction,
|
|||||||
d->addActionToMenu(GroupMenu->menuAction(), d->ViewMenu, AlphabeticallySorted);
|
d->addActionToMenu(GroupMenu->menuAction(), d->ViewMenu, AlphabeticallySorted);
|
||||||
d->ViewMenuGroups.insert(Group, GroupMenu);
|
d->ViewMenuGroups.insert(Group, GroupMenu);
|
||||||
}
|
}
|
||||||
|
else if (GroupMenu->icon().isNull() && !GroupIcon.isNull())
|
||||||
|
{
|
||||||
|
GroupMenu->setIcon(GroupIcon);
|
||||||
|
}
|
||||||
|
|
||||||
d->addActionToMenu(ToggleViewAction, GroupMenu, AlphabeticallySorted);
|
d->addActionToMenu(ToggleViewAction, GroupMenu, AlphabeticallySorted);
|
||||||
return GroupMenu->menuAction();
|
return GroupMenu->menuAction();
|
||||||
|
Loading…
Reference in New Issue
Block a user