9 #ifndef RDEFAULT_QVARIANT
10 #define RDEFAULT_QVARIANT QVariant()
76 static bool setMember(T& variable,
const QVariant& value,
77 bool condition =
true) {
82 variable = value.value<T> ();
111 virtual QPair<QVariant, RPropertyAttributes>
113 bool humanReadable =
false,
114 bool noAttributes =
false);
188 virtual void print(QDebug dbg)
const;
201 static bool setMember(QString& variable,
const QVariant& value,
202 bool condition =
true);
206 static bool setMember(
double& variable,
const QVariant& value,
207 bool condition =
true);
211 static bool setMember(
int& variable,
const QVariant& value,
212 bool condition =
true);
216 static bool setMember(
bool& variable,
const QVariant& value,
217 bool condition =
true);
221 bool setMember(QList<double>& variable,
const QVariant& value,
226 static bool setMemberX(QList<RVector>& variable,
const QVariant& value,
227 bool condition =
true);
231 static bool setMemberY(QList<RVector>& variable,
const QVariant& value,
232 bool condition =
true);
236 static bool setMemberZ(QList<RVector>& variable,
const QVariant& value,
237 bool condition =
true);
242 static bool setMemberVector(QList<RVector>& variable,
const QVariant& value,