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.
33 lines
847 B
C++
33 lines
847 B
C++
#include <data/countrydata.h>
|
|
#include "addressbookform.h"
|
|
#include "ui_addressbookform.h"
|
|
#include <data/countrydata.h>
|
|
|
|
AddressbookForm::AddressbookForm(QWidget *parent) :
|
|
AutoForm<AddressbookData>(parent),
|
|
ui(new Ui::AddressbookForm)
|
|
{
|
|
ui->setupUi(this);
|
|
registerBinding(ui->title);
|
|
registerBinding(ui->firstName);
|
|
registerBinding(ui->lastName);
|
|
registerBinding(ui->birthDate);
|
|
registerBinding(ui->ztp);
|
|
registerBinding(ui->idCardNumber);
|
|
registerBinding(ui->addressCity);
|
|
registerBinding(ui->addressStreet);
|
|
registerBinding(ui->addressHouseNumber);
|
|
registerBinding(ui->addressZipCode);
|
|
}
|
|
|
|
AddressbookForm::~AddressbookForm()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void AddressbookForm::registerCombos()
|
|
{
|
|
Service<CountryData> srv;
|
|
registerBinding(ui->country, ComboData::createComboData(srv.all()));
|
|
}
|