2011-03-10 09:59 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

* contrib/hbqt/hbmk2_qt.hbs
    ! Fix to prev.
    ; QUESTION: What is the reason that the constructor code
                is manually written for each class, instead of
                being automatically generated?
                Can it be also autogenerated?
This commit is contained in:
Viktor Szakats
2011-03-10 09:01:54 +00:00
parent 37c7665abf
commit f52b723f7a
2 changed files with 11 additions and 1 deletions

View File

@@ -16,6 +16,14 @@
The license applies to all entries newer than 2009-04-28.
*/
2011-03-10 09:59 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/hbmk2_qt.hbs
! Fix to prev.
; QUESTION: What is the reason that the constructor code
is manually written for each class, instead of
being automatically generated?
Can it be also autogenerated?
2011-03-10 07:53 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbgs/hbgs.hbp
+ Added autodetection path [Tamas Tevesz]

View File

@@ -1644,7 +1644,9 @@ METHOD HbQtSource:getConstructor( nClsType )
IF "__HB_RETPTRGC__(" $ ::new_[ i ]
s := ::new_[ i ]
s := RTrim( strtran( s, "__HB_RETPTRGC__(", "pObj =" ) )
s := RTrim( strtran( s, ");" ) ) + ";"
IF ");" $ s
s := RTrim( strtran( s, ");" ) ) + ";"
ENDIF
s := strtran( s, "( " + ::cQtObject + "* )" )
aadd( aLine, s )
ELSE