QTfrontend/ui/page/pagevideos.cpp
changeset 7680 46a91cbed8db
parent 7679 bfa26daad684
child 7794 ab7b94c03bc9
equal deleted inserted replaced
7679:bfa26daad684 7680:46a91cbed8db
   487         return QString("%1 GiB").arg(QString::number(float(size)/GiB, 'f', 2));
   487         return QString("%1 GiB").arg(QString::number(float(size)/GiB, 'f', 2));
   488     if (size >= MiB)
   488     if (size >= MiB)
   489         return QString("%1 MiB").arg(QString::number(float(size)/MiB, 'f', 2));
   489         return QString("%1 MiB").arg(QString::number(float(size)/MiB, 'f', 2));
   490      if (size >= KiB)
   490      if (size >= KiB)
   491         return QString("%1 KiB").arg(QString::number(float(size)/KiB, 'f', 2));
   491         return QString("%1 KiB").arg(QString::number(float(size)/KiB, 'f', 2));
   492     return PageVideos::tr("%1 bytes").arg(QString::number(size));
   492     return PageVideos::tr("%1 bytes", "", size).arg(QString::number(size));
   493 }
   493 }
   494 
   494 
   495 // set file size in file list in specified row
   495 // set file size in file list in specified row
   496 void PageVideos::updateSize(int row)
   496 void PageVideos::updateSize(int row)
   497 {
   497 {
   860         return;
   860         return;
   861 
   861 
   862     // ask user if (s)he is serious
   862     // ask user if (s)he is serious
   863     if (QMessageBox::question(this,
   863     if (QMessageBox::question(this,
   864                               tr("Are you sure?"),
   864                               tr("Are you sure?"),
   865                               tr("Do you really want do remove %1 file(s)?").arg(num),
   865                               tr("Do you really want do remove %1 file(s)?", "", num).arg(num),
   866                               QMessageBox::Yes | QMessageBox::No)
   866                               QMessageBox::Yes | QMessageBox::No)
   867             != QMessageBox::Yes)
   867             != QMessageBox::Yes)
   868         return;
   868         return;
   869 
   869 
   870     // remove
   870     // remove