KProperty
KPropertyFactory.cpp
76 QHash<int, KComposedPropertyCreatorInterface*> KPropertyFactory::composedPropertyCreators() const
86 void KPropertyFactory::addComposedPropertyCreator( int type, KComposedPropertyCreatorInterface* creator )
91 void KPropertyFactory::addComposedPropertyCreatorInternal(int type, KComposedPropertyCreatorInterface* creator, bool own)
106 addDisplayInternal( type, dynamic_cast<KPropertyValueDisplayInterface*>(display), false/* !own*/ );
110 void 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();
233 QString KPropertyFactoryManager::propertyValueToLocalizedString(const KProperty* property) const
236 return display ? display->propertyValueToString(property, QLocale()) : KPropertyValueDisplayInterface::valueToLocalizedString(property->value());
242 return display ? display->valueToString(value, QLocale()) : KPropertyValueDisplayInterface::valueToLocalizedString(value.toString());
297 void KComposedPropertyInterface::childValueChangedInternal(KProperty *child, const QVariant &value,
void truncate(int position)
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
QString tr(const char *sourceText, const char *disambiguation, int n)
QLocale c()
An interface for for composed property handlers.
Definition: KPropertyFactory.h:32
QVariant property(const char *name) const const
QHash::const_iterator constEnd() const const
void setObjectName(const QString &name)
QObject(QObject *parent)
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
QObject * parent() const const
QString toString() const const
Provides a specialized conversion of value to string depending on type.
Definition: KPropertyFactory.h:105
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 27 2021 23:02:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 27 2021 23:02:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.