Logo Search packages:      
Sourcecode: ultracopier version File versions  Download package

QString copyThread::intToQtringSize ( double  nb ) [static]

Return string for the.

Return string for the size.

Definition at line 285 of file CopyThread.cpp.

References adaptStr().

Referenced by Main_window::addToList(), addToList(), checkIfNeedWaitOneWriteThread(), getCopySpeed(), Main_window::ListingIsFinish(), run(), and Main_window::updateTheCopyStat().

{
      if(nb<1024)
            return QString::number(nb)+tr("B");
      if((nb=nb/1024)<1024)
            return adaptStr(nb)+"K"+tr("B");
      if((nb=nb/1024)<1024)
            return adaptStr(nb)+"M"+tr("B");
      if((nb=nb/1024)<1024)
            return adaptStr(nb)+"G"+tr("B");
      if((nb=nb/1024)<1024)
            return adaptStr(nb)+"T"+tr("B");
      if((nb=nb/1024)<1024)
            return adaptStr(nb)+"P"+tr("B");
      return tr( "Too big" );
}

Here is the call graph for this function:

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index