#include "addressbookform.h" #include "ui_addressbookform.h" #include AddressbookForm::AddressbookForm(QWidget *parent) : AutoForm(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 srv; registerBinding(ui->country, ComboData::createComboData(srv.all())); }