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.

Constructor & Destructor Documentation

◆ KPropertyValueDisplayInterface()

KPropertyValueDisplayInterface::KPropertyValueDisplayInterface ( )

Definition at line 126 of file KPropertyFactory.cpp.

◆ ~KPropertyValueDisplayInterface()

KPropertyValueDisplayInterface::~KPropertyValueDisplayInterface ( )

Definition at line 131 of file KPropertyFactory.cpp.

Member Function Documentation

◆ maxStringValueLength()

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.

◆ propertyValueToString()

virtual QString KPropertyValueDisplayInterface::propertyValueToString ( const KProperty * property,
const QLocale & locale ) const

Definition at line 112 of file KPropertyFactory.h.

◆ valueToLocalizedString()

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-2024 The KDE developers.
Generated on Fri May 17 2024 11:56:34 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.