Commit 533b0132 authored by EXT Arnaud Clère's avatar EXT Arnaud Clère

Small fix for previous commit

parent 0d25c05a
......@@ -601,8 +601,8 @@ protected:
virtual bool _bind( bool& r) { if (hidden()) return true; if (I<=d) return itemBind()->_bind(r); QVariant v=read(); if (v.type()!=QVariant ::Bool ) return false; r= v.toBool () ; return true; }
virtual bool _bind( qint64& r) { if (hidden()) return true; if (I<=d) return itemBind()->_bind(r); QVariant v=read(); bool isConverted=false; qint64 i=v. toLongLong(&isConverted); if (!isConverted || v.type()==QVariant::Bool || v.type()==QVariant::ByteArray) { return false; } r=i; return true; }
virtual bool _bind( quint64& r) { if (hidden()) return true; if (I<=d) return itemBind()->_bind(r); QVariant v=read(); bool isConverted=false; quint64 i=v.toULongLong(&isConverted); if (!isConverted || v.type()==QVariant::Bool || v.type()==QVariant::ByteArray) { return false; } r=i; return true; }
virtual bool _bind( float& r) { if (hidden()) return true; if (I<=d) return itemBind()->_bind(r); QVariant v=read(); bool isConverted=false; float i=v.toULongLong(&isConverted); if (!isConverted || v.type()==QVariant::Bool || v.type()==QVariant::ByteArray) { return false; } r=i; return true; }
virtual bool _bind( double& r) { if (hidden()) return true; if (I<=d) return itemBind()->_bind(r); QVariant v=read(); bool isConverted=false; double i=v.toULongLong(&isConverted); if (!isConverted || v.type()==QVariant::Bool || v.type()==QVariant::ByteArray) { return false; } r=i; return true; }
virtual bool _bind( float& r) { if (hidden()) return true; if (I<=d) return itemBind()->_bind(r); QVariant v=read(); bool isConverted=false; float i=v.toFloat (&isConverted); if (!isConverted || v.type()==QVariant::Bool || v.type()==QVariant::ByteArray) { return false; } r=i; return true; }
virtual bool _bind( double& r) { if (hidden()) return true; if (I<=d) return itemBind()->_bind(r); QVariant v=read(); bool isConverted=false; double i=v.toDouble (&isConverted); if (!isConverted || v.type()==QVariant::Bool || v.type()==QVariant::ByteArray) { return false; } r=i; return true; }
virtual bool _bind(QByteArray& r) { if (hidden()) return true; if (I<=d) return itemBind()->_bind(r); QVariant v=read(); if (v.type()!=QVariant ::ByteArray) return false; r= v.toByteArray () ; return true; }
virtual bool _bind( QVariant& r) { if (hidden()) return true; if (I<=d) return itemBind()->_bind(r); r=read() ; return true; }
......
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