21 #ifndef GRANTLEE_TYPEACCESSOR_H
22 #define GRANTLEE_TYPEACCESSOR_H
24 #include "grantlee_templates_export.h"
26 #include <QtCore/QObject>
34 template <
typename T>
struct TypeAccessor {
35 static QVariant lookUp(
const T
object,
const QString &property);
38 template <
typename T>
struct TypeAccessor<T *> {
39 static QVariant lookUp(
const T *
const object,
const QString &property);
42 template <
typename T>
struct TypeAccessor<T &> {
43 static QVariant lookUp(
const T &
object,
const QString &property);
The Grantlee namespace holds all public Grantlee API.