src/qt/overviewpage.cpp
void OverviewPage::updateWatchOnlyLabels(bool showWatchOnly)
{
    ui->labelSpendable->setVisible(showWatchOnly);      // show spendable label (only when watch-only is active)
    ui->labelWatchonly->setVisible(showWatchOnly);      // show watch-only label
    ui->widgetWatchAvailable->setVisible(showWatchOnly); // show watch-only available balance
    ui->widgetWatchPending->setVisible(showWatchOnly);   // show watch-only pending balance
    ui->widgetWatchTotal->setVisible(showWatchOnly);     // show watch-only total balance

    if (!showWatchOnly)
    {
        ui->widgetWatchImmature->hide();
        ui->widgetWatchStake->hide();
    }

    ui->widgetWatch->setVisible(showWatchOnly);
}
// 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->widgetWatchAvailable->setVisible(showWatchOnly); 
    ui->widgetWatchPending->setVisible(showWatchOnly);   
    ui->widgetWatchTotal->setVisible(showWatchOnly);     
    if (!showWatchOnly)
    {
        ui->widgetWatchImmature->hide();
        ui->widgetWatchStake->hide();
    }
    ui->widgetWatch->setVisible(showWatchOnly);
}
void OverviewPage :: updateWatchOnlyLabels ( bool showWatchOnly ) { ui -> labelSpendable -> setVisible ( showWatchOnly ) ; ui -> labelWatchonly -> setVisible ( showWatchOnly ) ; ui -> widgetWatchAvailable -> setVisible ( showWatchOnly ) ; ui -> widgetWatchPending -> setVisible ( showWatchOnly ) ; ui -> widgetWatchTotal -> setVisible ( showWatchOnly ) ; if ( ! showWatchOnly ) { ui -> widgetWatchImmature -> hide ( ) ; ui -> widgetWatchStake -> hide ( ) ; } ui -> widgetWatch -> setVisible ( showWatchOnly ) ; }
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