diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 3c261ca345..2ef2cec05f 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,237 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-10-23 18:18 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) + * contrib/hbqt/generator/hbqtgen.prg + + * contrib/hbqt/hbqt.h + * contrib/hbqt/hbqt_destruct.cpp + + * contrib/hbqt/qtcore/QBitArray.cpp + * contrib/hbqt/qtcore/QByteArray.cpp + * contrib/hbqt/qtcore/QDataStream.cpp + * contrib/hbqt/qtcore/QDate.cpp + * contrib/hbqt/qtcore/QDateTime.cpp + * contrib/hbqt/qtcore/QDir.cpp + * contrib/hbqt/qtcore/QEvent.cpp + * contrib/hbqt/qtcore/QEventLoop.cpp + * contrib/hbqt/qtcore/QFile.cpp + * contrib/hbqt/qtcore/QFileInfo.cpp + * contrib/hbqt/qtcore/QLatin1Char.cpp + * contrib/hbqt/qtcore/QLatin1String.cpp + * contrib/hbqt/qtcore/QLine.cpp + * contrib/hbqt/qtcore/QLineF.cpp + * contrib/hbqt/qtcore/QList.cpp + * contrib/hbqt/qtcore/QLocale.cpp + * contrib/hbqt/qtcore/QMimeData.cpp + * contrib/hbqt/qtcore/QModelIndex.cpp + * contrib/hbqt/qtcore/QObject.cpp + * contrib/hbqt/qtcore/QPoint.cpp + * contrib/hbqt/qtcore/QPointF.cpp + * contrib/hbqt/qtcore/QProcess.cpp + * contrib/hbqt/qtcore/QRect.cpp + * contrib/hbqt/qtcore/QRectF.cpp + * contrib/hbqt/qtcore/QRegExp.cpp + * contrib/hbqt/qtcore/QResource.cpp + * contrib/hbqt/qtcore/QSignalMapper.cpp + * contrib/hbqt/qtcore/QSize.cpp + * contrib/hbqt/qtcore/QSizeF.cpp + * contrib/hbqt/qtcore/QStringList.cpp + * contrib/hbqt/qtcore/QTextBoundaryFinder.cpp + * contrib/hbqt/qtcore/QTextDecoder.cpp + * contrib/hbqt/qtcore/QTextEncoder.cpp + * contrib/hbqt/qtcore/QTextStream.cpp + * contrib/hbqt/qtcore/QThread.cpp + * contrib/hbqt/qtcore/QTime.cpp + * contrib/hbqt/qtcore/QTimer.cpp + * contrib/hbqt/qtcore/QTranslator.cpp + * contrib/hbqt/qtcore/QUrl.cpp + * contrib/hbqt/qtcore/QVariant.cpp + * contrib/hbqt/qtgui/QAction.cpp + * contrib/hbqt/qtgui/QActionGroup.cpp + * contrib/hbqt/qtgui/QApplication.cpp + * contrib/hbqt/qtgui/QBitmap.cpp + * contrib/hbqt/qtgui/QBoxLayout.cpp + * contrib/hbqt/qtgui/QBrush.cpp + * contrib/hbqt/qtgui/QButtonGroup.cpp + * contrib/hbqt/qtgui/QCalendarWidget.cpp + * contrib/hbqt/qtgui/QCheckBox.cpp + * contrib/hbqt/qtgui/QClipboard.cpp + * contrib/hbqt/qtgui/QColor.cpp + * contrib/hbqt/qtgui/QColorDialog.cpp + * contrib/hbqt/qtgui/QComboBox.cpp + * contrib/hbqt/qtgui/QCommandLinkButton.cpp + * contrib/hbqt/qtgui/QCommonStyle.cpp + * contrib/hbqt/qtgui/QCompleter.cpp + * contrib/hbqt/qtgui/QConicalGradient.cpp + * contrib/hbqt/qtgui/QContextMenuEvent.cpp + * contrib/hbqt/qtgui/QCursor.cpp + * contrib/hbqt/qtgui/QDateEdit.cpp + * contrib/hbqt/qtgui/QDateTimeEdit.cpp + * contrib/hbqt/qtgui/QDesktopWidget.cpp + * contrib/hbqt/qtgui/QDial.cpp + * contrib/hbqt/qtgui/QDialog.cpp + * contrib/hbqt/qtgui/QDirModel.cpp + * contrib/hbqt/qtgui/QDockWidget.cpp + * contrib/hbqt/qtgui/QDoubleSpinBox.cpp + * contrib/hbqt/qtgui/QErrorMessage.cpp + * contrib/hbqt/qtgui/QFileDialog.cpp + * contrib/hbqt/qtgui/QFileIconProvider.cpp + * contrib/hbqt/qtgui/QFileSystemModel.cpp + * contrib/hbqt/qtgui/QFocusFrame.cpp + * contrib/hbqt/qtgui/QFont.cpp + * contrib/hbqt/qtgui/QFontComboBox.cpp + * contrib/hbqt/qtgui/QFontDatabase.cpp + * contrib/hbqt/qtgui/QFontDialog.cpp + * contrib/hbqt/qtgui/QFontInfo.cpp + * contrib/hbqt/qtgui/QFontMetrics.cpp + * contrib/hbqt/qtgui/QFontMetricsF.cpp + * contrib/hbqt/qtgui/QFormLayout.cpp + * contrib/hbqt/qtgui/QFrame.cpp + * contrib/hbqt/qtgui/QGridLayout.cpp + * contrib/hbqt/qtgui/QGroupBox.cpp + * contrib/hbqt/qtgui/QHBoxLayout.cpp + * contrib/hbqt/qtgui/QHeaderView.cpp + * contrib/hbqt/qtgui/QIcon.cpp + * contrib/hbqt/qtgui/QImage.cpp + * contrib/hbqt/qtgui/QImageReader.cpp + * contrib/hbqt/qtgui/QImageWriter.cpp + * contrib/hbqt/qtgui/QInputDialog.cpp + * contrib/hbqt/qtgui/QInputEvent.cpp + * contrib/hbqt/qtgui/QInputMethodEvent.cpp + * contrib/hbqt/qtgui/QItemSelection.cpp + * contrib/hbqt/qtgui/QItemSelectionModel.cpp + * contrib/hbqt/qtgui/QKeySequence.cpp + * contrib/hbqt/qtgui/QLabel.cpp + * contrib/hbqt/qtgui/QLCDNumber.cpp + * contrib/hbqt/qtgui/QLinearGradient.cpp + * contrib/hbqt/qtgui/QLineEdit.cpp + * contrib/hbqt/qtgui/QListView.cpp + * contrib/hbqt/qtgui/QListWidget.cpp + * contrib/hbqt/qtgui/QListWidgetItem.cpp + * contrib/hbqt/qtgui/QMainWindow.cpp + * contrib/hbqt/qtgui/QMatrix.cpp + * contrib/hbqt/qtgui/QMenu.cpp + * contrib/hbqt/qtgui/QMenuBar.cpp + * contrib/hbqt/qtgui/QMessageBox.cpp + * contrib/hbqt/qtgui/QMouseEvent.cpp + * contrib/hbqt/qtgui/QMovie.cpp + * contrib/hbqt/qtgui/QPageSetupDialog.cpp + * contrib/hbqt/qtgui/QPainter.cpp + * contrib/hbqt/qtgui/QPainterPath.cpp + * contrib/hbqt/qtgui/QPaintEvent.cpp + * contrib/hbqt/qtgui/QPalette.cpp + * contrib/hbqt/qtgui/QPen.cpp + * contrib/hbqt/qtgui/QPicture.cpp + * contrib/hbqt/qtgui/QPixmap.cpp + * contrib/hbqt/qtgui/QPolygon.cpp + * contrib/hbqt/qtgui/QPolygonF.cpp + * contrib/hbqt/qtgui/QPrintDialog.cpp + * contrib/hbqt/qtgui/QPrinter.cpp + * contrib/hbqt/qtgui/QPrintPreviewDialog.cpp + * contrib/hbqt/qtgui/QProgressBar.cpp + * contrib/hbqt/qtgui/QProgressDialog.cpp + * contrib/hbqt/qtgui/QPushButton.cpp + * contrib/hbqt/qtgui/QRadialGradient.cpp + * contrib/hbqt/qtgui/QRadioButton.cpp + * contrib/hbqt/qtgui/QRegion.cpp + * contrib/hbqt/qtgui/QScrollArea.cpp + * contrib/hbqt/qtgui/QScrollBar.cpp + * contrib/hbqt/qtgui/QSizeGrip.cpp + * contrib/hbqt/qtgui/QSizePolicy.cpp + * contrib/hbqt/qtgui/QSlider.cpp + * contrib/hbqt/qtgui/QSound.cpp + * contrib/hbqt/qtgui/QSpacerItem.cpp + * contrib/hbqt/qtgui/QSpinBox.cpp + * contrib/hbqt/qtgui/QSplashScreen.cpp + * contrib/hbqt/qtgui/QSplitter.cpp + * contrib/hbqt/qtgui/QStandardItem.cpp + * contrib/hbqt/qtgui/QStandardItemModel.cpp + * contrib/hbqt/qtgui/QStatusBar.cpp + * contrib/hbqt/qtgui/QStringListModel.cpp + * contrib/hbqt/qtgui/QStyledItemDelegate.cpp + * contrib/hbqt/qtgui/QStyleFactory.cpp + * contrib/hbqt/qtgui/QStyleOption.cpp + * contrib/hbqt/qtgui/QStyleOptionButton.cpp + * contrib/hbqt/qtgui/QStyleOptionComboBox.cpp + * contrib/hbqt/qtgui/QStyleOptionComplex.cpp + * contrib/hbqt/qtgui/QStyleOptionDockWidget.cpp + * contrib/hbqt/qtgui/QStyleOptionFocusRect.cpp + * contrib/hbqt/qtgui/QStyleOptionFrame.cpp + * contrib/hbqt/qtgui/QStyleOptionGroupBox.cpp + * contrib/hbqt/qtgui/QStyleOptionHeader.cpp + * contrib/hbqt/qtgui/QStyleOptionMenuItem.cpp + * contrib/hbqt/qtgui/QStyleOptionProgressBar.cpp + * contrib/hbqt/qtgui/QStyleOptionSizeGrip.cpp + * contrib/hbqt/qtgui/QStyleOptionSlider.cpp + * contrib/hbqt/qtgui/QStyleOptionSpinBox.cpp + * contrib/hbqt/qtgui/QStyleOptionTab.cpp + * contrib/hbqt/qtgui/QStyleOptionTabBarBase.cpp + * contrib/hbqt/qtgui/QStyleOptionTabWidgetFrame.cpp + * contrib/hbqt/qtgui/QStyleOptionTitleBar.cpp + * contrib/hbqt/qtgui/QStyleOptionToolBar.cpp + * contrib/hbqt/qtgui/QStyleOptionToolBox.cpp + * contrib/hbqt/qtgui/QStyleOptionToolButton.cpp + * contrib/hbqt/qtgui/QStyleOptionViewItem.cpp + * contrib/hbqt/qtgui/QStylePainter.cpp + * contrib/hbqt/qtgui/QSystemTrayIcon.cpp + * contrib/hbqt/qtgui/QTabBar.cpp + * contrib/hbqt/qtgui/QTableView.cpp + * contrib/hbqt/qtgui/QTableWidget.cpp + * contrib/hbqt/qtgui/QTableWidgetItem.cpp + * contrib/hbqt/qtgui/QTableWidgetSelectionRange.cpp + * contrib/hbqt/qtgui/QTabWidget.cpp + * contrib/hbqt/qtgui/QTextBlock.cpp + * contrib/hbqt/qtgui/QTextBlockFormat.cpp + * contrib/hbqt/qtgui/QTextBrowser.cpp + * contrib/hbqt/qtgui/QTextCharFormat.cpp + * contrib/hbqt/qtgui/QTextCursor.cpp + * contrib/hbqt/qtgui/QTextDocument.cpp + * contrib/hbqt/qtgui/QTextDocumentFragment.cpp + * contrib/hbqt/qtgui/QTextDocumentWriter.cpp + * contrib/hbqt/qtgui/QTextEdit.cpp + * contrib/hbqt/qtgui/QTextFormat.cpp + * contrib/hbqt/qtgui/QTextFragment.cpp + * contrib/hbqt/qtgui/QTextFrame.cpp + * contrib/hbqt/qtgui/QTextFrameFormat.cpp + * contrib/hbqt/qtgui/QTextImageFormat.cpp + * contrib/hbqt/qtgui/QTextItem.cpp + * contrib/hbqt/qtgui/QTextLayout.cpp + * contrib/hbqt/qtgui/QTextLength.cpp + * contrib/hbqt/qtgui/QTextLine.cpp + * contrib/hbqt/qtgui/QTextListFormat.cpp + * contrib/hbqt/qtgui/QTextOption.cpp + * contrib/hbqt/qtgui/QTextTableFormat.cpp + * contrib/hbqt/qtgui/QTimeEdit.cpp + * contrib/hbqt/qtgui/QToolBar.cpp + * contrib/hbqt/qtgui/QToolBox.cpp + * contrib/hbqt/qtgui/QToolButton.cpp + * contrib/hbqt/qtgui/QTransform.cpp + * contrib/hbqt/qtgui/QTreeView.cpp + * contrib/hbqt/qtgui/QTreeWidget.cpp + * contrib/hbqt/qtgui/QTreeWidgetItem.cpp + * contrib/hbqt/qtgui/QVBoxLayout.cpp + * contrib/hbqt/qtgui/QWidget.cpp + * contrib/hbqt/qtgui/QWidgetAction.cpp + * contrib/hbqt/qtgui/QWidgetItem.cpp + * contrib/hbqt/qtgui/QWindowsStyle.cpp + * contrib/hbqt/qtgui/QWindowsXPStyle.cpp + * contrib/hbqt/qtgui/QWizard.cpp + * contrib/hbqt/qtgui/QWizardPage.cpp + * contrib/hbqt/qtnetwork/QFtp.cpp + * contrib/hbqt/qtnetwork/QHttp.cpp + * contrib/hbqt/qtnetwork/QHttpRequestHeader.cpp + * contrib/hbqt/qtnetwork/QHttpResponseHeader.cpp + * contrib/hbqt/qtnetwork/QNetworkRequest.cpp + * contrib/hbqt/qtwebkit/QWebHistoryItem.cpp + * contrib/hbqt/qtwebkit/QWebHitTestResult.cpp + * contrib/hbqt/qtwebkit/QWebPage.cpp + * contrib/hbqt/qtwebkit/QWebSecurityOrigin.cpp + * contrib/hbqt/qtwebkit/QWebView.cpp + + ! Updated to recent GC upgrade plus more classes brought to the GC. + + 2009-10-23 21:01 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/rtl/hbbffnc.c + added support for 3-rd parameter in hb_blowfishEncrypt() and diff --git a/harbour/contrib/hbqt/generator/hbqtgen.prg b/harbour/contrib/hbqt/generator/hbqtgen.prg index 082ca8b820..27d589ddd2 100644 --- a/harbour/contrib/hbqt/generator/hbqtgen.prg +++ b/harbour/contrib/hbqt/generator/hbqtgen.prg @@ -511,9 +511,9 @@ STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut, cPathDoc ) aadd( cpp_, new_[ 1 ] ) // Func definition aadd( cpp_, new_[ 2 ] ) // { IF lConst - // lObject := IsQObject( cWidget ) .or. lObject - IF lObject .or. IsMemObject( cWidget ) - aadd( cpp_, " QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );" ) + //IF lObject .or. IsMemObject( cWidget ) + IF lDestructor + aadd( cpp_, " QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() );" ) ENDIF IF lObject aadd( cpp_, " QPointer< "+ cWidget +" > pObj = NULL;" ) @@ -533,15 +533,9 @@ STATIC FUNCTION GenSource( cProFile, cPathIn, cPathOut, cPathDoc ) ENDIF NEXT aadd( cpp_, "" ) - IF lObject .or. IsMemObject( cWidget ) + //IF lObject .or. IsMemObject( cWidget ) + IF lDestructor aadd( cpp_, " p->ph = pObj;" ) - #if 0 - IF lObject - aadd( cpp_, " p->type = 1001;" ) - ELSE - aadd( cpp_, ' p->type = hbqt_getIdByName( ( QString ) "' + cWidget + '" );' ) - ENDIF - #endif aadd( cpp_, " p->func = release_" + cWidget +";" ) aadd( cpp_, " " ) aadd( cpp_, " hb_retptrGC( p );" ) diff --git a/harbour/contrib/hbqt/hbqt.h b/harbour/contrib/hbqt/hbqt.h index c1bd068e67..e7497b33cc 100644 --- a/harbour/contrib/hbqt/hbqt.h +++ b/harbour/contrib/hbqt/hbqt.h @@ -81,24 +81,23 @@ #define hbqt_ret_QAbstractItemModel( p ) ( hb_retptr( ( QAbstractItemModel* ) p ) ) #define hbqt_ret_QPrinter( p ) ( hb_retptr( ( QPrinter* ) p ) ) +/* For GC Pointers */ #define QT_G_FUNC( hbfunc ) void hbfunc( void * Cargo ) /* callback function for cleaning garbage memory pointer */ typedef QT_G_FUNC( QT_G_FUNC_ ); typedef QT_G_FUNC_ * QT_G_FUNC_PTR; -/* For GC Pointers */ - typedef struct { void * ph; - int type; QT_G_FUNC_PTR func; } QGC_POINTER; HB_GARBAGE_FUNC( Q_release ); + void * hbqt_gcpointer( int iParam ); void * hbqt_ptrTOgcpointer( void * p, QT_G_FUNC_PTR func ); -int hbqt_getIdByName( QString obj ); +const HB_GC_FUNCS * gcFuncs( void ); #include "hbqt_garbage.h" diff --git a/harbour/contrib/hbqt/hbqt_destruct.cpp b/harbour/contrib/hbqt/hbqt_destruct.cpp index b696448289..8081440d7c 100644 --- a/harbour/contrib/hbqt/hbqt_destruct.cpp +++ b/harbour/contrib/hbqt/hbqt_destruct.cpp @@ -62,29 +62,6 @@ #if QT_VERSION >= 0x040500 -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - /*----------------------------------------------------------------------*/ HB_GARBAGE_FUNC( Q_release ) @@ -96,35 +73,40 @@ HB_GARBAGE_FUNC( Q_release ) } } +const HB_GC_FUNCS QT_gcFuncs = +{ + Q_release, + hb_gcDummyMark +}; + +const HB_GC_FUNCS * gcFuncs( void ) +{ + return &QT_gcFuncs; +} + void * hbqt_gcpointer( int iParam ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_parptrGC( Q_release, iParam ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_parptrGC( gcFuncs(), iParam ); - #if 0 if( p && p->ph ) + { return p->ph; - hb_errRT_BASE( EG_ARG, 1123, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS ); - return NULL; - #else - return ( p && p->ph ? p->ph : hb_parptr( iParam ) ); - #endif + } + else + { + return hb_parptr( iParam ); + } } void * hbqt_ptrTOgcpointer( void * ptr, QT_G_FUNC_PTR func ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); p->ph = ptr; p->func = func; return p; } -int hbqt_getIdByName( QString name ) -{ - return 0; -} /*----------------------------------------------------------------------*/ #endif // #if QT_VERSION >= 0x040500 - - diff --git a/harbour/contrib/hbqt/qtcore/QBitArray.cpp b/harbour/contrib/hbqt/qtcore/QBitArray.cpp index 3993862908..d56cd04703 100644 --- a/harbour/contrib/hbqt/qtcore/QBitArray.cpp +++ b/harbour/contrib/hbqt/qtcore/QBitArray.cpp @@ -91,7 +91,7 @@ QT_G_FUNC( release_QBitArray ) HB_FUNC( QT_QBITARRAY ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QBitArray() ; diff --git a/harbour/contrib/hbqt/qtcore/QByteArray.cpp b/harbour/contrib/hbqt/qtcore/QByteArray.cpp index 429a7a0047..b4a3fc28c9 100644 --- a/harbour/contrib/hbqt/qtcore/QByteArray.cpp +++ b/harbour/contrib/hbqt/qtcore/QByteArray.cpp @@ -109,7 +109,7 @@ QT_G_FUNC( release_QByteArray ) HB_FUNC( QT_QBYTEARRAY ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QByteArray() ; diff --git a/harbour/contrib/hbqt/qtcore/QDataStream.cpp b/harbour/contrib/hbqt/qtcore/QDataStream.cpp index ae4395e11b..b5d48bcbb5 100644 --- a/harbour/contrib/hbqt/qtcore/QDataStream.cpp +++ b/harbour/contrib/hbqt/qtcore/QDataStream.cpp @@ -99,11 +99,15 @@ QT_G_FUNC( release_QDataStream ) HB_FUNC( QT_QDATASTREAM ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QDataStream() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QDataStream; + + hb_retptrGC( p ); } /* * bool atEnd () const diff --git a/harbour/contrib/hbqt/qtcore/QDate.cpp b/harbour/contrib/hbqt/qtcore/QDate.cpp index 014bee0050..9ba7d74e11 100644 --- a/harbour/contrib/hbqt/qtcore/QDate.cpp +++ b/harbour/contrib/hbqt/qtcore/QDate.cpp @@ -94,7 +94,7 @@ QT_G_FUNC( release_QDate ) HB_FUNC( QT_QDATE ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QDate() ; diff --git a/harbour/contrib/hbqt/qtcore/QDateTime.cpp b/harbour/contrib/hbqt/qtcore/QDateTime.cpp index d0aa1d7a86..d034e9843f 100644 --- a/harbour/contrib/hbqt/qtcore/QDateTime.cpp +++ b/harbour/contrib/hbqt/qtcore/QDateTime.cpp @@ -94,7 +94,7 @@ QT_G_FUNC( release_QDateTime ) HB_FUNC( QT_QDATETIME ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QDateTime* ) new QDateTime() ; diff --git a/harbour/contrib/hbqt/qtcore/QDir.cpp b/harbour/contrib/hbqt/qtcore/QDir.cpp index c219ae6749..0d1e82ddb8 100644 --- a/harbour/contrib/hbqt/qtcore/QDir.cpp +++ b/harbour/contrib/hbqt/qtcore/QDir.cpp @@ -100,7 +100,7 @@ QT_G_FUNC( release_QDir ) HB_FUNC( QT_QDIR ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QDir( hbqt_par_QString( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtcore/QEvent.cpp b/harbour/contrib/hbqt/qtcore/QEvent.cpp index 5c624ee05f..d99f491bab 100644 --- a/harbour/contrib/hbqt/qtcore/QEvent.cpp +++ b/harbour/contrib/hbqt/qtcore/QEvent.cpp @@ -95,11 +95,15 @@ QT_G_FUNC( release_QEvent ) HB_FUNC( QT_QEVENT ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QEvent* ) new QEvent( ( QEvent::Type ) hb_parni( 1 ) ) ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QEvent; + + hb_retptrGC( p ); } /* * void accept () diff --git a/harbour/contrib/hbqt/qtcore/QEventLoop.cpp b/harbour/contrib/hbqt/qtcore/QEventLoop.cpp index 9a112234cb..e34f7378d9 100644 --- a/harbour/contrib/hbqt/qtcore/QEventLoop.cpp +++ b/harbour/contrib/hbqt/qtcore/QEventLoop.cpp @@ -106,7 +106,7 @@ QT_G_FUNC( release_QEventLoop ) HB_FUNC( QT_QEVENTLOOP ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QEventLoop > pObj = NULL; pObj = new QEventLoop( hbqt_par_QObject( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtcore/QFile.cpp b/harbour/contrib/hbqt/qtcore/QFile.cpp index 747fca4cfd..7ce0ac923e 100644 --- a/harbour/contrib/hbqt/qtcore/QFile.cpp +++ b/harbour/contrib/hbqt/qtcore/QFile.cpp @@ -111,7 +111,7 @@ QT_G_FUNC( release_QFile ) HB_FUNC( QT_QFILE ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QFile > pObj = NULL; if( hb_pcount() == 1 && HB_ISCHAR( 1 ) ) diff --git a/harbour/contrib/hbqt/qtcore/QFileInfo.cpp b/harbour/contrib/hbqt/qtcore/QFileInfo.cpp index c14ddfa229..c3a972349f 100644 --- a/harbour/contrib/hbqt/qtcore/QFileInfo.cpp +++ b/harbour/contrib/hbqt/qtcore/QFileInfo.cpp @@ -100,11 +100,15 @@ QT_G_FUNC( release_QFileInfo ) HB_FUNC( QT_QFILEINFO ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QFileInfo() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QFileInfo; + + hb_retptrGC( p ); } /* * QDir absoluteDir () const diff --git a/harbour/contrib/hbqt/qtcore/QLatin1Char.cpp b/harbour/contrib/hbqt/qtcore/QLatin1Char.cpp index 434ba4feae..d66731d87f 100644 --- a/harbour/contrib/hbqt/qtcore/QLatin1Char.cpp +++ b/harbour/contrib/hbqt/qtcore/QLatin1Char.cpp @@ -90,11 +90,15 @@ QT_G_FUNC( release_QLatin1Char ) HB_FUNC( QT_QLATIN1CHAR ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QLatin1Char* ) new QLatin1Char( *hb_parcx( 1 ) ) ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QLatin1Char; + + hb_retptrGC( p ); } /* * char toLatin1 () const diff --git a/harbour/contrib/hbqt/qtcore/QLatin1String.cpp b/harbour/contrib/hbqt/qtcore/QLatin1String.cpp index f0c9431766..e6f5005d57 100644 --- a/harbour/contrib/hbqt/qtcore/QLatin1String.cpp +++ b/harbour/contrib/hbqt/qtcore/QLatin1String.cpp @@ -90,11 +90,15 @@ QT_G_FUNC( release_QLatin1String ) HB_FUNC( QT_QLATIN1STRING ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QLatin1String* ) new QLatin1String( hb_parcx( 1 ) ) ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QLatin1String; + + hb_retptrGC( p ); } /* * const char * latin1 () const diff --git a/harbour/contrib/hbqt/qtcore/QLine.cpp b/harbour/contrib/hbqt/qtcore/QLine.cpp index 2b2b8cfe21..9458d78d55 100644 --- a/harbour/contrib/hbqt/qtcore/QLine.cpp +++ b/harbour/contrib/hbqt/qtcore/QLine.cpp @@ -92,7 +92,7 @@ QT_G_FUNC( release_QLine ) HB_FUNC( QT_QLINE ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtcore/QLineF.cpp b/harbour/contrib/hbqt/qtcore/QLineF.cpp index b202ac410c..880b13ea02 100644 --- a/harbour/contrib/hbqt/qtcore/QLineF.cpp +++ b/harbour/contrib/hbqt/qtcore/QLineF.cpp @@ -96,7 +96,7 @@ QT_G_FUNC( release_QLineF ) HB_FUNC( QT_QLINEF ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QLineF() ; diff --git a/harbour/contrib/hbqt/qtcore/QList.cpp b/harbour/contrib/hbqt/qtcore/QList.cpp index 16ac32c7df..8672cd4ac9 100644 --- a/harbour/contrib/hbqt/qtcore/QList.cpp +++ b/harbour/contrib/hbqt/qtcore/QList.cpp @@ -118,12 +118,16 @@ QT_G_FUNC( release_QList ) HB_FUNC( QT_QLIST ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; QList* list = NULL; pObj = ( QList* ) list ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QList; + + hb_retptrGC( p ); } /* * void append ( const T & value ) diff --git a/harbour/contrib/hbqt/qtcore/QLocale.cpp b/harbour/contrib/hbqt/qtcore/QLocale.cpp index 81a3136e15..a3bcc12be8 100644 --- a/harbour/contrib/hbqt/qtcore/QLocale.cpp +++ b/harbour/contrib/hbqt/qtcore/QLocale.cpp @@ -120,7 +120,7 @@ QT_G_FUNC( release_QLocale ) HB_FUNC( QT_QLOCALE ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QLocale() ; diff --git a/harbour/contrib/hbqt/qtcore/QMimeData.cpp b/harbour/contrib/hbqt/qtcore/QMimeData.cpp index 01e037cb1f..0cb6876da3 100644 --- a/harbour/contrib/hbqt/qtcore/QMimeData.cpp +++ b/harbour/contrib/hbqt/qtcore/QMimeData.cpp @@ -111,7 +111,7 @@ QT_G_FUNC( release_QMimeData ) HB_FUNC( QT_QMIMEDATA ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QMimeData > pObj = NULL; pObj = new QMimeData() ; diff --git a/harbour/contrib/hbqt/qtcore/QModelIndex.cpp b/harbour/contrib/hbqt/qtcore/QModelIndex.cpp index 518d4759ec..b8a4b74fb1 100644 --- a/harbour/contrib/hbqt/qtcore/QModelIndex.cpp +++ b/harbour/contrib/hbqt/qtcore/QModelIndex.cpp @@ -92,7 +92,7 @@ QT_G_FUNC( release_QModelIndex ) HB_FUNC( QT_QMODELINDEX ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QModelIndex() ; diff --git a/harbour/contrib/hbqt/qtcore/QObject.cpp b/harbour/contrib/hbqt/qtcore/QObject.cpp index ee9149ac1d..fd2e5d6475 100644 --- a/harbour/contrib/hbqt/qtcore/QObject.cpp +++ b/harbour/contrib/hbqt/qtcore/QObject.cpp @@ -119,7 +119,7 @@ QT_G_FUNC( release_QObject ) HB_FUNC( QT_QOBJECT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QObject > pObj = NULL; pObj = ( QObject* ) new QObject( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtcore/QPoint.cpp b/harbour/contrib/hbqt/qtcore/QPoint.cpp index 6e507c9f39..c73c1382e6 100644 --- a/harbour/contrib/hbqt/qtcore/QPoint.cpp +++ b/harbour/contrib/hbqt/qtcore/QPoint.cpp @@ -92,6 +92,7 @@ QT_G_FUNC( release_QPoint ) HB_FUNC( QT_QPOINT ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 2 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) ) @@ -107,7 +108,10 @@ HB_FUNC( QT_QPOINT ) pObj = ( QPoint* ) new QPoint() ; } - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QPoint; + + hb_retptrGC( p ); } /* * bool isNull () const diff --git a/harbour/contrib/hbqt/qtcore/QPointF.cpp b/harbour/contrib/hbqt/qtcore/QPointF.cpp index 21f5b58d58..d5c63346aa 100644 --- a/harbour/contrib/hbqt/qtcore/QPointF.cpp +++ b/harbour/contrib/hbqt/qtcore/QPointF.cpp @@ -92,7 +92,7 @@ QT_G_FUNC( release_QPointF ) HB_FUNC( QT_QPOINTF ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 2 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) ) diff --git a/harbour/contrib/hbqt/qtcore/QProcess.cpp b/harbour/contrib/hbqt/qtcore/QProcess.cpp index ea95d0e510..f158d17f77 100644 --- a/harbour/contrib/hbqt/qtcore/QProcess.cpp +++ b/harbour/contrib/hbqt/qtcore/QProcess.cpp @@ -112,7 +112,7 @@ QT_G_FUNC( release_QProcess ) HB_FUNC( QT_QPROCESS ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QProcess > pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtcore/QRect.cpp b/harbour/contrib/hbqt/qtcore/QRect.cpp index fd3db48ec0..79a8e11562 100644 --- a/harbour/contrib/hbqt/qtcore/QRect.cpp +++ b/harbour/contrib/hbqt/qtcore/QRect.cpp @@ -94,7 +94,7 @@ QT_G_FUNC( release_QRect ) HB_FUNC( QT_QRECT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtcore/QRectF.cpp b/harbour/contrib/hbqt/qtcore/QRectF.cpp index ec5c3b12e4..31aacaa6d4 100644 --- a/harbour/contrib/hbqt/qtcore/QRectF.cpp +++ b/harbour/contrib/hbqt/qtcore/QRectF.cpp @@ -95,7 +95,7 @@ QT_G_FUNC( release_QRectF ) HB_FUNC( QT_QRECTF ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtcore/QRegExp.cpp b/harbour/contrib/hbqt/qtcore/QRegExp.cpp index 53d7296fe3..01363da820 100644 --- a/harbour/contrib/hbqt/qtcore/QRegExp.cpp +++ b/harbour/contrib/hbqt/qtcore/QRegExp.cpp @@ -97,7 +97,7 @@ QT_G_FUNC( release_QRegExp ) HB_FUNC( QT_QREGEXP ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QRegExp() ; diff --git a/harbour/contrib/hbqt/qtcore/QResource.cpp b/harbour/contrib/hbqt/qtcore/QResource.cpp index dd24ed18aa..1701908f3c 100644 --- a/harbour/contrib/hbqt/qtcore/QResource.cpp +++ b/harbour/contrib/hbqt/qtcore/QResource.cpp @@ -91,11 +91,15 @@ QT_G_FUNC( release_QResource ) HB_FUNC( QT_QRESOURCE ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QResource* ) new QResource() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QResource; + + hb_retptrGC( p ); } /* * QString absoluteFilePath () const diff --git a/harbour/contrib/hbqt/qtcore/QSignalMapper.cpp b/harbour/contrib/hbqt/qtcore/QSignalMapper.cpp index 42cabf0028..83c3436b87 100644 --- a/harbour/contrib/hbqt/qtcore/QSignalMapper.cpp +++ b/harbour/contrib/hbqt/qtcore/QSignalMapper.cpp @@ -101,7 +101,7 @@ QT_G_FUNC( release_QSignalMapper ) HB_FUNC( QT_QSIGNALMAPPER ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QSignalMapper > pObj = NULL; pObj = new QSignalMapper( hbqt_par_QObject( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtcore/QSize.cpp b/harbour/contrib/hbqt/qtcore/QSize.cpp index 1cc194ec06..9fd68e1e06 100644 --- a/harbour/contrib/hbqt/qtcore/QSize.cpp +++ b/harbour/contrib/hbqt/qtcore/QSize.cpp @@ -92,7 +92,7 @@ QT_G_FUNC( release_QSize ) HB_FUNC( QT_QSIZE ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 2 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) ) diff --git a/harbour/contrib/hbqt/qtcore/QSizeF.cpp b/harbour/contrib/hbqt/qtcore/QSizeF.cpp index 8d026189bc..3e70546f06 100644 --- a/harbour/contrib/hbqt/qtcore/QSizeF.cpp +++ b/harbour/contrib/hbqt/qtcore/QSizeF.cpp @@ -93,7 +93,7 @@ QT_G_FUNC( release_QSizeF ) HB_FUNC( QT_QSIZEF ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 2 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) ) diff --git a/harbour/contrib/hbqt/qtcore/QStringList.cpp b/harbour/contrib/hbqt/qtcore/QStringList.cpp index f9a732931e..3b042de0d3 100644 --- a/harbour/contrib/hbqt/qtcore/QStringList.cpp +++ b/harbour/contrib/hbqt/qtcore/QStringList.cpp @@ -111,7 +111,7 @@ QT_G_FUNC( release_QStringList ) HB_FUNC( QT_QSTRINGLIST ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStringList* ) new QStringList() ; diff --git a/harbour/contrib/hbqt/qtcore/QTextBoundaryFinder.cpp b/harbour/contrib/hbqt/qtcore/QTextBoundaryFinder.cpp index a62683668f..8046b4c7f5 100644 --- a/harbour/contrib/hbqt/qtcore/QTextBoundaryFinder.cpp +++ b/harbour/contrib/hbqt/qtcore/QTextBoundaryFinder.cpp @@ -100,11 +100,15 @@ QT_G_FUNC( release_QTextBoundaryFinder ) HB_FUNC( QT_QTEXTBOUNDARYFINDER ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QTextBoundaryFinder* ) new QTextBoundaryFinder() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QTextBoundaryFinder; + + hb_retptrGC( p ); } /* * BoundaryReasons boundaryReasons () const diff --git a/harbour/contrib/hbqt/qtcore/QTextDecoder.cpp b/harbour/contrib/hbqt/qtcore/QTextDecoder.cpp index 235aee9654..551f80f39a 100644 --- a/harbour/contrib/hbqt/qtcore/QTextDecoder.cpp +++ b/harbour/contrib/hbqt/qtcore/QTextDecoder.cpp @@ -91,11 +91,15 @@ QT_G_FUNC( release_QTextDecoder ) HB_FUNC( QT_QTEXTDECODER ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QTextDecoder* ) new QTextDecoder( hbqt_par_QTextCodec( 1 ) ) ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QTextDecoder; + + hb_retptrGC( p ); } /* * QString toUnicode ( const char * chars, int len ) diff --git a/harbour/contrib/hbqt/qtcore/QTextEncoder.cpp b/harbour/contrib/hbqt/qtcore/QTextEncoder.cpp index 343decf8d6..839c54ccf7 100644 --- a/harbour/contrib/hbqt/qtcore/QTextEncoder.cpp +++ b/harbour/contrib/hbqt/qtcore/QTextEncoder.cpp @@ -91,11 +91,15 @@ QT_G_FUNC( release_QTextEncoder ) HB_FUNC( QT_QTEXTENCODER ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QTextEncoder* ) new QTextEncoder( hbqt_par_QTextCodec( 1 ) ) ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QTextEncoder; + + hb_retptrGC( p ); } /* * QByteArray fromUnicode ( const QString & str ) diff --git a/harbour/contrib/hbqt/qtcore/QTextStream.cpp b/harbour/contrib/hbqt/qtcore/QTextStream.cpp index 939e04c6ca..6dcebb41b7 100644 --- a/harbour/contrib/hbqt/qtcore/QTextStream.cpp +++ b/harbour/contrib/hbqt/qtcore/QTextStream.cpp @@ -111,11 +111,15 @@ QT_G_FUNC( release_QTextStream ) HB_FUNC( QT_QTEXTSTREAM ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QTextStream( hb_parcx( 1 ), ( QIODevice::OpenMode ) ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : QIODevice::ReadWrite ) ) ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QTextStream; + + hb_retptrGC( p ); } /* * bool atEnd () const diff --git a/harbour/contrib/hbqt/qtcore/QThread.cpp b/harbour/contrib/hbqt/qtcore/QThread.cpp index 6fa3ef9c4d..3dd34154b4 100644 --- a/harbour/contrib/hbqt/qtcore/QThread.cpp +++ b/harbour/contrib/hbqt/qtcore/QThread.cpp @@ -104,7 +104,7 @@ QT_G_FUNC( release_QThread ) HB_FUNC( QT_QTHREAD ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QThread > pObj = NULL; pObj = new QThread() ; diff --git a/harbour/contrib/hbqt/qtcore/QTime.cpp b/harbour/contrib/hbqt/qtcore/QTime.cpp index b82c1d5953..d9a8572945 100644 --- a/harbour/contrib/hbqt/qtcore/QTime.cpp +++ b/harbour/contrib/hbqt/qtcore/QTime.cpp @@ -90,7 +90,7 @@ QT_G_FUNC( release_QTime ) HB_FUNC( QT_QTIME ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QTime() ; diff --git a/harbour/contrib/hbqt/qtcore/QTimer.cpp b/harbour/contrib/hbqt/qtcore/QTimer.cpp index 100916b247..d2177975a8 100644 --- a/harbour/contrib/hbqt/qtcore/QTimer.cpp +++ b/harbour/contrib/hbqt/qtcore/QTimer.cpp @@ -101,7 +101,7 @@ QT_G_FUNC( release_QTimer ) HB_FUNC( QT_QTIMER ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QTimer > pObj = NULL; pObj = new QTimer( hbqt_par_QObject( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtcore/QTranslator.cpp b/harbour/contrib/hbqt/qtcore/QTranslator.cpp index 0075f9090f..33df358801 100644 --- a/harbour/contrib/hbqt/qtcore/QTranslator.cpp +++ b/harbour/contrib/hbqt/qtcore/QTranslator.cpp @@ -100,7 +100,7 @@ QT_G_FUNC( release_QTranslator ) HB_FUNC( QT_QTRANSLATOR ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QTranslator > pObj = NULL; pObj = new QTranslator() ; diff --git a/harbour/contrib/hbqt/qtcore/QUrl.cpp b/harbour/contrib/hbqt/qtcore/QUrl.cpp index 44b6913ca5..d4360e4400 100644 --- a/harbour/contrib/hbqt/qtcore/QUrl.cpp +++ b/harbour/contrib/hbqt/qtcore/QUrl.cpp @@ -125,7 +125,7 @@ QT_G_FUNC( release_QUrl ) HB_FUNC( QT_QURL ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QUrl( hbqt_par_QString( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtcore/QVariant.cpp b/harbour/contrib/hbqt/qtcore/QVariant.cpp index 8895654886..2db6304881 100644 --- a/harbour/contrib/hbqt/qtcore/QVariant.cpp +++ b/harbour/contrib/hbqt/qtcore/QVariant.cpp @@ -154,7 +154,7 @@ QT_G_FUNC( release_QVariant ) HB_FUNC( QT_QVARIANT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QVariant* ) new QVariant() ; diff --git a/harbour/contrib/hbqt/qtgui/QAction.cpp b/harbour/contrib/hbqt/qtgui/QAction.cpp index 5c12aeea6d..e8f20bf317 100644 --- a/harbour/contrib/hbqt/qtgui/QAction.cpp +++ b/harbour/contrib/hbqt/qtgui/QAction.cpp @@ -120,7 +120,7 @@ QT_G_FUNC( release_QAction ) HB_FUNC( QT_QACTION ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QAction > pObj = NULL; if( HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QActionGroup.cpp b/harbour/contrib/hbqt/qtgui/QActionGroup.cpp index b3b6fd8ae4..1cb393c04c 100644 --- a/harbour/contrib/hbqt/qtgui/QActionGroup.cpp +++ b/harbour/contrib/hbqt/qtgui/QActionGroup.cpp @@ -109,7 +109,7 @@ QT_G_FUNC( release_QActionGroup ) HB_FUNC( QT_QACTIONGROUP ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QActionGroup > pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QApplication.cpp b/harbour/contrib/hbqt/qtgui/QApplication.cpp index b9e9654efb..21754e8d6c 100644 --- a/harbour/contrib/hbqt/qtgui/QApplication.cpp +++ b/harbour/contrib/hbqt/qtgui/QApplication.cpp @@ -186,7 +186,7 @@ QT_G_FUNC( release_QApplication ) HB_FUNC( QT_QAPPLICATION ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QApplication > pObj = NULL; pObj = ( QApplication * ) app ; diff --git a/harbour/contrib/hbqt/qtgui/QBitmap.cpp b/harbour/contrib/hbqt/qtgui/QBitmap.cpp index 20e3be005f..7779574a8c 100644 --- a/harbour/contrib/hbqt/qtgui/QBitmap.cpp +++ b/harbour/contrib/hbqt/qtgui/QBitmap.cpp @@ -95,7 +95,7 @@ QT_G_FUNC( release_QBitmap ) HB_FUNC( QT_QBITMAP ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QBoxLayout.cpp b/harbour/contrib/hbqt/qtgui/QBoxLayout.cpp index a95583a7de..4c876eccf8 100644 --- a/harbour/contrib/hbqt/qtgui/QBoxLayout.cpp +++ b/harbour/contrib/hbqt/qtgui/QBoxLayout.cpp @@ -105,7 +105,7 @@ QT_G_FUNC( release_QBoxLayout ) HB_FUNC( QT_QBOXLAYOUT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QBoxLayout > pObj = NULL; pObj = ( QBoxLayout* ) new QBoxLayout( ( QBoxLayout::Direction ) hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QBrush.cpp b/harbour/contrib/hbqt/qtgui/QBrush.cpp index abe85a0958..082347cc79 100644 --- a/harbour/contrib/hbqt/qtgui/QBrush.cpp +++ b/harbour/contrib/hbqt/qtgui/QBrush.cpp @@ -100,7 +100,7 @@ QT_G_FUNC( release_QBrush ) HB_FUNC( QT_QBRUSH ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QButtonGroup.cpp b/harbour/contrib/hbqt/qtgui/QButtonGroup.cpp index 50c7134633..f29480ca5d 100644 --- a/harbour/contrib/hbqt/qtgui/QButtonGroup.cpp +++ b/harbour/contrib/hbqt/qtgui/QButtonGroup.cpp @@ -110,7 +110,7 @@ QT_G_FUNC( release_QButtonGroup ) HB_FUNC( QT_QBUTTONGROUP ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QButtonGroup > pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QCalendarWidget.cpp b/harbour/contrib/hbqt/qtgui/QCalendarWidget.cpp index 3e51ca71a1..e967350914 100644 --- a/harbour/contrib/hbqt/qtgui/QCalendarWidget.cpp +++ b/harbour/contrib/hbqt/qtgui/QCalendarWidget.cpp @@ -116,7 +116,7 @@ QT_G_FUNC( release_QCalendarWidget ) HB_FUNC( QT_QCALENDARWIDGET ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QCalendarWidget > pObj = NULL; pObj = ( QCalendarWidget* ) new QCalendarWidget( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QCheckBox.cpp b/harbour/contrib/hbqt/qtgui/QCheckBox.cpp index 0bdad5572d..3daaa62ed6 100644 --- a/harbour/contrib/hbqt/qtgui/QCheckBox.cpp +++ b/harbour/contrib/hbqt/qtgui/QCheckBox.cpp @@ -101,7 +101,7 @@ QT_G_FUNC( release_QCheckBox ) HB_FUNC( QT_QCHECKBOX ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QCheckBox > pObj = NULL; if( hb_pcount() >= 1 && HB_ISCHAR( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QClipboard.cpp b/harbour/contrib/hbqt/qtgui/QClipboard.cpp index 227672b9c6..a67d995d27 100644 --- a/harbour/contrib/hbqt/qtgui/QClipboard.cpp +++ b/harbour/contrib/hbqt/qtgui/QClipboard.cpp @@ -88,15 +88,11 @@ QT_G_FUNC( release_QClipboard ) HB_FUNC( QT_QCLIPBOARD ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); QPointer< QClipboard > pObj = NULL; pObj = ( QClipboard* ) QApplication::clipboard() ; - p->ph = pObj; - p->func = release_QClipboard; - - hb_retptrGC( p ); + hb_retptr( pObj ); } /* * void clear ( Mode mode = Clipboard ) diff --git a/harbour/contrib/hbqt/qtgui/QColor.cpp b/harbour/contrib/hbqt/qtgui/QColor.cpp index 139d0b1c20..8c4dadd8b1 100644 --- a/harbour/contrib/hbqt/qtgui/QColor.cpp +++ b/harbour/contrib/hbqt/qtgui/QColor.cpp @@ -100,7 +100,7 @@ QT_G_FUNC( release_QColor ) HB_FUNC( QT_QCOLOR ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() >= 1 ) diff --git a/harbour/contrib/hbqt/qtgui/QColorDialog.cpp b/harbour/contrib/hbqt/qtgui/QColorDialog.cpp index 8fadc9d31a..1ffde99ce9 100644 --- a/harbour/contrib/hbqt/qtgui/QColorDialog.cpp +++ b/harbour/contrib/hbqt/qtgui/QColorDialog.cpp @@ -106,7 +106,7 @@ QT_G_FUNC( release_QColorDialog ) HB_FUNC( QT_QCOLORDIALOG ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QColorDialog > pObj = NULL; if( hb_pcount() >= 1 && HB_ISNUM( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QComboBox.cpp b/harbour/contrib/hbqt/qtgui/QComboBox.cpp index 94a6bc3104..cc5db630fa 100644 --- a/harbour/contrib/hbqt/qtgui/QComboBox.cpp +++ b/harbour/contrib/hbqt/qtgui/QComboBox.cpp @@ -106,7 +106,7 @@ QT_G_FUNC( release_QComboBox ) HB_FUNC( QT_QCOMBOBOX ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QComboBox > pObj = NULL; pObj = ( QComboBox* ) new QComboBox( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QCommandLinkButton.cpp b/harbour/contrib/hbqt/qtgui/QCommandLinkButton.cpp index b172a63335..f858183e3c 100644 --- a/harbour/contrib/hbqt/qtgui/QCommandLinkButton.cpp +++ b/harbour/contrib/hbqt/qtgui/QCommandLinkButton.cpp @@ -102,7 +102,7 @@ QT_G_FUNC( release_QCommandLinkButton ) HB_FUNC( QT_QCOMMANDLINKBUTTON ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QCommandLinkButton > pObj = NULL; pObj = ( QCommandLinkButton* ) new QCommandLinkButton( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QCommonStyle.cpp b/harbour/contrib/hbqt/qtgui/QCommonStyle.cpp index c5801d21d4..4057289ced 100644 --- a/harbour/contrib/hbqt/qtgui/QCommonStyle.cpp +++ b/harbour/contrib/hbqt/qtgui/QCommonStyle.cpp @@ -100,7 +100,7 @@ QT_G_FUNC( release_QCommonStyle ) HB_FUNC( QT_QCOMMONSTYLE ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QCommonStyle > pObj = NULL; pObj = ( QCommonStyle* ) new QCommonStyle() ; diff --git a/harbour/contrib/hbqt/qtgui/QCompleter.cpp b/harbour/contrib/hbqt/qtgui/QCompleter.cpp index 8f997c5447..ace91867cf 100644 --- a/harbour/contrib/hbqt/qtgui/QCompleter.cpp +++ b/harbour/contrib/hbqt/qtgui/QCompleter.cpp @@ -107,7 +107,7 @@ QT_G_FUNC( release_QCompleter ) HB_FUNC( QT_QCOMPLETER ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QCompleter > pObj = NULL; pObj = new QCompleter() ; diff --git a/harbour/contrib/hbqt/qtgui/QConicalGradient.cpp b/harbour/contrib/hbqt/qtgui/QConicalGradient.cpp index a4d869ede1..0175e2a3d5 100644 --- a/harbour/contrib/hbqt/qtgui/QConicalGradient.cpp +++ b/harbour/contrib/hbqt/qtgui/QConicalGradient.cpp @@ -98,11 +98,15 @@ QT_G_FUNC( release_QConicalGradient ) HB_FUNC( QT_QCONICALGRADIENT ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QConicalGradient* ) new QConicalGradient() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QConicalGradient; + + hb_retptrGC( p ); } /* * qreal angle () const diff --git a/harbour/contrib/hbqt/qtgui/QContextMenuEvent.cpp b/harbour/contrib/hbqt/qtgui/QContextMenuEvent.cpp index d61bdc5517..635154d808 100644 --- a/harbour/contrib/hbqt/qtgui/QContextMenuEvent.cpp +++ b/harbour/contrib/hbqt/qtgui/QContextMenuEvent.cpp @@ -95,11 +95,15 @@ QT_G_FUNC( release_QContextMenuEvent ) HB_FUNC( QT_QCONTEXTMENUEVENT ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QContextMenuEvent( ( QContextMenuEvent::Reason ) hb_parni( 1 ), *hbqt_par_QPoint( 2 ) ) ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QContextMenuEvent; + + hb_retptrGC( p ); } /* * const QPoint & globalPos () const diff --git a/harbour/contrib/hbqt/qtgui/QCursor.cpp b/harbour/contrib/hbqt/qtgui/QCursor.cpp index 0308895129..d641edb41f 100644 --- a/harbour/contrib/hbqt/qtgui/QCursor.cpp +++ b/harbour/contrib/hbqt/qtgui/QCursor.cpp @@ -97,7 +97,7 @@ QT_G_FUNC( release_QCursor ) HB_FUNC( QT_QCURSOR ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISNUM( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QDateEdit.cpp b/harbour/contrib/hbqt/qtgui/QDateEdit.cpp index e1ca656f23..24d9f8f708 100644 --- a/harbour/contrib/hbqt/qtgui/QDateEdit.cpp +++ b/harbour/contrib/hbqt/qtgui/QDateEdit.cpp @@ -101,7 +101,7 @@ QT_G_FUNC( release_QDateEdit ) HB_FUNC( QT_QDATEEDIT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QDateEdit > pObj = NULL; pObj = ( QDateEdit* ) new QDateEdit( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QDateTimeEdit.cpp b/harbour/contrib/hbqt/qtgui/QDateTimeEdit.cpp index 8b909bdfb6..11972f221c 100644 --- a/harbour/contrib/hbqt/qtgui/QDateTimeEdit.cpp +++ b/harbour/contrib/hbqt/qtgui/QDateTimeEdit.cpp @@ -108,7 +108,7 @@ QT_G_FUNC( release_QDateTimeEdit ) HB_FUNC( QT_QDATETIMEEDIT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QDateTimeEdit > pObj = NULL; pObj = ( QDateTimeEdit* ) new QDateTimeEdit( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QDesktopWidget.cpp b/harbour/contrib/hbqt/qtgui/QDesktopWidget.cpp index 8916308d5d..25e9694671 100644 --- a/harbour/contrib/hbqt/qtgui/QDesktopWidget.cpp +++ b/harbour/contrib/hbqt/qtgui/QDesktopWidget.cpp @@ -101,7 +101,7 @@ QT_G_FUNC( release_QDesktopWidget ) HB_FUNC( QT_QDESKTOPWIDGET ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QDesktopWidget > pObj = NULL; pObj = new QDesktopWidget() ; diff --git a/harbour/contrib/hbqt/qtgui/QDial.cpp b/harbour/contrib/hbqt/qtgui/QDial.cpp index 6c04e667ce..32ba8cc82f 100644 --- a/harbour/contrib/hbqt/qtgui/QDial.cpp +++ b/harbour/contrib/hbqt/qtgui/QDial.cpp @@ -101,7 +101,7 @@ QT_G_FUNC( release_QDial ) HB_FUNC( QT_QDIAL ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QDial > pObj = NULL; pObj = ( QDial* ) new QDial( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QDialog.cpp b/harbour/contrib/hbqt/qtgui/QDialog.cpp index e91c919c8f..ae7f66a3f8 100644 --- a/harbour/contrib/hbqt/qtgui/QDialog.cpp +++ b/harbour/contrib/hbqt/qtgui/QDialog.cpp @@ -105,7 +105,7 @@ QT_G_FUNC( release_QDialog ) HB_FUNC( QT_QDIALOG ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QDialog > pObj = NULL; pObj = new QDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QDirModel.cpp b/harbour/contrib/hbqt/qtgui/QDirModel.cpp index ce45de3923..2f278d6f00 100644 --- a/harbour/contrib/hbqt/qtgui/QDirModel.cpp +++ b/harbour/contrib/hbqt/qtgui/QDirModel.cpp @@ -106,7 +106,7 @@ QT_G_FUNC( release_QDirModel ) HB_FUNC( QT_QDIRMODEL ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QDirModel > pObj = NULL; pObj = ( QDirModel* ) new QDirModel( hbqt_par_QObject( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QDockWidget.cpp b/harbour/contrib/hbqt/qtgui/QDockWidget.cpp index 1f18301ddd..a3c6ad485a 100644 --- a/harbour/contrib/hbqt/qtgui/QDockWidget.cpp +++ b/harbour/contrib/hbqt/qtgui/QDockWidget.cpp @@ -107,7 +107,7 @@ QT_G_FUNC( release_QDockWidget ) HB_FUNC( QT_QDOCKWIDGET ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QDockWidget > pObj = NULL; pObj = new QDockWidget( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QDoubleSpinBox.cpp b/harbour/contrib/hbqt/qtgui/QDoubleSpinBox.cpp index c86b86e5a8..89966ffee6 100644 --- a/harbour/contrib/hbqt/qtgui/QDoubleSpinBox.cpp +++ b/harbour/contrib/hbqt/qtgui/QDoubleSpinBox.cpp @@ -100,7 +100,7 @@ QT_G_FUNC( release_QDoubleSpinBox ) HB_FUNC( QT_QDOUBLESPINBOX ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QDoubleSpinBox > pObj = NULL; pObj = ( QDoubleSpinBox* ) new QDoubleSpinBox( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QErrorMessage.cpp b/harbour/contrib/hbqt/qtgui/QErrorMessage.cpp index d8c06ce295..016a68a13e 100644 --- a/harbour/contrib/hbqt/qtgui/QErrorMessage.cpp +++ b/harbour/contrib/hbqt/qtgui/QErrorMessage.cpp @@ -110,7 +110,7 @@ QT_G_FUNC( release_QErrorMessage ) HB_FUNC( QT_QERRORMESSAGE ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QErrorMessage > pObj = NULL; pObj = ( QErrorMessage* ) new QErrorMessage( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QFileDialog.cpp b/harbour/contrib/hbqt/qtgui/QFileDialog.cpp index 6877d2ff07..dd758f212a 100644 --- a/harbour/contrib/hbqt/qtgui/QFileDialog.cpp +++ b/harbour/contrib/hbqt/qtgui/QFileDialog.cpp @@ -128,7 +128,7 @@ QT_G_FUNC( release_QFileDialog ) HB_FUNC( QT_QFILEDIALOG ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QFileDialog > pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QFileIconProvider.cpp b/harbour/contrib/hbqt/qtgui/QFileIconProvider.cpp index e0d7d48460..571fdf1d91 100644 --- a/harbour/contrib/hbqt/qtgui/QFileIconProvider.cpp +++ b/harbour/contrib/hbqt/qtgui/QFileIconProvider.cpp @@ -94,11 +94,15 @@ QT_G_FUNC( release_QFileIconProvider ) HB_FUNC( QT_QFILEICONPROVIDER ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QFileIconProvider() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QFileIconProvider; + + hb_retptrGC( p ); } /* * virtual QIcon icon ( IconType type ) const diff --git a/harbour/contrib/hbqt/qtgui/QFileSystemModel.cpp b/harbour/contrib/hbqt/qtgui/QFileSystemModel.cpp index ac07982ce6..2d8d9adb69 100644 --- a/harbour/contrib/hbqt/qtgui/QFileSystemModel.cpp +++ b/harbour/contrib/hbqt/qtgui/QFileSystemModel.cpp @@ -105,7 +105,7 @@ QT_G_FUNC( release_QFileSystemModel ) HB_FUNC( QT_QFILESYSTEMMODEL ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QFileSystemModel > pObj = NULL; pObj = ( QFileSystemModel * ) new QFileSystemModel() ; diff --git a/harbour/contrib/hbqt/qtgui/QFocusFrame.cpp b/harbour/contrib/hbqt/qtgui/QFocusFrame.cpp index 54d6e05405..254119cbbd 100644 --- a/harbour/contrib/hbqt/qtgui/QFocusFrame.cpp +++ b/harbour/contrib/hbqt/qtgui/QFocusFrame.cpp @@ -101,7 +101,7 @@ QT_G_FUNC( release_QFocusFrame ) HB_FUNC( QT_QFOCUSFRAME ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QFocusFrame > pObj = NULL; pObj = ( QFocusFrame* ) new QFocusFrame( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QFont.cpp b/harbour/contrib/hbqt/qtgui/QFont.cpp index 395b1f5375..67e99948d8 100644 --- a/harbour/contrib/hbqt/qtgui/QFont.cpp +++ b/harbour/contrib/hbqt/qtgui/QFont.cpp @@ -104,7 +104,7 @@ QT_G_FUNC( release_QFont ) HB_FUNC( QT_QFONT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISCHAR( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QFontComboBox.cpp b/harbour/contrib/hbqt/qtgui/QFontComboBox.cpp index efe11fdd1c..e171682c34 100644 --- a/harbour/contrib/hbqt/qtgui/QFontComboBox.cpp +++ b/harbour/contrib/hbqt/qtgui/QFontComboBox.cpp @@ -106,7 +106,7 @@ QT_G_FUNC( release_QFontComboBox ) HB_FUNC( QT_QFONTCOMBOBOX ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QFontComboBox > pObj = NULL; pObj = ( QFontComboBox * ) new QFontComboBox( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QFontDatabase.cpp b/harbour/contrib/hbqt/qtgui/QFontDatabase.cpp index 8b65bcdb9d..b8168de287 100644 --- a/harbour/contrib/hbqt/qtgui/QFontDatabase.cpp +++ b/harbour/contrib/hbqt/qtgui/QFontDatabase.cpp @@ -108,11 +108,15 @@ QT_G_FUNC( release_QFontDatabase ) HB_FUNC( QT_QFONTDATABASE ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QFontDatabase() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QFontDatabase; + + hb_retptrGC( p ); } /* * bool bold ( const QString & family, const QString & style ) const diff --git a/harbour/contrib/hbqt/qtgui/QFontDialog.cpp b/harbour/contrib/hbqt/qtgui/QFontDialog.cpp index 1da8403ba5..53e2fd4943 100644 --- a/harbour/contrib/hbqt/qtgui/QFontDialog.cpp +++ b/harbour/contrib/hbqt/qtgui/QFontDialog.cpp @@ -106,7 +106,7 @@ QT_G_FUNC( release_QFontDialog ) HB_FUNC( QT_QFONTDIALOG ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QFontDialog > pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QFontInfo.cpp b/harbour/contrib/hbqt/qtgui/QFontInfo.cpp index 1f91343fab..de1fad0977 100644 --- a/harbour/contrib/hbqt/qtgui/QFontInfo.cpp +++ b/harbour/contrib/hbqt/qtgui/QFontInfo.cpp @@ -92,7 +92,7 @@ QT_G_FUNC( release_QFontInfo ) HB_FUNC( QT_QFONTINFO ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QFontMetrics.cpp b/harbour/contrib/hbqt/qtgui/QFontMetrics.cpp index cf3c761214..22cce08a65 100644 --- a/harbour/contrib/hbqt/qtgui/QFontMetrics.cpp +++ b/harbour/contrib/hbqt/qtgui/QFontMetrics.cpp @@ -93,7 +93,7 @@ QT_G_FUNC( release_QFontMetrics ) HB_FUNC( QT_QFONTMETRICS ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QFontMetricsF.cpp b/harbour/contrib/hbqt/qtgui/QFontMetricsF.cpp index 4a89bf8bf8..99d829b6b2 100644 --- a/harbour/contrib/hbqt/qtgui/QFontMetricsF.cpp +++ b/harbour/contrib/hbqt/qtgui/QFontMetricsF.cpp @@ -94,6 +94,7 @@ QT_G_FUNC( release_QFontMetricsF ) HB_FUNC( QT_QFONTMETRICSF ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) @@ -116,7 +117,10 @@ HB_FUNC( QT_QFONTMETRICSF ) pObj = ( QFontMetricsF* ) new QFontMetricsF( *hbqt_par_QFont( 1 ), hbqt_par_QPaintDevice( 2 ) ) ; } - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QFontMetricsF; + + hb_retptrGC( p ); } /* * qreal ascent () const diff --git a/harbour/contrib/hbqt/qtgui/QFormLayout.cpp b/harbour/contrib/hbqt/qtgui/QFormLayout.cpp index 9365e19cbc..b9b769a449 100644 --- a/harbour/contrib/hbqt/qtgui/QFormLayout.cpp +++ b/harbour/contrib/hbqt/qtgui/QFormLayout.cpp @@ -107,7 +107,7 @@ QT_G_FUNC( release_QFormLayout ) HB_FUNC( QT_QFORMLAYOUT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QFormLayout > pObj = NULL; pObj = ( QFormLayout * ) new QFormLayout( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QFrame.cpp b/harbour/contrib/hbqt/qtgui/QFrame.cpp index 2c5bd8752e..642a5782c3 100644 --- a/harbour/contrib/hbqt/qtgui/QFrame.cpp +++ b/harbour/contrib/hbqt/qtgui/QFrame.cpp @@ -107,7 +107,7 @@ QT_G_FUNC( release_QFrame ) HB_FUNC( QT_QFRAME ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QFrame > pObj = NULL; pObj = new QFrame( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QGridLayout.cpp b/harbour/contrib/hbqt/qtgui/QGridLayout.cpp index f66df1ee49..b45fc814bc 100644 --- a/harbour/contrib/hbqt/qtgui/QGridLayout.cpp +++ b/harbour/contrib/hbqt/qtgui/QGridLayout.cpp @@ -102,7 +102,7 @@ QT_G_FUNC( release_QGridLayout ) HB_FUNC( QT_QGRIDLAYOUT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QGridLayout > pObj = NULL; pObj = new QGridLayout( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QGroupBox.cpp b/harbour/contrib/hbqt/qtgui/QGroupBox.cpp index 694374495e..c26c6913cc 100644 --- a/harbour/contrib/hbqt/qtgui/QGroupBox.cpp +++ b/harbour/contrib/hbqt/qtgui/QGroupBox.cpp @@ -102,7 +102,7 @@ QT_G_FUNC( release_QGroupBox ) HB_FUNC( QT_QGROUPBOX ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QGroupBox > pObj = NULL; pObj = ( QGroupBox * ) new QGroupBox( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QHBoxLayout.cpp b/harbour/contrib/hbqt/qtgui/QHBoxLayout.cpp index 038cc3c224..9a9f6aea79 100644 --- a/harbour/contrib/hbqt/qtgui/QHBoxLayout.cpp +++ b/harbour/contrib/hbqt/qtgui/QHBoxLayout.cpp @@ -102,7 +102,7 @@ QT_G_FUNC( release_QHBoxLayout ) HB_FUNC( QT_QHBOXLAYOUT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QHBoxLayout > pObj = NULL; pObj = ( QHBoxLayout * ) new QHBoxLayout( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QHeaderView.cpp b/harbour/contrib/hbqt/qtgui/QHeaderView.cpp index ced5fa6ccc..aa9cc3e622 100644 --- a/harbour/contrib/hbqt/qtgui/QHeaderView.cpp +++ b/harbour/contrib/hbqt/qtgui/QHeaderView.cpp @@ -105,7 +105,7 @@ QT_G_FUNC( release_QHeaderView ) HB_FUNC( QT_QHEADERVIEW ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QHeaderView > pObj = NULL; pObj = new QHeaderView( ( Qt::Orientation ) hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QIcon.cpp b/harbour/contrib/hbqt/qtgui/QIcon.cpp index 8c4b988603..2a83b655fc 100644 --- a/harbour/contrib/hbqt/qtgui/QIcon.cpp +++ b/harbour/contrib/hbqt/qtgui/QIcon.cpp @@ -110,7 +110,7 @@ QT_G_FUNC( release_QIcon ) HB_FUNC( QT_QICON ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISCHAR( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QImage.cpp b/harbour/contrib/hbqt/qtgui/QImage.cpp index f834b0ae9f..96a9db84b5 100644 --- a/harbour/contrib/hbqt/qtgui/QImage.cpp +++ b/harbour/contrib/hbqt/qtgui/QImage.cpp @@ -122,7 +122,7 @@ QT_G_FUNC( release_QImage ) HB_FUNC( QT_QIMAGE ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QImageReader.cpp b/harbour/contrib/hbqt/qtgui/QImageReader.cpp index 14c9a0e47f..db7fda5a0d 100644 --- a/harbour/contrib/hbqt/qtgui/QImageReader.cpp +++ b/harbour/contrib/hbqt/qtgui/QImageReader.cpp @@ -107,11 +107,15 @@ QT_G_FUNC( release_QImageReader ) HB_FUNC( QT_QIMAGEREADER ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QImageReader* ) new QImageReader() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QImageReader; + + hb_retptrGC( p ); } /* * bool autoDetectImageFormat () const diff --git a/harbour/contrib/hbqt/qtgui/QImageWriter.cpp b/harbour/contrib/hbqt/qtgui/QImageWriter.cpp index 6b4fb4b02e..68e5ee0472 100644 --- a/harbour/contrib/hbqt/qtgui/QImageWriter.cpp +++ b/harbour/contrib/hbqt/qtgui/QImageWriter.cpp @@ -106,11 +106,15 @@ QT_G_FUNC( release_QImageWriter ) HB_FUNC( QT_QIMAGEWRITER ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QImageWriter* ) new QImageWriter() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QImageWriter; + + hb_retptrGC( p ); } /* * bool canWrite () const diff --git a/harbour/contrib/hbqt/qtgui/QInputDialog.cpp b/harbour/contrib/hbqt/qtgui/QInputDialog.cpp index d53b12d50c..c1eee459bf 100644 --- a/harbour/contrib/hbqt/qtgui/QInputDialog.cpp +++ b/harbour/contrib/hbqt/qtgui/QInputDialog.cpp @@ -107,7 +107,7 @@ QT_G_FUNC( release_QInputDialog ) HB_FUNC( QT_QINPUTDIALOG ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QInputDialog > pObj = NULL; pObj = ( QInputDialog * ) new QInputDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QInputEvent.cpp b/harbour/contrib/hbqt/qtgui/QInputEvent.cpp index 3ac058dc45..78e792af29 100644 --- a/harbour/contrib/hbqt/qtgui/QInputEvent.cpp +++ b/harbour/contrib/hbqt/qtgui/QInputEvent.cpp @@ -91,11 +91,15 @@ QT_G_FUNC( release_QInputEvent ) HB_FUNC( QT_QINPUTEVENT ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QInputEvent* ) new QInputEvent( ( QEvent::Type ) hb_parni( 1 ), ( Qt::KeyboardModifiers ) hb_parni( 2 ) ) ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QInputEvent; + + hb_retptrGC( p ); } /* * Qt::KeyboardModifiers modifiers () const diff --git a/harbour/contrib/hbqt/qtgui/QInputMethodEvent.cpp b/harbour/contrib/hbqt/qtgui/QInputMethodEvent.cpp index ab87255ab3..04ced36901 100644 --- a/harbour/contrib/hbqt/qtgui/QInputMethodEvent.cpp +++ b/harbour/contrib/hbqt/qtgui/QInputMethodEvent.cpp @@ -104,11 +104,15 @@ QT_G_FUNC( release_QInputMethodEvent ) HB_FUNC( QT_QINPUTMETHODEVENT ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QInputMethodEvent() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QInputMethodEvent; + + hb_retptrGC( p ); } /* * const QString & commitString () const diff --git a/harbour/contrib/hbqt/qtgui/QItemSelection.cpp b/harbour/contrib/hbqt/qtgui/QItemSelection.cpp index cebd112a53..cbe8ae59ca 100644 --- a/harbour/contrib/hbqt/qtgui/QItemSelection.cpp +++ b/harbour/contrib/hbqt/qtgui/QItemSelection.cpp @@ -90,11 +90,15 @@ QT_G_FUNC( release_QItemSelection ) HB_FUNC( QT_QITEMSELECTION ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QItemSelection() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QItemSelection; + + hb_retptrGC( p ); } /* * bool contains ( const QModelIndex & index ) const diff --git a/harbour/contrib/hbqt/qtgui/QItemSelectionModel.cpp b/harbour/contrib/hbqt/qtgui/QItemSelectionModel.cpp index 4d83973994..96754b2eec 100644 --- a/harbour/contrib/hbqt/qtgui/QItemSelectionModel.cpp +++ b/harbour/contrib/hbqt/qtgui/QItemSelectionModel.cpp @@ -106,7 +106,7 @@ QT_G_FUNC( release_QItemSelectionModel ) HB_FUNC( QT_QITEMSELECTIONMODEL ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QItemSelectionModel > pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QKeySequence.cpp b/harbour/contrib/hbqt/qtgui/QKeySequence.cpp index f1809c5a3d..269c7d930c 100644 --- a/harbour/contrib/hbqt/qtgui/QKeySequence.cpp +++ b/harbour/contrib/hbqt/qtgui/QKeySequence.cpp @@ -110,7 +110,7 @@ QT_G_FUNC( release_QKeySequence ) HB_FUNC( QT_QKEYSEQUENCE ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QLCDNumber.cpp b/harbour/contrib/hbqt/qtgui/QLCDNumber.cpp index d30a0c35c5..033994b7bc 100644 --- a/harbour/contrib/hbqt/qtgui/QLCDNumber.cpp +++ b/harbour/contrib/hbqt/qtgui/QLCDNumber.cpp @@ -107,7 +107,7 @@ QT_G_FUNC( release_QLCDNumber ) HB_FUNC( QT_QLCDNUMBER ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QLCDNumber > pObj = NULL; pObj = ( QLCDNumber * ) new QLCDNumber( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QLabel.cpp b/harbour/contrib/hbqt/qtgui/QLabel.cpp index 3e080e6691..b5bcd76b1b 100644 --- a/harbour/contrib/hbqt/qtgui/QLabel.cpp +++ b/harbour/contrib/hbqt/qtgui/QLabel.cpp @@ -102,7 +102,7 @@ QT_G_FUNC( release_QLabel ) HB_FUNC( QT_QLABEL ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QLabel > pObj = NULL; pObj = ( QLabel* ) new QLabel( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QLineEdit.cpp b/harbour/contrib/hbqt/qtgui/QLineEdit.cpp index 6a2dc45009..36a931fef3 100644 --- a/harbour/contrib/hbqt/qtgui/QLineEdit.cpp +++ b/harbour/contrib/hbqt/qtgui/QLineEdit.cpp @@ -106,7 +106,7 @@ QT_G_FUNC( release_QLineEdit ) HB_FUNC( QT_QLINEEDIT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QLineEdit > pObj = NULL; pObj = ( QLineEdit* ) new QLineEdit( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QLinearGradient.cpp b/harbour/contrib/hbqt/qtgui/QLinearGradient.cpp index 986b73fcdd..304cb9385e 100644 --- a/harbour/contrib/hbqt/qtgui/QLinearGradient.cpp +++ b/harbour/contrib/hbqt/qtgui/QLinearGradient.cpp @@ -98,6 +98,7 @@ QT_G_FUNC( release_QLinearGradient ) HB_FUNC( QT_QLINEARGRADIENT ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) @@ -117,7 +118,10 @@ HB_FUNC( QT_QLINEARGRADIENT ) pObj = ( QLinearGradient* ) new QLinearGradient() ; } - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QLinearGradient; + + hb_retptrGC( p ); } /* * QPointF finalStop () const diff --git a/harbour/contrib/hbqt/qtgui/QListView.cpp b/harbour/contrib/hbqt/qtgui/QListView.cpp index 689805f3a8..a2c446f91b 100644 --- a/harbour/contrib/hbqt/qtgui/QListView.cpp +++ b/harbour/contrib/hbqt/qtgui/QListView.cpp @@ -109,7 +109,7 @@ QT_G_FUNC( release_QListView ) HB_FUNC( QT_QLISTVIEW ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QListView > pObj = NULL; pObj = ( QListView * ) new QListView( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QListWidget.cpp b/harbour/contrib/hbqt/qtgui/QListWidget.cpp index ff9416ea92..e9b5efe209 100644 --- a/harbour/contrib/hbqt/qtgui/QListWidget.cpp +++ b/harbour/contrib/hbqt/qtgui/QListWidget.cpp @@ -111,7 +111,7 @@ QT_G_FUNC( release_QListWidget ) HB_FUNC( QT_QLISTWIDGET ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QListWidget > pObj = NULL; pObj = new QListWidget( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QListWidgetItem.cpp b/harbour/contrib/hbqt/qtgui/QListWidgetItem.cpp index db61a06a6e..9e0d48114e 100644 --- a/harbour/contrib/hbqt/qtgui/QListWidgetItem.cpp +++ b/harbour/contrib/hbqt/qtgui/QListWidgetItem.cpp @@ -98,11 +98,15 @@ QT_G_FUNC( release_QListWidgetItem ) HB_FUNC( QT_QLISTWIDGETITEM ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QListWidgetItem( hbqt_par_QListWidget( 1 ), hb_parni( 2 ) ) ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QListWidgetItem; + + hb_retptrGC( p ); } /* * QBrush background () const diff --git a/harbour/contrib/hbqt/qtgui/QMainWindow.cpp b/harbour/contrib/hbqt/qtgui/QMainWindow.cpp index 21b9cfa197..07681fd5ac 100644 --- a/harbour/contrib/hbqt/qtgui/QMainWindow.cpp +++ b/harbour/contrib/hbqt/qtgui/QMainWindow.cpp @@ -115,7 +115,7 @@ QT_G_FUNC( release_QMainWindow ) HB_FUNC( QT_QMAINWINDOW ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QMainWindow > pObj = NULL; pObj = ( QMainWindow* ) new QMainWindow( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QMatrix.cpp b/harbour/contrib/hbqt/qtgui/QMatrix.cpp index 2cf69f7d32..6ddf90d830 100644 --- a/harbour/contrib/hbqt/qtgui/QMatrix.cpp +++ b/harbour/contrib/hbqt/qtgui/QMatrix.cpp @@ -92,7 +92,7 @@ QT_G_FUNC( release_QMatrix ) HB_FUNC( QT_QMATRIX ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QMatrix() ; diff --git a/harbour/contrib/hbqt/qtgui/QMenu.cpp b/harbour/contrib/hbqt/qtgui/QMenu.cpp index b9c368392a..89b2b025cc 100644 --- a/harbour/contrib/hbqt/qtgui/QMenu.cpp +++ b/harbour/contrib/hbqt/qtgui/QMenu.cpp @@ -112,7 +112,7 @@ QT_G_FUNC( release_QMenu ) HB_FUNC( QT_QMENU ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QMenu > pObj = NULL; if( hb_pcount() >= 1 && HB_ISCHAR( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QMenuBar.cpp b/harbour/contrib/hbqt/qtgui/QMenuBar.cpp index 35b2804a11..3efd2a5c64 100644 --- a/harbour/contrib/hbqt/qtgui/QMenuBar.cpp +++ b/harbour/contrib/hbqt/qtgui/QMenuBar.cpp @@ -115,7 +115,7 @@ QT_G_FUNC( release_QMenuBar ) HB_FUNC( QT_QMENUBAR ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QMenuBar > pObj = NULL; pObj = ( QMenuBar* ) new QMenuBar( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QMessageBox.cpp b/harbour/contrib/hbqt/qtgui/QMessageBox.cpp index c7feb985aa..fdccdb0fa1 100644 --- a/harbour/contrib/hbqt/qtgui/QMessageBox.cpp +++ b/harbour/contrib/hbqt/qtgui/QMessageBox.cpp @@ -118,7 +118,7 @@ QT_G_FUNC( release_QMessageBox ) HB_FUNC( QT_QMESSAGEBOX ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QMessageBox > pObj = NULL; pObj = ( QMessageBox* ) new QMessageBox() ; diff --git a/harbour/contrib/hbqt/qtgui/QMouseEvent.cpp b/harbour/contrib/hbqt/qtgui/QMouseEvent.cpp index 0004d97c6a..7b91cb41f7 100644 --- a/harbour/contrib/hbqt/qtgui/QMouseEvent.cpp +++ b/harbour/contrib/hbqt/qtgui/QMouseEvent.cpp @@ -92,6 +92,7 @@ QT_G_FUNC( release_QMouseEvent ) HB_FUNC( QT_QMOUSEEVENT ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) @@ -99,7 +100,10 @@ HB_FUNC( QT_QMOUSEEVENT ) pObj = new QMouseEvent( *hbqt_par_QMouseEvent( 1 ) ) ; } - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QMouseEvent; + + hb_retptrGC( p ); } /* * Qt::MouseButton button () const diff --git a/harbour/contrib/hbqt/qtgui/QMovie.cpp b/harbour/contrib/hbqt/qtgui/QMovie.cpp index 47030de758..536b1bcb85 100644 --- a/harbour/contrib/hbqt/qtgui/QMovie.cpp +++ b/harbour/contrib/hbqt/qtgui/QMovie.cpp @@ -109,7 +109,7 @@ QT_G_FUNC( release_QMovie ) HB_FUNC( QT_QMOVIE ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QMovie > pObj = NULL; pObj = new QMovie() ; diff --git a/harbour/contrib/hbqt/qtgui/QPageSetupDialog.cpp b/harbour/contrib/hbqt/qtgui/QPageSetupDialog.cpp index 823e822b74..7665ab69bf 100644 --- a/harbour/contrib/hbqt/qtgui/QPageSetupDialog.cpp +++ b/harbour/contrib/hbqt/qtgui/QPageSetupDialog.cpp @@ -106,7 +106,7 @@ QT_G_FUNC( release_QPageSetupDialog ) HB_FUNC( QT_QPAGESETUPDIALOG ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QPageSetupDialog > pObj = NULL; if( hb_pcount() >= 2 ) diff --git a/harbour/contrib/hbqt/qtgui/QPaintEvent.cpp b/harbour/contrib/hbqt/qtgui/QPaintEvent.cpp index e39dfa08e1..ca1dda6830 100644 --- a/harbour/contrib/hbqt/qtgui/QPaintEvent.cpp +++ b/harbour/contrib/hbqt/qtgui/QPaintEvent.cpp @@ -91,6 +91,7 @@ QT_G_FUNC( release_QPaintEvent ) HB_FUNC( QT_QPAINTEVENT ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) ) @@ -107,7 +108,10 @@ HB_FUNC( QT_QPAINTEVENT ) } } - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QPaintEvent; + + hb_retptrGC( p ); } /* * const QRect & rect () const diff --git a/harbour/contrib/hbqt/qtgui/QPainter.cpp b/harbour/contrib/hbqt/qtgui/QPainter.cpp index 9301966fcf..27512fd9aa 100644 --- a/harbour/contrib/hbqt/qtgui/QPainter.cpp +++ b/harbour/contrib/hbqt/qtgui/QPainter.cpp @@ -111,6 +111,7 @@ QT_G_FUNC( release_QPainter ) HB_FUNC( QT_QPAINTER ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() >= 1 && HB_ISPOINTER( 1 ) ) @@ -122,7 +123,10 @@ HB_FUNC( QT_QPAINTER ) pObj = new QPainter() ; } - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QPainter; + + hb_retptrGC( p ); } /* * const QBrush & background () const diff --git a/harbour/contrib/hbqt/qtgui/QPainterPath.cpp b/harbour/contrib/hbqt/qtgui/QPainterPath.cpp index 07e97d86d3..c1788f20ba 100644 --- a/harbour/contrib/hbqt/qtgui/QPainterPath.cpp +++ b/harbour/contrib/hbqt/qtgui/QPainterPath.cpp @@ -112,7 +112,7 @@ QT_G_FUNC( release_QPainterPath ) HB_FUNC( QT_QPAINTERPATH ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QPainterPath() ; diff --git a/harbour/contrib/hbqt/qtgui/QPalette.cpp b/harbour/contrib/hbqt/qtgui/QPalette.cpp index 9ce06f5576..57586f0d32 100644 --- a/harbour/contrib/hbqt/qtgui/QPalette.cpp +++ b/harbour/contrib/hbqt/qtgui/QPalette.cpp @@ -101,7 +101,7 @@ QT_G_FUNC( release_QPalette ) HB_FUNC( QT_QPALETTE ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISNUM( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QPen.cpp b/harbour/contrib/hbqt/qtgui/QPen.cpp index 540a6ea850..731703fc4c 100644 --- a/harbour/contrib/hbqt/qtgui/QPen.cpp +++ b/harbour/contrib/hbqt/qtgui/QPen.cpp @@ -105,7 +105,7 @@ QT_G_FUNC( release_QPen ) HB_FUNC( QT_QPEN ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISNUM( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QPicture.cpp b/harbour/contrib/hbqt/qtgui/QPicture.cpp index 148556cf44..30521fdbb9 100644 --- a/harbour/contrib/hbqt/qtgui/QPicture.cpp +++ b/harbour/contrib/hbqt/qtgui/QPicture.cpp @@ -92,6 +92,7 @@ QT_G_FUNC( release_QPicture ) HB_FUNC( QT_QPICTURE ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISNUM( 1 ) ) @@ -107,7 +108,10 @@ HB_FUNC( QT_QPICTURE ) pObj = new QPicture() ; } - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QPicture; + + hb_retptrGC( p ); } /* * QRect boundingRect () const diff --git a/harbour/contrib/hbqt/qtgui/QPixmap.cpp b/harbour/contrib/hbqt/qtgui/QPixmap.cpp index 5124ae1ef6..5ba0caf104 100644 --- a/harbour/contrib/hbqt/qtgui/QPixmap.cpp +++ b/harbour/contrib/hbqt/qtgui/QPixmap.cpp @@ -101,7 +101,7 @@ QT_G_FUNC( release_QPixmap ) HB_FUNC( QT_QPIXMAP ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISCHAR( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QPolygon.cpp b/harbour/contrib/hbqt/qtgui/QPolygon.cpp index 01494ef8c1..1fded6b35a 100644 --- a/harbour/contrib/hbqt/qtgui/QPolygon.cpp +++ b/harbour/contrib/hbqt/qtgui/QPolygon.cpp @@ -94,11 +94,15 @@ QT_G_FUNC( release_QPolygon ) HB_FUNC( QT_QPOLYGON ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QPolygon() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QPolygon; + + hb_retptrGC( p ); } /* * QRect boundingRect () const diff --git a/harbour/contrib/hbqt/qtgui/QPolygonF.cpp b/harbour/contrib/hbqt/qtgui/QPolygonF.cpp index cec6565790..b3d4421aee 100644 --- a/harbour/contrib/hbqt/qtgui/QPolygonF.cpp +++ b/harbour/contrib/hbqt/qtgui/QPolygonF.cpp @@ -95,11 +95,15 @@ QT_G_FUNC( release_QPolygonF ) HB_FUNC( QT_QPOLYGONF ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QPolygonF() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QPolygonF; + + hb_retptrGC( p ); } /* * QRectF boundingRect () const diff --git a/harbour/contrib/hbqt/qtgui/QPrintDialog.cpp b/harbour/contrib/hbqt/qtgui/QPrintDialog.cpp index 91eda4d0ef..2f15a66d89 100644 --- a/harbour/contrib/hbqt/qtgui/QPrintDialog.cpp +++ b/harbour/contrib/hbqt/qtgui/QPrintDialog.cpp @@ -107,7 +107,7 @@ QT_G_FUNC( release_QPrintDialog ) HB_FUNC( QT_QPRINTDIALOG ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QPrintDialog > pObj = NULL; pObj = ( QPrintDialog* ) new QPrintDialog ( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QPrintPreviewDialog.cpp b/harbour/contrib/hbqt/qtgui/QPrintPreviewDialog.cpp index 7eca178262..2aed27a9da 100644 --- a/harbour/contrib/hbqt/qtgui/QPrintPreviewDialog.cpp +++ b/harbour/contrib/hbqt/qtgui/QPrintPreviewDialog.cpp @@ -102,7 +102,7 @@ QT_G_FUNC( release_QPrintPreviewDialog ) HB_FUNC( QT_QPRINTPREVIEWDIALOG ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QPrintPreviewDialog > pObj = NULL; if( hb_pcount() >= 2 && HB_ISPOINTER( 2 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QPrinter.cpp b/harbour/contrib/hbqt/qtgui/QPrinter.cpp index 00cf8b43f4..16001fe694 100644 --- a/harbour/contrib/hbqt/qtgui/QPrinter.cpp +++ b/harbour/contrib/hbqt/qtgui/QPrinter.cpp @@ -123,11 +123,15 @@ QT_G_FUNC( release_QPrinter ) HB_FUNC( QT_QPRINTER ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QPrinter* ) new QPrinter() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QPrinter; + + hb_retptrGC( p ); } /* * bool abort () diff --git a/harbour/contrib/hbqt/qtgui/QProgressBar.cpp b/harbour/contrib/hbqt/qtgui/QProgressBar.cpp index d23a18e054..8cc7347f04 100644 --- a/harbour/contrib/hbqt/qtgui/QProgressBar.cpp +++ b/harbour/contrib/hbqt/qtgui/QProgressBar.cpp @@ -104,7 +104,7 @@ QT_G_FUNC( release_QProgressBar ) HB_FUNC( QT_QPROGRESSBAR ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QProgressBar > pObj = NULL; pObj = ( QProgressBar* ) new QProgressBar( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QProgressDialog.cpp b/harbour/contrib/hbqt/qtgui/QProgressDialog.cpp index 4fcda80572..9666201304 100644 --- a/harbour/contrib/hbqt/qtgui/QProgressDialog.cpp +++ b/harbour/contrib/hbqt/qtgui/QProgressDialog.cpp @@ -102,7 +102,7 @@ QT_G_FUNC( release_QProgressDialog ) HB_FUNC( QT_QPROGRESSDIALOG ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QProgressDialog > pObj = NULL; pObj = new QProgressDialog( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QPushButton.cpp b/harbour/contrib/hbqt/qtgui/QPushButton.cpp index c4c42e8858..80418dd925 100644 --- a/harbour/contrib/hbqt/qtgui/QPushButton.cpp +++ b/harbour/contrib/hbqt/qtgui/QPushButton.cpp @@ -103,7 +103,7 @@ QT_G_FUNC( release_QPushButton ) HB_FUNC( QT_QPUSHBUTTON ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QPushButton > pObj = NULL; pObj = ( QPushButton* ) new QPushButton( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QRadialGradient.cpp b/harbour/contrib/hbqt/qtgui/QRadialGradient.cpp index a557b33e75..f33c30c141 100644 --- a/harbour/contrib/hbqt/qtgui/QRadialGradient.cpp +++ b/harbour/contrib/hbqt/qtgui/QRadialGradient.cpp @@ -100,6 +100,7 @@ QT_G_FUNC( release_QRadialGradient ) HB_FUNC( QT_QRADIALGRADIENT ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) @@ -123,7 +124,10 @@ HB_FUNC( QT_QRADIALGRADIENT ) pObj = ( QRadialGradient* ) new QRadialGradient() ; } - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QRadialGradient; + + hb_retptrGC( p ); } /* * QPointF center () const diff --git a/harbour/contrib/hbqt/qtgui/QRadioButton.cpp b/harbour/contrib/hbqt/qtgui/QRadioButton.cpp index 445a15e096..618cc7f5a7 100644 --- a/harbour/contrib/hbqt/qtgui/QRadioButton.cpp +++ b/harbour/contrib/hbqt/qtgui/QRadioButton.cpp @@ -101,7 +101,7 @@ QT_G_FUNC( release_QRadioButton ) HB_FUNC( QT_QRADIOBUTTON ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QRadioButton > pObj = NULL; if( HB_ISCHAR( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QRegion.cpp b/harbour/contrib/hbqt/qtgui/QRegion.cpp index 6ebf5a3d26..54578cc738 100644 --- a/harbour/contrib/hbqt/qtgui/QRegion.cpp +++ b/harbour/contrib/hbqt/qtgui/QRegion.cpp @@ -113,7 +113,7 @@ QT_G_FUNC( release_QRegion ) HB_FUNC( QT_QREGION ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QScrollArea.cpp b/harbour/contrib/hbqt/qtgui/QScrollArea.cpp index 75422af8f3..9067f32ccb 100644 --- a/harbour/contrib/hbqt/qtgui/QScrollArea.cpp +++ b/harbour/contrib/hbqt/qtgui/QScrollArea.cpp @@ -101,7 +101,7 @@ QT_G_FUNC( release_QScrollArea ) HB_FUNC( QT_QSCROLLAREA ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QScrollArea > pObj = NULL; pObj = ( QScrollArea* ) new QScrollArea( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QScrollBar.cpp b/harbour/contrib/hbqt/qtgui/QScrollBar.cpp index cc04b21d04..ff81b57465 100644 --- a/harbour/contrib/hbqt/qtgui/QScrollBar.cpp +++ b/harbour/contrib/hbqt/qtgui/QScrollBar.cpp @@ -102,7 +102,7 @@ QT_G_FUNC( release_QScrollBar ) HB_FUNC( QT_QSCROLLBAR ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QScrollBar > pObj = NULL; pObj = ( QScrollBar* ) new QScrollBar( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QSizeGrip.cpp b/harbour/contrib/hbqt/qtgui/QSizeGrip.cpp index 6a76dc8847..fba65a808b 100644 --- a/harbour/contrib/hbqt/qtgui/QSizeGrip.cpp +++ b/harbour/contrib/hbqt/qtgui/QSizeGrip.cpp @@ -101,7 +101,7 @@ QT_G_FUNC( release_QSizeGrip ) HB_FUNC( QT_QSIZEGRIP ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QSizeGrip > pObj = NULL; pObj = ( QSizeGrip* ) new QSizeGrip( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QSizePolicy.cpp b/harbour/contrib/hbqt/qtgui/QSizePolicy.cpp index 042997bc52..78fac66182 100644 --- a/harbour/contrib/hbqt/qtgui/QSizePolicy.cpp +++ b/harbour/contrib/hbqt/qtgui/QSizePolicy.cpp @@ -99,7 +99,7 @@ QT_G_FUNC( release_QSizePolicy ) HB_FUNC( QT_QSIZEPOLICY ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QSizePolicy* ) new QSizePolicy() ; diff --git a/harbour/contrib/hbqt/qtgui/QSlider.cpp b/harbour/contrib/hbqt/qtgui/QSlider.cpp index c1ef2d5e2e..25d13f771d 100644 --- a/harbour/contrib/hbqt/qtgui/QSlider.cpp +++ b/harbour/contrib/hbqt/qtgui/QSlider.cpp @@ -106,7 +106,7 @@ QT_G_FUNC( release_QSlider ) HB_FUNC( QT_QSLIDER ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QSlider > pObj = NULL; if( hb_pcount() >= 1 && HB_ISNUM( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QSound.cpp b/harbour/contrib/hbqt/qtgui/QSound.cpp index 3828b780a5..1f6df546b2 100644 --- a/harbour/contrib/hbqt/qtgui/QSound.cpp +++ b/harbour/contrib/hbqt/qtgui/QSound.cpp @@ -101,7 +101,7 @@ QT_G_FUNC( release_QSound ) HB_FUNC( QT_QSOUND ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QSound > pObj = NULL; pObj = ( QSound* ) new QSound( hbqt_par_QString( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QSpacerItem.cpp b/harbour/contrib/hbqt/qtgui/QSpacerItem.cpp index 332395b46e..948eec0498 100644 --- a/harbour/contrib/hbqt/qtgui/QSpacerItem.cpp +++ b/harbour/contrib/hbqt/qtgui/QSpacerItem.cpp @@ -90,6 +90,7 @@ QT_G_FUNC( release_QSpacerItem ) HB_FUNC( QT_QSPACERITEM ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) @@ -97,7 +98,10 @@ HB_FUNC( QT_QSPACERITEM ) pObj = new QSpacerItem( *hbqt_par_QSpacerItem( 1 ) ) ; } - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QSpacerItem; + + hb_retptrGC( p ); } /* * void changeSize ( int w, int h, QSizePolicy::Policy hPolicy = QSizePolicy::Minimum, QSizePolicy::Policy vPolicy = QSizePolicy::Minimum ) diff --git a/harbour/contrib/hbqt/qtgui/QSpinBox.cpp b/harbour/contrib/hbqt/qtgui/QSpinBox.cpp index 498a678cc9..429406f6dd 100644 --- a/harbour/contrib/hbqt/qtgui/QSpinBox.cpp +++ b/harbour/contrib/hbqt/qtgui/QSpinBox.cpp @@ -100,7 +100,7 @@ QT_G_FUNC( release_QSpinBox ) HB_FUNC( QT_QSPINBOX ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QSpinBox > pObj = NULL; pObj = ( QSpinBox* ) new QSpinBox( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QSplashScreen.cpp b/harbour/contrib/hbqt/qtgui/QSplashScreen.cpp index e7e30859d6..5b03c8fa85 100644 --- a/harbour/contrib/hbqt/qtgui/QSplashScreen.cpp +++ b/harbour/contrib/hbqt/qtgui/QSplashScreen.cpp @@ -102,7 +102,7 @@ QT_G_FUNC( release_QSplashScreen ) HB_FUNC( QT_QSPLASHSCREEN ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QSplashScreen > pObj = NULL; pObj = new QSplashScreen( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QSplitter.cpp b/harbour/contrib/hbqt/qtgui/QSplitter.cpp index c87bc9e8ce..003ef2bb80 100644 --- a/harbour/contrib/hbqt/qtgui/QSplitter.cpp +++ b/harbour/contrib/hbqt/qtgui/QSplitter.cpp @@ -112,7 +112,7 @@ QT_G_FUNC( release_QSplitter ) HB_FUNC( QT_QSPLITTER ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QSplitter > pObj = NULL; if( hb_pcount() >= 1 && HB_ISNUM( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QStandardItem.cpp b/harbour/contrib/hbqt/qtgui/QStandardItem.cpp index eca28196ce..8d00158cb8 100644 --- a/harbour/contrib/hbqt/qtgui/QStandardItem.cpp +++ b/harbour/contrib/hbqt/qtgui/QStandardItem.cpp @@ -114,11 +114,15 @@ QT_G_FUNC( release_QStandardItem ) HB_FUNC( QT_QSTANDARDITEM ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStandardItem* ) new QStandardItem() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStandardItem; + + hb_retptrGC( p ); } /* * QString accessibleDescription () const diff --git a/harbour/contrib/hbqt/qtgui/QStandardItemModel.cpp b/harbour/contrib/hbqt/qtgui/QStandardItemModel.cpp index e196a450fe..712e340d6b 100644 --- a/harbour/contrib/hbqt/qtgui/QStandardItemModel.cpp +++ b/harbour/contrib/hbqt/qtgui/QStandardItemModel.cpp @@ -117,7 +117,7 @@ QT_G_FUNC( release_QStandardItemModel ) HB_FUNC( QT_QSTANDARDITEMMODEL ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QStandardItemModel > pObj = NULL; pObj = ( QStandardItemModel* ) new QStandardItemModel( hbqt_par_QObject( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QStatusBar.cpp b/harbour/contrib/hbqt/qtgui/QStatusBar.cpp index 02df16a780..2f2d65e435 100644 --- a/harbour/contrib/hbqt/qtgui/QStatusBar.cpp +++ b/harbour/contrib/hbqt/qtgui/QStatusBar.cpp @@ -101,7 +101,7 @@ QT_G_FUNC( release_QStatusBar ) HB_FUNC( QT_QSTATUSBAR ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QStatusBar > pObj = NULL; pObj = ( QStatusBar* ) new QStatusBar( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QStringListModel.cpp b/harbour/contrib/hbqt/qtgui/QStringListModel.cpp index 8bc911b44e..8249773f2b 100644 --- a/harbour/contrib/hbqt/qtgui/QStringListModel.cpp +++ b/harbour/contrib/hbqt/qtgui/QStringListModel.cpp @@ -101,7 +101,7 @@ QT_G_FUNC( release_QStringListModel ) HB_FUNC( QT_QSTRINGLISTMODEL ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QStringListModel > pObj = NULL; pObj = ( QStringListModel* ) new QStringListModel() ; diff --git a/harbour/contrib/hbqt/qtgui/QStyleFactory.cpp b/harbour/contrib/hbqt/qtgui/QStyleFactory.cpp index b82e324699..368962a8be 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleFactory.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleFactory.cpp @@ -90,11 +90,15 @@ QT_G_FUNC( release_QStyleFactory ) HB_FUNC( QT_QSTYLEFACTORY ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QStyleFactory() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleFactory; + + hb_retptrGC( p ); } /* * QStyle * create ( const QString & key ) diff --git a/harbour/contrib/hbqt/qtgui/QStyleOption.cpp b/harbour/contrib/hbqt/qtgui/QStyleOption.cpp index 43c7ef4f22..7af166cc48 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOption.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOption.cpp @@ -98,11 +98,15 @@ QT_G_FUNC( release_QStyleOption ) HB_FUNC( QT_QSTYLEOPTION ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOption* ) new QStyleOption() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOption; + + hb_retptrGC( p ); } /* * void initFrom ( const QWidget * widget ) diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionButton.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionButton.cpp index 761ab46210..a6ce02a0e9 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionButton.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionButton.cpp @@ -98,11 +98,15 @@ QT_G_FUNC( release_QStyleOptionButton ) HB_FUNC( QT_QSTYLEOPTIONBUTTON ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionButton* ) new QStyleOptionButton() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionButton; + + hb_retptrGC( p ); } /* * ButtonFeatures features diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionComboBox.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionComboBox.cpp index 69b0261173..85a4ef52e5 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionComboBox.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionComboBox.cpp @@ -96,11 +96,15 @@ QT_G_FUNC( release_QStyleOptionComboBox ) HB_FUNC( QT_QSTYLEOPTIONCOMBOBOX ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionComboBox* ) new QStyleOptionComboBox() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionComboBox; + + hb_retptrGC( p ); } /* * QIcon currentIcon diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionComplex.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionComplex.cpp index 041fb3595f..9cd14dbd8e 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionComplex.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionComplex.cpp @@ -96,11 +96,15 @@ QT_G_FUNC( release_QStyleOptionComplex ) HB_FUNC( QT_QSTYLEOPTIONCOMPLEX ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionComplex* ) new QStyleOptionComplex() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionComplex; + + hb_retptrGC( p ); } /* * QStyle::SubControls activeSubControls diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionDockWidget.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionDockWidget.cpp index e3f7c2aee5..936c05c706 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionDockWidget.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionDockWidget.cpp @@ -96,11 +96,15 @@ QT_G_FUNC( release_QStyleOptionDockWidget ) HB_FUNC( QT_QSTYLEOPTIONDOCKWIDGET ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionDockWidget* ) new QStyleOptionDockWidget() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionDockWidget; + + hb_retptrGC( p ); } /* * bool closable diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionFocusRect.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionFocusRect.cpp index f1b79b91cd..811dee7f8e 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionFocusRect.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionFocusRect.cpp @@ -96,11 +96,15 @@ QT_G_FUNC( release_QStyleOptionFocusRect ) HB_FUNC( QT_QSTYLEOPTIONFOCUSRECT ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionFocusRect* ) new QStyleOptionFocusRect() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionFocusRect; + + hb_retptrGC( p ); } /* * QColor backgroundColor diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionFrame.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionFrame.cpp index c4d7110689..eb8f276be7 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionFrame.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionFrame.cpp @@ -96,11 +96,15 @@ QT_G_FUNC( release_QStyleOptionFrame ) HB_FUNC( QT_QSTYLEOPTIONFRAME ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionFrame* ) new QStyleOptionFrame() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionFrame; + + hb_retptrGC( p ); } /* * int lineWidth diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionGroupBox.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionGroupBox.cpp index 046aa67761..8ecf71e419 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionGroupBox.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionGroupBox.cpp @@ -96,11 +96,15 @@ QT_G_FUNC( release_QStyleOptionGroupBox ) HB_FUNC( QT_QSTYLEOPTIONGROUPBOX ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionGroupBox* ) new QStyleOptionGroupBox() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionGroupBox; + + hb_retptrGC( p ); } /* * QStyleOptionFrameV2::FrameFeatures features diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionHeader.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionHeader.cpp index 63376d1191..9fcf31accd 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionHeader.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionHeader.cpp @@ -99,11 +99,15 @@ QT_G_FUNC( release_QStyleOptionHeader ) HB_FUNC( QT_QSTYLEOPTIONHEADER ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionHeader* ) new QStyleOptionHeader() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionHeader; + + hb_retptrGC( p ); } /* * QIcon icon diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionMenuItem.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionMenuItem.cpp index 7c0d436088..290d3efd05 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionMenuItem.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionMenuItem.cpp @@ -98,11 +98,15 @@ QT_G_FUNC( release_QStyleOptionMenuItem ) HB_FUNC( QT_QSTYLEOPTIONMENUITEM ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionMenuItem* ) new QStyleOptionMenuItem() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionMenuItem; + + hb_retptrGC( p ); } /* * CheckType checkType diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionProgressBar.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionProgressBar.cpp index fbaecd53fa..2a9f0077f7 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionProgressBar.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionProgressBar.cpp @@ -97,11 +97,15 @@ QT_G_FUNC( release_QStyleOptionProgressBar ) HB_FUNC( QT_QSTYLEOPTIONPROGRESSBAR ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionProgressBar* ) new QStyleOptionProgressBar() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionProgressBar; + + hb_retptrGC( p ); } /* * int maximum diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionSizeGrip.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionSizeGrip.cpp index 46b247dc52..04ce791f84 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionSizeGrip.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionSizeGrip.cpp @@ -96,11 +96,15 @@ QT_G_FUNC( release_QStyleOptionSizeGrip ) HB_FUNC( QT_QSTYLEOPTIONSIZEGRIP ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionSizeGrip* ) new QStyleOptionSizeGrip() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionSizeGrip; + + hb_retptrGC( p ); } /* * Qt::Corner corner diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionSlider.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionSlider.cpp index 283115a896..fc94c723a3 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionSlider.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionSlider.cpp @@ -96,11 +96,15 @@ QT_G_FUNC( release_QStyleOptionSlider ) HB_FUNC( QT_QSTYLEOPTIONSLIDER ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionSlider* ) new QStyleOptionSlider() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionSlider; + + hb_retptrGC( p ); } /* * bool dialWrapping diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionSpinBox.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionSpinBox.cpp index f18e0f4fee..4501787a90 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionSpinBox.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionSpinBox.cpp @@ -96,11 +96,15 @@ QT_G_FUNC( release_QStyleOptionSpinBox ) HB_FUNC( QT_QSTYLEOPTIONSPINBOX ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionSpinBox* ) new QStyleOptionSpinBox() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionSpinBox; + + hb_retptrGC( p ); } /* * QAbstractSpinBox::ButtonSymbols buttonSymbols diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionTab.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionTab.cpp index 8a7eeaeefc..02a931b621 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionTab.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionTab.cpp @@ -100,11 +100,15 @@ QT_G_FUNC( release_QStyleOptionTab ) HB_FUNC( QT_QSTYLEOPTIONTAB ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionTab* ) new QStyleOptionTab() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionTab; + + hb_retptrGC( p ); } /* * CornerWidgets cornerWidgets diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionTabBarBase.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionTabBarBase.cpp index 39520fa941..c56bbe6561 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionTabBarBase.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionTabBarBase.cpp @@ -96,11 +96,15 @@ QT_G_FUNC( release_QStyleOptionTabBarBase ) HB_FUNC( QT_QSTYLEOPTIONTABBARBASE ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionTabBarBase* ) new QStyleOptionTabBarBase() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionTabBarBase; + + hb_retptrGC( p ); } /* * QRect selectedTabRect diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionTabWidgetFrame.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionTabWidgetFrame.cpp index 79b283eafa..a0ee9fb5e4 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionTabWidgetFrame.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionTabWidgetFrame.cpp @@ -96,11 +96,15 @@ QT_G_FUNC( release_QStyleOptionTabWidgetFrame ) HB_FUNC( QT_QSTYLEOPTIONTABWIDGETFRAME ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionTabWidgetFrame* ) new QStyleOptionTabWidgetFrame() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionTabWidgetFrame; + + hb_retptrGC( p ); } /* * QSize leftCornerWidgetSize diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionTitleBar.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionTitleBar.cpp index f7cf51fbc7..6fbe053d7a 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionTitleBar.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionTitleBar.cpp @@ -96,11 +96,15 @@ QT_G_FUNC( release_QStyleOptionTitleBar ) HB_FUNC( QT_QSTYLEOPTIONTITLEBAR ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionTitleBar* ) new QStyleOptionTitleBar() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionTitleBar; + + hb_retptrGC( p ); } /* * QIcon icon diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionToolBar.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionToolBar.cpp index 6b4cadb0a1..7d994dc673 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionToolBar.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionToolBar.cpp @@ -99,11 +99,15 @@ QT_G_FUNC( release_QStyleOptionToolBar ) HB_FUNC( QT_QSTYLEOPTIONTOOLBAR ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionToolBar* ) new QStyleOptionToolBar() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionToolBar; + + hb_retptrGC( p ); } /* * ToolBarFeatures features diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionToolBox.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionToolBox.cpp index c446dac7c8..5ae4764fb7 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionToolBox.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionToolBox.cpp @@ -96,11 +96,15 @@ QT_G_FUNC( release_QStyleOptionToolBox ) HB_FUNC( QT_QSTYLEOPTIONTOOLBOX ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionToolBox* ) new QStyleOptionToolBox() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionToolBox; + + hb_retptrGC( p ); } /* * QIcon icon diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionToolButton.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionToolButton.cpp index 2a741a495d..20db05287a 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionToolButton.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionToolButton.cpp @@ -98,11 +98,15 @@ QT_G_FUNC( release_QStyleOptionToolButton ) HB_FUNC( QT_QSTYLEOPTIONTOOLBUTTON ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionToolButton* ) new QStyleOptionToolButton() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionToolButton; + + hb_retptrGC( p ); } /* * Qt::ArrowType arrowType diff --git a/harbour/contrib/hbqt/qtgui/QStyleOptionViewItem.cpp b/harbour/contrib/hbqt/qtgui/QStyleOptionViewItem.cpp index c5538a740b..104853b898 100644 --- a/harbour/contrib/hbqt/qtgui/QStyleOptionViewItem.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyleOptionViewItem.cpp @@ -97,11 +97,15 @@ QT_G_FUNC( release_QStyleOptionViewItem ) HB_FUNC( QT_QSTYLEOPTIONVIEWITEM ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStyleOptionViewItem* ) new QStyleOptionViewItem() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStyleOptionViewItem; + + hb_retptrGC( p ); } /* * Qt::Alignment decorationAlignment diff --git a/harbour/contrib/hbqt/qtgui/QStylePainter.cpp b/harbour/contrib/hbqt/qtgui/QStylePainter.cpp index 9c8947c56e..b2776e91ab 100644 --- a/harbour/contrib/hbqt/qtgui/QStylePainter.cpp +++ b/harbour/contrib/hbqt/qtgui/QStylePainter.cpp @@ -92,11 +92,15 @@ QT_G_FUNC( release_QStylePainter ) HB_FUNC( QT_QSTYLEPAINTER ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QStylePainter* ) new QStylePainter() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QStylePainter; + + hb_retptrGC( p ); } /* * bool begin ( QWidget * widget ) diff --git a/harbour/contrib/hbqt/qtgui/QStyledItemDelegate.cpp b/harbour/contrib/hbqt/qtgui/QStyledItemDelegate.cpp index 71bbc08118..9725bb76d3 100644 --- a/harbour/contrib/hbqt/qtgui/QStyledItemDelegate.cpp +++ b/harbour/contrib/hbqt/qtgui/QStyledItemDelegate.cpp @@ -101,7 +101,7 @@ QT_G_FUNC( release_QStyledItemDelegate ) HB_FUNC( QT_QSTYLEDITEMDELEGATE ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QStyledItemDelegate > pObj = NULL; pObj = ( QStyledItemDelegate* ) new QStyledItemDelegate( hbqt_par_QObject( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QSystemTrayIcon.cpp b/harbour/contrib/hbqt/qtgui/QSystemTrayIcon.cpp index 7223771b87..07b94c5e8e 100644 --- a/harbour/contrib/hbqt/qtgui/QSystemTrayIcon.cpp +++ b/harbour/contrib/hbqt/qtgui/QSystemTrayIcon.cpp @@ -107,7 +107,7 @@ QT_G_FUNC( release_QSystemTrayIcon ) HB_FUNC( QT_QSYSTEMTRAYICON ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QSystemTrayIcon > pObj = NULL; pObj = ( QSystemTrayIcon* ) new QSystemTrayIcon( hbqt_par_QObject( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QTabBar.cpp b/harbour/contrib/hbqt/qtgui/QTabBar.cpp index e33a5e676f..6e4e81e4f6 100644 --- a/harbour/contrib/hbqt/qtgui/QTabBar.cpp +++ b/harbour/contrib/hbqt/qtgui/QTabBar.cpp @@ -108,7 +108,7 @@ QT_G_FUNC( release_QTabBar ) HB_FUNC( QT_QTABBAR ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QTabBar > pObj = NULL; pObj = ( QTabBar* ) new QTabBar( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QTabWidget.cpp b/harbour/contrib/hbqt/qtgui/QTabWidget.cpp index 70e6c42359..ef2762bd62 100644 --- a/harbour/contrib/hbqt/qtgui/QTabWidget.cpp +++ b/harbour/contrib/hbqt/qtgui/QTabWidget.cpp @@ -106,7 +106,7 @@ QT_G_FUNC( release_QTabWidget ) HB_FUNC( QT_QTABWIDGET ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QTabWidget > pObj = NULL; pObj = ( QTabWidget* ) new QTabWidget( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QTableView.cpp b/harbour/contrib/hbqt/qtgui/QTableView.cpp index 4695695faf..86b510a584 100644 --- a/harbour/contrib/hbqt/qtgui/QTableView.cpp +++ b/harbour/contrib/hbqt/qtgui/QTableView.cpp @@ -112,7 +112,7 @@ QT_G_FUNC( release_QTableView ) HB_FUNC( QT_QTABLEVIEW ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QTableView > pObj = NULL; pObj = ( QTableView* ) new QTableView( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QTableWidget.cpp b/harbour/contrib/hbqt/qtgui/QTableWidget.cpp index aed4b5235d..dc1ccc1e30 100644 --- a/harbour/contrib/hbqt/qtgui/QTableWidget.cpp +++ b/harbour/contrib/hbqt/qtgui/QTableWidget.cpp @@ -113,7 +113,7 @@ QT_G_FUNC( release_QTableWidget ) HB_FUNC( QT_QTABLEWIDGET ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QTableWidget > pObj = NULL; if( hb_pcount() >= 2 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QTableWidgetItem.cpp b/harbour/contrib/hbqt/qtgui/QTableWidgetItem.cpp index e50bbe3ff4..84571afcff 100644 --- a/harbour/contrib/hbqt/qtgui/QTableWidgetItem.cpp +++ b/harbour/contrib/hbqt/qtgui/QTableWidgetItem.cpp @@ -98,7 +98,7 @@ QT_G_FUNC( release_QTableWidgetItem ) HB_FUNC( QT_QTABLEWIDGETITEM ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QTableWidgetSelectionRange.cpp b/harbour/contrib/hbqt/qtgui/QTableWidgetSelectionRange.cpp index 224e7ff6c6..fefaaec17e 100644 --- a/harbour/contrib/hbqt/qtgui/QTableWidgetSelectionRange.cpp +++ b/harbour/contrib/hbqt/qtgui/QTableWidgetSelectionRange.cpp @@ -92,11 +92,15 @@ QT_G_FUNC( release_QTableWidgetSelectionRange ) HB_FUNC( QT_QTABLEWIDGETSELECTIONRANGE ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QTableWidgetSelectionRange() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QTableWidgetSelectionRange; + + hb_retptrGC( p ); } /* * int bottomRow () const diff --git a/harbour/contrib/hbqt/qtgui/QTextBlock.cpp b/harbour/contrib/hbqt/qtgui/QTextBlock.cpp index 72707ac237..0110451a4d 100644 --- a/harbour/contrib/hbqt/qtgui/QTextBlock.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextBlock.cpp @@ -90,6 +90,7 @@ QT_G_FUNC( release_QTextBlock ) HB_FUNC( QT_QTEXTBLOCK ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) @@ -101,7 +102,10 @@ HB_FUNC( QT_QTEXTBLOCK ) pObj = new QTextBlock() ; } - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QTextBlock; + + hb_retptrGC( p ); } /* * QTextBlockFormat blockFormat () const diff --git a/harbour/contrib/hbqt/qtgui/QTextBlockFormat.cpp b/harbour/contrib/hbqt/qtgui/QTextBlockFormat.cpp index 4ff3ed768c..9a80ded8ab 100644 --- a/harbour/contrib/hbqt/qtgui/QTextBlockFormat.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextBlockFormat.cpp @@ -109,7 +109,7 @@ QT_G_FUNC( release_QTextBlockFormat ) HB_FUNC( QT_QTEXTBLOCKFORMAT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QTextBrowser.cpp b/harbour/contrib/hbqt/qtgui/QTextBrowser.cpp index 2d0be796b3..a3d6fd7630 100644 --- a/harbour/contrib/hbqt/qtgui/QTextBrowser.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextBrowser.cpp @@ -100,7 +100,7 @@ QT_G_FUNC( release_QTextBrowser ) HB_FUNC( QT_QTEXTBROWSER ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QTextBrowser > pObj = NULL; pObj = ( QTextBrowser* ) new QTextBrowser( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QTextCharFormat.cpp b/harbour/contrib/hbqt/qtgui/QTextCharFormat.cpp index 15d2bd78c1..1e41090420 100644 --- a/harbour/contrib/hbqt/qtgui/QTextCharFormat.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextCharFormat.cpp @@ -96,7 +96,7 @@ QT_G_FUNC( release_QTextCharFormat ) HB_FUNC( QT_QTEXTCHARFORMAT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QTextCharFormat* ) new QTextCharFormat() ; diff --git a/harbour/contrib/hbqt/qtgui/QTextCursor.cpp b/harbour/contrib/hbqt/qtgui/QTextCursor.cpp index 41f5e42aae..6ec010ceda 100644 --- a/harbour/contrib/hbqt/qtgui/QTextCursor.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextCursor.cpp @@ -102,7 +102,7 @@ QT_G_FUNC( release_QTextCursor ) HB_FUNC( QT_QTEXTCURSOR ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QTextDocument.cpp b/harbour/contrib/hbqt/qtgui/QTextDocument.cpp index 7a873db63b..3884315bb7 100644 --- a/harbour/contrib/hbqt/qtgui/QTextDocument.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextDocument.cpp @@ -124,7 +124,7 @@ QT_G_FUNC( release_QTextDocument ) HB_FUNC( QT_QTEXTDOCUMENT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QTextDocument > pObj = NULL; pObj = ( QTextDocument* ) new QTextDocument( hbqt_par_QObject( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QTextDocumentFragment.cpp b/harbour/contrib/hbqt/qtgui/QTextDocumentFragment.cpp index 63f896698d..4f1110aa5b 100644 --- a/harbour/contrib/hbqt/qtgui/QTextDocumentFragment.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextDocumentFragment.cpp @@ -94,7 +94,7 @@ QT_G_FUNC( release_QTextDocumentFragment ) HB_FUNC( QT_QTEXTDOCUMENTFRAGMENT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QTextDocumentFragment* ) new QTextDocumentFragment() ; diff --git a/harbour/contrib/hbqt/qtgui/QTextDocumentWriter.cpp b/harbour/contrib/hbqt/qtgui/QTextDocumentWriter.cpp index 266eaca0b5..5545e81b81 100644 --- a/harbour/contrib/hbqt/qtgui/QTextDocumentWriter.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextDocumentWriter.cpp @@ -93,11 +93,15 @@ QT_G_FUNC( release_QTextDocumentWriter ) HB_FUNC( QT_QTEXTDOCUMENTWRITER ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QTextDocumentWriter* ) new QTextDocumentWriter() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QTextDocumentWriter; + + hb_retptrGC( p ); } /* * QTextCodec * codec () const diff --git a/harbour/contrib/hbqt/qtgui/QTextEdit.cpp b/harbour/contrib/hbqt/qtgui/QTextEdit.cpp index 7c0b2609fd..adb73105a1 100644 --- a/harbour/contrib/hbqt/qtgui/QTextEdit.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextEdit.cpp @@ -119,7 +119,7 @@ QT_G_FUNC( release_QTextEdit ) HB_FUNC( QT_QTEXTEDIT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QTextEdit > pObj = NULL; if( hb_pcount() >= 1 && HB_ISCHAR( 1 ) ) diff --git a/harbour/contrib/hbqt/qtgui/QTextFormat.cpp b/harbour/contrib/hbqt/qtgui/QTextFormat.cpp index d435b85962..173f2aa775 100644 --- a/harbour/contrib/hbqt/qtgui/QTextFormat.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextFormat.cpp @@ -116,7 +116,7 @@ QT_G_FUNC( release_QTextFormat ) HB_FUNC( QT_QTEXTFORMAT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QTextFormat* ) new QTextFormat() ; diff --git a/harbour/contrib/hbqt/qtgui/QTextFragment.cpp b/harbour/contrib/hbqt/qtgui/QTextFragment.cpp index cbfb2baecd..5fdcedc01d 100644 --- a/harbour/contrib/hbqt/qtgui/QTextFragment.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextFragment.cpp @@ -91,11 +91,15 @@ QT_G_FUNC( release_QTextFragment ) HB_FUNC( QT_QTEXTFRAGMENT ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QTextFragment* ) new QTextFragment() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QTextFragment; + + hb_retptrGC( p ); } /* * QTextCharFormat charFormat () const diff --git a/harbour/contrib/hbqt/qtgui/QTextFrame.cpp b/harbour/contrib/hbqt/qtgui/QTextFrame.cpp index e3f28ffbcb..e1d31cbe4d 100644 --- a/harbour/contrib/hbqt/qtgui/QTextFrame.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextFrame.cpp @@ -116,7 +116,7 @@ QT_G_FUNC( release_QTextFrame ) HB_FUNC( QT_QTEXTFRAME ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QTextFrame > pObj = NULL; pObj = ( QTextFrame* ) new QTextFrame( hbqt_par_QTextDocument( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QTextFrameFormat.cpp b/harbour/contrib/hbqt/qtgui/QTextFrameFormat.cpp index 4fec565685..96c5e4a051 100644 --- a/harbour/contrib/hbqt/qtgui/QTextFrameFormat.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextFrameFormat.cpp @@ -100,7 +100,7 @@ QT_G_FUNC( release_QTextFrameFormat ) HB_FUNC( QT_QTEXTFRAMEFORMAT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QTextFrameFormat* ) new QTextFrameFormat() ; diff --git a/harbour/contrib/hbqt/qtgui/QTextImageFormat.cpp b/harbour/contrib/hbqt/qtgui/QTextImageFormat.cpp index 67efbd63e1..37b699c579 100644 --- a/harbour/contrib/hbqt/qtgui/QTextImageFormat.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextImageFormat.cpp @@ -91,7 +91,7 @@ QT_G_FUNC( release_QTextImageFormat ) HB_FUNC( QT_QTEXTIMAGEFORMAT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QTextImageFormat* ) new QTextImageFormat() ; diff --git a/harbour/contrib/hbqt/qtgui/QTextItem.cpp b/harbour/contrib/hbqt/qtgui/QTextItem.cpp index 3d9e845345..8bb86a616d 100644 --- a/harbour/contrib/hbqt/qtgui/QTextItem.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextItem.cpp @@ -96,11 +96,15 @@ QT_G_FUNC( release_QTextItem ) HB_FUNC( QT_QTEXTITEM ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QTextItem* ) new QTextItem() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QTextItem; + + hb_retptrGC( p ); } /* * qreal ascent () const diff --git a/harbour/contrib/hbqt/qtgui/QTextLayout.cpp b/harbour/contrib/hbqt/qtgui/QTextLayout.cpp index f4561a85c7..8ae98a8a84 100644 --- a/harbour/contrib/hbqt/qtgui/QTextLayout.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextLayout.cpp @@ -108,11 +108,15 @@ QT_G_FUNC( release_QTextLayout ) HB_FUNC( QT_QTEXTLAYOUT ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QTextLayout* ) new QTextLayout() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QTextLayout; + + hb_retptrGC( p ); } /* * void beginLayout () diff --git a/harbour/contrib/hbqt/qtgui/QTextLength.cpp b/harbour/contrib/hbqt/qtgui/QTextLength.cpp index dd28f3c45c..ce1c5eaee7 100644 --- a/harbour/contrib/hbqt/qtgui/QTextLength.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextLength.cpp @@ -95,7 +95,7 @@ QT_G_FUNC( release_QTextLength ) HB_FUNC( QT_QTEXTLENGTH ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QTextLength* ) new QTextLength() ; diff --git a/harbour/contrib/hbqt/qtgui/QTextLine.cpp b/harbour/contrib/hbqt/qtgui/QTextLine.cpp index 120c8e2c22..ec7617ed83 100644 --- a/harbour/contrib/hbqt/qtgui/QTextLine.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextLine.cpp @@ -95,7 +95,7 @@ QT_G_FUNC( release_QTextLine ) HB_FUNC( QT_QTEXTLINE ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QTextLine* ) new QTextLine() ; diff --git a/harbour/contrib/hbqt/qtgui/QTextListFormat.cpp b/harbour/contrib/hbqt/qtgui/QTextListFormat.cpp index 6b27f5224b..f1ca0cfc1e 100644 --- a/harbour/contrib/hbqt/qtgui/QTextListFormat.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextListFormat.cpp @@ -94,7 +94,7 @@ QT_G_FUNC( release_QTextListFormat ) HB_FUNC( QT_QTEXTLISTFORMAT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QTextListFormat() ; diff --git a/harbour/contrib/hbqt/qtgui/QTextOption.cpp b/harbour/contrib/hbqt/qtgui/QTextOption.cpp index bcf4707582..b6422802a6 100644 --- a/harbour/contrib/hbqt/qtgui/QTextOption.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextOption.cpp @@ -112,7 +112,7 @@ QT_G_FUNC( release_QTextOption ) HB_FUNC( QT_QTEXTOPTION ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QTextOption() ; diff --git a/harbour/contrib/hbqt/qtgui/QTextTableFormat.cpp b/harbour/contrib/hbqt/qtgui/QTextTableFormat.cpp index 299ce392db..b9b78df5ab 100644 --- a/harbour/contrib/hbqt/qtgui/QTextTableFormat.cpp +++ b/harbour/contrib/hbqt/qtgui/QTextTableFormat.cpp @@ -99,7 +99,7 @@ QT_G_FUNC( release_QTextTableFormat ) HB_FUNC( QT_QTEXTTABLEFORMAT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QTextTableFormat() ; diff --git a/harbour/contrib/hbqt/qtgui/QTimeEdit.cpp b/harbour/contrib/hbqt/qtgui/QTimeEdit.cpp index b5b91f7ea4..1e4f22ed8e 100644 --- a/harbour/contrib/hbqt/qtgui/QTimeEdit.cpp +++ b/harbour/contrib/hbqt/qtgui/QTimeEdit.cpp @@ -101,7 +101,7 @@ QT_G_FUNC( release_QTimeEdit ) HB_FUNC( QT_QTIMEEDIT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QTimeEdit > pObj = NULL; pObj = ( QTimeEdit* ) new QTimeEdit( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QToolBar.cpp b/harbour/contrib/hbqt/qtgui/QToolBar.cpp index 730a09928b..c5aff019b4 100644 --- a/harbour/contrib/hbqt/qtgui/QToolBar.cpp +++ b/harbour/contrib/hbqt/qtgui/QToolBar.cpp @@ -102,7 +102,7 @@ QT_G_FUNC( release_QToolBar ) HB_FUNC( QT_QTOOLBAR ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QToolBar > pObj = NULL; if( hb_param( 1, HB_IT_STRING ) ) diff --git a/harbour/contrib/hbqt/qtgui/QToolBox.cpp b/harbour/contrib/hbqt/qtgui/QToolBox.cpp index 8c42cea7f3..6b4d9a573d 100644 --- a/harbour/contrib/hbqt/qtgui/QToolBox.cpp +++ b/harbour/contrib/hbqt/qtgui/QToolBox.cpp @@ -101,7 +101,7 @@ QT_G_FUNC( release_QToolBox ) HB_FUNC( QT_QTOOLBOX ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QToolBox > pObj = NULL; pObj = ( QToolBox* ) new QToolBox( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QToolButton.cpp b/harbour/contrib/hbqt/qtgui/QToolButton.cpp index 56d69b87fa..568dc59bee 100644 --- a/harbour/contrib/hbqt/qtgui/QToolButton.cpp +++ b/harbour/contrib/hbqt/qtgui/QToolButton.cpp @@ -105,7 +105,7 @@ QT_G_FUNC( release_QToolButton ) HB_FUNC( QT_QTOOLBUTTON ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QToolButton > pObj = NULL; pObj = ( QToolButton* ) new QToolButton( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QTransform.cpp b/harbour/contrib/hbqt/qtgui/QTransform.cpp index 5984197d3b..11084d4dd3 100644 --- a/harbour/contrib/hbqt/qtgui/QTransform.cpp +++ b/harbour/contrib/hbqt/qtgui/QTransform.cpp @@ -96,7 +96,7 @@ QT_G_FUNC( release_QTransform ) HB_FUNC( QT_QTRANSFORM ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QTransform() ; diff --git a/harbour/contrib/hbqt/qtgui/QTreeView.cpp b/harbour/contrib/hbqt/qtgui/QTreeView.cpp index a574201254..2b063432f5 100644 --- a/harbour/contrib/hbqt/qtgui/QTreeView.cpp +++ b/harbour/contrib/hbqt/qtgui/QTreeView.cpp @@ -113,7 +113,7 @@ QT_G_FUNC( release_QTreeView ) HB_FUNC( QT_QTREEVIEW ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QTreeView > pObj = NULL; pObj = ( QTreeView* ) new QTreeView( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QTreeWidget.cpp b/harbour/contrib/hbqt/qtgui/QTreeWidget.cpp index 8a7ebb4c6c..e151d5a803 100644 --- a/harbour/contrib/hbqt/qtgui/QTreeWidget.cpp +++ b/harbour/contrib/hbqt/qtgui/QTreeWidget.cpp @@ -113,7 +113,7 @@ QT_G_FUNC( release_QTreeWidget ) HB_FUNC( QT_QTREEWIDGET ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QTreeWidget > pObj = NULL; pObj = ( QTreeWidget* ) new QTreeWidget( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QTreeWidgetItem.cpp b/harbour/contrib/hbqt/qtgui/QTreeWidgetItem.cpp index 486d28c4dd..0213fddfff 100644 --- a/harbour/contrib/hbqt/qtgui/QTreeWidgetItem.cpp +++ b/harbour/contrib/hbqt/qtgui/QTreeWidgetItem.cpp @@ -115,6 +115,7 @@ QT_G_FUNC( release_QTreeWidgetItem ) HB_FUNC( QT_QTREEWIDGETITEM ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() >= 1 && HB_ISNUM( 1 ) ) @@ -126,7 +127,10 @@ HB_FUNC( QT_QTREEWIDGETITEM ) pObj = ( QTreeWidgetItem* ) new QTreeWidgetItem( hbqt_par_QTreeWidget( 1 ), hb_parni( 2 ) ) ; } - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QTreeWidgetItem; + + hb_retptrGC( p ); } /* * void addChild ( QTreeWidgetItem * child ) diff --git a/harbour/contrib/hbqt/qtgui/QVBoxLayout.cpp b/harbour/contrib/hbqt/qtgui/QVBoxLayout.cpp index dd623759f5..6a033c45e1 100644 --- a/harbour/contrib/hbqt/qtgui/QVBoxLayout.cpp +++ b/harbour/contrib/hbqt/qtgui/QVBoxLayout.cpp @@ -102,7 +102,7 @@ QT_G_FUNC( release_QVBoxLayout ) HB_FUNC( QT_QVBOXLAYOUT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QVBoxLayout > pObj = NULL; pObj = ( QVBoxLayout* ) new QVBoxLayout( hbqt_par_QWidget( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QWidget.cpp b/harbour/contrib/hbqt/qtgui/QWidget.cpp index e3e7dd2885..6712e5ed54 100644 --- a/harbour/contrib/hbqt/qtgui/QWidget.cpp +++ b/harbour/contrib/hbqt/qtgui/QWidget.cpp @@ -139,7 +139,7 @@ QT_G_FUNC( release_QWidget ) HB_FUNC( QT_QWIDGET ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QWidget > pObj = NULL; pObj = new QWidget( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QWidgetAction.cpp b/harbour/contrib/hbqt/qtgui/QWidgetAction.cpp index 7de42797d8..87e428ba7f 100644 --- a/harbour/contrib/hbqt/qtgui/QWidgetAction.cpp +++ b/harbour/contrib/hbqt/qtgui/QWidgetAction.cpp @@ -101,7 +101,7 @@ QT_G_FUNC( release_QWidgetAction ) HB_FUNC( QT_QWIDGETACTION ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QWidgetAction > pObj = NULL; pObj = ( QWidgetAction* ) new QWidgetAction( hbqt_par_QObject( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QWidgetItem.cpp b/harbour/contrib/hbqt/qtgui/QWidgetItem.cpp index 807abaa3ab..52b32fb186 100644 --- a/harbour/contrib/hbqt/qtgui/QWidgetItem.cpp +++ b/harbour/contrib/hbqt/qtgui/QWidgetItem.cpp @@ -90,11 +90,15 @@ QT_G_FUNC( release_QWidgetItem ) HB_FUNC( QT_QWIDGETITEM ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QWidgetItem* ) new QWidgetItem( hbqt_par_QWidget( 1 ) ) ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QWidgetItem; + + hb_retptrGC( p ); } /* * virtual bool isEmpty () const diff --git a/harbour/contrib/hbqt/qtgui/QWindowsStyle.cpp b/harbour/contrib/hbqt/qtgui/QWindowsStyle.cpp index 71aa69c308..a46e150801 100644 --- a/harbour/contrib/hbqt/qtgui/QWindowsStyle.cpp +++ b/harbour/contrib/hbqt/qtgui/QWindowsStyle.cpp @@ -102,7 +102,7 @@ QT_G_FUNC( release_QWindowsStyle ) HB_FUNC( QT_QWINDOWSSTYLE ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QWindowsStyle > pObj = NULL; pObj = ( QWindowsStyle* ) new QWindowsStyle() ; diff --git a/harbour/contrib/hbqt/qtgui/QWindowsXPStyle.cpp b/harbour/contrib/hbqt/qtgui/QWindowsXPStyle.cpp index 8d4a1847a3..134aa77793 100644 --- a/harbour/contrib/hbqt/qtgui/QWindowsXPStyle.cpp +++ b/harbour/contrib/hbqt/qtgui/QWindowsXPStyle.cpp @@ -102,7 +102,7 @@ QT_G_FUNC( release_QWindowsXPStyle ) HB_FUNC( QT_QWINDOWSXPSTYLE ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QWindowsXPStyle > pObj = NULL; #if defined( HB_OS_WIN ) diff --git a/harbour/contrib/hbqt/qtgui/QWizard.cpp b/harbour/contrib/hbqt/qtgui/QWizard.cpp index 82ab006737..74eef66155 100644 --- a/harbour/contrib/hbqt/qtgui/QWizard.cpp +++ b/harbour/contrib/hbqt/qtgui/QWizard.cpp @@ -121,7 +121,7 @@ QT_G_FUNC( release_QWizard ) HB_FUNC( QT_QWIZARD ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QWizard > pObj = NULL; pObj = new QWizard( hbqt_par_QWidget( 2 ) ) ; diff --git a/harbour/contrib/hbqt/qtgui/QWizardPage.cpp b/harbour/contrib/hbqt/qtgui/QWizardPage.cpp index f26fb8734d..c960bffd41 100644 --- a/harbour/contrib/hbqt/qtgui/QWizardPage.cpp +++ b/harbour/contrib/hbqt/qtgui/QWizardPage.cpp @@ -99,7 +99,7 @@ QT_G_FUNC( release_QWizardPage ) HB_FUNC( QT_QWIZARDPAGE ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QWizardPage > pObj = NULL; pObj = new QWizardPage() ; diff --git a/harbour/contrib/hbqt/qtnetwork/QFtp.cpp b/harbour/contrib/hbqt/qtnetwork/QFtp.cpp index c88437ca1f..96fae8b6eb 100644 --- a/harbour/contrib/hbqt/qtnetwork/QFtp.cpp +++ b/harbour/contrib/hbqt/qtnetwork/QFtp.cpp @@ -124,7 +124,7 @@ QT_G_FUNC( release_QFtp ) HB_FUNC( QT_QFTP ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QFtp > pObj = NULL; pObj = new QFtp( hbqt_par_QObject( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtnetwork/QHttp.cpp b/harbour/contrib/hbqt/qtnetwork/QHttp.cpp index 9fbc4ebaf3..0a77253c91 100644 --- a/harbour/contrib/hbqt/qtnetwork/QHttp.cpp +++ b/harbour/contrib/hbqt/qtnetwork/QHttp.cpp @@ -124,7 +124,7 @@ QT_G_FUNC( release_QHttp ) HB_FUNC( QT_QHTTP ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QHttp > pObj = NULL; pObj = new QHttp( hbqt_par_QObject( 1 ) ) ; diff --git a/harbour/contrib/hbqt/qtnetwork/QHttpRequestHeader.cpp b/harbour/contrib/hbqt/qtnetwork/QHttpRequestHeader.cpp index 41690e5b31..e01599ed5f 100644 --- a/harbour/contrib/hbqt/qtnetwork/QHttpRequestHeader.cpp +++ b/harbour/contrib/hbqt/qtnetwork/QHttpRequestHeader.cpp @@ -92,7 +92,7 @@ QT_G_FUNC( release_QHttpRequestHeader ) HB_FUNC( QT_QHTTPREQUESTHEADER ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QHttpRequestHeader() ; diff --git a/harbour/contrib/hbqt/qtnetwork/QHttpResponseHeader.cpp b/harbour/contrib/hbqt/qtnetwork/QHttpResponseHeader.cpp index 5eaa14442c..49d56e4168 100644 --- a/harbour/contrib/hbqt/qtnetwork/QHttpResponseHeader.cpp +++ b/harbour/contrib/hbqt/qtnetwork/QHttpResponseHeader.cpp @@ -92,7 +92,7 @@ QT_G_FUNC( release_QHttpResponseHeader ) HB_FUNC( QT_QHTTPRESPONSEHEADER ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QHttpResponseHeader() ; diff --git a/harbour/contrib/hbqt/qtnetwork/QNetworkRequest.cpp b/harbour/contrib/hbqt/qtnetwork/QNetworkRequest.cpp index adf4e2c822..bde36c0783 100644 --- a/harbour/contrib/hbqt/qtnetwork/QNetworkRequest.cpp +++ b/harbour/contrib/hbqt/qtnetwork/QNetworkRequest.cpp @@ -111,11 +111,15 @@ QT_G_FUNC( release_QNetworkRequest ) HB_FUNC( QT_QNETWORKREQUEST ) { + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = new QNetworkRequest() ; - hb_retptr( pObj ); + p->ph = pObj; + p->func = release_QNetworkRequest; + + hb_retptrGC( p ); } /* * QVariant attribute ( Attribute code, const QVariant & defaultValue = QVariant() ) const diff --git a/harbour/contrib/hbqt/qtwebkit/QWebHistoryItem.cpp b/harbour/contrib/hbqt/qtwebkit/QWebHistoryItem.cpp index 3b0ee0f853..79ade8d58b 100644 --- a/harbour/contrib/hbqt/qtwebkit/QWebHistoryItem.cpp +++ b/harbour/contrib/hbqt/qtwebkit/QWebHistoryItem.cpp @@ -93,7 +93,7 @@ QT_G_FUNC( release_QWebHistoryItem ) HB_FUNC( QT_QWEBHISTORYITEM ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtwebkit/QWebHitTestResult.cpp b/harbour/contrib/hbqt/qtwebkit/QWebHitTestResult.cpp index f680307385..dc091007f0 100644 --- a/harbour/contrib/hbqt/qtwebkit/QWebHitTestResult.cpp +++ b/harbour/contrib/hbqt/qtwebkit/QWebHitTestResult.cpp @@ -92,7 +92,7 @@ QT_G_FUNC( release_QWebHitTestResult ) HB_FUNC( QT_QWEBHITTESTRESULT ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; pObj = ( QWebHitTestResult* ) new QWebHitTestResult() ; diff --git a/harbour/contrib/hbqt/qtwebkit/QWebPage.cpp b/harbour/contrib/hbqt/qtwebkit/QWebPage.cpp index 514b4a0c65..8f131d6df2 100644 --- a/harbour/contrib/hbqt/qtwebkit/QWebPage.cpp +++ b/harbour/contrib/hbqt/qtwebkit/QWebPage.cpp @@ -112,7 +112,7 @@ QT_G_FUNC( release_QWebPage ) HB_FUNC( QT_QWEBPAGE ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QWebPage > pObj = NULL; pObj = new QWebPage( hbqt_par_QWidget( 2 ) ) ; diff --git a/harbour/contrib/hbqt/qtwebkit/QWebSecurityOrigin.cpp b/harbour/contrib/hbqt/qtwebkit/QWebSecurityOrigin.cpp index 6fe820cb81..b10daaa1b2 100644 --- a/harbour/contrib/hbqt/qtwebkit/QWebSecurityOrigin.cpp +++ b/harbour/contrib/hbqt/qtwebkit/QWebSecurityOrigin.cpp @@ -101,7 +101,7 @@ QT_G_FUNC( release_QWebSecurityOrigin ) HB_FUNC( QT_QWEBSECURITYORIGIN ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); void * pObj = NULL; if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) ) diff --git a/harbour/contrib/hbqt/qtwebkit/QWebView.cpp b/harbour/contrib/hbqt/qtwebkit/QWebView.cpp index 0333631ebf..ebfcb43212 100644 --- a/harbour/contrib/hbqt/qtwebkit/QWebView.cpp +++ b/harbour/contrib/hbqt/qtwebkit/QWebView.cpp @@ -102,7 +102,7 @@ QT_G_FUNC( release_QWebView ) HB_FUNC( QT_QWEBVIEW ) { - QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release ); + QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAllocate( sizeof( QGC_POINTER ), gcFuncs() ); QPointer< QWebView > pObj = NULL; pObj = new QWebView( hbqt_par_QWidget( 1 ) ) ;