Changeset View
Changeset View
Standalone View
Standalone View
src/Profile.h
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | |||||
50 | * property if one has been set or otherwise it will return the | 50 | * property if one has been set or otherwise it will return the | ||
51 | * parent's value for that property. | 51 | * parent's value for that property. | ||
52 | * | 52 | * | ||
53 | * Profiles can be loaded from disk using ProfileReader instances | 53 | * Profiles can be loaded from disk using ProfileReader instances | ||
54 | * and saved to disk using ProfileWriter instances. | 54 | * and saved to disk using ProfileWriter instances. | ||
55 | */ | 55 | */ | ||
56 | class KONSOLEPRIVATE_EXPORT Profile : public QSharedData | 56 | class KONSOLEPRIVATE_EXPORT Profile : public QSharedData | ||
57 | { | 57 | { | ||
58 | Q_GADGET | ||||
59 | | ||||
58 | friend class ProfileReader; | 60 | friend class ProfileReader; | ||
59 | friend class ProfileWriter; | 61 | friend class ProfileWriter; | ||
60 | friend class ProfileGroup; | 62 | friend class ProfileGroup; | ||
61 | 63 | | |||
62 | public: | 64 | public: | ||
63 | typedef QExplicitlySharedDataPointer<Profile> Ptr; | 65 | typedef QExplicitlySharedDataPointer<Profile> Ptr; | ||
64 | typedef QExplicitlySharedDataPointer<ProfileGroup> GroupPtr; | 66 | typedef QExplicitlySharedDataPointer<ProfileGroup> GroupPtr; | ||
65 | 67 | | |||
▲ Show 20 Lines • Show All 225 Lines • ▼ Show 20 Line(s) | 75 | enum Property { | |||
291 | */ | 293 | */ | ||
292 | AlternateScrolling, | 294 | AlternateScrolling, | ||
293 | /** (int) Keyboard modifiers to show URL hints */ | 295 | /** (int) Keyboard modifiers to show URL hints */ | ||
294 | UrlHintsModifiers, | 296 | UrlHintsModifiers, | ||
295 | /** (bool) Reverse the order of URL hints */ | 297 | /** (bool) Reverse the order of URL hints */ | ||
296 | ReverseUrlHints | 298 | ReverseUrlHints | ||
297 | }; | 299 | }; | ||
298 | 300 | | |||
301 | Q_ENUM(Property) | ||||
302 | | ||||
299 | /** | 303 | /** | ||
300 | * Constructs a new profile | 304 | * Constructs a new profile | ||
301 | * | 305 | * | ||
302 | * @param parent The parent profile. When querying the value of a | 306 | * @param parent The parent profile. When querying the value of a | ||
303 | * property using property(), if the property has not been set in this | 307 | * property using property(), if the property has not been set in this | ||
304 | * profile then the parent's value for the property will be returned. | 308 | * profile then the parent's value for the property will be returned. | ||
305 | */ | 309 | */ | ||
306 | explicit Profile(const Ptr &parent = Ptr()); | 310 | explicit Profile(const Ptr &parent = Ptr()); | ||
▲ Show 20 Lines • Show All 500 Lines • Show Last 20 Lines |