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.
30 lines
570 B
C++
30 lines
570 B
C++
#include <context.h>
|
|
#include "services.h"
|
|
#include "data/accservice.h"
|
|
#include "accserviceform.h"
|
|
#include "accservicegrid.h"
|
|
|
|
|
|
Services::Services()
|
|
{
|
|
}
|
|
|
|
void Services::initServiceUi()
|
|
{
|
|
AccServiceGrid *grid = new AccServiceGrid();
|
|
AccServiceForm *form = new AccServiceForm();
|
|
|
|
m_service = new Service<AccService>;
|
|
m_ui = grid;
|
|
((AccServiceGrid *) m_ui)->setForm(form);
|
|
}
|
|
|
|
QIcon Services::pluginIcon()
|
|
{
|
|
return QIcon(":icons/servicesPlugin.svg");
|
|
}
|
|
QTranslator *Services::translator()
|
|
{
|
|
return translatorFrom(":/translations/services_");
|
|
}
|