Fix compilation of sqlite backend under Qt4.
Fix .pro file. Add entry in debian rules to headless package.
This commit is contained in:
4
debian/control
vendored
4
debian/control
vendored
@@ -12,3 +12,7 @@ Architecture: any
|
|||||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||||
Description: Content Manager Assistant for the PS Vita
|
Description: Content Manager Assistant for the PS Vita
|
||||||
|
|
||||||
|
Package: qcma-headless
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||||
|
Description: Content Manager Assistant for the PS Vita (headless version)
|
||||||
|
10
qcma.pro
10
qcma.pro
@@ -1,8 +1,8 @@
|
|||||||
-#-------------------------------------------------
|
#-------------------------------------------------
|
||||||
-#
|
#
|
||||||
-# Project created by QtCreator 2013-07-23T15:34:17
|
# Project created by QtCreator 2013-07-23T15:34:17
|
||||||
-#
|
#
|
||||||
-#-------------------------------------------------
|
#-------------------------------------------------
|
||||||
|
|
||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
SUBDIRS = qcma_gui.pro
|
SUBDIRS = qcma_gui.pro
|
||||||
|
@@ -880,14 +880,14 @@ bool SQLiteDB::deleteEntry(int ohfi, int root_ohfi)
|
|||||||
|
|
||||||
void SQLiteDB::fillMetadata(const QSqlQuery &query, metadata_t &metadata)
|
void SQLiteDB::fillMetadata(const QSqlQuery &query, metadata_t &metadata)
|
||||||
{
|
{
|
||||||
metadata.ohfi = query.value("ohfi").toInt();
|
metadata.ohfi = query.value(0).toInt(); // ohfi
|
||||||
metadata.ohfiParent = query.value("parent").toInt();
|
metadata.ohfiParent = query.value(1).toInt(); // parent
|
||||||
metadata.name = strdup(query.value("name").toByteArray().constData());
|
metadata.path = strdup(query.value(2).toByteArray().constData()); // path
|
||||||
metadata.path = strdup(query.value("path").toByteArray().constData());
|
metadata.name = strdup(query.value(3).toByteArray().constData()); // name
|
||||||
metadata.type = VITA_DIR_TYPE_MASK_REGULAR;
|
metadata.type = VITA_DIR_TYPE_MASK_REGULAR;
|
||||||
metadata.dataType = (DataType)query.value("data_type").toInt();
|
metadata.dataType = (DataType)query.value(5).toInt(); // data_type
|
||||||
metadata.size = query.value("size").toULongLong();
|
metadata.size = query.value(6).toULongLong(); // size
|
||||||
metadata.dateTimeCreated = query.value("date_created").toInt();
|
metadata.dateTimeCreated = query.value(7).toInt(); // date_created
|
||||||
metadata.next_metadata = NULL;
|
metadata.next_metadata = NULL;
|
||||||
//TODO: fill the rest of the metadata
|
//TODO: fill the rest of the metadata
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user