- Timestamp:
- 02/01/10 10:54:29 (13 years ago)
- Branches:
- master, qt5
- Children:
- 8896336
- Parents:
- c639717
- Location:
- src
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/app/app.pro
rc639717 r979e5be 23 23 24 24 RESOURCES += ../icons.qrc \ 25 ../maps.qrc 25 ../maps.qrc \ 26 ../db.qrc 26 27 27 28 # instalation related -
src/app/main.cpp
rc639717 r979e5be 12 12 Q_INIT_RESOURCE(icons); 13 13 Q_INIT_RESOURCE(maps); 14 Q_INIT_RESOURCE(db); 14 15 15 16 QApplication a(argc, argv); -
src/sql/sqlengine.cpp
rc639717 r979e5be 33 33 if(!QFile::exists(aDatabaseName)) // the DB (tables) doesn't exists, and so we have to create one 34 34 { 35 /* 35 36 // creating empty DB + tables 36 37 // ??? what is the best way of creating new empty DB ??? … … 39 40 // - create new DB from resource, which contains empty DB with tables 40 41 result = createTables(database); 42 */ 43 44 // copy conference Db from resource, instead of creating 45 // empty tables and then parsing the schedule 46 QFile(":/fosdem.sqlite").copy(aDatabaseName); 47 database.open(); 41 48 } 42 49 else
Note: See TracChangeset
for help on using the changeset viewer.