#include "acform.h" #include "ui_acform.h" #include #include "accommodation-odb.hxx" AcForm::AcForm(QWidget *parent) : AutoForm(parent), ui(new Ui::AcForm) { ui->setupUi(this); registerBinding(ui->firstName); registerBinding(ui->lastName); } AcForm::~AcForm() { delete ui; } void AcForm::registerCombos() { QList cbData; Service
srv; foreach (QSharedPointer
adr, srv.all()) { cbData.append(ComboData(adr)); } registerBinding(ui->address, cbData); }