Commit 27e9a1b0 authored by JP Dinger's avatar JP Dinger

Qt4: Save a couple temporaries.

parent 35eb6b1c
......@@ -619,12 +619,10 @@ void TimeLabel::setDisplayPosition( float pos, int time, int length )
: time );
QString timestr;
timestr.sprintf( "%s/%s", psz_time,
( !length && time ) ? "--:--" : psz_length );
timestr.sprintf( " %s%s/%s ", (b_remainingTime && length) ? "-" : "",
psz_time, ( !length && time ) ? "--:--" : psz_length );
/* Add a minus to remaining time*/
if( b_remainingTime && length ) setText( " -"+timestr+" " );
else setText( " "+timestr+" " );
setText( timestr );
}
void TimeLabel::toggleTimeDisplay()
......@@ -635,8 +633,8 @@ void TimeLabel::toggleTimeDisplay()
void TimeLabel::setCaching( float f_cache )
{
QString amount;
amount.setNum( (int)(100 * f_cache) );
setText( "Buff: " + amount + "%" );
amount.sprintf("Buff: %i%%", (int)(100*f_cache) );
setText( amount );
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment