qapplication_win.cpp does not compile on mingw

Henri Girard girardhenri at hotmail.com
Mon Mar 14 22:40:41 CET 2005


on win32 it works resizing.. but it's very slow..  i compiled with mingw
from devcpp...
but designer doesn't work well... and it put funny things in xlm *.ui
i just made few widget to see if i could compile...
i am waiting for qt4 open version... hope it won't last too long ..
good luck :)
Henri
----- Original Message -----
From: "Diego Iastrubni" <elcuco at kde.org>
To: <kde-cygwin at kde.org>
Sent: Monday, March 14, 2005 9:41 PM
Subject: qapplication_win.cpp does not compile on mingw


> Hi,
>
>
> System is XP, Qt from CVS, mingw... dont know, too tazy to check :)
>
>
> The compiler does not like the usage of an integer defined inside a
> loop, since it's used one line after the loop. The pactch is quite
> trivial, and is attached here.
>
>
> (BTW, can anyone resize the dialogs in qt-designer? on win32 I cant)
>
>
> TIA, continue the good job
>
>
> - diego
>
>
>
>


----------------------------------------------------------------------------
----


> Index: src/kernel/qapplication_win.cpp
> ===================================================================
> RCS file: /cvsroot/kde-cygwin/qt-3/src/kernel/Attic/qapplication_win.cpp,v
> retrieving revision 1.1.2.30.2.54
> diff -u -r1.1.2.30.2.54 qapplication_win.cpp
> --- src/kernel/qapplication_win.cpp 11 Mar 2005 20:29:45 -0000
1.1.2.30.2.54
> +++ src/kernel/qapplication_win.cpp 14 Mar 2005 20:31:30 -0000
> @@ -3862,6 +3862,7 @@
>
>  void qCreateCommandLine( QStringList &cmd_lst, int &argc,
QMemArray<pchar> &argv )
>  {
> +     int i;
>      /* we want to have a QString... */
>      QString cmd = QT_WA_INLINE( QString::fromUcs2( ( unsigned short * )
GetCommandLineW() ),
>                                  QString::fromLatin1( ( char * )
GetCommandLineA() ) );
> @@ -3884,7 +3885,7 @@
>      /* set size of argv ( + 1 because of \0 for last element ) */
>      argv.resize( argc + 1 );
>      /* copy each element */
> -    for ( int i = 0; i < argc; i++ ) {
> +    for ( i = 0; i < argc; i++ ) {
>          argv[ i ] = ( char * ) cmd_lst[ i ].latin1(); // argv always with
8 bit
>      }
>      argv[ i ] = NULL;
>


----------------------------------------------------------------------------
----


> _______________________________________________
> kde-cygwin mailing list
> kde-cygwin at kde.org
> https://mail.kde.org/mailman/listinfo/kde-cygwin
>


More information about the kde-cygwin mailing list