Change-Id: I604166677ea182553adffc4835050f2964f2aef9
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
QMapIterator<QString, QVariant> i(query.boundValues());
while (i.hasNext()) {
i.next();
- cout << i.key().toAscii().data() << ": "
- << i.value().toString().toAscii().data() << endl;
+ cout << i.key().toUtf8().data() << ": "
+ << i.value().toString().toUtf8().data() << endl;
}
//! [14]
}
//! [15]
QList<QVariant> list = query.boundValues().values();
for (int i = 0; i < list.size(); ++i)
- cout << i << ": " << list.at(i).toString().toAscii().data() << endl;
+ cout << i << ": " << list.at(i).toString().toUtf8().data() << endl;
//! [15]
}
}