Changeset 561 for trunk/src/winmain


Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/winmain/qtmain_win.cpp

    r2 r561  
    22**
    33** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
    4 ** Contact: Qt Software Information ([email protected])
     4** All rights reserved.
     5** Contact: Nokia Corporation ([email protected])
    56**
    67** This file is part of the Windows main function of the Qt Toolkit.
     
    9091#endif
    9192{
    92     QByteArray cmdParam;
    93     QT_WA({
    94         LPTSTR cmdline = GetCommandLineW();
    95         cmdParam = QString::fromUtf16((const unsigned short *)cmdline).toLocal8Bit();
    96     }, {
    97         cmdParam = GetCommandLineA();
    98     });
     93    QByteArray cmdParam = QString::fromWCharArray(GetCommandLine()).toLocal8Bit();
    9994
    10095#if defined(Q_OS_WINCE)
    101     TCHAR appName[256];
    102     GetModuleFileName(0, appName, 255);
    103     cmdParam = QString(QLatin1String("\"%1\" ")).arg(QString::fromUtf16((const unsigned short *)appName)).toLocal8Bit() + cmdParam;
     96    ];
     97    GetModuleFileName(0, appName, );
     98    cmdParam;
    10499#endif
    105100
     
    109104
    110105#if defined(Q_OS_WINCE)
    111     TCHAR uniqueAppID[256];
    112     GetModuleFileName(0, uniqueAppID, 255);
    113     QString uid = QString::fromUtf16((const unsigned short *)uniqueAppID).toLower().replace(QString(QLatin1String("\\")), QString(QLatin1String("_")));
     106    ];
     107    GetModuleFileName(0, uniqueAppID, );
     108    QString uid = QString::from));
    114109
    115110    // If there exists an other instance of this application
Note: See TracChangeset for help on using the changeset viewer.