Rev 298 | Rev 387 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 298 | Rev 318 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | */
|
36 | */
|
37 | int SpeciesSet::setup() |
37 | int SpeciesSet::setup() |
38 | {
|
38 | {
|
39 | const XmlHelper &xml = GlobalSettings::instance()->settings(); |
39 | const XmlHelper &xml = GlobalSettings::instance()->settings(); |
40 | QString tableName = xml.value("model.species.source", "species"); |
40 | QString tableName = xml.value("model.species.source", "species"); |
- | 41 | mName = tableName; |
|
41 | QString readerFile = xml.value("model.species.reader", "reader.bin"); |
42 | QString readerFile = xml.value("model.species.reader", "reader.bin"); |
42 | readerFile = GlobalSettings::instance()->path(readerFile, "lip"); |
43 | readerFile = GlobalSettings::instance()->path(readerFile, "lip"); |
43 | mReaderStamp.load(readerFile); |
44 | mReaderStamp.load(readerFile); |
44 | 45 | ||
45 | QSqlQuery query(GlobalSettings::instance()->dbin()); |
46 | QSqlQuery query(GlobalSettings::instance()->dbin()); |