Added settings for seasons and number series. Added static method

ComboData::createComboData for easier combo bindings.
This commit is contained in:
2016-06-24 16:15:19 +02:00
committed by Rokos Josef
parent b33ff1b169
commit a89b0381b1
15 changed files with 578 additions and 195 deletions
+2 -7
View File
@@ -44,14 +44,9 @@ ReceiptSaveForm::ReceiptSaveForm(QWidget *parent) :
ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(!text.isEmpty());
});
AddressBookService srvAdb;
QList<ComboData> comboData;
foreach (QSharedPointer<AddressbookData> adb, srvAdb.all()) {
comboData << ComboData(adb);
}
m_binder.setData(new Voucher);
m_binder.registerBinding(ui->contact, comboData);
AddressBookService srvAdb;
m_binder.registerBinding(ui->contact, ComboData::createComboData(srvAdb.all()));
m_binder.bindToUi();
ui->contact->completer()->setCompletionMode(QCompleter::PopupCompletion);