Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/reports/tests/querytable-test.cpp
Show All 39 Lines | |||||
40 | void QueryTableTest::init() | 40 | void QueryTableTest::init() | ||
41 | { | 41 | { | ||
42 | storage = new MyMoneySeqAccessMgr; | 42 | storage = new MyMoneySeqAccessMgr; | ||
43 | file = MyMoneyFile::instance(); | 43 | file = MyMoneyFile::instance(); | ||
44 | file->attachStorage(storage); | 44 | file->attachStorage(storage); | ||
45 | MyMoneyFileTransaction ft; | 45 | MyMoneyFileTransaction ft; | ||
46 | file->addCurrency(MyMoneySecurity("CAD", "Canadian Dollar", "C$")); | 46 | file->addCurrency(MyMoneySecurity("CAD", "Canadian Dollar", "C$")); | ||
47 | file->addCurrency(MyMoneySecurity("USD", "US Dollar", "$")); | 47 | file->addCurrency(MyMoneySecurity("USD", "US Dollar", "$")); | ||
48 | file->addCurrency(MyMoneySecurity("JPY", "Japanese Yen", QChar(0x00A5), 100, 100)); | 48 | file->addCurrency(MyMoneySecurity("JPY", "Japanese Yen", QChar(0x00A5), 1)); | ||
49 | file->addCurrency(MyMoneySecurity("GBP", "British Pound", "#")); | 49 | file->addCurrency(MyMoneySecurity("GBP", "British Pound", "#")); | ||
50 | file->setBaseCurrency(file->currency("USD")); | 50 | file->setBaseCurrency(file->currency("USD")); | ||
51 | 51 | | |||
52 | MyMoneyPayee payeeTest("Test Payee"); | 52 | MyMoneyPayee payeeTest("Test Payee"); | ||
53 | file->addPayee(payeeTest); | 53 | file->addPayee(payeeTest); | ||
54 | MyMoneyPayee payeeTest2("Thomas Baumgart"); | 54 | MyMoneyPayee payeeTest2("Thomas Baumgart"); | ||
55 | file->addPayee(payeeTest2); | 55 | file->addPayee(payeeTest2); | ||
56 | 56 | | |||
▲ Show 20 Lines • Show All 745 Lines • Show Last 20 Lines |