Files
prodejna/addressbook/addressbookform.cpp
T

32 lines
812 B
C++
Raw Normal View History

2016-02-21 17:03:41 +01:00
#include "addressbookform.h"
#include "ui_addressbookform.h"
#include <countrydata.h>
2016-02-21 17:03:41 +01:00
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()));
}