enable tear off on widebar context menu
Signed-off-by: leo78913 <leo3758@riseup.net>
This commit is contained in:
parent
e8dc1564b6
commit
3154c2644a
@ -195,8 +195,10 @@ static void copyAction(QAction* from, QAction* to)
|
|||||||
|
|
||||||
void WideBar::showVisibilityMenu(QPoint const& position)
|
void WideBar::showVisibilityMenu(QPoint const& position)
|
||||||
{
|
{
|
||||||
if (!m_bar_menu)
|
if (!m_bar_menu) {
|
||||||
m_bar_menu = std::make_unique<QMenu>(this);
|
m_bar_menu = std::make_unique<QMenu>(this);
|
||||||
|
m_bar_menu->setTearOffEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
if (m_menu_state == MenuState::Dirty) {
|
if (m_menu_state == MenuState::Dirty) {
|
||||||
for (auto* old_action : m_bar_menu->actions())
|
for (auto* old_action : m_bar_menu->actions())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user