Changeset 11051


Ignore:
Timestamp:
Jul 24, 2010, 11:51:02 PM (12 years ago)
Author:
charles
Message:

(trunk qt) use the unicode up/down arrows as in the GTK+ client

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/torrent-delegate.cc

    r10933 r11051  
    161161TorrentDelegate :: shortTransferString( const Torrent& tor ) const
    162162{
     163    static const QChar upArrow( 0x2191 );
     164    static const QChar downArrow( 0x2193 );
    163165    const bool haveMeta( tor.hasMetadata( ) );
    164166    const bool haveDown( haveMeta && tor.peersWeAreDownloadingFrom( ) > 0 );
     
    172174
    173175    if( haveDown && haveUp )
    174         str = tr( "Down: %1, Up: %2" ).arg(downStr).arg(upStr);
     176        str = tr( "%1 %2, %3 %4" ).arg(downArrow).arg(downStr).arg(upArrow).arg(upStr);
    175177    else if( haveDown )
    176         str = tr( "Down: %1" ).arg( downStr );
     178        str = tr( "%1 %2" ).arg(downArrow).arg(downStr);
    177179    else if( haveUp )
    178         str = tr( "Up: %1" ).arg( upStr );
     180        str = tr( "%1 %2" ).arg(upArrow).arg(upStr);
    179181    else if( tor.hasMetadata( ) )
    180182        str = tr( "Idle" );
Note: See TracChangeset for help on using the changeset viewer.