Added country combo to addressbook. Addressbook plugin depends on Countryregister which must be loaded first.

This commit is contained in:
2017-05-08 14:03:51 +02:00
parent 4c00364698
commit d5ead1b187
11 changed files with 112 additions and 10 deletions
+7
View File
@@ -1,5 +1,6 @@
#include "addressbookform.h"
#include "ui_addressbookform.h"
#include <countrydata.h>
AddressbookForm::AddressbookForm(QWidget *parent) :
AutoForm<AddressbookData>(parent),
@@ -22,3 +23,9 @@ AddressbookForm::~AddressbookForm()
{
delete ui;
}
void AddressbookForm::registerCombos()
{
Service<CountryData> srv;
registerBinding(ui->country, ComboData::createComboData(srv.all()));
}