Changeset View
Changeset View
Standalone View
Standalone View
src/qt/coincontroldialog.cpp
Show First 20 Lines • Show All 418 Lines • ▼ Show 20 Lines | if (column == COLUMN_CHECKBOX && | ||||
} | } | ||||
// selection changed -> update labels | // selection changed -> update labels | ||||
if (ui->treeWidget->isEnabled()) { | if (ui->treeWidget->isEnabled()) { | ||||
// do not update on every click for (un)select all | // do not update on every click for (un)select all | ||||
CoinControlDialog::updateLabels(model, this); | CoinControlDialog::updateLabels(model, this); | ||||
} | } | ||||
} | } | ||||
// TODO: Remove this temporary qt5 fix after Qt5.3 and Qt5.4 are no longer | |||||
// used. | |||||
// Fixed in Qt5.5 and above: https://bugreports.qt.io/browse/QTBUG-43473 | |||||
else if (column == COLUMN_CHECKBOX && item->childCount() > 0) { | |||||
if (item->checkState(COLUMN_CHECKBOX) == Qt::PartiallyChecked && | |||||
item->child(0)->checkState(COLUMN_CHECKBOX) == | |||||
Qt::PartiallyChecked) { | |||||
item->setCheckState(COLUMN_CHECKBOX, Qt::Checked); | |||||
} | |||||
} | |||||
} | } | ||||
// shows count of locked unspent outputs | // shows count of locked unspent outputs | ||||
void CoinControlDialog::updateLabelLocked() { | void CoinControlDialog::updateLabelLocked() { | ||||
std::vector<COutPoint> vOutpts; | std::vector<COutPoint> vOutpts; | ||||
model->wallet().listLockedCoins(vOutpts); | model->wallet().listLockedCoins(vOutpts); | ||||
if (vOutpts.size() > 0) { | if (vOutpts.size() > 0) { | ||||
ui->labelLocked->setText(tr("(%1 locked)").arg(vOutpts.size())); | ui->labelLocked->setText(tr("(%1 locked)").arg(vOutpts.size())); | ||||
▲ Show 20 Lines • Show All 385 Lines • Show Last 20 Lines |