Files
prodejna/shop/shop.cpp
T

34 lines
546 B
C++
Raw Normal View History

2016-04-06 21:07:49 +02:00
#include "shop.h"
#include <QIcon>
2016-04-07 22:22:53 +02:00
#include "shopform.h"
#include "shopservice.h"
2016-04-06 21:07:49 +02:00
Shop::Shop()
{
}
void Shop::initServiceUi()
{
2016-04-07 22:22:53 +02:00
m_ui = new ShopForm();
m_service = new ShopService();
2016-04-06 21:07:49 +02:00
}
QIcon Shop::pluginIcon()
{
2016-04-20 22:05:27 +02:00
return QIcon(":/icons/shop.svg");
2016-04-06 21:07:49 +02:00
}
2016-05-29 18:31:46 +02:00
QWidget *Shop::ui()
{
QWidget *uiWidget = IPlugin::ui();
qobject_cast<ShopForm*>(uiWidget)->loadLast();
2016-05-30 22:12:23 +02:00
qobject_cast<ShopForm*>(uiWidget)->fillRaceiptCombo();
2016-05-29 18:31:46 +02:00
return uiWidget;
}
2016-05-29 18:14:49 +02:00
QTranslator *Shop::translator()
{
return translatorFrom(":/translations/shop_");
}