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


Ignore:
Timestamp:
Dec 22, 2009, 8:56:21 PM (15 years ago)
Author:
laleppa
Message:

+ Added Wait Cursor on city number change, because it can take some time (e.g. when changing from 5 to 50 cities).

  • Moved platform specific action definitions from .ui to source.
  • Changed random generation to include defined maximum (it was up to maximum previously).
  • Reverted from native to Qt open/save file dialog under WinCE, because it is more convenient than the native one.
  • English translation is now always loaded at application start before any other language is loaded. This is done to support plurals and some special characters that Qt translation system doesn't "like".
  • Updated translations to reflect recent changes.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/main.cpp

    r71 r80  
    5353        qsrand(QDateTime::currentDateTime().toTime_t() ^ QCursor::pos().x() ^ QCursor::pos().y());
    5454
     55QTranslator en;
     56        if (en.load("en", PATH_I18N))
     57                app.installTranslator(&en);
     58
    5559MainWindow mainwindow;
    5660        mainwindow.show();
Note: See TracChangeset for help on using the changeset viewer.