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 ) ...@@ -619,12 +619,10 @@ void TimeLabel::setDisplayPosition( float pos, int time, int length )
: time ); : time );
QString timestr; QString timestr;
timestr.sprintf( "%s/%s", psz_time, timestr.sprintf( " %s%s/%s ", (b_remainingTime && length) ? "-" : "",
( !length && time ) ? "--:--" : psz_length ); psz_time, ( !length && time ) ? "--:--" : psz_length );
/* Add a minus to remaining time*/ setText( timestr );
if( b_remainingTime && length ) setText( " -"+timestr+" " );
else setText( " "+timestr+" " );
} }
void TimeLabel::toggleTimeDisplay() void TimeLabel::toggleTimeDisplay()
...@@ -635,8 +633,8 @@ void TimeLabel::toggleTimeDisplay() ...@@ -635,8 +633,8 @@ void TimeLabel::toggleTimeDisplay()
void TimeLabel::setCaching( float f_cache ) void TimeLabel::setCaching( float f_cache )
{ {
QString amount; QString amount;
amount.setNum( (int)(100 * f_cache) ); amount.sprintf("Buff: %i%%", (int)(100*f_cache) );
setText( "Buff: " + amount + "%" ); 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