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.
Constructor & Destructor Documentation
◆ KPropertyValueDisplayInterface()
KPropertyValueDisplayInterface::KPropertyValueDisplayInterface | ( | ) |
Definition at line 126 of file KPropertyFactory.cpp.
◆ ~KPropertyValueDisplayInterface()
|
virtual |
Definition at line 131 of file KPropertyFactory.cpp.
Member Function Documentation
◆ 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.
◆ propertyValueToString()
|
inlinevirtual |
Definition at line 112 of file KPropertyFactory.h.
◆ valueToLocalizedString()
- 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-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:09 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:09 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.