https://bugs.kde.org/show_bug.cgi?id=413827
--- Comment #1 from David Hurka <david.hu...@mailbox.org> --- I also find this weird, thanks for opening the bug. I think providing a setPopupMode(QToolButton::ToolButtonPopupMode) would be just fine. >From kactionmenu.cpp: In private class definition: > bool m_delayed = true; > bool m_stickyMenu = true; In createWidget(): > if (delayed()) { > button->setPopupMode(QToolButton::DelayedPopup); > } else if (stickyMenu()) { > button->setPopupMode(QToolButton::InstantPopup); > } else { > button->setPopupMode(QToolButton::MenuButtonPopup); > } In toggleactionmenu.cpp (D21971) I go the reverse way: > if ( popupMode == QToolButton::DelayedPopup ) > { > setDelayed( true ); > } > else if ( popupMode == QToolButton::InstantPopup ) > { > setDelayed( false ); > setStickyMenu( true ); > } > else > { > setDelayed( false ); > setStickyMenu( false ); > } -- You are receiving this mail because: You are watching all bug changes.