src/qt/overviewpage.cpp
// show/hide watch-only labels
show/hide watch-only labels
show / hide watch - only labels
void OverviewPage::updateWatchOnlyLabels(bool showWatchOnly)
{
    ui->labelSpendable->setVisible(showWatchOnly);      
    ui->labelWatchonly->setVisible(showWatchOnly);      
    ui->labelWatchAvailable->setVisible(showWatchOnly); 
    ui->labelWatchPending->setVisible(showWatchOnly);   
    ui->labelWatchLocked->setVisible(showWatchOnly);    
    ui->labelWatchTotal->setVisible(showWatchOnly);     
    if (!showWatchOnly) {
        ui->labelWatchImmature->hide();
    } else {
        ui->labelBalance->setIndent(20);
        ui->labelUnconfirmed->setIndent(20);
        ui->labelLockedBalance->setIndent(20);
        ui->labelImmature->setIndent(20);
        ui->labelTotal->setIndent(20);
    }
}
void OverviewPage :: updateWatchOnlyLabels ( bool showWatchOnly ) { ui -> labelSpendable -> setVisible ( showWatchOnly ) ; ui -> labelWatchonly -> setVisible ( showWatchOnly ) ; ui -> labelWatchAvailable -> setVisible ( showWatchOnly ) ; ui -> labelWatchPending -> setVisible ( showWatchOnly ) ; ui -> labelWatchLocked -> setVisible ( showWatchOnly ) ; ui -> labelWatchTotal -> setVisible ( showWatchOnly ) ; if ( ! showWatchOnly ) { ui -> labelWatchImmature -> hide ( ) ; } else { ui -> labelBalance -> setIndent ( 20 ) ; ui -> labelUnconfirmed -> setIndent ( 20 ) ; ui -> labelLockedBalance -> setIndent ( 20 ) ; ui -> labelImmature -> setIndent ( 20 ) ; ui -> labelTotal -> setIndent ( 20 ) ; } }
show/hide watch-only labels
show / hide watch - only labels
// show spendable label (only when watch-only is active) // show watch-only label // show watch-only available balance // show watch-only pending balance // show watch-only total balance // show watch-only total balance