Addresses are now sorted in combos.
This commit is contained in:
+1
-1
@@ -129,7 +129,7 @@ CampWizard::CampWizard(QWidget *parent) :
|
||||
|
||||
Service<AddressbookData> addrSrv;
|
||||
m_addrHelperBinder = new ObjectBinder(this);
|
||||
m_addrHelperBinder->registerBinding(ui->address, ComboData::createComboData(addrSrv.all()));
|
||||
m_addrHelperBinder->registerBinding(ui->address, ComboData::createComboData(addrSrv.all("", "lastName, firstName")));
|
||||
m_addrHelperBinder->setData(m_addrHelper);
|
||||
|
||||
m_addressBinder = new ObjectBinder(this);
|
||||
|
||||
@@ -54,7 +54,7 @@ ReceiptSaveForm::ReceiptSaveForm(QSharedPointer<Voucher> voucher, QWidget *paren
|
||||
|
||||
m_binder.setData(voucher.data());
|
||||
AddressBookService srvAdb;
|
||||
m_binder.registerBinding(ui->contact, ComboData::createComboData(srvAdb.all()));
|
||||
m_binder.registerBinding(ui->contact, ComboData::createComboData(srvAdb.all("", "lastName, firstName")));
|
||||
m_binder.registerBinding(ui->name);
|
||||
m_binder.registerBinding(ui->description);
|
||||
m_binder.bindToUi();
|
||||
|
||||
Reference in New Issue
Block a user