KProperty
KPropertyFactory.cpp
86void KPropertyFactory::addComposedPropertyCreator( int type, KComposedPropertyCreatorInterface* creator )
91void KPropertyFactory::addComposedPropertyCreatorInternal(int type, KComposedPropertyCreatorInterface* creator, bool own)
106 addDisplayInternal( type, dynamic_cast<KPropertyValueDisplayInterface*>(display), false/* !own*/ );
110void KPropertyFactory::addDisplayInternal(int type, KPropertyValueDisplayInterface *display, bool own)
185 for (QHash<int, KComposedPropertyCreatorInterface*>::ConstIterator it( factory->composedPropertyCreators().constBegin() );
192 for (QHash<int, KPropertyValueDisplayInterface*>::ConstIterator it( factory->valueDisplays().constBegin() );
201 const KComposedPropertyCreatorInterface *creator = d->composedPropertyCreators.value( parent->type() );
224 return display ? display->propertyValueToString(property, QLocale::c()) : property->value().toString();
236 return display ? display->propertyValueToString(property, QLocale()) : KPropertyValueDisplayInterface::valueToLocalizedString(property->value());
242 return display ? display->valueToString(value, QLocale()) : KPropertyValueDisplayInterface::valueToLocalizedString(value.toString());
297void KComposedPropertyInterface::childValueChangedInternal(KProperty *child, const QVariant &value,
An interface for for composed property handlers.
Definition KPropertyFactory.h:33
Provides a specialized conversion of value to string depending on type.
Definition KPropertyFactory.h:106
static QString valueToLocalizedString(const QVariant &value)
Definition KPropertyFactory.cpp:143
static int maxStringValueLength()
Maximum length of strings to display in valueToString(), propertyValueToString() and KPropertyValuePa...
Definition KPropertyFactory.cpp:137
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
ConstIterator
const_iterator constBegin() const const
const_iterator constEnd() const const
iterator insert(const Key &key, const T &value)
T value(const Key &key) const const
QLocale c()
QObject * parent() const const
QVariant property(const char *name) const const
QString tr(const char *sourceText, const char *disambiguation, int n)
iterator insert(const T &value)
QString arg(Args &&... args) const const
qsizetype length() const const
void truncate(qsizetype position)
Type type() const const
QString toString() const const
T value() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:12:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:12:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.