A class to format the preview text in the delegates. More...
#include <inputviewfactory.h>
Inheritance diagram for QtMvvm::Formatter:Public Member Functions | |
| virtual QString | format (const QString &formatString, const QVariant &value, const QVariantMap &viewProperties) const =0 |
| Is called to format a value to a localized, human readable text. More... | |
A class to format the preview text in the delegates.
Definition at line 16 of file inputviewfactory.h.
|
pure virtual |
Is called to format a value to a localized, human readable text.
| formatString | Some kind of format string, depending on what your formatter wants here |
| value | The actual value, packet as a variant |
| viewProperties | Additional properies set on the delegate |
formatString can be whatever you need it to be, but typically it is a localized text with a placeholder to be replaced with the given value. See InputViewFactory::format for known formats.
Implemented in QtMvvm::SimpleFormatter< T >.
1.8.14