@ -551,22 +551,25 @@ void BitcoinGUI::setNumBlocks(int count)
// Set icon state: spinning if catching up, tick otherwise
// Set icon state: spinning if catching up, tick otherwise
if ( secs < 90 * 60 & & count > = nTotalBlocks )
if ( secs < 90 * 60 & & count > = nTotalBlocks )
{
{
tooltip = tr ( " Up to date " ) + QString ( " . \n " ) + tooltip ;
tooltip = tr ( " Up to date " ) + QString ( " .<br> " ) + tooltip ;
labelBlocksIcon - > setPixmap ( QIcon ( " :/icons/synced " ) . pixmap ( STATUSBAR_ICONSIZE , STATUSBAR_ICONSIZE ) ) ;
labelBlocksIcon - > setPixmap ( QIcon ( " :/icons/synced " ) . pixmap ( STATUSBAR_ICONSIZE , STATUSBAR_ICONSIZE ) ) ;
}
}
else
else
{
{
tooltip = tr ( " Catching up... " ) + QString ( " \n " ) + tooltip ;
tooltip = tr ( " Catching up... " ) + QString ( " <br> " ) + tooltip ;
labelBlocksIcon - > setMovie ( syncIconMovie ) ;
labelBlocksIcon - > setMovie ( syncIconMovie ) ;
syncIconMovie - > start ( ) ;
syncIconMovie - > start ( ) ;
}
}
if ( ! text . isEmpty ( ) )
if ( ! text . isEmpty ( ) )
{
{
tooltip + = QString ( " \n " ) ;
tooltip + = QString ( " <br> " ) ;
tooltip + = tr ( " Last received block was generated %1. " ) . arg ( text ) ;
tooltip + = tr ( " Last received block was generated %1. " ) . arg ( text ) ;
}
}
// Don't word-wrap this (fixed-width) tooltip
tooltip = QString ( " <nobr> " ) + tooltip + QString ( " </nobr> " ) ;
labelBlocksIcon - > setToolTip ( tooltip ) ;
labelBlocksIcon - > setToolTip ( tooltip ) ;
progressBarLabel - > setToolTip ( tooltip ) ;
progressBarLabel - > setToolTip ( tooltip ) ;
progressBar - > setToolTip ( tooltip ) ;
progressBar - > setToolTip ( tooltip ) ;