예제 #1
0
FieldList* FieldList::subList(const QValueList<uint>& list)
{
	Field *f;
	FieldList *fl = new FieldList(false);
	foreach(QValueList<uint>::ConstIterator, it, list) {
		f = field(*it);
		if (!f) {
			KexiDBWarn << QString("FieldList::subList() could not find field at position %1").arg(*it) << endl;
			delete fl;
			return 0;
		}
		fl->addField(f);
	}