Changeset 132 in tspsg-svn for trunk/src/main.cpp


Ignore:
Timestamp:
Sep 5, 2010, 2:42:20 AM (14 years ago)
Author:
laleppa
Message:
  • TSPSG "leaves" .ttf file after running under Windows Mobile - trying to delete all "left" .ttf files on start.
  • Updated README.txt.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/main.cpp

    r130 r132  
    4747        app.setOrganizationName("Oleksii \"Lёppa\" Serdiuk");
    4848        app.setOrganizationDomain("oleksii.name");
    49         app.setApplicationName("TSPSG: TSP Solver and Generator");
     49        app.setApplicationName("TSP Solver and Generator");
    5050        app.setApplicationVersion(BUILD_VERSION);
    5151
     
    5353        qsrand(QDateTime::currentDateTime().toTime_t() ^ QCursor::pos().x() ^ QCursor::pos().y());
    5454
     55#ifdef Q_OS_WINCE_WM
     56        // Qt "leaves" unpacked .ttf files after running - let's try to delete them.
     57QStringList files = QDir(app.applicationDirPath(), "*.ttf").entryList();
     58        foreach (QString file, files) {
     59                QFile::remove(file);
     60        }
     61#endif
    5562        // Don't load the font if it is already available
    5663        if (!QFontDatabase().families().contains(DEF_FONT_FACE))
Note: See TracChangeset for help on using the changeset viewer.