KProperty
KPropertySet.h
151 In a read-only property set no property can be modified by the user regardless of read-only flag
152 of any property (KProperty::isReadOnly()). On the other hand if KProperty::isReadOnly() is @c true
154 Read-only property set prevents editing in the property editor but it is still possible to change
187 QVariant propertyValue(const QByteArray &name, const QVariant& defaultValue = QVariant()) const;
231 * @brief Clears "modified" flag of all properties in this set, i.e. calls clearModifiedFlag() for each property.
238 * Returns @c true if at least one property in this set is modified, i.e. returns @c true for isModified()
virtual KPropertySelector * clone() const =0
Creates a deep copy of the selector.
virtual bool operator()(const KProperty &prop) const =0
An operator implementing the functor.
KPropertySetIterator(const KPropertySet &set)
Creates iterator for set set of properties.
Definition KPropertySet.cpp:303
KPropertySetIterator & operator=(const KPropertySetIterator &other)
Assigns other to this KPropertySetIterator.
Definition KPropertySet.cpp:330
bool operator!=(const KPropertySetIterator &other) const
Definition KPropertySet.h:88
bool operator==(const KPropertySetIterator &other) const
Definition KPropertySet.cpp:338
void aboutToDeleteProperty(KPropertySet &set, KProperty &property)
QVariant propertyValue(const QByteArray &name, const QVariant &defaultValue=QVariant()) const
Definition KPropertySet.cpp:601
void addProperty(KProperty *property, const QByteArray &group="common")
Definition KPropertySet.cpp:449
void aboutToBeCleared()
bool hasProperties(const KPropertySelector &selector) const
Definition KPropertySet.cpp:543
KProperty & property(const QByteArray &name) const
Definition KPropertySet.cpp:571
void changeProperty(const QByteArray &property, const QVariant &value)
Definition KPropertySet.cpp:608
KPropertySet(QObject *parent=nullptr)
Constructs a new property set object.
Definition KPropertySet.cpp:417
void changePropertyIfExists(const QByteArray &property, const QVariant &value)
Definition KPropertySet.cpp:576
QString groupCaption(const QByteArray &group) const
Definition KPropertySet.cpp:502
QString groupIconName(const QByteArray &group) const
Definition KPropertySet.cpp:512
QByteArray groupNameForProperty(const QByteArray &propertyName) const
Definition KPropertySet.cpp:475
QMap< QByteArray, QVariant > propertyValues() const
Definition KPropertySet.cpp:655
void readOnlyFlagChanged()
void setGroupCaption(const QByteArray &group, const QString &caption)
Definition KPropertySet.cpp:497
QList< QByteArray > propertyNamesForGroup(const QByteArray &group) const
Definition KPropertySet.cpp:491
void setGroupIconName(const QByteArray &group, const QString &iconName)
Definition KPropertySet.cpp:507
bool isModified() const
Returns true if at least one property in this set is modified, i.e.
Definition KPropertySet.cpp:671
void clearModifiedFlags()
Clears "modified" flag of all properties in this set, i.e.
Definition KPropertySet.cpp:664
void propertyChangedInternal(KPropertySet &set, KProperty &property)
KProperty & operator[](const QByteArray &name) const
Definition KPropertySet.cpp:584
void propertyReset(KPropertySet &set, KProperty &property)
void aboutToBeDeleted()
void propertyChanged(KPropertySet &set, KProperty &property)
void setPreviousSelection(const QByteArray &prevSelection)
Sets previous section.
Definition KPropertySet.cpp:650
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:42 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:42 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.