Re: [Development] Proposing QSqlQuery syntax sugar

2012-09-18 Thread Thiago Macieira
On terça-feira, 18 de setembro de 2012 00.24.45, Thiago A. Corrêa wrote: > Hi, > > I'd like to propose a templated QSqlQuery::value in the same way > QVariant::value works. This syntax suggar allows one to write: > > QSqlQuery query; > ... > int myvalue = query.value(0); > >

[Development] Proposing QSqlQuery syntax sugar

2012-09-17 Thread Thiago A . Corrêa
Hi, I'd like to propose a templated QSqlQuery::value in the same way QVariant::value works. This syntax suggar allows one to write: QSqlQuery query; ... int myvalue = query.value(0); Instead of the current: int myvalue = query.value(0).toInt(); And also