Files
prodejna/shop/shop.cpp
T

54 lines
835 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"
#include "settings/shopsettingsform.h"
2017-06-08 22:11:25 +02:00
#include "shop-odb.hxx"
2018-05-23 14:11:56 +02:00
#include "shopoverview.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();
m_settingsUi = new ShopSettingsForm();
2018-05-23 14:11:56 +02:00
m_dashboardWidgets << new ShopOverview();
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();
2017-05-29 22:09:03 +02:00
if (uiWidget == NULL)
{
return NULL;
}
qobject_cast<ShopForm*>(uiWidget)->setupForm();
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_");
}
bool Shop::hasNumberSeries()
{
return true;
}
QString Shop::numberSeriesPrefix()
{
return "PD";
}