Changeset 979e5be for src/sql


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.