[Qt] Fix enable/disable show and remove buttons
This commit is contained in:
parent
178d6a1b65
commit
ab1edd44d8
1 changed files with 5 additions and 4 deletions
|
@ -65,10 +65,6 @@ void ReceiveCoinsDialog::setModel(WalletModel *model)
|
||||||
{
|
{
|
||||||
model->getRecentRequestsTableModel()->sort(RecentRequestsTableModel::Date, Qt::DescendingOrder);
|
model->getRecentRequestsTableModel()->sort(RecentRequestsTableModel::Date, Qt::DescendingOrder);
|
||||||
connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit()));
|
connect(model->getOptionsModel(), SIGNAL(displayUnitChanged(int)), this, SLOT(updateDisplayUnit()));
|
||||||
connect(ui->recentRequestsView->selectionModel(),
|
|
||||||
SIGNAL(selectionChanged(QItemSelection, QItemSelection)),
|
|
||||||
this,
|
|
||||||
SLOT(on_recentRequestsView_selectionChanged(QItemSelection, QItemSelection)));
|
|
||||||
updateDisplayUnit();
|
updateDisplayUnit();
|
||||||
|
|
||||||
QTableView* tableView = ui->recentRequestsView;
|
QTableView* tableView = ui->recentRequestsView;
|
||||||
|
@ -82,6 +78,11 @@ void ReceiveCoinsDialog::setModel(WalletModel *model)
|
||||||
tableView->setColumnWidth(RecentRequestsTableModel::Date, DATE_COLUMN_WIDTH);
|
tableView->setColumnWidth(RecentRequestsTableModel::Date, DATE_COLUMN_WIDTH);
|
||||||
tableView->setColumnWidth(RecentRequestsTableModel::Label, LABEL_COLUMN_WIDTH);
|
tableView->setColumnWidth(RecentRequestsTableModel::Label, LABEL_COLUMN_WIDTH);
|
||||||
|
|
||||||
|
connect(tableView->selectionModel(),
|
||||||
|
SIGNAL(selectionChanged(QItemSelection, QItemSelection)),
|
||||||
|
this,
|
||||||
|
SLOT(on_recentRequestsView_selectionChanged(QItemSelection, QItemSelection)));
|
||||||
|
|
||||||
//(last 2 columns are set when the table geometry is ready) by the columnResizingFixer.
|
//(last 2 columns are set when the table geometry is ready) by the columnResizingFixer.
|
||||||
columnResizingFixer = new GUIUtil::TableViewLastColumnResizingFixer(tableView, AMOUNT_MINIMUM_COLUMN_WIDTH, DATE_COLUMN_WIDTH);
|
columnResizingFixer = new GUIUtil::TableViewLastColumnResizingFixer(tableView, AMOUNT_MINIMUM_COLUMN_WIDTH, DATE_COLUMN_WIDTH);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue