METHOD THbUIC:pullTranslate( cLine ) LOCAL aResult, aArgs LOCAL reg := hb_regexComp( "(.+)QCoreApplication::translate(\(.+, 0\))" ) IF hb_regexHas( reg, cLine ) aResult := hb_regex( reg, cLine ) aArgs := args2array( aResult[ 3 ] ) aArgs[ 2 ] := ::ParseString( aArgs[ 2 ] ) aArgs[ 3 ] := '""' cLine := hb_StrFormat( "%s QApplication().translate(%s))", aResult[ 2 ], ::concatArgs( aArgs ) ) ELSE reg := hb_regexComp( "(.+)QCoreApplication::translate(\(.+, Q_NULLPTR\))" ) IF hb_regexHas( reg, cLine ) aResult := hb_regex( reg, cLine ) aArgs := args2array( aResult[ 3 ] ) aArgs[ 2 ] := ::ParseString( aArgs[ 2 ] ) aArgs[ 3 ] := '""' cLine := hb_StrFormat( "%s QApplication().translate(%s))", aResult[ 2 ], ::concatArgs( aArgs ) ) Else reg := hb_regexComp( "(.+)QCoreApplication::translate(\(.+, nullptr\))" ) IF hb_regexHas( reg, cLine ) aResult := hb_regex( reg, cLine ) aArgs := args2array( aResult[ 3 ] ) aArgs[ 2 ] := ::ParseString( aArgs[ 2 ] ) aArgs[ 3 ] := '""' cLine := hb_StrFormat( "%s QApplication().translate(%s))", aResult[ 2 ], ::concatArgs( aArgs ) ) EndIf ENDIF ENDIF IF " nullptr" $ cLine cLine := StrTran( cLine, "nullptr", "0" ) ENDIF RETURN cLine
Hi Greg
I compiled with the file hbm2_qt.hb that you attached and it gave
me the following errors:
Lines 7274, Functions/Procedures 13
Generating C source output to
'hbide\.hbmk\win\mingw\hbide\hbqtoolbar.c'... Done.
Compiling
'hbide\.hbmk\win\mingw\hbide\uic_docviewgenerator.prg'...
hbide\.hbmk\win\mingw\hbide\uic_docviewgenerator.prg(519) Error
E0013 Error in #ifdef
hbide\.hbmk\win\mingw\hbide\uic_docviewgenerator.prg(521) Error
E0014 #endif does not match #ifdef
hbide\.hbmk\win\mingw\hbide\uic_docviewgenerator.prg(523) Error
E0013 Error in #ifdef
hbide\.hbmk\win\mingw\hbide\uic_docviewgenerator.prg(525) Error
E0014 #endif does not match #ifdef
hbide\.hbmk\win\mingw\hbide\uic_docviewgenerator.prg(527) Error
E0013 Error in #ifdef
...
If you compile with the -rebuild parameter you will see the
problem.
Regards
Juan Francolino
--
You received this message because you are subscribed to the Google Groups "QtContribs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qtcontribs+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qtcontribs/b8467a47-fe1d-4478-a139-ac64334771ee%40googlegroups.com.
Hi Greg
I compiled with the file hbm2_qt.hb that you attached and it gave me the following errors:
Lines 7274, Functions/Procedures 13
Generating C source output to 'hbide\.hbmk\win\mingw\hbide\hbqtoolbar.c'... Done.
Compiling 'hbide\.hbmk\win\mingw\hbide\uic_docviewgenerator.prg'...
hbide\.hbmk\win\mingw\hbide\uic_docviewgenerator.prg(519) Error E0013 Error in #ifdef
hbide\.hbmk\win\mingw\hbide\uic_docviewgenerator.prg(521) Error E0014 #endif does not match #ifdef
hbide\.hbmk\win\mingw\hbide\uic_docviewgenerator.prg(523) Error E0013 Error in #ifdef
hbide\.hbmk\win\mingw\hbide\uic_docviewgenerator.prg(525) Error E0014 #endif does not match #ifdef
hbide\.hbmk\win\mingw\hbide\uic_docviewgenerator.prg(527) Error E0013 Error in #ifdef...
If you compile with the -rebuild parameter you will see the problem.
Regards
Juan Francolino
El 02/05/2020 a las 11:46, WGreg66 escribió:
Hi--
I compiled the qtcontribs again without any changes in step 2 with success.The changes in step 2 are unnecessary.
Regards
Grzegorz
You received this message because you are subscribed to the Google Groups "QtContribs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qtcon...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qtcontribs/b8467a47-fe1d-4478-a139-ac64334771ee%40googlegroups.com.
Hi Greg
I compiled with the file hbm2_qt.hb that you attached and it gave me the following errors:
Lines 7274, Functions/Procedures 13
Generating C source output to 'hbide\.hbmk\win\mingw\hbide\hbqtoolbar.c'... Done.
Compiling 'hbide\.hbmk\win\mingw\hbide\uic_docviewgenerator.prg'...
hbide\.hbmk\win\mingw\hbide\uic_docviewgenerator.prg(519) Error E0013 Error in #ifdef
hbide\.hbmk\win\mingw\hbide\uic_docviewgenerator.prg(521) Error E0014 #endif does not match #ifdef
hbide\.hbmk\win\mingw\hbide\uic_docviewgenerator.prg(523) Error E0013 Error in #ifdef
hbide\.hbmk\win\mingw\hbide\uic_docviewgenerator.prg(525) Error E0014 #endif does not match #ifdef
hbide\.hbmk\win\mingw\hbide\uic_docviewgenerator.prg(527) Error E0013 Error in #ifdef...
If you compile with the -rebuild parameter you will see the problem.
Regards
Juan Francolino
El 02/05/2020 a las 11:46, WGreg66 escribió:
Hi--
I compiled the qtcontribs again without any changes in step 2 with success.The changes in step 2 are unnecessary.
Regards
Grzegorz
You received this message because you are subscribed to the Google Groups "QtContribs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qtcon...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qtcontribs/b8467a47-fe1d-4478-a139-ac64334771ee%40googlegroups.com.