Commit 10ec58a9 authored by Mohammed Hassan's avatar Mohammed Hassan

[transfer-engine] Rename QSqliteDatabase to TransferDatabase

parent 67176ec3
......@@ -45,10 +45,10 @@ template <> bool compareIdentity<TransferDBRecord>(
return item.transfer_id == reference.transfer_id;
}
class QSqliteDatabase : public QSqlDatabase
class TransferDatabase : public QSqlDatabase
{
public:
QSqliteDatabase() : QSqlDatabase(QLatin1String("QSQLITE")) {}
TransferDatabase() : QSqlDatabase(QLatin1String("QSQLITE")) {}
};
TransferModel::TransferModel(QObject *parent)
......@@ -406,7 +406,7 @@ QSqlDatabase TransferModel::database()
+ DB_PATH + QDir::separator()
+ DB_NAME;
QSqliteDatabase database;
TransferDatabase database;
database.setDatabaseName(absDbPath);
database.setConnectOptions(QLatin1String("QSQLITE_OPEN_READONLY")); // sanity check
thread_database.setLocalData(database);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment