src/qt/coincontroldialog.cpp
void CoinControlDialog::lockCoin()
{
    if (contextMenuItem->checkState(COLUMN_CHECKBOX) == Qt::Checked)
        contextMenuItem->setCheckState(COLUMN_CHECKBOX, Qt::Unchecked);

    COutPoint outpt(uint256S(contextMenuItem->text(COLUMN_TXHASH).toStdString()), contextMenuItem->text(COLUMN_VOUT_INDEX).toUInt());
    model->lockCoin(outpt);
    contextMenuItem->setDisabled(true);
    contextMenuItem->setIcon(COLUMN_CHECKBOX, QIcon(":/icons/lock_closed"));
    updateLabelLocked();
}
// context menu action: lock coin
context menu action: lock coin
context menu action : lock coin
void CoinControlDialog::lockCoin()
{
    if (contextMenuItem->checkState(COLUMN_CHECKBOX) == Qt::Checked)
        contextMenuItem->setCheckState(COLUMN_CHECKBOX, Qt::Unchecked);
    COutPoint outpt(uint256S(contextMenuItem->text(COLUMN_TXHASH).toStdString()), contextMenuItem->text(COLUMN_VOUT_INDEX).toUInt());
    model->lockCoin(outpt);
    contextMenuItem->setDisabled(true);
    contextMenuItem->setIcon(COLUMN_CHECKBOX, QIcon(":/icons/lock_closed"));
    updateLabelLocked();
}
void CoinControlDialog :: lockCoin ( ) { if ( contextMenuItem -> checkState ( COLUMN_CHECKBOX ) == Qt :: Checked ) contextMenuItem -> setCheckState ( COLUMN_CHECKBOX , Qt :: Unchecked ) ; COutPoint outpt ( uint256S ( contextMenuItem -> text ( COLUMN_TXHASH ) . toStdString ( ) ) , contextMenuItem -> text ( COLUMN_VOUT_INDEX ) . toUInt ( ) ) ; model -> lockCoin ( outpt ) ; contextMenuItem -> setDisabled ( true ) ; contextMenuItem -> setIcon ( COLUMN_CHECKBOX , QIcon ( " " ) ) ; updateLabelLocked ( ) ; }
context menu action: lock coin
context menu action : lock coin