Commit af19d606 authored by EXT Arnaud Clère's avatar EXT Arnaud Clère

Comment changes

parent 38d6c5c1
......@@ -194,7 +194,7 @@ protected:
: 0;
}
inline bool write(QVariant v) { m->setData(current(), v); return true; }
inline QVariant read() { return m-> data(current()); } // TODO Handle Undefined ?
inline QVariant read() { return m-> data(current()); }
QAbstractItemModel* m;
bool rowFirst;
......
......@@ -683,7 +683,7 @@ struct QAbstractValueWriter : public QAbstractValue
}
return tryOut();
}
if (src.userType() // TODO src.type if QUtf8Data becomes a Qt type
if (src.userType()
==qMetaTypeId<QUtf8Data>()) return tryBind(src.value< QUtf8Data>());
if (src.type()==QVariant::String ) return tryBind(src.value< QString>());
if (src.type()==QVariant::Char ) return tryBind(src. toString());
......@@ -1091,7 +1091,7 @@ struct QTransmogrifier<T[Size]> {
return QValueEnd();
}
T t;
if((s = i.bind(t))) // gives back control to s, enabling the next s.item() call
if((s = i.bind(t))) // gives back control to s, enabling the next s.item() call // TODO || (i->handleError(qBindUnexpectedValue) && (s = i.any()))
ts[j++] = t;
}
return s;
......@@ -1129,10 +1129,10 @@ struct QTransmogrifier<QVector<T>> {
QVal<QSequence> i; int it = 0;
while ((i = s.item())) {
if (it==ts.size()) {
T t;
T t; // TODO defaultValue
if ((s = i.bind(t))) // gives back control to s, enabling the next s.item() call
ts.insert(it++, t);
// TODO else s = i.any();
// TODO || (s = i.any())
}
else {
T t(ts[it]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment