Changeset View
Changeset View
Standalone View
Standalone View
src/kmoretools/kmoretoolsmenufactory.h
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | 41 | public: | |||
---|---|---|---|---|---|
95 | * WARN 2: You must NOT reuse an existing KMoreToolsMenuFactory instance | 95 | * WARN 2: You must NOT reuse an existing KMoreToolsMenuFactory instance | ||
96 | * to create a different menu. | 96 | * to create a different menu. | ||
97 | * | 97 | * | ||
98 | * @since 5.11 | 98 | * @since 5.11 | ||
99 | */ | 99 | */ | ||
100 | void fillMenuFromGroupingNames(QMenu* menu, const QStringList& groupingNames, | 100 | void fillMenuFromGroupingNames(QMenu* menu, const QStringList& groupingNames, | ||
101 | const QUrl& url = QUrl()); | 101 | const QUrl& url = QUrl()); | ||
102 | 102 | | |||
103 | | ||||
104 | /** | ||||
105 | * Set @p widget as the parent widget of the QMenu that will be created | ||||
106 | * by createMenuFromGroupingNames(). | ||||
107 | * @see createMenuFromGroupingNames() | ||||
108 | * @since 5.37 | ||||
109 | */ | ||||
110 | void setParentWidget(QWidget* widget); | ||||
111 | | ||||
103 | private: | 112 | private: | ||
104 | /* | 113 | /* | ||
105 | * NOT USED. REMOVE this when possible. | 114 | * NOT USED. REMOVE this when possible. | ||
106 | * Preserves object size to counteract BIC introduced with | 115 | * Preserves object size to counteract BIC introduced with | ||
107 | * 3ecc3701f7e1aa83104b06fa90ea07eeca47f93d. | 116 | * 3ecc3701f7e1aa83104b06fa90ea07eeca47f93d. | ||
108 | */ | 117 | */ | ||
109 | KMoreTools* m_off = nullptr; | 118 | KMoreTools* m_off = nullptr; | ||
110 | 119 | | |||
111 | KMoreToolsMenuFactoryPrivate* d; | 120 | KMoreToolsMenuFactoryPrivate* d; | ||
112 | }; | 121 | }; | ||
113 | 122 | | |||
114 | #endif | 123 | #endif |