A very basic formatter that uses QString::arg with the value on the format string. More...
#include <inputviewfactory.h>
Inheritance diagram for QtMvvm::SimpleFormatter< T >:Public Member Functions | |
| QString | format (const QString &formatString, const QVariant &value, const QVariantMap &viewProperties) const override |
| Is called to format a value to a localized, human readable text. More... | |
A very basic formatter that uses QString::arg with the value on the format string.
Definition at line 32 of file inputviewfactory.h.
|
inlineoverridevirtual |
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.
Implements QtMvvm::Formatter.
Definition at line 141 of file inputviewfactory.h.
1.8.14