Changeset 979e5be


Ignore:
Timestamp:
02/01/10 10:54:29 (12 years ago)
Author:
pavelpa <pavelpa@…>
Branches:
master, qt5
Children:
8896336
Parents:
c639717
Message:

created resource which contains parsed schedule,
so the user doesn't have to parse it by himself

Location:
src
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • src/app/app.pro

    rc639717 r979e5be  
    2323
    2424RESOURCES += ../icons.qrc \
    25              ../maps.qrc
     25             ../maps.qrc \
     26             ../db.qrc
    2627
    2728# instalation related
  • src/app/main.cpp

    rc639717 r979e5be  
    1212    Q_INIT_RESOURCE(icons);
    1313    Q_INIT_RESOURCE(maps);
     14    Q_INIT_RESOURCE(db);
    1415
    1516    QApplication a(argc, argv);
  • src/sql/sqlengine.cpp

    rc639717 r979e5be  
    3333    if(!QFile::exists(aDatabaseName)) // the DB (tables) doesn't exists, and so we have to create one
    3434    {
     35        /*
    3536        // creating empty DB + tables
    3637        // ??? what is the best way of creating new empty DB ???
     
    3940        //  - create new DB from resource, which contains empty DB with tables
    4041        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();
    4148    }
    4249    else
Note: See TracChangeset for help on using the changeset viewer.