Ignore:
Timestamp:
Aug 22, 2013 11:16:48 AM (8 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1
Children:
4069c7b, 7d207f5
Parents:
f981222
Message:

Add a new quick-launch button for starting up applications. This replaces using the icon as a button as well.
Also clean up some old commented out code in the process manager.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/pc-softwaremanager/processManager.cpp

    r74c359f r80faf74  
    189189    out.append("??"); 
    190190  } 
    191   /* 
    192     int i=0; 
    193     QStringList lab; lab << "KB" <<"MB"<<"GB"<<"TB"<<"PB"; 
    194     while( (tot>1000) && (i<lab.length()) ){ 
    195       cur=cur/1024; tot=tot/1024; i++; 
    196     } 
    197  
    198     cur = int(cur*10)/10.0; 
    199     tot = int(tot*10)/10.0; 
    200     if(totErr){ // cur==tot  
    201       //Percentage unknown (since fetch is not done) 
    202       out.append("??::"+QString::number(tot)+" "+lab[i]+"::"); 
    203       //stats = QString::number(tot)+" "+lab[i]; 
    204     }else{ 
    205       out.append(QString::number(percent)+"::"+QString::number(tot)+" "+lab[i]+"::"); 
    206       //stats = QString::number(cur)+"/"+QString::number(tot)+" "+lab[i]+" ("+QString::number(percent)+"%)"; 
    207     } 
    208     // Format:  <current>/<total> <size label> (<percent>%) 
    209   }else if(curok){ 
    210     stats = Extras::sizeKToDisplay(QString::number(cur)); 
    211   } 
    212   QString speed; 
    213   if(spdok){ 
    214     speed = Extras::sizeKToDisplay(QString::number(spd))+"/s";     
    215   } 
    216   //Now put the output string together and return it 
    217   if(stats.isEmpty() && speed.isEmpty()){} 
    218   else if(stats.isEmpty()){ out = speed; } 
    219   else if(speed.isEmpty()){ out = stats; } 
    220   else{ out = QString( tr("%1 at %2") ).arg(stats,speed); } 
    221   */ 
    222   //qDebug() << " - Result:" << out; 
    223191  return out; 
    224192} 
Note: See TracChangeset for help on using the changeset viewer.