Added country combo to addressbook. Addressbook plugin depends on Countryregister which must be loaded first.
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user