Skip to content

Commit

Permalink
Merge #905: [GUI] Add missing resize Address_dot column
Browse files Browse the repository at this point in the history
cfa7e27 Add missing resize Address_dot column (Rock-N-Troll)

Pull request description:

Tree-SHA512: d1de1b7bbcb7ad4f565b1c8bf9d3526969e18dd451b1c23f725fe08cb4518390abf4f2e55b7ec8047f9aafe10d6bf6a3c89406c1204fc7dbb141aeaf3964773d
  • Loading branch information
codeofalltrades committed Apr 2, 2021
2 parents b47406b + cfa7e27 commit 924d457
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/qt/addressbookpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ void AddressBookPage::setModel(AddressTableModel *_model)
// Set column widths
ui->tableView->horizontalHeader()->setSectionResizeMode(AddressTableModel::Label, QHeaderView::Stretch);
ui->tableView->horizontalHeader()->setSectionResizeMode(AddressTableModel::Address, QHeaderView::ResizeToContents);
ui->tableView->horizontalHeader()->setSectionResizeMode(AddressTableModel::Address_dot, QHeaderView::ResizeToContents);

connect(ui->tableView->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)),
this, SLOT(selectionChanged()));
Expand Down Expand Up @@ -305,6 +306,7 @@ void AddressBookPage::on_exportButton_clicked()
writer.setModel(proxyModel);
writer.addColumn("Label", AddressTableModel::Label, Qt::EditRole);
writer.addColumn("Address", AddressTableModel::Address, Qt::EditRole);
writer.addColumn("Address_dot", AddressTableModel::Address_dot, Qt::EditRole);

if(!writer.write()) {
QMessageBox::critical(this, tr("Exporting Failed"),
Expand Down

0 comments on commit 924d457

Please sign in to comment.