9#include "internal/parameter_type.h"
12#include <QSharedDataPointer>
26 return value.
userType() == qMetaTypeId<T>();
35 const auto mo = mt.metaObject();
39 return mo->inherits(&T::staticMetaObject);
49 return T(*
static_cast<const T*
>(value.
constData()));
59#define KITINERARY_GADGET(Class) \
61 Q_PROPERTY(QString className READ className STORED false CONSTANT) \
62 QString className() const; \
65 Class(const Class &other); \
67 Class& operator=(const Class &other); \
68 bool operator<(const Class &other) const; \
69 bool operator==(const Class &other) const; \
70 inline bool operator!=(const Class &other) const { return !(*this == other); } \
71 operator QVariant () const; \
72 static const char* typeName(); \
74 Class(Class ## Private *dd); \
80#define KITINERARY_PROPERTY(Type, Name, SetName) \
81 Q_PROPERTY(Type Name READ Name WRITE SetName STORED true) \
84 void SetName(KItinerary::detail::parameter_type<Type>::type value); \
bool isA(const QVariant &value)
Returns true if value is of type T.
bool canConvert(const QVariant &value)
Checks if the given value can be up-cast to T.
T convert(const QVariant &value)
Up-cast value to T.
Classes for reservation/travel data models, data extraction and data augmentation.
const void * constData() const const
int userType() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:28:48 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.