Changeset View
Changeset View
Standalone View
Standalone View
core/MenuItem.h
Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Line(s) | 52 | public: | |||
---|---|---|---|---|---|
150 | /** | 150 | /** | ||
151 | * Sets the service object, which is used to provide the module information, name and keywords | 151 | * Sets the service object, which is used to provide the module information, name and keywords | ||
152 | * Applications will crash if it is not set, unless it is the top level item. | 152 | * Applications will crash if it is not set, unless it is the top level item. | ||
153 | * | 153 | * | ||
154 | * @param service The service object to store. | 154 | * @param service The service object to store. | ||
155 | */ | 155 | */ | ||
156 | void setService( const KService::Ptr& service ); | 156 | void setService( const KService::Ptr& service ); | ||
157 | 157 | | |||
158 | bool showDefaultIndicator() const; | ||||
159 | | ||||
160 | void updateDefaultIndicator(); | ||||
ervin: I don't like the name much, I think it could be confused with updating actual default value or… | |||||
161 | | ||||
158 | private: | 162 | private: | ||
159 | class Private; | 163 | class Private; | ||
160 | Private *const d; | 164 | Private *const d; | ||
161 | }; | 165 | }; | ||
162 | 166 | | |||
163 | Q_DECLARE_METATYPE( MenuItem * ) | 167 | Q_DECLARE_METATYPE( MenuItem * ) | ||
164 | 168 | | |||
165 | #endif | 169 | #endif |
I don't like the name much, I think it could be confused with updating actual default value or such... updateIsDefault() is not great either though... :-/