Changeset View
Changeset View
Standalone View
Standalone View
src/kactionmenu.cpp
Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Line(s) | 100 | } else if (stickyMenu()) { | |||
---|---|---|---|---|---|
101 | button->setPopupMode(QToolButton::InstantPopup); | 101 | button->setPopupMode(QToolButton::InstantPopup); | ||
102 | } else { | 102 | } else { | ||
103 | button->setPopupMode(QToolButton::MenuButtonPopup); | 103 | button->setPopupMode(QToolButton::MenuButtonPopup); | ||
104 | } | 104 | } | ||
105 | 105 | | |||
106 | return button; | 106 | return button; | ||
107 | } | 107 | } | ||
108 | 108 | | |||
109 | #ifndef KWIDGETSADDONS_NO_DEPRECATED | 109 | #if KWIDGETSADDONS_BUILD_DEPRECATED_SINCE(5, 0) | ||
110 | void KActionMenu::remove(QAction *cmd) | 110 | void KActionMenu::remove(QAction *cmd) | ||
111 | { | 111 | { | ||
112 | if (cmd) { | 112 | if (cmd) { | ||
113 | menu()->removeAction(cmd); | 113 | menu()->removeAction(cmd); | ||
114 | } | 114 | } | ||
115 | } | 115 | } | ||
116 | #endif | 116 | #endif | ||
117 | 117 | | |||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |