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


Ignore:
Timestamp:
Aug 2, 2009, 1:50:14 AM (15 years ago)
Author:
laleppa
Message:

+ Wait Cursor (a.k.a Hourglass) while application starts.
+ Open file, passed as command-line argument.

  • Renamed all resources to have lowercase names.
  • Application couldn't be built on Qt < 4.5, because it has no QTextDocumentWriter class. Made a workaround.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/main.cpp

    r42 r45  
    2727                #pragma message("WARNING: You are using Qt version < 4.5. Application will not support some non-critical features.")
    2828        #elif (defined(__GNUC__) || defined(__MINGW32__))
    29                 #warning "WARNING: You are using Qt version < 4.5. Application will not support some non-critical features."
     29                #warning WARNING: You are using Qt version < 4.5. Application will not support some non-critical features.
     30        #else
     31                #error You are using Qt version < 4.5. Application will not support some non-critical features. To continue, please, comment line 31 at main.cpp.
    3032        #endif
    3133#endif
     
    3436{
    3537QApplication app(argc, argv);
     38        app.setOverrideCursor(QCursor(Qt::WaitCursor));
    3639        QTextCodec::setCodecForLocale(QTextCodec::codecForName("utf8"));
    3740        QTextCodec::setCodecForCStrings(QTextCodec::codecForName("utf8"));
    3841        QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8"));
    39         app.setOrganizationName("..::Lёppsville::..");
    40         app.setOrganizationDomain("www.leppsville.com");
     42        app.setOrganizationName("..::Lёppsville::.. Homes");
     43        app.setOrganizationDomain("l-homes.org");
    4144        app.setApplicationName("TSPSG");
    4245MainWindow mainwindow;
    4346        mainwindow.show();
     47        app.restoreOverrideCursor();
    4448        return app.exec();
    4549}
Note: See TracChangeset for help on using the changeset viewer.