Changeset 561 for trunk/src/winmain
- 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 ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 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 ]; 97 GetModuleFileName(0, appName, ); 98 cmdParam; 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 ]; 107 GetModuleFileName(0, uniqueAppID, ); 108 QString uid = QString::from)); 114 109 115 110 // If there exists an other instance of this application
Note:
See TracChangeset
for help on using the changeset viewer.