Search for usage in LXR

KPropertyValueDisplayInterface Class Referenceabstract

#include <KPropertyFactory.h>

Inheritance diagram for KPropertyValueDisplayInterface:

Public Member Functions

virtual QString propertyValueToString (const KProperty *property, const QLocale &locale) const
virtual QString valueToString (const QVariant &value, const QLocale &locale) const =0

Static Public Member Functions

static int maxStringValueLength ()
static QString valueToLocalizedString (const QVariant &value)

Detailed Description

Provides a specialized conversion of value to string depending on type.

Definition at line 105 of file KPropertyFactory.h.

Member Function Documentation

int KPropertyValueDisplayInterface::maxStringValueLength ( )

Maximum length of strings to display in valueToString(), propertyValueToString() and KPropertyValuePainterInterface::paint().

Used to avoid inefficiences. Equal to 250.

Make configurable?

Definition at line 137 of file KPropertyFactory.cpp.

QString KPropertyValueDisplayInterface::valueToLocalizedString ( const QVariant value)
value converted to string using QVariant::toString(), truncated if it's longer than maxStringValueLength()
See also

Definition at line 143 of file KPropertyFactory.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue May 11 2021 23:02:32 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.