fixed amount part of URI in QR-Codes / removed (no label) string if we have NO label / coding style updates / removed an unused variable

This commit is contained in:
Philip Kaufmann
2012-04-11 14:21:15 +02:00
parent 460b66b14b
commit 9e0dba8c17
2 changed files with 23 additions and 19 deletions

View File

@@ -310,16 +310,14 @@ void AddressBookPage::on_showQRCode_clicked()
QTableView *table = ui->tableView;
QModelIndexList indexes = table->selectionModel()->selectedRows(AddressTableModel::Address);
QRCodeDialog *d;
foreach (QModelIndex index, indexes)
{
QString address = index.data().toString(),
label = index.sibling(index.row(), 0).data().toString(),
title = QString("%1 << %2 >>").arg(label).arg(address);
title = QString("<< %1 >>").arg(address);
QRCodeDialog *d = new QRCodeDialog(title, address, label, tab == ReceivingTab, this);
d->show();
QRCodeDialog *dialog = new QRCodeDialog(title, address, label, tab == ReceivingTab, this);
dialog->show();
}
#endif
}