Ignore:
Timestamp:
Nov 16, 2005, 8:36:46 PM (20 years ago)
Author:
dmik
Message:

Transferred Qt for OS/2 version 3.3.1-rc5 sources from the CVS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel/qapplication.cpp

    r7 r8  
    739739  If \a GUIenabled is FALSE, the application does not connect to the
    740740  X-server.
    741   On Windows and Macintosh, currently the window system is always
     741  On Windows, OS/2 and Macintosh, currently the window system is always
    742742  initialized, regardless of the value of GUIenabled. This may change in
    743743  future versions of Qt.
     
    12321232            else
    12331233                style = "Windows";              // default styles for Windows
     1234#elif defined(Q_WS_PM)
     1235            /// @todo (dmik) temporary, until the native style is done
     1236            style = "Windows";          // default style for OS/2
    12341237#elif defined(Q_WS_X11) && defined(Q_OS_SOLARIS)
    12351238            style = "CDE";                      // default style for X11 on Solaris
     
    15411544}
    15421545
    1543 #ifdef Q_WS_WIN
     1546#if defined(Q_WS_WIN) || defined(Q_WS_PM)
    15441547extern const char *qAppFileName();
    15451548#endif
    15461549
    15471550#ifndef QT_NO_DIR
    1548 #ifndef Q_WS_WIN
     1551#if !defined(Q_WS_WIN) && !(defined Q_WS_PM)
    15491552static QString resolveSymlinks( const QString& path, int depth = 0 )
    15501553{
     
    15901593    }
    15911594}
    1592 #endif // Q_WS_WIN
     1595#endif // !Q_WS_WIN && !Q_WS_PM
    15931596
    15941597/*!
     
    16271630QString QApplication::applicationFilePath()
    16281631{
    1629 #ifdef Q_WS_WIN
     1632#if defined(Q_WS_WIN) || defined(Q_WS_PM)
    16301633    return QDir::cleanDirPath( QFile::decodeName( qAppFileName() ) );
    16311634#else
     
    17061709        QString installPathPlugins = QString::fromLocal8Bit(qInstallPathPlugins());
    17071710        if ( QFile::exists(installPathPlugins) ) {
    1708 #ifdef Q_WS_WIN
     1711#if defined(Q_WS_WIN) || defined(Q_WS_PM)
    17091712            installPathPlugins.replace('\\', '/');
    17101713#endif
     
    17151718        if (qApp)
    17161719            app_location = qApp->applicationFilePath();
    1717 #ifdef Q_WS_WIN
     1720#if defined(Q_WS_WIN) || defined(Q_WS_PM)
    17181721        else {
    17191722            app_location = QString(qAppFileName());
Note: See TracChangeset for help on using the changeset viewer.