|
GammaRay
2.0.0
|
Variant conversion functions, extendable by plugins. More...
Functions | |
| QVariant | decoration (const QVariant &value) |
| QString | displayString (const QVariant &value) |
| void | registerStringConverter (int type, Converter< QString > *converter) |
| template<typename T , typename FuncT > | |
| void | registerStringConverter (FuncT f) |
Variant conversion functions, extendable by plugins.
| QVariant GammaRay::VariantHandler::decoration | ( | const QVariant & | value) |
Returns a value representing value in a itemview decoration role.
| value | is a QVariant. |
| QString GammaRay::VariantHandler::displayString | ( | const QVariant & | value) |
Returns a human readable string version of the QVariant value. Converts to the variant type and prints the string value accordingly.
| value | is a QVariant. |
| void GammaRay::VariantHandler::registerStringConverter | ( | int | type, |
| Converter< QString > * | converter | ||
| ) |
Register a string conversion functions for a variant type.
|
inline |
Register a string conversion function for a variant type.
| T | The type for which to use this converter function. |
GammaRay