From 65df276e7b468314c1c8d0328784fb4e3382009f Mon Sep 17 00:00:00 2001 From: Josef Rokos Date: Tue, 19 Jun 2018 20:29:31 +0200 Subject: [PATCH] Addresses are now sorted in combos. --- camp/campwizard.cpp | 2 +- shop/receiptsaveform.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/camp/campwizard.cpp b/camp/campwizard.cpp index 6cf951e..09814ad 100644 --- a/camp/campwizard.cpp +++ b/camp/campwizard.cpp @@ -129,7 +129,7 @@ CampWizard::CampWizard(QWidget *parent) : Service 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); diff --git a/shop/receiptsaveform.cpp b/shop/receiptsaveform.cpp index e8cb47c..df8586a 100644 --- a/shop/receiptsaveform.cpp +++ b/shop/receiptsaveform.cpp @@ -54,7 +54,7 @@ ReceiptSaveForm::ReceiptSaveForm(QSharedPointer 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();