Changeset 343


Ignore:
Timestamp:
07/10/10 07:23:23 (19 months ago)
Author:
antonbatenev.ya.ru
Message:

Добавление скрипта для сборки под MinGW

Location:
trunk
Files:
1 added
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        22avalon.pro 
        33Makefile 
        4 Makefile.* 
         4Makefile.Debug 
         5Makefile.Release 
         6object_script.avalon.Debug 
         7object_script.avalon.Release 
  • trunk/form_request.cpp

    r334 r343  
    144144        if (size < (qint64)1024) 
    145145        { 
    146                 sprintf(buf, "%0Ld bytes", size); 
     146                sprintf(buf, "%0d bytes", (int)size); 
    147147                return QString::fromUtf8(buf); 
    148148        } 
    149149        else if (size < (qint64)1024 * 1024) 
    150150        { 
    151                 sprintf(buf, "%0.2Lf KB", (long double)size / 1024); 
     151                sprintf(buf, "%0.2f KB", (double)size / 1024); 
    152152                return QString::fromUtf8(buf); 
    153153        } 
    154154        else if (size < (qint64)1024 * 1024 * 1024) 
    155155        { 
    156                 sprintf(buf, "%0.2Lf MB", (long double)size / 1024 / 1024); 
     156                sprintf(buf, "%0.2f MB", (double)size / 1024 / 1024); 
    157157                return QString::fromUtf8(buf); 
    158158        } 
    159159        else 
    160160        { 
    161                 sprintf(buf, "%0.2Lf GB", (long double)size / 1024 / 1024 / 1024); 
     161                sprintf(buf, "%0.2f GB", (double)size / 1024 / 1024 / 1024); 
    162162                return QString::fromUtf8(buf); 
    163163        } 
Note: See TracChangeset for help on using the changeset viewer.