Changeset 561 for trunk/src/winmain/qtmain_win.cpp
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/winmain/qtmain_win.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information (qt-info@nokia.com) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation (qt-info@nokia.com) 5 6 ** 6 7 ** This file is part of the Windows main function of the Qt Toolkit. … … 90 91 #endif 91 92 { 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(); 99 94 100 95 #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 wchar_t appName[MAX_PATH]; 97 GetModuleFileName(0, appName, MAX_PATH); 98 cmdParam.prepend(QString(QLatin1String("\"%1\" ")).arg(QString::fromWCharArray(appName)).toLocal8Bit()); 104 99 #endif 105 100 … … 109 104 110 105 #if defined(Q_OS_WINCE) 111 TCHAR uniqueAppID[256];112 GetModuleFileName(0, uniqueAppID, 255);113 QString uid = QString::from Utf16((const unsigned short *)uniqueAppID).toLower().replace(QString(QLatin1String("\\")), QString(QLatin1String("_")));106 wchar_t uniqueAppID[MAX_PATH]; 107 GetModuleFileName(0, uniqueAppID, MAX_PATH); 108 QString uid = QString::fromWCharArray(uniqueAppID).toLower().replace(QLatin1String("\\"), QLatin1String("_")); 114 109 115 110 // If there exists an other instance of this application
Note:
See TracChangeset
for help on using the changeset viewer.