export comics info listo

cambio de acceso a las columnas de las querys (enteros por literales)
This commit is contained in:
Luis Ángel San Martín
2012-06-20 23:19:37 +02:00
parent 5f89443060
commit cd2b9f798a
10 changed files with 131 additions and 30 deletions

View File

@ -33,7 +33,7 @@ QList<LibraryItem *> Folder::getFoldersFromParent(qulonglong parentId, QSqlDatab
for(int i=0;i<record.count();i++)
data << record.value(i);
//TODO sort by sort indicator and name
currentItem = new Folder(record.value(0).toLongLong(),record.value(1).toLongLong(),record.value(2).toString(),record.value(2).toString());
currentItem = new Folder(record.value("id").toLongLong(),record.value("parentId").toLongLong(),record.value("name").toString(),record.value("path").toString());
int lessThan = 0;
if(list.isEmpty())
list.append(currentItem);