You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
376 B
C++
19 lines
376 B
C++
9 years ago
|
#include "commodity.h"
|
||
|
#include "data/commodity-data.h"
|
||
|
#include "commodityform.h"
|
||
|
#include "commoditygrid.h"
|
||
|
|
||
|
Commodity::Commodity()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
void Commodity::initServiceUi()
|
||
|
{
|
||
|
CommodityGrid *grid = new CommodityGrid();
|
||
|
CommodityForm *form = new CommodityForm();
|
||
|
|
||
|
m_service = new Service<CommodityData>;
|
||
|
m_ui = grid;
|
||
|
((CommodityGrid *) m_ui)->setForm(form);
|
||
|
}
|