Changeset View
Changeset View
Standalone View
Standalone View
src/ktoolbarpopupaction.h
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 58 | public: | |||
---|---|---|---|---|---|
68 | */ | 68 | */ | ||
69 | KToolBarPopupAction(const QIcon &icon, const QString &text, QObject *parent); | 69 | KToolBarPopupAction(const QIcon &icon, const QString &text, QObject *parent); | ||
70 | 70 | | |||
71 | /** | 71 | /** | ||
72 | * Destroys the toolbar popup action. | 72 | * Destroys the toolbar popup action. | ||
73 | */ | 73 | */ | ||
74 | ~KToolBarPopupAction() override; | 74 | ~KToolBarPopupAction() override; | ||
75 | 75 | | |||
76 | #if KWIDGETSADDONS_ENABLE_DEPRECATED_SINCE(5, 0) | ||||
76 | /** | 77 | /** | ||
77 | * The popup menu that is shown when clicking (some time) on the toolbar | 78 | * The popup menu that is shown when clicking (some time) on the toolbar | ||
78 | * button. You may want to plug items into it on creation, or connect to | 79 | * button. You may want to plug items into it on creation, or connect to | ||
79 | * aboutToShow for a more dynamic menu. | 80 | * aboutToShow for a more dynamic menu. | ||
80 | * | 81 | * | ||
81 | * \deprecated use menu() instead | 82 | * \deprecated Since 5.0, use menu() instead | ||
82 | */ | 83 | */ | ||
83 | #ifndef KWIDGETSADDONS_NO_DEPRECATED | 84 | KWIDGETSADDONS_DEPRECATED_VERSION(5, 0, "Use KToolBarPopupAction::menu()") | ||
84 | KWIDGETSADDONS_DEPRECATED QMenu *popupMenu() const; | 85 | QMenu *popupMenu() const; | ||
85 | #endif | 86 | #endif | ||
86 | 87 | | |||
87 | /** | 88 | /** | ||
88 | * Returns true if this action creates a delayed popup menu | 89 | * Returns true if this action creates a delayed popup menu | ||
89 | * when plugged in a KToolBar. | 90 | * when plugged in a KToolBar. | ||
90 | */ | 91 | */ | ||
91 | bool delayed() const; | 92 | bool delayed() const; | ||
92 | 93 | | |||
Show All 35 Lines |