comparison DataController.cpp @ 7:d6fdca3bf24e

Make sure everything works for MemoryDBLink.
author Tom Fredrik Blenning Klaussen <bfg@blenning.no>
date Wed, 22 Aug 2012 01:07:06 +0200
parents 5e4985407feb
children d7b384b4a834
comparison
equal deleted inserted replaced
6:7ebdd2373ea4 7:d6fdca3bf24e
446 dbpath = DB_DEFAULT_LOCATION; 446 dbpath = DB_DEFAULT_LOCATION;
447 447
448 dbpath.replace(QRegExp("^~/"), 448 dbpath.replace(QRegExp("^~/"),
449 QString("%1%2").arg(QDesktopServices::storageLocation(QDesktopServices::HomeLocation)).arg(QDir::separator())); 449 QString("%1%2").arg(QDesktopServices::storageLocation(QDesktopServices::HomeLocation)).arg(QDir::separator()));
450 } 450 }
451 451
452 #if 1
452 dblink = new SqliteDBLink(dbpath); 453 dblink = new SqliteDBLink(dbpath);
454 #else
455 dblink = new MemoryDBLink();
456 #endif
453 457
454 setDir((searchPath_in.size() > 0) ? searchPath_in : QDir(".")); 458 setDir((searchPath_in.size() > 0) ? searchPath_in : QDir("."));
455 459
456 showFullPath = false; 460 showFullPath = false;
457 461