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.
25 lines
574 B
C++
25 lines
574 B
C++
#include "commodity.h"
|
|
#include "data/commodity-data.h"
|
|
#include "commodityform.h"
|
|
#include "commoditygrid.h"
|
|
#include "commoditysettingsform.h"
|
|
#include "commodityservice.h"
|
|
|
|
void Commodity::initServiceUi()
|
|
{
|
|
m_service = new CommodityService();
|
|
m_ui = new CommodityGrid();
|
|
((CommodityGrid *) m_ui)->setForm(new CommodityForm());
|
|
m_settingsUi = new CommoditySettingsForm();
|
|
}
|
|
|
|
QIcon Commodity::pluginIcon()
|
|
{
|
|
return QIcon(":/icons/commodityPlugin.svg");
|
|
}
|
|
|
|
QTranslator *Commodity::translator()
|
|
{
|
|
return translatorFrom(":/translations/commodity_");
|
|
}
|