Konsole
#include <Profile.h>
Additional Inherited Members | |
Static Public Member Functions inherited from Konsole::Profile | |
static Property | lookupByName (const QString &name) |
Detailed Description
A composite profile which allows a group of profiles to be treated as one.
When setting a property, the new value is applied to all profiles in the group. When reading a property, if all profiles in the group have the same value then that value is returned, otherwise the result is null.
Profiles can be added to the group using addProfile(). When all profiles have been added updateValues() must be called to sync the group's property values with those of the group's profiles.
The Profile::Name and Profile::Path properties are unique to individual profiles, setting these properties on a ProfileGroup has no effect.
Member Typedef Documentation
typedef KSharedPtr<ProfileGroup> Konsole::ProfileGroup::Ptr |
Constructor & Destructor Documentation
|
inlineexplicit |
Member Function Documentation
|
inline |
Add a profile to the group.
Calling setProperty() will update this profile. When creating a group, add the profiles to the group then call updateValues() to make the group's property values reflect the profiles currently in the group.
|
inline |
|
inline |
Remove a profile from the group.
Calling setProperty() will no longer affect this profile.
Sets the value of property
in each of the group's profiles to value
.
Reimplemented from Konsole::Profile.
Definition at line 364 of file Profile.cpp.
void ProfileGroup::updateValues | ( | ) |
Updates the property values in this ProfileGroup to match those from the group's profiles()
For each available property, if each profile in the group has the same value then the ProfileGroup will use that value for the property. Otherwise the value for the property will be set to a null QVariant
Some properties such as the name and the path of the profile will always be set to null if the group has more than one profile.
Definition at line 335 of file Profile.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:28 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.