KPropertyValueDisplayInterface

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 ( )
static

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

Used to avoid inefficiences. Equal to 250.

Todo:
Make configurable?

Definition at line 137 of file KPropertyFactory.cpp.

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

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-2020 The KDE developers.
Generated on Thu Aug 13 2020 23:03:05 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.