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.

42 lines
604 B
C++

#include "addressbook.h"
#include "data/addressbookdata.h"
#include "addressbookform.h"
#include "addressbookgrid.h"
Addressbook::Addressbook()
{
}
void Addressbook::initServiceUi()
{
AddressbookGrid *grid = new AddressbookGrid();
AddressbookForm *form = new AddressbookForm();
m_service = new Service<AddressbookData>;
m_ui = grid;
((AddressbookGrid *) m_ui)->setForm(form);
}
QIcon Addressbook::pluginIcon()
{
return QIcon(":/icons/addressbookPlugin.svg");
}
QTranslator *Addressbook::translator()
{
return translatorFrom(":/translations/addressbook_");
}