| 215 | } |
| 216 | |
| 217 | void SQLiteDB::clear() |
| 218 | { |
| 219 | db.close(); |
| 220 | //QSqlDatabase::removeDatabase("QSQLITE"); |
| 221 | QString db_path = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation); |
| 222 | db_path = QSettings().value("databasePath", db_path).toString(); |
| 223 | QFile(db_path + QDir::separator() + "qcma.sqlite").remove(); |
| 224 | load(); |
| 225 | } |
| 226 | |
| 227 | bool SQLiteDB::initialize() |
| 228 | { |