2009-10-15 18:43 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)

* contrib/hbqt/generator/hbqtgen.prg
    ! Changes to implemented GC pointers.

  * contrib/hbqt/filelist.mk
    + hbqt_destruct.cpp

  * contrib/hbqt/hbqt.h
    ! Reworked to honor GC pointers.

  + contrib/hbqt/hbqt_destruct.cpp
    + Added routines to manage HVM controlled garbage collection.

  * contrib/hbqt/hbqt_slots.cpp
    ! Minot tweaks.

  * contrib/hbqt/QAbstractButton.cpp
  * contrib/hbqt/QAbstractItemModel.cpp
  * contrib/hbqt/QAbstractItemView.cpp
  * contrib/hbqt/QAbstractListModel.cpp
  * contrib/hbqt/QAbstractPrintDialog.cpp
  * contrib/hbqt/QAbstractScrollArea.cpp
  * contrib/hbqt/QAbstractSlider.cpp
  * contrib/hbqt/QAbstractSpinBox.cpp
  * contrib/hbqt/QAbstractTableModel.cpp
  * contrib/hbqt/QAction.cpp
  * contrib/hbqt/QApplication.cpp
  * contrib/hbqt/QBitmap.cpp
  * contrib/hbqt/QBoxLayout.cpp
  * contrib/hbqt/QBrush.cpp
  * contrib/hbqt/QButtonGroup.cpp
  * contrib/hbqt/QCalendarWidget.cpp
  * contrib/hbqt/QCheckBox.cpp
  * contrib/hbqt/QClipboard.cpp
  * contrib/hbqt/QColor.cpp
  * contrib/hbqt/QColorDialog.cpp
  * contrib/hbqt/QComboBox.cpp
  * contrib/hbqt/QCommandLinkButton.cpp
  * contrib/hbqt/QCommonStyle.cpp
  * contrib/hbqt/QConicalGradient.cpp
  * contrib/hbqt/QCoreApplication.cpp
  * contrib/hbqt/QCursor.cpp
  * contrib/hbqt/QDateEdit.cpp
  * contrib/hbqt/QDateTime.cpp
  * contrib/hbqt/QDateTimeEdit.cpp
  * contrib/hbqt/QDesktopWidget.cpp
  * contrib/hbqt/QDial.cpp
  * contrib/hbqt/QDialog.cpp
  * contrib/hbqt/QDir.cpp
  * contrib/hbqt/QDirModel.cpp
  * contrib/hbqt/QDockWidget.cpp
  * contrib/hbqt/QDoubleSpinBox.cpp
  * contrib/hbqt/QDragEnterEvent.cpp
  * contrib/hbqt/QDragLeaveEvent.cpp
  * contrib/hbqt/QDragMoveEvent.cpp
  * contrib/hbqt/QDropEvent.cpp
  * contrib/hbqt/QErrorMessage.cpp
  * contrib/hbqt/QEvent.cpp
  * contrib/hbqt/QEventLoop.cpp
  * contrib/hbqt/QFileDialog.cpp
  * contrib/hbqt/QFileSystemModel.cpp
  * contrib/hbqt/QFocusEvent.cpp
  * contrib/hbqt/QFocusFrame.cpp
  * contrib/hbqt/QFont.cpp
  * contrib/hbqt/QFontComboBox.cpp
  * contrib/hbqt/QFontDatabase.cpp
  * contrib/hbqt/QFontDialog.cpp
  * contrib/hbqt/QFontInfo.cpp
  * contrib/hbqt/QFontMetrics.cpp
  * contrib/hbqt/QFontMetricsF.cpp
  * contrib/hbqt/QFormLayout.cpp
  * contrib/hbqt/QFrame.cpp
  * contrib/hbqt/QFtp.cpp
  * contrib/hbqt/QGradient.cpp
  * contrib/hbqt/QGridLayout.cpp
  * contrib/hbqt/QGroupBox.cpp
  * contrib/hbqt/QHBoxLayout.cpp
  * contrib/hbqt/QHeaderView.cpp
  * contrib/hbqt/QHttp.cpp
  * contrib/hbqt/QIcon.cpp
  * contrib/hbqt/QImage.cpp
  * contrib/hbqt/QImageReader.cpp
  * contrib/hbqt/QImageWriter.cpp
  * contrib/hbqt/QInputDialog.cpp
  * contrib/hbqt/QInputEvent.cpp
  * contrib/hbqt/QIODevice.cpp
  * contrib/hbqt/QKeyEvent.cpp
  * contrib/hbqt/QKeySequence.cpp
  * contrib/hbqt/QLabel.cpp
  * contrib/hbqt/QLatin1Char.cpp
  * contrib/hbqt/QLatin1String.cpp
  * contrib/hbqt/QLayout.cpp
  * contrib/hbqt/QLayoutItem.cpp
  * contrib/hbqt/QLCDNumber.cpp
  * contrib/hbqt/QLine.cpp
  * contrib/hbqt/QLinearGradient.cpp
  * contrib/hbqt/QLineEdit.cpp
  * contrib/hbqt/QList.cpp
  * contrib/hbqt/QListView.cpp
  * contrib/hbqt/QListWidget.cpp
  * contrib/hbqt/QListWidgetItem.cpp
  * contrib/hbqt/QMainWindow.cpp
  * contrib/hbqt/QMenu.cpp
  * contrib/hbqt/QMenuBar.cpp
  * contrib/hbqt/QMessageBox.cpp
  * contrib/hbqt/QModelIndex.cpp
  * contrib/hbqt/QMouseEvent.cpp
  * contrib/hbqt/QMoveEvent.cpp
  * contrib/hbqt/QObject.cpp
  * contrib/hbqt/QPageSetupDialog.cpp
  * contrib/hbqt/QPaintDevice.cpp
  * contrib/hbqt/QPainter.cpp
  * contrib/hbqt/QPaintEvent.cpp
  * contrib/hbqt/QPalette.cpp
  * contrib/hbqt/QPen.cpp
  * contrib/hbqt/QPicture.cpp
  * contrib/hbqt/QPixmap.cpp
  * contrib/hbqt/QPoint.cpp
  * contrib/hbqt/QPointF.cpp
  * contrib/hbqt/QPrintDialog.cpp
  * contrib/hbqt/QPrintEngine.cpp
  * contrib/hbqt/QPrinter.cpp
  * contrib/hbqt/QPrintPreviewDialog.cpp
  * contrib/hbqt/QProcess.cpp
  * contrib/hbqt/QProgressBar.cpp
  * contrib/hbqt/QProgressDialog.cpp
  * contrib/hbqt/QPushButton.cpp
  * contrib/hbqt/QRadialGradient.cpp
  * contrib/hbqt/QRadioButton.cpp
  * contrib/hbqt/QRect.cpp
  * contrib/hbqt/QRectF.cpp
  * contrib/hbqt/QRegion.cpp
  * contrib/hbqt/QResizeEvent.cpp
  * contrib/hbqt/QResource.cpp
  * contrib/hbqt/QScrollArea.cpp
  * contrib/hbqt/QScrollBar.cpp
  * contrib/hbqt/QSignalMapper.cpp
  * contrib/hbqt/QSize.cpp
  * contrib/hbqt/QSizeF.cpp
  * contrib/hbqt/QSizeGrip.cpp
  * contrib/hbqt/QSizePolicy.cpp
  * contrib/hbqt/QSlider.cpp
  * contrib/hbqt/QSound.cpp
  * contrib/hbqt/QSpinBox.cpp
  * contrib/hbqt/QSplashScreen.cpp
  * contrib/hbqt/QSplitter.cpp
  * contrib/hbqt/QStandardItem.cpp
  * contrib/hbqt/QStandardItemModel.cpp
  * contrib/hbqt/QStatusBar.cpp
  * contrib/hbqt/QStringList.cpp
  * contrib/hbqt/QStringListModel.cpp
  * contrib/hbqt/QStyle.cpp
  * contrib/hbqt/QStyledItemDelegate.cpp
  * contrib/hbqt/QStyleFactory.cpp
  * contrib/hbqt/QStyleHintReturn.cpp
  * contrib/hbqt/QStyleHintReturnMask.cpp
  * contrib/hbqt/QStyleHintReturnVariant.cpp
  * contrib/hbqt/QStyleOption.cpp
  * contrib/hbqt/QStyleOptionButton.cpp
  * contrib/hbqt/QStyleOptionComboBox.cpp
  * contrib/hbqt/QStyleOptionComplex.cpp
  * contrib/hbqt/QStyleOptionDockWidget.cpp
  * contrib/hbqt/QStyleOptionFocusRect.cpp
  * contrib/hbqt/QStyleOptionFrame.cpp
  * contrib/hbqt/QStyleOptionGroupBox.cpp
  * contrib/hbqt/QStyleOptionHeader.cpp
  * contrib/hbqt/QStyleOptionMenuItem.cpp
  * contrib/hbqt/QStyleOptionProgressBar.cpp
  * contrib/hbqt/QStyleOptionSizeGrip.cpp
  * contrib/hbqt/QStyleOptionSlider.cpp
  * contrib/hbqt/QStyleOptionSpinBox.cpp
  * contrib/hbqt/QStyleOptionTab.cpp
  * contrib/hbqt/QStyleOptionTabBarBase.cpp
  * contrib/hbqt/QStyleOptionTabWidgetFrame.cpp
  * contrib/hbqt/QStyleOptionTitleBar.cpp
  * contrib/hbqt/QStyleOptionToolBar.cpp
  * contrib/hbqt/QStyleOptionToolBox.cpp
  * contrib/hbqt/QStyleOptionToolButton.cpp
  * contrib/hbqt/QStyleOptionViewItem.cpp
  * contrib/hbqt/QStylePainter.cpp
  * contrib/hbqt/QSystemTrayIcon.cpp
  * contrib/hbqt/QTabBar.cpp
  * contrib/hbqt/QTableView.cpp
  * contrib/hbqt/QTableWidget.cpp
  * contrib/hbqt/QTableWidgetItem.cpp
  * contrib/hbqt/QTabWidget.cpp
  * contrib/hbqt/QTextBlock.cpp
  * contrib/hbqt/QTextBlockFormat.cpp
  * contrib/hbqt/QTextBlockGroup.cpp
  * contrib/hbqt/QTextBoundaryFinder.cpp
  * contrib/hbqt/QTextBrowser.cpp
  * contrib/hbqt/QTextCharFormat.cpp
  * contrib/hbqt/QTextCodec.cpp
  * contrib/hbqt/QTextCursor.cpp
  * contrib/hbqt/QTextDecoder.cpp
  * contrib/hbqt/QTextDocument.cpp
  * contrib/hbqt/QTextDocumentFragment.cpp
  * contrib/hbqt/QTextDocumentWriter.cpp
  * contrib/hbqt/QTextEdit.cpp
  * contrib/hbqt/QTextEncoder.cpp
  * contrib/hbqt/QTextFormat.cpp
  * contrib/hbqt/QTextFragment.cpp
  * contrib/hbqt/QTextFrame.cpp
  * contrib/hbqt/QTextFrameFormat.cpp
  * contrib/hbqt/QTextImageFormat.cpp
  * contrib/hbqt/QTextInlineObject.cpp
  * contrib/hbqt/QTextItem.cpp
  * contrib/hbqt/QTextLayout.cpp
  * contrib/hbqt/QTextLength.cpp
  * contrib/hbqt/QTextLine.cpp
  * contrib/hbqt/QTextObject.cpp
  * contrib/hbqt/QTextStream.cpp
  * contrib/hbqt/QTimeEdit.cpp
  * contrib/hbqt/QTimer.cpp
  * contrib/hbqt/QToolBar.cpp
  * contrib/hbqt/QToolBox.cpp
  * contrib/hbqt/QToolButton.cpp
  * contrib/hbqt/QTreeView.cpp
  * contrib/hbqt/QTreeWidget.cpp
  * contrib/hbqt/QTreeWidgetItem.cpp
  * contrib/hbqt/QUrl.cpp
  * contrib/hbqt/QVariant.cpp
  * contrib/hbqt/QVBoxLayout.cpp
  * contrib/hbqt/QWebFrame.cpp
  * contrib/hbqt/QWebHistory.cpp
  * contrib/hbqt/QWebHistoryInterface.cpp
  * contrib/hbqt/QWebHistoryItem.cpp
  * contrib/hbqt/QWebHitTestResult.cpp
  * contrib/hbqt/QWebPage.cpp
  * contrib/hbqt/QWebPluginFactory.cpp
  * contrib/hbqt/QWebSecurityOrigin.cpp
  * contrib/hbqt/QWebSettings.cpp
  * contrib/hbqt/QWebView.cpp
  * contrib/hbqt/QWheelEvent.cpp
  * contrib/hbqt/QWidget.cpp
  * contrib/hbqt/QWidgetAction.cpp
  * contrib/hbqt/QWidgetItem.cpp
  * contrib/hbqt/QWindowsStyle.cpp
  * contrib/hbqt/QWindowsXPStyle.cpp
  * contrib/hbqt/QWizard.cpp
    ! Auto generated sources by virtue of changes in hbqtgen.prg

  * contrib/hbqt/tests/demoqt.prg
  * contrib/hbqt/TQAbstractButton.prg
  * contrib/hbqt/TQAbstractItemModel.prg
  * contrib/hbqt/TQAbstractItemView.prg
  * contrib/hbqt/TQAbstractListModel.prg
  * contrib/hbqt/TQAbstractPrintDialog.prg
  * contrib/hbqt/TQAbstractScrollArea.prg
  * contrib/hbqt/TQAbstractSlider.prg
  * contrib/hbqt/TQAbstractSpinBox.prg
  * contrib/hbqt/TQAbstractTableModel.prg
  * contrib/hbqt/TQAction.prg
  * contrib/hbqt/TQApplication.prg
  * contrib/hbqt/TQBitmap.prg
  * contrib/hbqt/TQBoxLayout.prg
  * contrib/hbqt/TQBrush.prg
  * contrib/hbqt/TQButtonGroup.prg
  * contrib/hbqt/TQCalendarWidget.prg
  * contrib/hbqt/TQCheckBox.prg
  * contrib/hbqt/TQClipboard.prg
  * contrib/hbqt/TQColor.prg
  * contrib/hbqt/TQColorDialog.prg
  * contrib/hbqt/TQComboBox.prg
  * contrib/hbqt/TQCommandLinkButton.prg
  * contrib/hbqt/TQCommonStyle.prg
  * contrib/hbqt/TQConicalGradient.prg
  * contrib/hbqt/TQCoreApplication.prg
  * contrib/hbqt/TQCursor.prg
  * contrib/hbqt/TQDateEdit.prg
  * contrib/hbqt/TQDateTime.prg
  * contrib/hbqt/TQDateTimeEdit.prg
  * contrib/hbqt/TQDesktopWidget.prg
  * contrib/hbqt/TQDial.prg
  * contrib/hbqt/TQDialog.prg
  * contrib/hbqt/TQDir.prg
  * contrib/hbqt/TQDirModel.prg
  * contrib/hbqt/TQDockWidget.prg
  * contrib/hbqt/TQDoubleSpinBox.prg
  * contrib/hbqt/TQDragEnterEvent.prg
  * contrib/hbqt/TQDragLeaveEvent.prg
  * contrib/hbqt/TQDragMoveEvent.prg
  * contrib/hbqt/TQDropEvent.prg
  * contrib/hbqt/TQErrorMessage.prg
  * contrib/hbqt/TQEvent.prg
  * contrib/hbqt/TQEventLoop.prg
  * contrib/hbqt/TQFileDialog.prg
  * contrib/hbqt/TQFileSystemModel.prg
  * contrib/hbqt/TQFocusEvent.prg
  * contrib/hbqt/TQFocusFrame.prg
  * contrib/hbqt/TQFont.prg
  * contrib/hbqt/TQFontComboBox.prg
  * contrib/hbqt/TQFontDatabase.prg
  * contrib/hbqt/TQFontDialog.prg
  * contrib/hbqt/TQFontInfo.prg
  * contrib/hbqt/TQFontMetrics.prg
  * contrib/hbqt/TQFontMetricsF.prg
  * contrib/hbqt/TQFormLayout.prg
  * contrib/hbqt/TQFrame.prg
  * contrib/hbqt/TQFtp.prg
  * contrib/hbqt/TQGradient.prg
  * contrib/hbqt/TQGridLayout.prg
  * contrib/hbqt/TQGroupBox.prg
  * contrib/hbqt/TQHBoxLayout.prg
  * contrib/hbqt/TQHeaderView.prg
  * contrib/hbqt/TQHttp.prg
  * contrib/hbqt/TQIcon.prg
  * contrib/hbqt/TQImage.prg
  * contrib/hbqt/TQImageReader.prg
  * contrib/hbqt/TQImageWriter.prg
  * contrib/hbqt/TQInputDialog.prg
  * contrib/hbqt/TQInputEvent.prg
  * contrib/hbqt/TQIODevice.prg
  * contrib/hbqt/TQKeyEvent.prg
  * contrib/hbqt/TQKeySequence.prg
  * contrib/hbqt/TQLabel.prg
  * contrib/hbqt/TQLatin1Char.prg
  * contrib/hbqt/TQLatin1String.prg
  * contrib/hbqt/TQLayout.prg
  * contrib/hbqt/TQLayoutItem.prg
  * contrib/hbqt/TQLCDNumber.prg
  * contrib/hbqt/TQLine.prg
  * contrib/hbqt/TQLinearGradient.prg
  * contrib/hbqt/TQLineEdit.prg
  * contrib/hbqt/TQList.prg
  * contrib/hbqt/TQListView.prg
  * contrib/hbqt/TQListWidget.prg
  * contrib/hbqt/TQListWidgetItem.prg
  * contrib/hbqt/TQMainWindow.prg
  * contrib/hbqt/TQMenu.prg
  * contrib/hbqt/TQMenuBar.prg
  * contrib/hbqt/TQMessageBox.prg
  * contrib/hbqt/TQModelIndex.prg
  * contrib/hbqt/TQMouseEvent.prg
  * contrib/hbqt/TQMoveEvent.prg
  * contrib/hbqt/TQObject.prg
  * contrib/hbqt/TQPageSetupDialog.prg
  * contrib/hbqt/TQPaintDevice.prg
  * contrib/hbqt/TQPainter.prg
  * contrib/hbqt/TQPaintEvent.prg
  * contrib/hbqt/TQPalette.prg
  * contrib/hbqt/TQPen.prg
  * contrib/hbqt/TQPicture.prg
  * contrib/hbqt/TQPixmap.prg
  * contrib/hbqt/TQPoint.prg
  * contrib/hbqt/TQPointF.prg
  * contrib/hbqt/TQPrintDialog.prg
  * contrib/hbqt/TQPrintEngine.prg
  * contrib/hbqt/TQPrinter.prg
  * contrib/hbqt/TQPrintPreviewDialog.prg
  * contrib/hbqt/TQProcess.prg
  * contrib/hbqt/TQProgressBar.prg
  * contrib/hbqt/TQProgressDialog.prg
  * contrib/hbqt/TQPushButton.prg
  * contrib/hbqt/TQRadialGradient.prg
  * contrib/hbqt/TQRadioButton.prg
  * contrib/hbqt/TQRect.prg
  * contrib/hbqt/TQRectF.prg
  * contrib/hbqt/TQRegion.prg
  * contrib/hbqt/TQResizeEvent.prg
  * contrib/hbqt/TQResource.prg
  * contrib/hbqt/TQScrollArea.prg
  * contrib/hbqt/TQScrollBar.prg
  * contrib/hbqt/TQSignalMapper.prg
  * contrib/hbqt/TQSize.prg
  * contrib/hbqt/TQSizeF.prg
  * contrib/hbqt/TQSizeGrip.prg
  * contrib/hbqt/TQSizePolicy.prg
  * contrib/hbqt/TQSlider.prg
  * contrib/hbqt/TQSound.prg
  * contrib/hbqt/TQSpinBox.prg
  * contrib/hbqt/TQSplashScreen.prg
  * contrib/hbqt/TQSplitter.prg
  * contrib/hbqt/TQStandardItem.prg
  * contrib/hbqt/TQStandardItemModel.prg
  * contrib/hbqt/TQStatusBar.prg
  * contrib/hbqt/TQStringList.prg
  * contrib/hbqt/TQStringListModel.prg
  * contrib/hbqt/TQStyle.prg
  * contrib/hbqt/TQStyledItemDelegate.prg
  * contrib/hbqt/TQStyleFactory.prg
  * contrib/hbqt/TQStyleHintReturn.prg
  * contrib/hbqt/TQStyleHintReturnMask.prg
  * contrib/hbqt/TQStyleHintReturnVariant.prg
  * contrib/hbqt/TQStyleOption.prg
  * contrib/hbqt/TQStyleOptionButton.prg
  * contrib/hbqt/TQStyleOptionComboBox.prg
  * contrib/hbqt/TQStyleOptionComplex.prg
  * contrib/hbqt/TQStyleOptionDockWidget.prg
  * contrib/hbqt/TQStyleOptionFocusRect.prg
  * contrib/hbqt/TQStyleOptionFrame.prg
  * contrib/hbqt/TQStyleOptionGroupBox.prg
  * contrib/hbqt/TQStyleOptionHeader.prg
  * contrib/hbqt/TQStyleOptionMenuItem.prg
  * contrib/hbqt/TQStyleOptionProgressBar.prg
  * contrib/hbqt/TQStyleOptionSizeGrip.prg
  * contrib/hbqt/TQStyleOptionSlider.prg
  * contrib/hbqt/TQStyleOptionSpinBox.prg
  * contrib/hbqt/TQStyleOptionTab.prg
  * contrib/hbqt/TQStyleOptionTabBarBase.prg
  * contrib/hbqt/TQStyleOptionTabWidgetFrame.prg
  * contrib/hbqt/TQStyleOptionTitleBar.prg
  * contrib/hbqt/TQStyleOptionToolBar.prg
  * contrib/hbqt/TQStyleOptionToolBox.prg
  * contrib/hbqt/TQStyleOptionToolButton.prg
  * contrib/hbqt/TQStyleOptionViewItem.prg
  * contrib/hbqt/TQStylePainter.prg
  * contrib/hbqt/TQSystemTrayIcon.prg
  * contrib/hbqt/TQTabBar.prg
  * contrib/hbqt/TQTableView.prg
  * contrib/hbqt/TQTableWidget.prg
  * contrib/hbqt/TQTableWidgetItem.prg
  * contrib/hbqt/TQTabWidget.prg
  * contrib/hbqt/TQTextBlock.prg
  * contrib/hbqt/TQTextBlockFormat.prg
  * contrib/hbqt/TQTextBlockGroup.prg
  * contrib/hbqt/TQTextBoundaryFinder.prg
  * contrib/hbqt/TQTextBrowser.prg
  * contrib/hbqt/TQTextCharFormat.prg
  * contrib/hbqt/TQTextCodec.prg
  * contrib/hbqt/TQTextCursor.prg
  * contrib/hbqt/TQTextDecoder.prg
  * contrib/hbqt/TQTextDocument.prg
  * contrib/hbqt/TQTextDocumentFragment.prg
  * contrib/hbqt/TQTextDocumentWriter.prg
  * contrib/hbqt/TQTextEdit.prg
  * contrib/hbqt/TQTextEncoder.prg
  * contrib/hbqt/TQTextFormat.prg
  * contrib/hbqt/TQTextFragment.prg
  * contrib/hbqt/TQTextFrame.prg
  * contrib/hbqt/TQTextFrameFormat.prg
  * contrib/hbqt/TQTextImageFormat.prg
  * contrib/hbqt/TQTextInlineObject.prg
  * contrib/hbqt/TQTextItem.prg
  * contrib/hbqt/TQTextLayout.prg
  * contrib/hbqt/TQTextLength.prg
  * contrib/hbqt/TQTextLine.prg
  * contrib/hbqt/TQTextObject.prg
  * contrib/hbqt/TQTextStream.prg
  * contrib/hbqt/TQTimeEdit.prg
  * contrib/hbqt/TQTimer.prg
  * contrib/hbqt/TQToolBar.prg
  * contrib/hbqt/TQToolBox.prg
  * contrib/hbqt/TQToolButton.prg
  * contrib/hbqt/TQTreeView.prg
  * contrib/hbqt/TQTreeWidget.prg
  * contrib/hbqt/TQTreeWidgetItem.prg
  * contrib/hbqt/TQUrl.prg
  * contrib/hbqt/TQVariant.prg
  * contrib/hbqt/TQVBoxLayout.prg
  * contrib/hbqt/TQWebFrame.prg
  * contrib/hbqt/TQWebHistory.prg
  * contrib/hbqt/TQWebHistoryInterface.prg
  * contrib/hbqt/TQWebHistoryItem.prg
  * contrib/hbqt/TQWebHitTestResult.prg
  * contrib/hbqt/TQWebPage.prg
  * contrib/hbqt/TQWebPluginFactory.prg
  * contrib/hbqt/TQWebSecurityOrigin.prg
  * contrib/hbqt/TQWebSettings.prg
  * contrib/hbqt/TQWebView.prg
  * contrib/hbqt/TQWheelEvent.prg
  * contrib/hbqt/TQWidget.prg
  * contrib/hbqt/TQWidgetAction.prg
  * contrib/hbqt/TQWidgetItem.prg
  * contrib/hbqt/TQWindowsStyle.prg
  * contrib/hbqt/TQWindowsXPStyle.prg
  * contrib/hbqt/TQWizard.prg
    ! Auto generated sources by virtue of changes in hbqtgen.prg

    [ Detailed analysis will follow in a separate thread ]
This commit is contained in:
Pritpal Bedi
2009-10-16 01:57:48 +00:00
parent 2cc9a8942f
commit 2025e58738
455 changed files with 4702 additions and 3681 deletions

View File

@@ -17,6 +17,477 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-10-15 18:43 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/generator/hbqtgen.prg
! Changes to implemented GC pointers.
* contrib/hbqt/filelist.mk
+ hbqt_destruct.cpp
* contrib/hbqt/hbqt.h
! Reworked to honor GC pointers.
+ contrib/hbqt/hbqt_destruct.cpp
+ Added routines to manage HVM controlled garbage collection.
* contrib/hbqt/hbqt_slots.cpp
! Minot tweaks.
* contrib/hbqt/QAbstractButton.cpp
* contrib/hbqt/QAbstractItemModel.cpp
* contrib/hbqt/QAbstractItemView.cpp
* contrib/hbqt/QAbstractListModel.cpp
* contrib/hbqt/QAbstractPrintDialog.cpp
* contrib/hbqt/QAbstractScrollArea.cpp
* contrib/hbqt/QAbstractSlider.cpp
* contrib/hbqt/QAbstractSpinBox.cpp
* contrib/hbqt/QAbstractTableModel.cpp
* contrib/hbqt/QAction.cpp
* contrib/hbqt/QApplication.cpp
* contrib/hbqt/QBitmap.cpp
* contrib/hbqt/QBoxLayout.cpp
* contrib/hbqt/QBrush.cpp
* contrib/hbqt/QButtonGroup.cpp
* contrib/hbqt/QCalendarWidget.cpp
* contrib/hbqt/QCheckBox.cpp
* contrib/hbqt/QClipboard.cpp
* contrib/hbqt/QColor.cpp
* contrib/hbqt/QColorDialog.cpp
* contrib/hbqt/QComboBox.cpp
* contrib/hbqt/QCommandLinkButton.cpp
* contrib/hbqt/QCommonStyle.cpp
* contrib/hbqt/QConicalGradient.cpp
* contrib/hbqt/QCoreApplication.cpp
* contrib/hbqt/QCursor.cpp
* contrib/hbqt/QDateEdit.cpp
* contrib/hbqt/QDateTime.cpp
* contrib/hbqt/QDateTimeEdit.cpp
* contrib/hbqt/QDesktopWidget.cpp
* contrib/hbqt/QDial.cpp
* contrib/hbqt/QDialog.cpp
* contrib/hbqt/QDir.cpp
* contrib/hbqt/QDirModel.cpp
* contrib/hbqt/QDockWidget.cpp
* contrib/hbqt/QDoubleSpinBox.cpp
* contrib/hbqt/QDragEnterEvent.cpp
* contrib/hbqt/QDragLeaveEvent.cpp
* contrib/hbqt/QDragMoveEvent.cpp
* contrib/hbqt/QDropEvent.cpp
* contrib/hbqt/QErrorMessage.cpp
* contrib/hbqt/QEvent.cpp
* contrib/hbqt/QEventLoop.cpp
* contrib/hbqt/QFileDialog.cpp
* contrib/hbqt/QFileSystemModel.cpp
* contrib/hbqt/QFocusEvent.cpp
* contrib/hbqt/QFocusFrame.cpp
* contrib/hbqt/QFont.cpp
* contrib/hbqt/QFontComboBox.cpp
* contrib/hbqt/QFontDatabase.cpp
* contrib/hbqt/QFontDialog.cpp
* contrib/hbqt/QFontInfo.cpp
* contrib/hbqt/QFontMetrics.cpp
* contrib/hbqt/QFontMetricsF.cpp
* contrib/hbqt/QFormLayout.cpp
* contrib/hbqt/QFrame.cpp
* contrib/hbqt/QFtp.cpp
* contrib/hbqt/QGradient.cpp
* contrib/hbqt/QGridLayout.cpp
* contrib/hbqt/QGroupBox.cpp
* contrib/hbqt/QHBoxLayout.cpp
* contrib/hbqt/QHeaderView.cpp
* contrib/hbqt/QHttp.cpp
* contrib/hbqt/QIcon.cpp
* contrib/hbqt/QImage.cpp
* contrib/hbqt/QImageReader.cpp
* contrib/hbqt/QImageWriter.cpp
* contrib/hbqt/QInputDialog.cpp
* contrib/hbqt/QInputEvent.cpp
* contrib/hbqt/QIODevice.cpp
* contrib/hbqt/QKeyEvent.cpp
* contrib/hbqt/QKeySequence.cpp
* contrib/hbqt/QLabel.cpp
* contrib/hbqt/QLatin1Char.cpp
* contrib/hbqt/QLatin1String.cpp
* contrib/hbqt/QLayout.cpp
* contrib/hbqt/QLayoutItem.cpp
* contrib/hbqt/QLCDNumber.cpp
* contrib/hbqt/QLine.cpp
* contrib/hbqt/QLinearGradient.cpp
* contrib/hbqt/QLineEdit.cpp
* contrib/hbqt/QList.cpp
* contrib/hbqt/QListView.cpp
* contrib/hbqt/QListWidget.cpp
* contrib/hbqt/QListWidgetItem.cpp
* contrib/hbqt/QMainWindow.cpp
* contrib/hbqt/QMenu.cpp
* contrib/hbqt/QMenuBar.cpp
* contrib/hbqt/QMessageBox.cpp
* contrib/hbqt/QModelIndex.cpp
* contrib/hbqt/QMouseEvent.cpp
* contrib/hbqt/QMoveEvent.cpp
* contrib/hbqt/QObject.cpp
* contrib/hbqt/QPageSetupDialog.cpp
* contrib/hbqt/QPaintDevice.cpp
* contrib/hbqt/QPainter.cpp
* contrib/hbqt/QPaintEvent.cpp
* contrib/hbqt/QPalette.cpp
* contrib/hbqt/QPen.cpp
* contrib/hbqt/QPicture.cpp
* contrib/hbqt/QPixmap.cpp
* contrib/hbqt/QPoint.cpp
* contrib/hbqt/QPointF.cpp
* contrib/hbqt/QPrintDialog.cpp
* contrib/hbqt/QPrintEngine.cpp
* contrib/hbqt/QPrinter.cpp
* contrib/hbqt/QPrintPreviewDialog.cpp
* contrib/hbqt/QProcess.cpp
* contrib/hbqt/QProgressBar.cpp
* contrib/hbqt/QProgressDialog.cpp
* contrib/hbqt/QPushButton.cpp
* contrib/hbqt/QRadialGradient.cpp
* contrib/hbqt/QRadioButton.cpp
* contrib/hbqt/QRect.cpp
* contrib/hbqt/QRectF.cpp
* contrib/hbqt/QRegion.cpp
* contrib/hbqt/QResizeEvent.cpp
* contrib/hbqt/QResource.cpp
* contrib/hbqt/QScrollArea.cpp
* contrib/hbqt/QScrollBar.cpp
* contrib/hbqt/QSignalMapper.cpp
* contrib/hbqt/QSize.cpp
* contrib/hbqt/QSizeF.cpp
* contrib/hbqt/QSizeGrip.cpp
* contrib/hbqt/QSizePolicy.cpp
* contrib/hbqt/QSlider.cpp
* contrib/hbqt/QSound.cpp
* contrib/hbqt/QSpinBox.cpp
* contrib/hbqt/QSplashScreen.cpp
* contrib/hbqt/QSplitter.cpp
* contrib/hbqt/QStandardItem.cpp
* contrib/hbqt/QStandardItemModel.cpp
* contrib/hbqt/QStatusBar.cpp
* contrib/hbqt/QStringList.cpp
* contrib/hbqt/QStringListModel.cpp
* contrib/hbqt/QStyle.cpp
* contrib/hbqt/QStyledItemDelegate.cpp
* contrib/hbqt/QStyleFactory.cpp
* contrib/hbqt/QStyleHintReturn.cpp
* contrib/hbqt/QStyleHintReturnMask.cpp
* contrib/hbqt/QStyleHintReturnVariant.cpp
* contrib/hbqt/QStyleOption.cpp
* contrib/hbqt/QStyleOptionButton.cpp
* contrib/hbqt/QStyleOptionComboBox.cpp
* contrib/hbqt/QStyleOptionComplex.cpp
* contrib/hbqt/QStyleOptionDockWidget.cpp
* contrib/hbqt/QStyleOptionFocusRect.cpp
* contrib/hbqt/QStyleOptionFrame.cpp
* contrib/hbqt/QStyleOptionGroupBox.cpp
* contrib/hbqt/QStyleOptionHeader.cpp
* contrib/hbqt/QStyleOptionMenuItem.cpp
* contrib/hbqt/QStyleOptionProgressBar.cpp
* contrib/hbqt/QStyleOptionSizeGrip.cpp
* contrib/hbqt/QStyleOptionSlider.cpp
* contrib/hbqt/QStyleOptionSpinBox.cpp
* contrib/hbqt/QStyleOptionTab.cpp
* contrib/hbqt/QStyleOptionTabBarBase.cpp
* contrib/hbqt/QStyleOptionTabWidgetFrame.cpp
* contrib/hbqt/QStyleOptionTitleBar.cpp
* contrib/hbqt/QStyleOptionToolBar.cpp
* contrib/hbqt/QStyleOptionToolBox.cpp
* contrib/hbqt/QStyleOptionToolButton.cpp
* contrib/hbqt/QStyleOptionViewItem.cpp
* contrib/hbqt/QStylePainter.cpp
* contrib/hbqt/QSystemTrayIcon.cpp
* contrib/hbqt/QTabBar.cpp
* contrib/hbqt/QTableView.cpp
* contrib/hbqt/QTableWidget.cpp
* contrib/hbqt/QTableWidgetItem.cpp
* contrib/hbqt/QTabWidget.cpp
* contrib/hbqt/QTextBlock.cpp
* contrib/hbqt/QTextBlockFormat.cpp
* contrib/hbqt/QTextBlockGroup.cpp
* contrib/hbqt/QTextBoundaryFinder.cpp
* contrib/hbqt/QTextBrowser.cpp
* contrib/hbqt/QTextCharFormat.cpp
* contrib/hbqt/QTextCodec.cpp
* contrib/hbqt/QTextCursor.cpp
* contrib/hbqt/QTextDecoder.cpp
* contrib/hbqt/QTextDocument.cpp
* contrib/hbqt/QTextDocumentFragment.cpp
* contrib/hbqt/QTextDocumentWriter.cpp
* contrib/hbqt/QTextEdit.cpp
* contrib/hbqt/QTextEncoder.cpp
* contrib/hbqt/QTextFormat.cpp
* contrib/hbqt/QTextFragment.cpp
* contrib/hbqt/QTextFrame.cpp
* contrib/hbqt/QTextFrameFormat.cpp
* contrib/hbqt/QTextImageFormat.cpp
* contrib/hbqt/QTextInlineObject.cpp
* contrib/hbqt/QTextItem.cpp
* contrib/hbqt/QTextLayout.cpp
* contrib/hbqt/QTextLength.cpp
* contrib/hbqt/QTextLine.cpp
* contrib/hbqt/QTextObject.cpp
* contrib/hbqt/QTextStream.cpp
* contrib/hbqt/QTimeEdit.cpp
* contrib/hbqt/QTimer.cpp
* contrib/hbqt/QToolBar.cpp
* contrib/hbqt/QToolBox.cpp
* contrib/hbqt/QToolButton.cpp
* contrib/hbqt/QTreeView.cpp
* contrib/hbqt/QTreeWidget.cpp
* contrib/hbqt/QTreeWidgetItem.cpp
* contrib/hbqt/QUrl.cpp
* contrib/hbqt/QVariant.cpp
* contrib/hbqt/QVBoxLayout.cpp
* contrib/hbqt/QWebFrame.cpp
* contrib/hbqt/QWebHistory.cpp
* contrib/hbqt/QWebHistoryInterface.cpp
* contrib/hbqt/QWebHistoryItem.cpp
* contrib/hbqt/QWebHitTestResult.cpp
* contrib/hbqt/QWebPage.cpp
* contrib/hbqt/QWebPluginFactory.cpp
* contrib/hbqt/QWebSecurityOrigin.cpp
* contrib/hbqt/QWebSettings.cpp
* contrib/hbqt/QWebView.cpp
* contrib/hbqt/QWheelEvent.cpp
* contrib/hbqt/QWidget.cpp
* contrib/hbqt/QWidgetAction.cpp
* contrib/hbqt/QWidgetItem.cpp
* contrib/hbqt/QWindowsStyle.cpp
* contrib/hbqt/QWindowsXPStyle.cpp
* contrib/hbqt/QWizard.cpp
! Auto generated sources by virtue of changes in hbqtgen.prg
* contrib/hbqt/tests/demoqt.prg
* contrib/hbqt/TQAbstractButton.prg
* contrib/hbqt/TQAbstractItemModel.prg
* contrib/hbqt/TQAbstractItemView.prg
* contrib/hbqt/TQAbstractListModel.prg
* contrib/hbqt/TQAbstractPrintDialog.prg
* contrib/hbqt/TQAbstractScrollArea.prg
* contrib/hbqt/TQAbstractSlider.prg
* contrib/hbqt/TQAbstractSpinBox.prg
* contrib/hbqt/TQAbstractTableModel.prg
* contrib/hbqt/TQAction.prg
* contrib/hbqt/TQApplication.prg
* contrib/hbqt/TQBitmap.prg
* contrib/hbqt/TQBoxLayout.prg
* contrib/hbqt/TQBrush.prg
* contrib/hbqt/TQButtonGroup.prg
* contrib/hbqt/TQCalendarWidget.prg
* contrib/hbqt/TQCheckBox.prg
* contrib/hbqt/TQClipboard.prg
* contrib/hbqt/TQColor.prg
* contrib/hbqt/TQColorDialog.prg
* contrib/hbqt/TQComboBox.prg
* contrib/hbqt/TQCommandLinkButton.prg
* contrib/hbqt/TQCommonStyle.prg
* contrib/hbqt/TQConicalGradient.prg
* contrib/hbqt/TQCoreApplication.prg
* contrib/hbqt/TQCursor.prg
* contrib/hbqt/TQDateEdit.prg
* contrib/hbqt/TQDateTime.prg
* contrib/hbqt/TQDateTimeEdit.prg
* contrib/hbqt/TQDesktopWidget.prg
* contrib/hbqt/TQDial.prg
* contrib/hbqt/TQDialog.prg
* contrib/hbqt/TQDir.prg
* contrib/hbqt/TQDirModel.prg
* contrib/hbqt/TQDockWidget.prg
* contrib/hbqt/TQDoubleSpinBox.prg
* contrib/hbqt/TQDragEnterEvent.prg
* contrib/hbqt/TQDragLeaveEvent.prg
* contrib/hbqt/TQDragMoveEvent.prg
* contrib/hbqt/TQDropEvent.prg
* contrib/hbqt/TQErrorMessage.prg
* contrib/hbqt/TQEvent.prg
* contrib/hbqt/TQEventLoop.prg
* contrib/hbqt/TQFileDialog.prg
* contrib/hbqt/TQFileSystemModel.prg
* contrib/hbqt/TQFocusEvent.prg
* contrib/hbqt/TQFocusFrame.prg
* contrib/hbqt/TQFont.prg
* contrib/hbqt/TQFontComboBox.prg
* contrib/hbqt/TQFontDatabase.prg
* contrib/hbqt/TQFontDialog.prg
* contrib/hbqt/TQFontInfo.prg
* contrib/hbqt/TQFontMetrics.prg
* contrib/hbqt/TQFontMetricsF.prg
* contrib/hbqt/TQFormLayout.prg
* contrib/hbqt/TQFrame.prg
* contrib/hbqt/TQFtp.prg
* contrib/hbqt/TQGradient.prg
* contrib/hbqt/TQGridLayout.prg
* contrib/hbqt/TQGroupBox.prg
* contrib/hbqt/TQHBoxLayout.prg
* contrib/hbqt/TQHeaderView.prg
* contrib/hbqt/TQHttp.prg
* contrib/hbqt/TQIcon.prg
* contrib/hbqt/TQImage.prg
* contrib/hbqt/TQImageReader.prg
* contrib/hbqt/TQImageWriter.prg
* contrib/hbqt/TQInputDialog.prg
* contrib/hbqt/TQInputEvent.prg
* contrib/hbqt/TQIODevice.prg
* contrib/hbqt/TQKeyEvent.prg
* contrib/hbqt/TQKeySequence.prg
* contrib/hbqt/TQLabel.prg
* contrib/hbqt/TQLatin1Char.prg
* contrib/hbqt/TQLatin1String.prg
* contrib/hbqt/TQLayout.prg
* contrib/hbqt/TQLayoutItem.prg
* contrib/hbqt/TQLCDNumber.prg
* contrib/hbqt/TQLine.prg
* contrib/hbqt/TQLinearGradient.prg
* contrib/hbqt/TQLineEdit.prg
* contrib/hbqt/TQList.prg
* contrib/hbqt/TQListView.prg
* contrib/hbqt/TQListWidget.prg
* contrib/hbqt/TQListWidgetItem.prg
* contrib/hbqt/TQMainWindow.prg
* contrib/hbqt/TQMenu.prg
* contrib/hbqt/TQMenuBar.prg
* contrib/hbqt/TQMessageBox.prg
* contrib/hbqt/TQModelIndex.prg
* contrib/hbqt/TQMouseEvent.prg
* contrib/hbqt/TQMoveEvent.prg
* contrib/hbqt/TQObject.prg
* contrib/hbqt/TQPageSetupDialog.prg
* contrib/hbqt/TQPaintDevice.prg
* contrib/hbqt/TQPainter.prg
* contrib/hbqt/TQPaintEvent.prg
* contrib/hbqt/TQPalette.prg
* contrib/hbqt/TQPen.prg
* contrib/hbqt/TQPicture.prg
* contrib/hbqt/TQPixmap.prg
* contrib/hbqt/TQPoint.prg
* contrib/hbqt/TQPointF.prg
* contrib/hbqt/TQPrintDialog.prg
* contrib/hbqt/TQPrintEngine.prg
* contrib/hbqt/TQPrinter.prg
* contrib/hbqt/TQPrintPreviewDialog.prg
* contrib/hbqt/TQProcess.prg
* contrib/hbqt/TQProgressBar.prg
* contrib/hbqt/TQProgressDialog.prg
* contrib/hbqt/TQPushButton.prg
* contrib/hbqt/TQRadialGradient.prg
* contrib/hbqt/TQRadioButton.prg
* contrib/hbqt/TQRect.prg
* contrib/hbqt/TQRectF.prg
* contrib/hbqt/TQRegion.prg
* contrib/hbqt/TQResizeEvent.prg
* contrib/hbqt/TQResource.prg
* contrib/hbqt/TQScrollArea.prg
* contrib/hbqt/TQScrollBar.prg
* contrib/hbqt/TQSignalMapper.prg
* contrib/hbqt/TQSize.prg
* contrib/hbqt/TQSizeF.prg
* contrib/hbqt/TQSizeGrip.prg
* contrib/hbqt/TQSizePolicy.prg
* contrib/hbqt/TQSlider.prg
* contrib/hbqt/TQSound.prg
* contrib/hbqt/TQSpinBox.prg
* contrib/hbqt/TQSplashScreen.prg
* contrib/hbqt/TQSplitter.prg
* contrib/hbqt/TQStandardItem.prg
* contrib/hbqt/TQStandardItemModel.prg
* contrib/hbqt/TQStatusBar.prg
* contrib/hbqt/TQStringList.prg
* contrib/hbqt/TQStringListModel.prg
* contrib/hbqt/TQStyle.prg
* contrib/hbqt/TQStyledItemDelegate.prg
* contrib/hbqt/TQStyleFactory.prg
* contrib/hbqt/TQStyleHintReturn.prg
* contrib/hbqt/TQStyleHintReturnMask.prg
* contrib/hbqt/TQStyleHintReturnVariant.prg
* contrib/hbqt/TQStyleOption.prg
* contrib/hbqt/TQStyleOptionButton.prg
* contrib/hbqt/TQStyleOptionComboBox.prg
* contrib/hbqt/TQStyleOptionComplex.prg
* contrib/hbqt/TQStyleOptionDockWidget.prg
* contrib/hbqt/TQStyleOptionFocusRect.prg
* contrib/hbqt/TQStyleOptionFrame.prg
* contrib/hbqt/TQStyleOptionGroupBox.prg
* contrib/hbqt/TQStyleOptionHeader.prg
* contrib/hbqt/TQStyleOptionMenuItem.prg
* contrib/hbqt/TQStyleOptionProgressBar.prg
* contrib/hbqt/TQStyleOptionSizeGrip.prg
* contrib/hbqt/TQStyleOptionSlider.prg
* contrib/hbqt/TQStyleOptionSpinBox.prg
* contrib/hbqt/TQStyleOptionTab.prg
* contrib/hbqt/TQStyleOptionTabBarBase.prg
* contrib/hbqt/TQStyleOptionTabWidgetFrame.prg
* contrib/hbqt/TQStyleOptionTitleBar.prg
* contrib/hbqt/TQStyleOptionToolBar.prg
* contrib/hbqt/TQStyleOptionToolBox.prg
* contrib/hbqt/TQStyleOptionToolButton.prg
* contrib/hbqt/TQStyleOptionViewItem.prg
* contrib/hbqt/TQStylePainter.prg
* contrib/hbqt/TQSystemTrayIcon.prg
* contrib/hbqt/TQTabBar.prg
* contrib/hbqt/TQTableView.prg
* contrib/hbqt/TQTableWidget.prg
* contrib/hbqt/TQTableWidgetItem.prg
* contrib/hbqt/TQTabWidget.prg
* contrib/hbqt/TQTextBlock.prg
* contrib/hbqt/TQTextBlockFormat.prg
* contrib/hbqt/TQTextBlockGroup.prg
* contrib/hbqt/TQTextBoundaryFinder.prg
* contrib/hbqt/TQTextBrowser.prg
* contrib/hbqt/TQTextCharFormat.prg
* contrib/hbqt/TQTextCodec.prg
* contrib/hbqt/TQTextCursor.prg
* contrib/hbqt/TQTextDecoder.prg
* contrib/hbqt/TQTextDocument.prg
* contrib/hbqt/TQTextDocumentFragment.prg
* contrib/hbqt/TQTextDocumentWriter.prg
* contrib/hbqt/TQTextEdit.prg
* contrib/hbqt/TQTextEncoder.prg
* contrib/hbqt/TQTextFormat.prg
* contrib/hbqt/TQTextFragment.prg
* contrib/hbqt/TQTextFrame.prg
* contrib/hbqt/TQTextFrameFormat.prg
* contrib/hbqt/TQTextImageFormat.prg
* contrib/hbqt/TQTextInlineObject.prg
* contrib/hbqt/TQTextItem.prg
* contrib/hbqt/TQTextLayout.prg
* contrib/hbqt/TQTextLength.prg
* contrib/hbqt/TQTextLine.prg
* contrib/hbqt/TQTextObject.prg
* contrib/hbqt/TQTextStream.prg
* contrib/hbqt/TQTimeEdit.prg
* contrib/hbqt/TQTimer.prg
* contrib/hbqt/TQToolBar.prg
* contrib/hbqt/TQToolBox.prg
* contrib/hbqt/TQToolButton.prg
* contrib/hbqt/TQTreeView.prg
* contrib/hbqt/TQTreeWidget.prg
* contrib/hbqt/TQTreeWidgetItem.prg
* contrib/hbqt/TQUrl.prg
* contrib/hbqt/TQVariant.prg
* contrib/hbqt/TQVBoxLayout.prg
* contrib/hbqt/TQWebFrame.prg
* contrib/hbqt/TQWebHistory.prg
* contrib/hbqt/TQWebHistoryInterface.prg
* contrib/hbqt/TQWebHistoryItem.prg
* contrib/hbqt/TQWebHitTestResult.prg
* contrib/hbqt/TQWebPage.prg
* contrib/hbqt/TQWebPluginFactory.prg
* contrib/hbqt/TQWebSecurityOrigin.prg
* contrib/hbqt/TQWebSettings.prg
* contrib/hbqt/TQWebView.prg
* contrib/hbqt/TQWheelEvent.prg
* contrib/hbqt/TQWidget.prg
* contrib/hbqt/TQWidgetAction.prg
* contrib/hbqt/TQWidgetItem.prg
* contrib/hbqt/TQWindowsStyle.prg
* contrib/hbqt/TQWindowsXPStyle.prg
* contrib/hbqt/TQWizard.prg
! Auto generated sources by virtue of changes in hbqtgen.prg
[ Detailed analysis will follow in a separate thread ]
2009-10-15 12:53 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/qth/QIODevice.qth
* contrib/hbqt/qth/QWidget.qth

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QAbstractButton>
@@ -74,19 +75,10 @@
* QAbstractButton ( QWidget * parent = 0 )
* ~QAbstractButton ()
*/
HB_FUNC( QT_QABSTRACTBUTTON )
{
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QABSTRACTBUTTON_DESTROY )
{
delete hbqt_par_QAbstractButton( 1 );
}
/*
* bool autoExclusive () const
*/
@@ -132,7 +124,7 @@ HB_FUNC( QT_QABSTRACTBUTTON_GROUP )
*/
HB_FUNC( QT_QABSTRACTBUTTON_ICON )
{
hb_retptr( new QIcon( hbqt_par_QAbstractButton( 1 )->icon() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QIcon( hbqt_par_QAbstractButton( 1 )->icon() ) ) );
}
/*
@@ -140,7 +132,7 @@ HB_FUNC( QT_QABSTRACTBUTTON_ICON )
*/
HB_FUNC( QT_QABSTRACTBUTTON_ICONSIZE )
{
hb_retptr( new QSize( hbqt_par_QAbstractButton( 1 )->iconSize() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QAbstractButton( 1 )->iconSize() ) ) );
}
/*
@@ -244,7 +236,7 @@ HB_FUNC( QT_QABSTRACTBUTTON_SETTEXT )
*/
HB_FUNC( QT_QABSTRACTBUTTON_SHORTCUT )
{
hb_retptr( new QKeySequence( hbqt_par_QAbstractButton( 1 )->shortcut() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QKeySequence( hbqt_par_QAbstractButton( 1 )->shortcut() ) ) );
}
/*

View File

@@ -80,6 +80,7 @@
* // virtual QModelIndexList match ( const QModelIndex & start, int role, const QVariant & value, int hits = 1, Qt::MatchFlags flags = Qt::MatchFlags( Qt::MatchStartsWith | Qt::MatchWrap ) ) const
*/
#include <QtCore/QPointer>
#include <QSize>
#include <QStringList>
@@ -91,10 +92,6 @@
* QAbstractItemModel ( QObject * parent = 0 )
* virtual ~QAbstractItemModel ()
*/
HB_FUNC( QT_QABSTRACTITEMMODEL )
{
//hb_retptr( ( QAbstractItemModel* ) new QAbstractItemModel( hbqt_par_QObject( 1 ) ) );
}
HB_FUNC( QT_HBDBFMODEL )
{
@@ -117,20 +114,15 @@ HB_FUNC( QT_HBDBFMODEL_HBSETROWCOLUMNS )
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_DESTROY )
HB_FUNC( QT_QABSTRACTITEMMODEL )
{
delete hbqt_par_QAbstractItemModel( 1 );
}
/*
* virtual QModelIndex buddy ( const QModelIndex & index ) const
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_BUDDY )
{
hb_retptr( new QModelIndex( hbqt_par_QAbstractItemModel( 1 )->buddy( *hbqt_par_QModelIndex( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QAbstractItemModel( 1 )->buddy( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*
@@ -154,7 +146,7 @@ HB_FUNC( QT_QABSTRACTITEMMODEL_COLUMNCOUNT )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_DATA )
{
hb_retptr( new QVariant( hbqt_par_QAbstractItemModel( 1 )->data( *hbqt_par_QModelIndex( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : Qt::DisplayRole ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QAbstractItemModel( 1 )->data( *hbqt_par_QModelIndex( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : Qt::DisplayRole ) ) ) ) );
}
/*
@@ -202,7 +194,7 @@ HB_FUNC( QT_QABSTRACTITEMMODEL_HASINDEX )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_HEADERDATA )
{
hb_retptr( new QVariant( hbqt_par_QAbstractItemModel( 1 )->headerData( hb_parni( 2 ), ( Qt::Orientation ) hb_parni( 3 ), ( HB_ISNUM( 4 ) ? hb_parni( 4 ) : Qt::DisplayRole ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QAbstractItemModel( 1 )->headerData( hb_parni( 2 ), ( Qt::Orientation ) hb_parni( 3 ), ( HB_ISNUM( 4 ) ? hb_parni( 4 ) : Qt::DisplayRole ) ) ) ) );
}
/*
@@ -210,7 +202,7 @@ HB_FUNC( QT_QABSTRACTITEMMODEL_HEADERDATA )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_INDEX )
{
hb_retptr( new QModelIndex( hbqt_par_QAbstractItemModel( 1 )->index( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QModelIndex( 4 ) : QModelIndex() ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QAbstractItemModel( 1 )->index( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QModelIndex( 4 ) : QModelIndex() ) ) ) ) );
}
/*
@@ -258,7 +250,7 @@ HB_FUNC( QT_QABSTRACTITEMMODEL_MIMEDATA )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_MIMETYPES )
{
hb_retptr( new QStringList( hbqt_par_QAbstractItemModel( 1 )->mimeTypes() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QAbstractItemModel( 1 )->mimeTypes() ) ) );
}
/*
@@ -266,7 +258,7 @@ HB_FUNC( QT_QABSTRACTITEMMODEL_MIMETYPES )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_PARENT )
{
hb_retptr( new QModelIndex( hbqt_par_QAbstractItemModel( 1 )->parent( *hbqt_par_QModelIndex( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QAbstractItemModel( 1 )->parent( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*
@@ -338,7 +330,7 @@ HB_FUNC( QT_QABSTRACTITEMMODEL_SETSUPPORTEDDRAGACTIONS )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_SIBLING )
{
hb_retptr( new QModelIndex( hbqt_par_QAbstractItemModel( 1 )->sibling( hb_parni( 2 ), hb_parni( 3 ), *hbqt_par_QModelIndex( 4 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QAbstractItemModel( 1 )->sibling( hb_parni( 2 ), hb_parni( 3 ), *hbqt_par_QModelIndex( 4 ) ) ) ) );
}
/*
@@ -354,7 +346,7 @@ HB_FUNC( QT_QABSTRACTITEMMODEL_SORT )
*/
HB_FUNC( QT_QABSTRACTITEMMODEL_SPAN )
{
hb_retptr( new QSize( hbqt_par_QAbstractItemModel( 1 )->span( *hbqt_par_QModelIndex( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QAbstractItemModel( 1 )->span( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*

View File

@@ -76,6 +76,7 @@
* enum SelectionMode { SingleSelection, ContiguousSelection, ExtendedSelection, MultiSelection, NoSelection }
*/
#include <QtCore/QPointer>
#include <QtGui/QAbstractItemView>
@@ -84,19 +85,10 @@
* QAbstractItemView ( QWidget * parent = 0 )
* ~QAbstractItemView ()
*/
HB_FUNC( QT_QABSTRACTITEMVIEW )
{
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_DESTROY )
{
delete hbqt_par_QAbstractItemView( 1 );
}
/*
* bool alternatingRowColors () const
*/
@@ -126,7 +118,7 @@ HB_FUNC( QT_QABSTRACTITEMVIEW_CLOSEPERSISTENTEDITOR )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_CURRENTINDEX )
{
hb_retptr( new QModelIndex( hbqt_par_QAbstractItemView( 1 )->currentIndex() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QAbstractItemView( 1 )->currentIndex() ) ) );
}
/*
@@ -182,7 +174,7 @@ HB_FUNC( QT_QABSTRACTITEMVIEW_HORIZONTALSCROLLMODE )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_ICONSIZE )
{
hb_retptr( new QSize( hbqt_par_QAbstractItemView( 1 )->iconSize() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QAbstractItemView( 1 )->iconSize() ) ) );
}
/*
@@ -190,7 +182,7 @@ HB_FUNC( QT_QABSTRACTITEMVIEW_ICONSIZE )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_INDEXAT )
{
hb_retptr( new QModelIndex( hbqt_par_QAbstractItemView( 1 )->indexAt( *hbqt_par_QPoint( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QAbstractItemView( 1 )->indexAt( *hbqt_par_QPoint( 2 ) ) ) ) );
}
/*
@@ -262,7 +254,7 @@ HB_FUNC( QT_QABSTRACTITEMVIEW_OPENPERSISTENTEDITOR )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_ROOTINDEX )
{
hb_retptr( new QModelIndex( hbqt_par_QAbstractItemView( 1 )->rootIndex() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QAbstractItemView( 1 )->rootIndex() ) ) );
}
/*
@@ -486,7 +478,7 @@ HB_FUNC( QT_QABSTRACTITEMVIEW_SIZEHINTFORCOLUMN )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_SIZEHINTFORINDEX )
{
hb_retptr( new QSize( hbqt_par_QAbstractItemView( 1 )->sizeHintForIndex( *hbqt_par_QModelIndex( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QAbstractItemView( 1 )->sizeHintForIndex( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*
@@ -526,7 +518,7 @@ HB_FUNC( QT_QABSTRACTITEMVIEW_VERTICALSCROLLMODE )
*/
HB_FUNC( QT_QABSTRACTITEMVIEW_VISUALRECT )
{
hb_retptr( new QRect( hbqt_par_QAbstractItemView( 1 )->visualRect( *hbqt_par_QModelIndex( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QAbstractItemView( 1 )->visualRect( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtCore/QAbstractListModel>
@@ -74,25 +75,16 @@
* QAbstractListModel ( QObject * parent = 0 )
* ~QAbstractListModel ()
*/
HB_FUNC( QT_QABSTRACTLISTMODEL )
{
//hb_retptr( ( QAbstractListModel* ) new QAbstractListModel() );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QABSTRACTLISTMODEL_DESTROY )
{
delete hbqt_par_QAbstractListModel( 1 );
}
/*
* virtual QModelIndex index ( int row, int column = 0, const QModelIndex & parent = QModelIndex() ) const
*/
HB_FUNC( QT_QABSTRACTLISTMODEL_INDEX )
{
hb_retptr( new QModelIndex( hbqt_par_QAbstractListModel( 1 )->index( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QModelIndex( 4 ) : QModelIndex() ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QAbstractListModel( 1 )->index( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QModelIndex( 4 ) : QModelIndex() ) ) ) ) );
}

View File

@@ -81,6 +81,7 @@
* void setOptionTabs ( const QList<QWidget *> & tabs )
*/
#include <QtCore/QPointer>
#include <QtGui/QAbstractPrintDialog>
@@ -88,19 +89,10 @@
/*
* QAbstractPrintDialog ( QPrinter * printer, QWidget * parent = 0 )
*/
HB_FUNC( QT_QABSTRACTPRINTDIALOG )
{
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QABSTRACTPRINTDIALOG_DESTROY )
{
}
/*
* virtual int exec () = 0
*/

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QAbstractScrollArea>
@@ -74,19 +75,10 @@
* QAbstractScrollArea ( QWidget * parent = 0 )
* ~QAbstractScrollArea ()
*/
HB_FUNC( QT_QABSTRACTSCROLLAREA )
{
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QABSTRACTSCROLLAREA_DESTROY )
{
delete hbqt_par_QAbstractScrollArea( 1 );
}
/*
* void addScrollBarWidget ( QWidget * widget, Qt::Alignment alignment )
*/
@@ -124,7 +116,7 @@ HB_FUNC( QT_QABSTRACTSCROLLAREA_HORIZONTALSCROLLBARPOLICY )
*/
HB_FUNC( QT_QABSTRACTSCROLLAREA_MAXIMUMVIEWPORTSIZE )
{
hb_retptr( new QSize( hbqt_par_QAbstractScrollArea( 1 )->maximumViewportSize() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QAbstractScrollArea( 1 )->maximumViewportSize() ) ) );
}
/*
@@ -132,7 +124,7 @@ HB_FUNC( QT_QABSTRACTSCROLLAREA_MAXIMUMVIEWPORTSIZE )
*/
HB_FUNC( QT_QABSTRACTSCROLLAREA_SCROLLBARWIDGETS )
{
hb_retptr( new QWidgetList( hbqt_par_QAbstractScrollArea( 1 )->scrollBarWidgets( ( Qt::Alignment ) hb_parni( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QWidgetList( hbqt_par_QAbstractScrollArea( 1 )->scrollBarWidgets( ( Qt::Alignment ) hb_parni( 2 ) ) ) ) );
}
/*

View File

@@ -70,6 +70,7 @@
* enum SliderAction { SliderNoAction, SliderSingleStepAdd, SliderSingleStepSub, SliderPageStepAdd, ..., SliderMove }
*/
#include <QtCore/QPointer>
#include <QtGui/QAbstractSlider>
@@ -78,19 +79,10 @@
* QAbstractSlider ( QWidget * parent = 0 )
* ~QAbstractSlider ()
*/
HB_FUNC( QT_QABSTRACTSLIDER )
{
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QABSTRACTSLIDER_DESTROY )
{
delete hbqt_par_QAbstractSlider( 1 );
}
/*
* bool hasTracking () const
*/

View File

@@ -73,6 +73,7 @@
* enum StepEnabledFlag { StepNone, StepUpEnabled, StepDownEnabled }
*/
#include <QtCore/QPointer>
#include <QtGui/QAbstractSpinBox>
@@ -81,19 +82,10 @@
* QAbstractSpinBox ( QWidget * parent = 0 )
* ~QAbstractSpinBox ()
*/
HB_FUNC( QT_QABSTRACTSPINBOX )
{
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QABSTRACTSPINBOX_DESTROY )
{
delete hbqt_par_QAbstractSpinBox( 1 );
}
/*
* Qt::Alignment alignment () const
*/

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtCore/QAbstractTableModel>
@@ -74,25 +75,16 @@
* QAbstractTableModel ( QObject * parent = 0 )
* ~QAbstractTableModel ()
*/
HB_FUNC( QT_QABSTRACTTABLEMODEL )
{
// hb_retptr( ( QAbstractTableModel * ) new QAbstractTableModel() );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QABSTRACTTABLEMODEL_DESTROY )
{
delete hbqt_par_QAbstractTableModel( 1 );
}
/*
* virtual QModelIndex index ( int row, int column, const QModelIndex & parent = QModelIndex() ) const
*/
HB_FUNC( QT_QABSTRACTTABLEMODEL_INDEX )
{
hb_retptr( new QModelIndex( hbqt_par_QAbstractTableModel( 1 )->index( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QModelIndex( 4 ) : QModelIndex() ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QAbstractTableModel( 1 )->index( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QModelIndex( 4 ) : QModelIndex() ) ) ) ) );
}

View File

@@ -83,6 +83,7 @@
* QList<QKeySequence> shortcuts () const
*/
#include <QtCore/QPointer>
#include <QtGui/QAction>
@@ -93,24 +94,23 @@
* QAction ( const QIcon & icon, const QString & text, QObject * parent )
* ~QAction ()
*/
HB_FUNC( QT_QACTION )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QAction > pObj = NULL;
if( HB_ISPOINTER( 1 ) )
hb_retptr( new QAction( hbqt_par_QObject( 1 ) ) );
pObj = new QAction( hbqt_par_QObject( 1 ) ) ;
else if( HB_ISPOINTER( 2 ) )
hb_retptr( new QAction( hbqt_par_QString( 1 ), hbqt_par_QObject( 2 ) ) );
pObj = new QAction( hbqt_par_QString( 1 ), hbqt_par_QObject( 2 ) ) ;
else if( HB_ISPOINTER( 3 ) )
hb_retptr( new QAction( *hbqt_par_QIcon( 1 ), hbqt_par_QString( 2 ), hbqt_par_QObject( 3 ) ) );
}
pObj = new QAction( *hbqt_par_QIcon( 1 ), hbqt_par_QString( 2 ), hbqt_par_QObject( 3 ) ) ;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QACTION_DESTROY )
{
delete hbqt_par_QAction( 1 );
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* QActionGroup * actionGroup () const
*/
@@ -140,7 +140,7 @@ HB_FUNC( QT_QACTION_AUTOREPEAT )
*/
HB_FUNC( QT_QACTION_DATA )
{
hb_retptr( new QVariant( hbqt_par_QAction( 1 )->data() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QAction( 1 )->data() ) ) );
}
/*
@@ -148,7 +148,7 @@ HB_FUNC( QT_QACTION_DATA )
*/
HB_FUNC( QT_QACTION_FONT )
{
hb_retptr( new QFont( hbqt_par_QAction( 1 )->font() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QAction( 1 )->font() ) ) );
}
/*
@@ -156,7 +156,7 @@ HB_FUNC( QT_QACTION_FONT )
*/
HB_FUNC( QT_QACTION_ICON )
{
hb_retptr( new QIcon( hbqt_par_QAction( 1 )->icon() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QIcon( hbqt_par_QAction( 1 )->icon() ) ) );
}
/*
@@ -388,7 +388,7 @@ HB_FUNC( QT_QACTION_SETWHATSTHIS )
*/
HB_FUNC( QT_QACTION_SHORTCUT )
{
hb_retptr( new QKeySequence( hbqt_par_QAction( 1 )->shortcut() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QKeySequence( hbqt_par_QAction( 1 )->shortcut() ) ) );
}
/*

View File

@@ -71,6 +71,7 @@
* enum Type { Tty, GuiClient, GuiServer }
*/
#include <QtCore/QPointer>
#include "hbapi.h"
#include "hbinit.h"
@@ -107,27 +108,6 @@ static char ** s_argv;
* virtual ~QApplication ()
*/
#if 0
HB_FUNC( QT_QAPPLICATION )
{
int i_argc = 0;
char** c_argv = NULL;
app = new QApplication( i_argc, c_argv );
hb_retptr( ( QApplication* ) app);
}
#endif
HB_FUNC( QT_QAPPLICATION )
{
#if 0
int i_argc;
char ** c_argv;
i_argc = hb_cmdargARGC();
c_argv = hb_cmdargARGV();
app = new QApplication( i_argc, c_argv );
#endif
hb_retptr( ( QApplication * ) app );
}
static void hbqt_Exit( void * cargo )
{
@@ -181,31 +161,17 @@ HB_FUNC( QT_QAPPLICATION_QUIT )
app->quit();
}
#if 0
HB_FUNC( QT_QAPPLICATION_EXECUTE )
HB_FUNC( QT_QAPPLICATION )
{
hb_retni( app->exec() );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QApplication > pObj = NULL;
HB_FUNC( QT_QAPPLICATION_SETSTYLE )
{
app->setStyle( hb_parcx( 2 ) );
}
pObj = ( QApplication * ) app ;
HB_FUNC( QT_QAPPLICATION_QUIT )
{
app->quit();
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
#endif
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QAPPLICATION_DESTROY )
{
delete hbqt_par_QApplication( 1 );
}
/*
* virtual void commitData ( QSessionManager & manager )
*/
@@ -307,7 +273,7 @@ HB_FUNC( QT_QAPPLICATION_ALERT )
*/
HB_FUNC( QT_QAPPLICATION_ALLWIDGETS )
{
hb_retptr( new QWidgetList( hbqt_par_QApplication( 1 )->allWidgets() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QWidgetList( hbqt_par_QApplication( 1 )->allWidgets() ) ) );
}
/*
@@ -395,7 +361,7 @@ HB_FUNC( QT_QAPPLICATION_FOCUSWIDGET )
*/
HB_FUNC( QT_QAPPLICATION_FONT )
{
hb_retptr( new QFont( hbqt_par_QApplication( 1 )->font() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QApplication( 1 )->font() ) ) );
}
/*
@@ -403,7 +369,7 @@ HB_FUNC( QT_QAPPLICATION_FONT )
*/
HB_FUNC( QT_QAPPLICATION_FONT_1 )
{
hb_retptr( new QFont( hbqt_par_QApplication( 1 )->font( hbqt_par_QWidget( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QApplication( 1 )->font( hbqt_par_QWidget( 2 ) ) ) ) );
}
/*
@@ -411,7 +377,7 @@ HB_FUNC( QT_QAPPLICATION_FONT_1 )
*/
HB_FUNC( QT_QAPPLICATION_FONT_2 )
{
hb_retptr( new QFont( hbqt_par_QApplication( 1 )->font( hbqt_par_char( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QApplication( 1 )->font( hbqt_par_char( 2 ) ) ) ) );
}
/*
@@ -419,7 +385,7 @@ HB_FUNC( QT_QAPPLICATION_FONT_2 )
*/
HB_FUNC( QT_QAPPLICATION_FONTMETRICS )
{
hb_retptr( new QFontMetrics( hbqt_par_QApplication( 1 )->fontMetrics() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFontMetrics( hbqt_par_QApplication( 1 )->fontMetrics() ) ) );
}
/*
@@ -427,7 +393,7 @@ HB_FUNC( QT_QAPPLICATION_FONTMETRICS )
*/
HB_FUNC( QT_QAPPLICATION_GLOBALSTRUT )
{
hb_retptr( new QSize( hbqt_par_QApplication( 1 )->globalStrut() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QApplication( 1 )->globalStrut() ) ) );
}
/*
@@ -475,7 +441,7 @@ HB_FUNC( QT_QAPPLICATION_KEYBOARDINPUTINTERVAL )
*/
HB_FUNC( QT_QAPPLICATION_KEYBOARDINPUTLOCALE )
{
hb_retptr( new QLocale( hbqt_par_QApplication( 1 )->keyboardInputLocale() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QLocale( hbqt_par_QApplication( 1 )->keyboardInputLocale() ) ) );
}
/*
@@ -515,7 +481,7 @@ HB_FUNC( QT_QAPPLICATION_OVERRIDECURSOR )
*/
HB_FUNC( QT_QAPPLICATION_PALETTE )
{
hb_retptr( new QPalette( hbqt_par_QApplication( 1 )->palette() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPalette( hbqt_par_QApplication( 1 )->palette() ) ) );
}
/*
@@ -523,7 +489,7 @@ HB_FUNC( QT_QAPPLICATION_PALETTE )
*/
HB_FUNC( QT_QAPPLICATION_PALETTE_1 )
{
hb_retptr( new QPalette( hbqt_par_QApplication( 1 )->palette( hbqt_par_QWidget( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPalette( hbqt_par_QApplication( 1 )->palette( hbqt_par_QWidget( 2 ) ) ) ) );
}
/*
@@ -531,7 +497,7 @@ HB_FUNC( QT_QAPPLICATION_PALETTE_1 )
*/
HB_FUNC( QT_QAPPLICATION_PALETTE_2 )
{
hb_retptr( new QPalette( hbqt_par_QApplication( 1 )->palette( hbqt_par_char( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPalette( hbqt_par_QApplication( 1 )->palette( hbqt_par_char( 2 ) ) ) ) );
}
/*
@@ -763,7 +729,7 @@ HB_FUNC( QT_QAPPLICATION_TOPLEVELAT_1 )
*/
HB_FUNC( QT_QAPPLICATION_TOPLEVELWIDGETS )
{
hb_retptr( new QWidgetList( hbqt_par_QApplication( 1 )->topLevelWidgets() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QWidgetList( hbqt_par_QApplication( 1 )->topLevelWidgets() ) ) );
}
/*
@@ -803,7 +769,7 @@ HB_FUNC( QT_QAPPLICATION_WIDGETAT_1 )
*/
HB_FUNC( QT_QAPPLICATION_WINDOWICON )
{
hb_retptr( new QIcon( hbqt_par_QApplication( 1 )->windowIcon() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QIcon( hbqt_par_QApplication( 1 )->windowIcon() ) ) );
}
/*

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QBitmap>
@@ -78,53 +79,52 @@
* QBitmap ( const QString & fileName, const char * format = 0 )
* ~QBitmap ()
*/
HB_FUNC( QT_QBITMAP )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
hb_retptr( ( QBitmap* ) new QBitmap( *hbqt_par_QBitmap( 1 ) ) );
pObj = ( QBitmap* ) new QBitmap( *hbqt_par_QBitmap( 1 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
{
hb_retptr( ( QBitmap* ) new QBitmap( hbqt_par_QString( 1 ), ( const char * ) 0 ) );
pObj = ( QBitmap* ) new QBitmap( hbqt_par_QString( 1 ), ( const char * ) 0 ) ;
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISCHAR( 2 ) )
{
hb_retptr( ( QBitmap* ) new QBitmap( hbqt_par_QString( 1 ), hb_parc( 2 ) ) );
pObj = ( QBitmap* ) new QBitmap( hbqt_par_QString( 1 ), hb_parc( 2 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) )
{
hb_retptr( ( QBitmap* ) new QBitmap( hb_parni( 1 ), hb_parni( 2 ) ) );
pObj = ( QBitmap* ) new QBitmap( hb_parni( 1 ), hb_parni( 2 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
if( ( QString ) "QPixmap" == hbqt_par_QString( 1 ) )
{
hb_retptr( ( QBitmap* ) new QBitmap( *hbqt_par_QPixmap( 2 ) ) );
pObj = ( QBitmap* ) new QBitmap( *hbqt_par_QPixmap( 2 ) ) ;
}
else if( ( QString ) "QSize" == hbqt_par_QString( 1 ) )
{
hb_retptr( ( QBitmap* ) new QBitmap( *hbqt_par_QSize( 2 ) ) );
pObj = ( QBitmap* ) new QBitmap( *hbqt_par_QSize( 2 ) ) ;
}
else
{
hb_retptr( ( QBitmap* ) new QBitmap() );
pObj = ( QBitmap* ) new QBitmap() ;
}
}
else
{
hb_retptr( ( QBitmap* ) new QBitmap() );
pObj = ( QBitmap* ) new QBitmap() ;
}
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QBITMAP_DESTROY )
{
delete hbqt_par_QBitmap( 1 );
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QBitmap" );
hb_retptrGC( p );
}
/*
* void clear ()
*/
@@ -138,7 +138,7 @@ HB_FUNC( QT_QBITMAP_CLEAR )
*/
HB_FUNC( QT_QBITMAP_TRANSFORMED )
{
hb_retptr( new QBitmap( hbqt_par_QBitmap( 1 )->transformed( *hbqt_par_QTransform( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBitmap( hbqt_par_QBitmap( 1 )->transformed( *hbqt_par_QTransform( 2 ) ) ) ) );
}
/*
@@ -146,7 +146,7 @@ HB_FUNC( QT_QBITMAP_TRANSFORMED )
*/
HB_FUNC( QT_QBITMAP_TRANSFORMED_1 )
{
hb_retptr( new QBitmap( hbqt_par_QBitmap( 1 )->transformed( *hbqt_par_QMatrix( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBitmap( hbqt_par_QBitmap( 1 )->transformed( *hbqt_par_QMatrix( 2 ) ) ) ) );
}
/*
@@ -154,7 +154,7 @@ HB_FUNC( QT_QBITMAP_TRANSFORMED_1 )
*/
HB_FUNC( QT_QBITMAP_FROMIMAGE )
{
hb_retptr( new QBitmap( hbqt_par_QBitmap( 1 )->fromImage( *hbqt_par_QImage( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::ImageConversionFlags ) hb_parni( 3 ) : ( Qt::ImageConversionFlags ) Qt::AutoColor ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBitmap( hbqt_par_QBitmap( 1 )->fromImage( *hbqt_par_QImage( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::ImageConversionFlags ) hb_parni( 3 ) : ( Qt::ImageConversionFlags ) Qt::AutoColor ) ) ) ) );
}

View File

@@ -70,6 +70,7 @@
* enum Direction { LeftToRight, RightToLeft, TopToBottom, BottomToTop }
*/
#include <QtCore/QPointer>
#include <QtGui/QBoxLayout>
@@ -78,20 +79,18 @@
* QBoxLayout ( Direction dir, QWidget * parent = 0 )
* ~QBoxLayout ()
*/
HB_FUNC( QT_QBOXLAYOUT )
{
hb_retptr( ( QBoxLayout* ) new QBoxLayout( ( QBoxLayout::Direction ) hb_parni( 1 ),
hbqt_par_QWidget( 2 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QBoxLayout > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QBOXLAYOUT_DESTROY )
{
delete hbqt_par_QBoxLayout( 1 );
}
pObj = ( QBoxLayout* ) new QBoxLayout( ( QBoxLayout::Direction ) hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* void addLayout ( QLayout * layout, int stretch = 0 )
*/

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QBrush>
@@ -83,31 +84,35 @@
* QBrush ( const QGradient & gradient )
* ~QBrush ()
*/
HB_FUNC( QT_QBRUSH )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
hb_retptr( ( QBrush* ) new QBrush( *hbqt_par_QBrush( 1 ) ) );
pObj = ( QBrush* ) new QBrush( *hbqt_par_QBrush( 1 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISNUM( 1 ) )
{
hb_retptr( ( QBrush* ) new QBrush( ( Qt::GlobalColor ) hb_parni( 1 ), Qt::SolidPattern ) );
pObj = ( QBrush* ) new QBrush( ( Qt::GlobalColor ) hb_parni( 1 ), Qt::SolidPattern ) ;
}
else if( hb_pcount() == 2 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) )
{
hb_retptr( ( QBrush* ) new QBrush( ( Qt::GlobalColor ) hb_parni( 1 ), ( Qt::BrushStyle ) hb_parni( 2 ) ) );
pObj = ( QBrush* ) new QBrush( ( Qt::GlobalColor ) hb_parni( 1 ), ( Qt::BrushStyle ) hb_parni( 2 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISNUM( 2 ) )
{
hb_retptr( ( QBrush* ) new QBrush( *hbqt_par_QColor( 1 ), ( Qt::BrushStyle ) hb_parni( 2 ) ) );
pObj = ( QBrush* ) new QBrush( *hbqt_par_QColor( 1 ), ( Qt::BrushStyle ) hb_parni( 2 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
{
hb_retptr( ( QBrush* ) new QBrush( *hbqt_par_QColor( 1 ), *hbqt_par_QPixmap( 2 ) ) );
pObj = ( QBrush* ) new QBrush( *hbqt_par_QColor( 1 ), *hbqt_par_QPixmap( 2 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISNUM( 1 ) && HB_ISPOINTER( 2 ) )
{
hb_retptr( ( QBrush* ) new QBrush( ( Qt::GlobalColor ) hb_parni( 1 ), *hbqt_par_QPixmap( 2 ) ) );
pObj = ( QBrush* ) new QBrush( ( Qt::GlobalColor ) hb_parni( 1 ), *hbqt_par_QPixmap( 2 ) ) ;
}
else if( hb_pcount() >= 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
@@ -115,46 +120,40 @@ HB_FUNC( QT_QBRUSH )
if( objName == ( QString ) "QPixmap" )
{
hb_retptr( ( QBrush* ) new QBrush( *hbqt_par_QPixmap( 2 ) ) );
pObj = ( QBrush* ) new QBrush( *hbqt_par_QPixmap( 2 ) ) ;
}
else if( objName == ( QString ) "QImage" )
{
hb_retptr( ( QBrush* ) new QBrush( *hbqt_par_QImage( 2 ) ) );
pObj = ( QBrush* ) new QBrush( *hbqt_par_QImage( 2 ) ) ;
}
else if( objName == ( QString ) "QGradient" )
{
hb_retptr( ( QBrush* ) new QBrush( *hbqt_par_QGradient( 2 ) ) );
pObj = ( QBrush* ) new QBrush( *hbqt_par_QGradient( 2 ) ) ;
}
else if( objName == ( QString ) "QColor" )
{
hb_retptr( ( QBrush* ) new QBrush( *hbqt_par_QColor( 2 ),
HB_ISNUM( 3 ) ? ( Qt::BrushStyle ) hb_parni( 3 ) : Qt::SolidPattern ) );
pObj = ( QBrush* ) new QBrush( *hbqt_par_QColor( 2 ), HB_ISNUM( 3 ) ? ( Qt::BrushStyle ) hb_parni( 3 ) : Qt::SolidPattern ) ;
}
else
{
hb_retptr( ( QBrush* ) new QBrush() );
pObj = ( QBrush* ) new QBrush() ;
}
}
else
{
hb_retptr( ( QBrush* ) new QBrush() );
pObj = ( QBrush* ) new QBrush() ;
}
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QBRUSH_DESTROY )
{
delete hbqt_par_QBrush( 1 );
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QBrush" );
hb_retptrGC( p );
}
/*
* const QColor & color () const
*/
HB_FUNC( QT_QBRUSH_COLOR )
{
hb_retptr( new QColor( hbqt_par_QBrush( 1 )->color() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QBrush( 1 )->color() ) ) );
}
/*
@@ -170,7 +169,7 @@ HB_FUNC( QT_QBRUSH_ISOPAQUE )
*/
HB_FUNC( QT_QBRUSH_MATRIX )
{
hb_retptr( new QMatrix( hbqt_par_QBrush( 1 )->matrix() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QMatrix( hbqt_par_QBrush( 1 )->matrix() ) ) );
}
/*
@@ -242,7 +241,7 @@ HB_FUNC( QT_QBRUSH_STYLE )
*/
HB_FUNC( QT_QBRUSH_TEXTURE )
{
hb_retptr( new QPixmap( hbqt_par_QBrush( 1 )->texture() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPixmap( hbqt_par_QBrush( 1 )->texture() ) ) );
}
/*
@@ -250,7 +249,7 @@ HB_FUNC( QT_QBRUSH_TEXTURE )
*/
HB_FUNC( QT_QBRUSH_TEXTUREIMAGE )
{
hb_retptr( new QImage( hbqt_par_QBrush( 1 )->textureImage() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QBrush( 1 )->textureImage() ) ) );
}
/*
@@ -258,7 +257,7 @@ HB_FUNC( QT_QBRUSH_TEXTUREIMAGE )
*/
HB_FUNC( QT_QBRUSH_TRANSFORM )
{
hb_retptr( new QTransform( hbqt_par_QBrush( 1 )->transform() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QTransform( hbqt_par_QBrush( 1 )->transform() ) ) );
}

View File

@@ -75,6 +75,7 @@
* QList<QAbstractButton *> buttons () const
*/
#include <QtCore/QPointer>
#include <QtGui/QButtonGroup>
@@ -83,26 +84,25 @@
* QButtonGroup ( QObject * parent = 0 )
* ~QButtonGroup ()
*/
HB_FUNC( QT_QBUTTONGROUP )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QButtonGroup > pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
hb_retptr( ( QButtonGroup* ) new QButtonGroup( hbqt_par_QObject( 1 ) ) );
pObj = ( QButtonGroup* ) new QButtonGroup( hbqt_par_QObject( 1 ) ) ;
}
else
{
hb_retptr( ( QButtonGroup* ) new QButtonGroup() );
pObj = ( QButtonGroup* ) new QButtonGroup() ;
}
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QBUTTONGROUP_DESTROY )
{
delete hbqt_par_QButtonGroup( 1 );
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* void addButton ( QAbstractButton * button )
*/

View File

@@ -81,6 +81,7 @@
* QMap<QDate, QTextCharFormat> dateTextFormat () const
*/
#include <QtCore/QPointer>
#include <QtGui/QCalendarWidget>
#include <QtGui/QTextCharFormat>
@@ -89,19 +90,18 @@
* QCalendarWidget ( QWidget * parent = 0 )
* ~QCalendarWidget ()
*/
HB_FUNC( QT_QCALENDARWIDGET )
{
hb_retptr( ( QCalendarWidget* ) new QCalendarWidget( hbqt_par_QWidget( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QCalendarWidget > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QCALENDARWIDGET_DESTROY )
{
delete hbqt_par_QCalendarWidget( 1 );
}
pObj = ( QCalendarWidget* ) new QCalendarWidget( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* int dateEditAcceptDelay () const
*/
@@ -115,7 +115,7 @@ HB_FUNC( QT_QCALENDARWIDGET_DATEEDITACCEPTDELAY )
*/
HB_FUNC( QT_QCALENDARWIDGET_DATETEXTFORMAT )
{
hb_retptr( new QTextCharFormat( hbqt_par_QCalendarWidget( 1 )->dateTextFormat( *hbqt_par_QDate( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QTextCharFormat( hbqt_par_QCalendarWidget( 1 )->dateTextFormat( *hbqt_par_QDate( 2 ) ) ) ) );
}
/*
@@ -131,7 +131,7 @@ HB_FUNC( QT_QCALENDARWIDGET_FIRSTDAYOFWEEK )
*/
HB_FUNC( QT_QCALENDARWIDGET_HEADERTEXTFORMAT )
{
hb_retptr( new QTextCharFormat( hbqt_par_QCalendarWidget( 1 )->headerTextFormat() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QTextCharFormat( hbqt_par_QCalendarWidget( 1 )->headerTextFormat() ) ) );
}
/*
@@ -171,7 +171,7 @@ HB_FUNC( QT_QCALENDARWIDGET_ISNAVIGATIONBARVISIBLE )
*/
HB_FUNC( QT_QCALENDARWIDGET_MAXIMUMDATE )
{
hb_retptr( new QDate( hbqt_par_QCalendarWidget( 1 )->maximumDate() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDate( hbqt_par_QCalendarWidget( 1 )->maximumDate() ) ) );
}
/*
@@ -179,7 +179,7 @@ HB_FUNC( QT_QCALENDARWIDGET_MAXIMUMDATE )
*/
HB_FUNC( QT_QCALENDARWIDGET_MINIMUMDATE )
{
hb_retptr( new QDate( hbqt_par_QCalendarWidget( 1 )->minimumDate() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDate( hbqt_par_QCalendarWidget( 1 )->minimumDate() ) ) );
}
/*
@@ -195,7 +195,7 @@ HB_FUNC( QT_QCALENDARWIDGET_MONTHSHOWN )
*/
HB_FUNC( QT_QCALENDARWIDGET_SELECTEDDATE )
{
hb_retptr( new QDate( hbqt_par_QCalendarWidget( 1 )->selectedDate() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDate( hbqt_par_QCalendarWidget( 1 )->selectedDate() ) ) );
}
/*
@@ -307,7 +307,7 @@ HB_FUNC( QT_QCALENDARWIDGET_VERTICALHEADERFORMAT )
*/
HB_FUNC( QT_QCALENDARWIDGET_WEEKDAYTEXTFORMAT )
{
hb_retptr( new QTextCharFormat( hbqt_par_QCalendarWidget( 1 )->weekdayTextFormat( ( Qt::DayOfWeek ) hb_parni( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QTextCharFormat( hbqt_par_QCalendarWidget( 1 )->weekdayTextFormat( ( Qt::DayOfWeek ) hb_parni( 2 ) ) ) ) );
}
/*

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QCheckBox>
@@ -74,26 +75,25 @@
* QCheckBox ( QWidget * parent = 0 )
* QCheckBox ( const QString & text, QWidget * parent = 0 )
*/
HB_FUNC( QT_QCHECKBOX )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QCheckBox > pObj = NULL;
if( hb_pcount() >= 1 && HB_ISCHAR( 1 ) )
{
hb_retptr( ( QCheckBox* ) new QCheckBox( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) );
pObj = ( QCheckBox* ) new QCheckBox( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) ;
}
else
{
hb_retptr( ( QCheckBox* ) new QCheckBox( hbqt_par_QWidget( 1 ) ) );
pObj = ( QCheckBox* ) new QCheckBox( hbqt_par_QWidget( 1 ) ) ;
}
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QCHECKBOX_DESTROY )
{
}
/*
* Qt::CheckState checkState () const
*/

View File

@@ -70,6 +70,7 @@
* enum Mode { Clipboard, Selection, FindBuffer }
*/
#include <QtCore/QPointer>
#include <qpalette.h>
#include <QtGui/QClipboard>
@@ -79,19 +80,18 @@
*
*
*/
HB_FUNC( QT_QCLIPBOARD )
{
hb_retptr( ( QClipboard* ) QApplication::clipboard() );
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QClipboard > pObj = NULL;
pObj = ( QClipboard* ) QApplication::clipboard() ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QCLIPBOARD_DESTROY )
{
}
/*
* void clear ( Mode mode = Clipboard )
*/
@@ -105,7 +105,7 @@ HB_FUNC( QT_QCLIPBOARD_CLEAR )
*/
HB_FUNC( QT_QCLIPBOARD_IMAGE )
{
hb_retptr( new QImage( hbqt_par_QClipboard( 1 )->image( ( HB_ISNUM( 2 ) ? ( QClipboard::Mode ) hb_parni( 2 ) : ( QClipboard::Mode ) QClipboard::Clipboard ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QClipboard( 1 )->image( ( HB_ISNUM( 2 ) ? ( QClipboard::Mode ) hb_parni( 2 ) : ( QClipboard::Mode ) QClipboard::Clipboard ) ) ) ) );
}
/*
@@ -145,7 +145,7 @@ HB_FUNC( QT_QCLIPBOARD_OWNSSELECTION )
*/
HB_FUNC( QT_QCLIPBOARD_PIXMAP )
{
hb_retptr( new QPixmap( hbqt_par_QClipboard( 1 )->pixmap( ( HB_ISNUM( 2 ) ? ( QClipboard::Mode ) hb_parni( 2 ) : ( QClipboard::Mode ) QClipboard::Clipboard ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPixmap( hbqt_par_QClipboard( 1 )->pixmap( ( HB_ISNUM( 2 ) ? ( QClipboard::Mode ) hb_parni( 2 ) : ( QClipboard::Mode ) QClipboard::Clipboard ) ) ) ) );
}
/*

View File

@@ -70,6 +70,7 @@
* enum Spec { Rgb, Hsv, Cmyk, Invalid }
*/
#include <QtCore/QPointer>
#include <QtGui/QColor>
@@ -83,53 +84,52 @@ QColor ( const char * name )
QColor ( const QColor & color )
~QColor ()
*/
HB_FUNC( QT_QCOLOR )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() >= 1 )
{
if( hb_pcount() == 1 && HB_ISNUM( 1 ) && hb_parni( 1 ) < 25 )
{
hb_retptr( ( QColor* ) new QColor( ( Qt::GlobalColor ) hb_parni( 1 ) ) );
pObj = ( QColor* ) new QColor( ( Qt::GlobalColor ) hb_parni( 1 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISNUM( 1 ) )
{
hb_retptr( ( QColor* ) new QColor( ( QRgb ) hb_parni( 1 ) ) );
pObj = ( QColor* ) new QColor( ( QRgb ) hb_parni( 1 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
{
hb_retptr( ( QColor* ) new QColor( hbqt_par_QString( 1 ) ) );
pObj = ( QColor* ) new QColor( hbqt_par_QString( 1 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
hb_retptr( ( QColor* ) new QColor( *hbqt_par_QColor( 1 ) ) );
pObj = ( QColor* ) new QColor( *hbqt_par_QColor( 1 ) ) ;
}
else if( hb_pcount() == 3 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) )
{
hb_retptr( ( QColor* ) new QColor( hb_parni( 1 ), hb_parni( 2 ), hb_parni( 3 ), ( int ) 255 ) );
pObj = ( QColor* ) new QColor( hb_parni( 1 ), hb_parni( 2 ), hb_parni( 3 ), ( int ) 255 ) ;
}
else if( hb_pcount() == 4 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) && HB_ISNUM( 4 ) )
{
hb_retptr( ( QColor* ) new QColor( hb_parni( 1 ), hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ) ) );
pObj = ( QColor* ) new QColor( hb_parni( 1 ), hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ) ) ;
}
else
{
hb_retptr( ( QColor* ) new QColor() );
pObj = ( QColor* ) new QColor() ;
}
}
else
{
hb_retptr( ( QColor* ) new QColor() );
pObj = ( QColor* ) new QColor() ;
}
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QCOLOR_DESTROY )
{
delete hbqt_par_QColor( 1 );
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QColor" );
hb_retptrGC( p );
}
/*
* int alpha () const
*/
@@ -183,7 +183,7 @@ HB_FUNC( QT_QCOLOR_BLUEF )
*/
HB_FUNC( QT_QCOLOR_CONVERTTO )
{
hb_retptr( new QColor( hbqt_par_QColor( 1 )->convertTo( ( QColor::Spec ) hb_parni( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->convertTo( ( QColor::Spec ) hb_parni( 2 ) ) ) ) );
}
/*
@@ -207,7 +207,7 @@ HB_FUNC( QT_QCOLOR_CYANF )
*/
HB_FUNC( QT_QCOLOR_DARKER )
{
hb_retptr( new QColor( hbqt_par_QColor( 1 )->darker( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : 200 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->darker( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : 200 ) ) ) ) );
}
/*
@@ -367,7 +367,7 @@ HB_FUNC( QT_QCOLOR_ISVALID )
*/
HB_FUNC( QT_QCOLOR_LIGHTER )
{
hb_retptr( new QColor( hbqt_par_QColor( 1 )->lighter( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : 150 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->lighter( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : 150 ) ) ) ) );
}
/*
@@ -591,7 +591,7 @@ HB_FUNC( QT_QCOLOR_SPEC )
*/
HB_FUNC( QT_QCOLOR_TOCMYK )
{
hb_retptr( new QColor( hbqt_par_QColor( 1 )->toCmyk() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->toCmyk() ) ) );
}
/*
@@ -599,7 +599,7 @@ HB_FUNC( QT_QCOLOR_TOCMYK )
*/
HB_FUNC( QT_QCOLOR_TOHSV )
{
hb_retptr( new QColor( hbqt_par_QColor( 1 )->toHsv() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->toHsv() ) ) );
}
/*
@@ -607,7 +607,7 @@ HB_FUNC( QT_QCOLOR_TOHSV )
*/
HB_FUNC( QT_QCOLOR_TORGB )
{
hb_retptr( new QColor( hbqt_par_QColor( 1 )->toRgb() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->toRgb() ) ) );
}
/*
@@ -647,7 +647,7 @@ HB_FUNC( QT_QCOLOR_YELLOWF )
*/
HB_FUNC( QT_QCOLOR_COLORNAMES )
{
hb_retptr( new QStringList( hbqt_par_QColor( 1 )->colorNames() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QColor( 1 )->colorNames() ) ) );
}
/*
@@ -655,7 +655,7 @@ HB_FUNC( QT_QCOLOR_COLORNAMES )
*/
HB_FUNC( QT_QCOLOR_FROMCMYK )
{
hb_retptr( new QColor( hbqt_par_QColor( 1 )->fromCmyk( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), ( HB_ISNUM( 6 ) ? hb_parni( 6 ) : 255 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->fromCmyk( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), ( HB_ISNUM( 6 ) ? hb_parni( 6 ) : 255 ) ) ) ) );
}
/*
@@ -663,7 +663,7 @@ HB_FUNC( QT_QCOLOR_FROMCMYK )
*/
HB_FUNC( QT_QCOLOR_FROMCMYKF )
{
hb_retptr( new QColor( hbqt_par_QColor( 1 )->fromCmykF( hb_parnd( 2 ), hb_parnd( 3 ), hb_parnd( 4 ), hb_parnd( 5 ), hb_parnd( 6 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->fromCmykF( hb_parnd( 2 ), hb_parnd( 3 ), hb_parnd( 4 ), hb_parnd( 5 ), hb_parnd( 6 ) ) ) ) );
}
/*
@@ -671,7 +671,7 @@ HB_FUNC( QT_QCOLOR_FROMCMYKF )
*/
HB_FUNC( QT_QCOLOR_FROMHSV )
{
hb_retptr( new QColor( hbqt_par_QColor( 1 )->fromHsv( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), ( HB_ISNUM( 5 ) ? hb_parni( 5 ) : 255 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->fromHsv( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), ( HB_ISNUM( 5 ) ? hb_parni( 5 ) : 255 ) ) ) ) );
}
/*
@@ -679,7 +679,7 @@ HB_FUNC( QT_QCOLOR_FROMHSV )
*/
HB_FUNC( QT_QCOLOR_FROMHSVF )
{
hb_retptr( new QColor( hbqt_par_QColor( 1 )->fromHsvF( hb_parnd( 2 ), hb_parnd( 3 ), hb_parnd( 4 ), hb_parnd( 5 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->fromHsvF( hb_parnd( 2 ), hb_parnd( 3 ), hb_parnd( 4 ), hb_parnd( 5 ) ) ) ) );
}
/*
@@ -687,7 +687,7 @@ HB_FUNC( QT_QCOLOR_FROMHSVF )
*/
HB_FUNC( QT_QCOLOR_FROMRGB )
{
hb_retptr( new QColor( hbqt_par_QColor( 1 )->fromRgb( hb_parnl( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->fromRgb( hb_parnl( 2 ) ) ) ) );
}
/*
@@ -695,7 +695,7 @@ HB_FUNC( QT_QCOLOR_FROMRGB )
*/
HB_FUNC( QT_QCOLOR_FROMRGB_1 )
{
hb_retptr( new QColor( hbqt_par_QColor( 1 )->fromRgb( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), ( HB_ISNUM( 5 ) ? hb_parni( 5 ) : 255 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->fromRgb( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), ( HB_ISNUM( 5 ) ? hb_parni( 5 ) : 255 ) ) ) ) );
}
/*
@@ -703,7 +703,7 @@ HB_FUNC( QT_QCOLOR_FROMRGB_1 )
*/
HB_FUNC( QT_QCOLOR_FROMRGBF )
{
hb_retptr( new QColor( hbqt_par_QColor( 1 )->fromRgbF( hb_parnd( 2 ), hb_parnd( 3 ), hb_parnd( 4 ), hb_parnd( 5 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->fromRgbF( hb_parnd( 2 ), hb_parnd( 3 ), hb_parnd( 4 ), hb_parnd( 5 ) ) ) ) );
}
/*
@@ -711,7 +711,7 @@ HB_FUNC( QT_QCOLOR_FROMRGBF )
*/
HB_FUNC( QT_QCOLOR_FROMRGBA )
{
hb_retptr( new QColor( hbqt_par_QColor( 1 )->fromRgba( hb_parnl( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColor( 1 )->fromRgba( hb_parnl( 2 ) ) ) ) );
}

View File

@@ -71,6 +71,7 @@
* flags ColorDialogOptions
*/
#include <QtCore/QPointer>
#include <QtGui/QColorDialog>
@@ -79,33 +80,31 @@
* QColorDialog ( const QColor & initial, QWidget * parent = 0 )
* ~QColorDialog ()
*/
HB_FUNC( QT_QCOLORDIALOG )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QColorDialog > pObj = NULL;
if( hb_pcount() >= 1 && HB_ISNUM( 1 ) )
{
hb_retptr( ( QColorDialog* ) new QColorDialog( hb_parni( 1 ),
hbqt_par_QWidget( 2 ) ) );
pObj = ( QColorDialog* ) new QColorDialog( hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) ;
}
else
{
hb_retptr( ( QColorDialog* ) new QColorDialog( hbqt_par_QWidget( 1 ) ) );
pObj = ( QColorDialog* ) new QColorDialog( hbqt_par_QWidget( 1 ) ) ;
}
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QCOLORDIALOG_DESTROY )
{
delete hbqt_par_QColorDialog( 1 );
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* QColor currentColor () const
*/
HB_FUNC( QT_QCOLORDIALOG_CURRENTCOLOR )
{
hb_retptr( new QColor( hbqt_par_QColorDialog( 1 )->currentColor() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColorDialog( 1 )->currentColor() ) ) );
}
/*
@@ -129,7 +128,7 @@ HB_FUNC( QT_QCOLORDIALOG_OPTIONS )
*/
HB_FUNC( QT_QCOLORDIALOG_SELECTEDCOLOR )
{
hb_retptr( new QColor( hbqt_par_QColorDialog( 1 )->selectedColor() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColorDialog( 1 )->selectedColor() ) ) );
}
/*
@@ -193,7 +192,7 @@ HB_FUNC( QT_QCOLORDIALOG_CUSTOMCOUNT )
*/
HB_FUNC( QT_QCOLORDIALOG_GETCOLOR )
{
hb_retptr( new QColor( hbqt_par_QColorDialog( 1 )->getColor( *hbqt_par_QColor( 2 ), hbqt_par_QWidget( 3 ), hbqt_par_QString( 4 ), ( QColorDialog::ColorDialogOptions ) hb_parni( 5 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColorDialog( 1 )->getColor( *hbqt_par_QColor( 2 ), hbqt_par_QWidget( 3 ), hbqt_par_QString( 4 ), ( QColorDialog::ColorDialogOptions ) hb_parni( 5 ) ) ) ) );
}
/*
@@ -201,7 +200,7 @@ HB_FUNC( QT_QCOLORDIALOG_GETCOLOR )
*/
HB_FUNC( QT_QCOLORDIALOG_GETCOLOR_1 )
{
hb_retptr( new QColor( hbqt_par_QColorDialog( 1 )->getColor( *hbqt_par_QColor( 2 ), hbqt_par_QWidget( 3 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QColorDialog( 1 )->getColor( *hbqt_par_QColor( 2 ), hbqt_par_QWidget( 3 ) ) ) ) );
}
/*

View File

@@ -71,6 +71,7 @@
* enum SizeAdjustPolicy { AdjustToContents, AdjustToContentsOnFirstShow, AdjustToMinimumContentsLength, AdjustToMinimumContentsLengthWithIcon }
*/
#include <QtCore/QPointer>
#include <QtGui/QComboBox>
@@ -79,19 +80,18 @@
* QComboBox ( QWidget * parent = 0 )
* ~QComboBox ()
*/
HB_FUNC( QT_QCOMBOBOX )
{
hb_retptr( ( QComboBox* ) new QComboBox( hbqt_par_QWidget( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QComboBox > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QCOMBOBOX_DESTROY )
{
delete hbqt_par_QComboBox( 1 );
}
pObj = ( QComboBox* ) new QComboBox( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* void addItem ( const QString & text, const QVariant & userData = QVariant() )
*/
@@ -193,7 +193,7 @@ HB_FUNC( QT_QCOMBOBOX_HIDEPOPUP )
*/
HB_FUNC( QT_QCOMBOBOX_ICONSIZE )
{
hb_retptr( new QSize( hbqt_par_QComboBox( 1 )->iconSize() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QComboBox( 1 )->iconSize() ) ) );
}
/*
@@ -249,7 +249,7 @@ HB_FUNC( QT_QCOMBOBOX_ISEDITABLE )
*/
HB_FUNC( QT_QCOMBOBOX_ITEMDATA )
{
hb_retptr( new QVariant( hbqt_par_QComboBox( 1 )->itemData( hb_parni( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : Qt::UserRole ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QComboBox( 1 )->itemData( hb_parni( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : Qt::UserRole ) ) ) ) );
}
/*
@@ -265,7 +265,7 @@ HB_FUNC( QT_QCOMBOBOX_ITEMDELEGATE )
*/
HB_FUNC( QT_QCOMBOBOX_ITEMICON )
{
hb_retptr( new QIcon( hbqt_par_QComboBox( 1 )->itemIcon( hb_parni( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QIcon( hbqt_par_QComboBox( 1 )->itemIcon( hb_parni( 2 ) ) ) ) );
}
/*
@@ -337,7 +337,7 @@ HB_FUNC( QT_QCOMBOBOX_REMOVEITEM )
*/
HB_FUNC( QT_QCOMBOBOX_ROOTMODELINDEX )
{
hb_retptr( new QModelIndex( hbqt_par_QComboBox( 1 )->rootModelIndex() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QComboBox( 1 )->rootModelIndex() ) ) );
}
/*

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QCommandLinkButton>
@@ -75,19 +76,18 @@
* QCommandLinkButton ( const QString & text, QWidget * parent = 0 )
* QCommandLinkButton ( const QString & text, const QString & description, QWidget * parent = 0 )
*/
HB_FUNC( QT_QCOMMANDLINKBUTTON )
{
hb_retptr( ( QCommandLinkButton* ) new QCommandLinkButton( hbqt_par_QWidget( 1 ) ) );
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QCommandLinkButton > pObj = NULL;
pObj = ( QCommandLinkButton* ) new QCommandLinkButton( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QCOMMANDLINKBUTTON_DESTROY )
{
}
/*
* QString description () const
*/

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QCommonStyle>
@@ -73,20 +74,19 @@
/*
* QCommonStyle ()
*/
HB_FUNC( QT_QCOMMONSTYLE )
{
hb_retptr( ( QCommonStyle* ) new QCommonStyle() );
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QCommonStyle > pObj = NULL;
pObj = ( QCommonStyle* ) new QCommonStyle() ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QCOMMONSTYLE_DESTROY )
{
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -72,6 +72,7 @@
* enum Type { LinearGradient, RadialGradient, ConicalGradient, NoGradient }
*/
#include <QtCore/QPointer>
#include <QtGui/QConicalGradient>
@@ -81,19 +82,15 @@
* QConicalGradient ( const QPointF & center, qreal angle )
* QConicalGradient ( qreal cx, qreal cy, qreal angle )
*/
HB_FUNC( QT_QCONICALGRADIENT )
{
hb_retptr( ( QConicalGradient* ) new QConicalGradient() );
void * pObj = NULL;
pObj = ( QConicalGradient* ) new QConicalGradient() ;
hb_retptr( pObj );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QCONICALGRADIENT_DESTROY )
{
}
/*
* qreal angle () const
*/
@@ -107,7 +104,7 @@ HB_FUNC( QT_QCONICALGRADIENT_ANGLE )
*/
HB_FUNC( QT_QCONICALGRADIENT_CENTER )
{
hb_retptr( new QPointF( hbqt_par_QConicalGradient( 1 )->center() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPointF( hbqt_par_QConicalGradient( 1 )->center() ) ) );
}
/*

View File

@@ -84,6 +84,7 @@
* // virtual bool winEventFilter ( MSG * msg, long * result )
*/
#include <QtCore/QPointer>
#include <QStringList>
#include <QtCore/QCoreApplication>
@@ -93,19 +94,10 @@
* QCoreApplication ( int & argc, char ** argv )
* ~QCoreApplication ()
*/
HB_FUNC( QT_QCOREAPPLICATION )
{
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QCOREAPPLICATION_DESTROY )
{
delete hbqt_par_QCoreApplication( 1 );
}
/*
* virtual bool notify ( QObject * receiver, QEvent * event )
*/
@@ -167,7 +159,7 @@ HB_FUNC( QT_QCOREAPPLICATION_APPLICATIONVERSION )
*/
HB_FUNC( QT_QCOREAPPLICATION_ARGUMENTS )
{
hb_retptr( new QStringList( hbqt_par_QCoreApplication( 1 )->arguments() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QCoreApplication( 1 )->arguments() ) ) );
}
/*
@@ -231,7 +223,7 @@ HB_FUNC( QT_QCOREAPPLICATION_INSTANCE )
*/
HB_FUNC( QT_QCOREAPPLICATION_LIBRARYPATHS )
{
hb_retptr( new QStringList( hbqt_par_QCoreApplication( 1 )->libraryPaths() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QCoreApplication( 1 )->libraryPaths() ) ) );
}
/*

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <qpixmap.h>
#include <QtGui/QCursor>
@@ -80,15 +81,19 @@
* QCursor ( Qt::HANDLE handle )
* ~QCursor ()
*/
HB_FUNC( QT_QCURSOR )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISNUM( 1 ) )
{
hb_retptr( ( QCursor* ) new QCursor( ( Qt::CursorShape ) hb_parni( 1 ) ) );
pObj = ( QCursor* ) new QCursor( ( Qt::CursorShape ) hb_parni( 1 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
hb_retptr( ( QCursor* ) new QCursor( *hbqt_par_QCursor( 1 ) ) );
pObj = ( QCursor* ) new QCursor( *hbqt_par_QCursor( 1 ) ) ;
}
else if( hb_pcount() >= 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
@@ -96,35 +101,26 @@ HB_FUNC( QT_QCURSOR )
if( objName == ( QString ) "QPixmap" )
{
hb_retptr( ( QCursor* ) new QCursor( *hbqt_par_QPixmap( 2 ),
HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1,
HB_ISNUM( 4 ) ? hb_parni( 4 ) : -1 ) );
pObj = ( QCursor* ) new QCursor( *hbqt_par_QPixmap( 2 ), HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1, HB_ISNUM( 4 ) ? hb_parni( 4 ) : -1 ) ;
}
else
{
hb_retptr( ( QCursor* ) new QCursor() );
pObj = ( QCursor* ) new QCursor() ;
}
}
else if( hb_pcount() >= 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
{
hb_retptr( ( QCursor* ) new QCursor( *hbqt_par_QBitmap( 1 ), *hbqt_par_QBitmap( 2 ),
HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1,
HB_ISNUM( 4 ) ? hb_parni( 4 ) : -1 ) );
pObj = ( QCursor* ) new QCursor( *hbqt_par_QBitmap( 1 ), *hbqt_par_QBitmap( 2 ), HB_ISNUM( 3 ) ? hb_parni( 3 ) : -1, HB_ISNUM( 4 ) ? hb_parni( 4 ) : -1 ) ;
}
else
{
hb_retptr( ( QCursor* ) new QCursor() );
pObj = ( QCursor* ) new QCursor() ;
}
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QCURSOR_DESTROY )
{
delete hbqt_par_QCursor( 1 );
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QCursor" );
hb_retptrGC( p );
}
/*
* const QBitmap * bitmap () const
*/
@@ -138,7 +134,7 @@ HB_FUNC( QT_QCURSOR_BITMAP )
*/
HB_FUNC( QT_QCURSOR_HOTSPOT )
{
hb_retptr( new QPoint( hbqt_par_QCursor( 1 )->hotSpot() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QCursor( 1 )->hotSpot() ) ) );
}
/*
@@ -154,7 +150,7 @@ HB_FUNC( QT_QCURSOR_MASK )
*/
HB_FUNC( QT_QCURSOR_PIXMAP )
{
hb_retptr( new QPixmap( hbqt_par_QCursor( 1 )->pixmap() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPixmap( hbqt_par_QCursor( 1 )->pixmap() ) ) );
}
/*
@@ -178,7 +174,7 @@ HB_FUNC( QT_QCURSOR_SHAPE )
*/
HB_FUNC( QT_QCURSOR_POS )
{
hb_retptr( new QPoint( hbqt_par_QCursor( 1 )->pos() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QCursor( 1 )->pos() ) ) );
}
/*

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QDateEdit>
@@ -74,20 +75,19 @@
* QDateEdit ( QWidget * parent = 0 )
* QDateEdit ( const QDate & date, QWidget * parent = 0 )
*/
HB_FUNC( QT_QDATEEDIT )
{
hb_retptr( ( QDateEdit* ) new QDateEdit( hbqt_par_QWidget( 1 ) ) );
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QDateEdit > pObj = NULL;
pObj = ( QDateEdit* ) new QDateEdit( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QDATEEDIT_DESTROY )
{
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtCore/QDateTime>
@@ -77,25 +78,24 @@
* QDateTime ( const QDateTime & other )
* ~QDateTime ()
*/
HB_FUNC( QT_QDATETIME )
{
hb_retptr( ( QDateTime* ) new QDateTime() );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QDATETIME_DESTROY )
{
delete hbqt_par_QDateTime( 1 );
}
pObj = ( QDateTime* ) new QDateTime() ;
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QDateTime" );
hb_retptrGC( p );
}
/*
* QDateTime addDays ( int ndays ) const
*/
HB_FUNC( QT_QDATETIME_ADDDAYS )
{
hb_retptr( new QDateTime( hbqt_par_QDateTime( 1 )->addDays( hb_parni( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->addDays( hb_parni( 2 ) ) ) ) );
}
/*
@@ -103,7 +103,7 @@ HB_FUNC( QT_QDATETIME_ADDDAYS )
*/
HB_FUNC( QT_QDATETIME_ADDMSECS )
{
hb_retptr( new QDateTime( hbqt_par_QDateTime( 1 )->addMSecs( hb_parnint( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->addMSecs( hb_parnint( 2 ) ) ) ) );
}
/*
@@ -111,7 +111,7 @@ HB_FUNC( QT_QDATETIME_ADDMSECS )
*/
HB_FUNC( QT_QDATETIME_ADDMONTHS )
{
hb_retptr( new QDateTime( hbqt_par_QDateTime( 1 )->addMonths( hb_parni( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->addMonths( hb_parni( 2 ) ) ) ) );
}
/*
@@ -119,7 +119,7 @@ HB_FUNC( QT_QDATETIME_ADDMONTHS )
*/
HB_FUNC( QT_QDATETIME_ADDSECS )
{
hb_retptr( new QDateTime( hbqt_par_QDateTime( 1 )->addSecs( hb_parni( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->addSecs( hb_parni( 2 ) ) ) ) );
}
/*
@@ -127,7 +127,7 @@ HB_FUNC( QT_QDATETIME_ADDSECS )
*/
HB_FUNC( QT_QDATETIME_ADDYEARS )
{
hb_retptr( new QDateTime( hbqt_par_QDateTime( 1 )->addYears( hb_parni( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->addYears( hb_parni( 2 ) ) ) ) );
}
/*
@@ -135,7 +135,7 @@ HB_FUNC( QT_QDATETIME_ADDYEARS )
*/
HB_FUNC( QT_QDATETIME_DATE )
{
hb_retptr( new QDate( hbqt_par_QDateTime( 1 )->date() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDate( hbqt_par_QDateTime( 1 )->date() ) ) );
}
/*
@@ -207,7 +207,7 @@ HB_FUNC( QT_QDATETIME_SETTIME_T )
*/
HB_FUNC( QT_QDATETIME_TIME )
{
hb_retptr( new QTime( hbqt_par_QDateTime( 1 )->time() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QTime( hbqt_par_QDateTime( 1 )->time() ) ) );
}
/*
@@ -223,7 +223,7 @@ HB_FUNC( QT_QDATETIME_TIMESPEC )
*/
HB_FUNC( QT_QDATETIME_TOLOCALTIME )
{
hb_retptr( new QDateTime( hbqt_par_QDateTime( 1 )->toLocalTime() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->toLocalTime() ) ) );
}
/*
@@ -247,7 +247,7 @@ HB_FUNC( QT_QDATETIME_TOSTRING_1 )
*/
HB_FUNC( QT_QDATETIME_TOTIMESPEC )
{
hb_retptr( new QDateTime( hbqt_par_QDateTime( 1 )->toTimeSpec( ( Qt::TimeSpec ) hb_parni( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->toTimeSpec( ( Qt::TimeSpec ) hb_parni( 2 ) ) ) ) );
}
/*
@@ -263,7 +263,7 @@ HB_FUNC( QT_QDATETIME_TOTIME_T )
*/
HB_FUNC( QT_QDATETIME_TOUTC )
{
hb_retptr( new QDateTime( hbqt_par_QDateTime( 1 )->toUTC() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->toUTC() ) ) );
}
/*
@@ -271,7 +271,7 @@ HB_FUNC( QT_QDATETIME_TOUTC )
*/
HB_FUNC( QT_QDATETIME_CURRENTDATETIME )
{
hb_retptr( new QDateTime( hbqt_par_QDateTime( 1 )->currentDateTime() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->currentDateTime() ) ) );
}
/*
@@ -279,7 +279,7 @@ HB_FUNC( QT_QDATETIME_CURRENTDATETIME )
*/
HB_FUNC( QT_QDATETIME_FROMSTRING )
{
hb_retptr( new QDateTime( hbqt_par_QDateTime( 1 )->fromString( hbqt_par_QString( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::DateFormat ) hb_parni( 3 ) : ( Qt::DateFormat ) Qt::TextDate ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->fromString( hbqt_par_QString( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::DateFormat ) hb_parni( 3 ) : ( Qt::DateFormat ) Qt::TextDate ) ) ) ) );
}
/*
@@ -287,7 +287,7 @@ HB_FUNC( QT_QDATETIME_FROMSTRING )
*/
HB_FUNC( QT_QDATETIME_FROMSTRING_1 )
{
hb_retptr( new QDateTime( hbqt_par_QDateTime( 1 )->fromString( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->fromString( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ) ) ) ) );
}
/*
@@ -295,7 +295,7 @@ HB_FUNC( QT_QDATETIME_FROMSTRING_1 )
*/
HB_FUNC( QT_QDATETIME_FROMTIME_T )
{
hb_retptr( new QDateTime( hbqt_par_QDateTime( 1 )->fromTime_t( hb_parni( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTime( 1 )->fromTime_t( hb_parni( 2 ) ) ) ) );
}

View File

@@ -71,6 +71,7 @@
* flags Sections
*/
#include <QtCore/QPointer>
#include <QtGui/QDateTimeEdit>
@@ -81,19 +82,18 @@
* QDateTimeEdit ( const QDate & date, QWidget * parent = 0 )
* QDateTimeEdit ( const QTime & time, QWidget * parent = 0 )
*/
HB_FUNC( QT_QDATETIMEEDIT )
{
hb_retptr( ( QDateTimeEdit* ) new QDateTimeEdit( hbqt_par_QWidget( 1 ) ) );
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QDateTimeEdit > pObj = NULL;
pObj = ( QDateTimeEdit* ) new QDateTimeEdit( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QDATETIMEEDIT_DESTROY )
{
}
/*
* bool calendarPopup () const
*/
@@ -179,7 +179,7 @@ HB_FUNC( QT_QDATETIMEEDIT_CURRENTSECTIONINDEX )
*/
HB_FUNC( QT_QDATETIMEEDIT_DATE )
{
hb_retptr( new QDate( hbqt_par_QDateTimeEdit( 1 )->date() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDate( hbqt_par_QDateTimeEdit( 1 )->date() ) ) );
}
/*
@@ -187,7 +187,7 @@ HB_FUNC( QT_QDATETIMEEDIT_DATE )
*/
HB_FUNC( QT_QDATETIMEEDIT_DATETIME )
{
hb_retptr( new QDateTime( hbqt_par_QDateTimeEdit( 1 )->dateTime() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTimeEdit( 1 )->dateTime() ) ) );
}
/*
@@ -211,7 +211,7 @@ HB_FUNC( QT_QDATETIMEEDIT_DISPLAYEDSECTIONS )
*/
HB_FUNC( QT_QDATETIMEEDIT_MAXIMUMDATE )
{
hb_retptr( new QDate( hbqt_par_QDateTimeEdit( 1 )->maximumDate() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDate( hbqt_par_QDateTimeEdit( 1 )->maximumDate() ) ) );
}
/*
@@ -219,7 +219,7 @@ HB_FUNC( QT_QDATETIMEEDIT_MAXIMUMDATE )
*/
HB_FUNC( QT_QDATETIMEEDIT_MAXIMUMDATETIME )
{
hb_retptr( new QDateTime( hbqt_par_QDateTimeEdit( 1 )->maximumDateTime() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTimeEdit( 1 )->maximumDateTime() ) ) );
}
/*
@@ -227,7 +227,7 @@ HB_FUNC( QT_QDATETIMEEDIT_MAXIMUMDATETIME )
*/
HB_FUNC( QT_QDATETIMEEDIT_MAXIMUMTIME )
{
hb_retptr( new QTime( hbqt_par_QDateTimeEdit( 1 )->maximumTime() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QTime( hbqt_par_QDateTimeEdit( 1 )->maximumTime() ) ) );
}
/*
@@ -235,7 +235,7 @@ HB_FUNC( QT_QDATETIMEEDIT_MAXIMUMTIME )
*/
HB_FUNC( QT_QDATETIMEEDIT_MINIMUMDATE )
{
hb_retptr( new QDate( hbqt_par_QDateTimeEdit( 1 )->minimumDate() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDate( hbqt_par_QDateTimeEdit( 1 )->minimumDate() ) ) );
}
/*
@@ -243,7 +243,7 @@ HB_FUNC( QT_QDATETIMEEDIT_MINIMUMDATE )
*/
HB_FUNC( QT_QDATETIMEEDIT_MINIMUMDATETIME )
{
hb_retptr( new QDateTime( hbqt_par_QDateTimeEdit( 1 )->minimumDateTime() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QDateTimeEdit( 1 )->minimumDateTime() ) ) );
}
/*
@@ -251,7 +251,7 @@ HB_FUNC( QT_QDATETIMEEDIT_MINIMUMDATETIME )
*/
HB_FUNC( QT_QDATETIMEEDIT_MINIMUMTIME )
{
hb_retptr( new QTime( hbqt_par_QDateTimeEdit( 1 )->minimumTime() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QTime( hbqt_par_QDateTimeEdit( 1 )->minimumTime() ) ) );
}
/*
@@ -411,7 +411,7 @@ HB_FUNC( QT_QDATETIMEEDIT_SETTIMESPEC )
*/
HB_FUNC( QT_QDATETIMEEDIT_TIME )
{
hb_retptr( new QTime( hbqt_par_QDateTimeEdit( 1 )->time() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QTime( hbqt_par_QDateTimeEdit( 1 )->time() ) ) );
}
/*

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QDesktopWidget>
@@ -74,25 +75,24 @@
* QDesktopWidget ()
* ~QDesktopWidget ()
*/
HB_FUNC( QT_QDESKTOPWIDGET )
{
hb_retptr( new QDesktopWidget() );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QDesktopWidget > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QDESKTOPWIDGET_DESTROY )
{
delete hbqt_par_QDesktopWidget( 1 );
}
pObj = new QDesktopWidget() ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* const QRect availableGeometry ( int screen = -1 ) const
*/
HB_FUNC( QT_QDESKTOPWIDGET_AVAILABLEGEOMETRY )
{
hb_retptr( new QRect( hbqt_par_QDesktopWidget( 1 )->availableGeometry( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : -1 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QDesktopWidget( 1 )->availableGeometry( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : -1 ) ) ) ) );
}
/*
@@ -100,7 +100,7 @@ HB_FUNC( QT_QDESKTOPWIDGET_AVAILABLEGEOMETRY )
*/
HB_FUNC( QT_QDESKTOPWIDGET_AVAILABLEGEOMETRY_1 )
{
hb_retptr( new QRect( hbqt_par_QDesktopWidget( 1 )->availableGeometry( hbqt_par_QWidget( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QDesktopWidget( 1 )->availableGeometry( hbqt_par_QWidget( 2 ) ) ) ) );
}
/*
@@ -108,7 +108,7 @@ HB_FUNC( QT_QDESKTOPWIDGET_AVAILABLEGEOMETRY_1 )
*/
HB_FUNC( QT_QDESKTOPWIDGET_AVAILABLEGEOMETRY_2 )
{
hb_retptr( new QRect( hbqt_par_QDesktopWidget( 1 )->availableGeometry( *hbqt_par_QPoint( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QDesktopWidget( 1 )->availableGeometry( *hbqt_par_QPoint( 2 ) ) ) ) );
}
/*
@@ -148,7 +148,7 @@ HB_FUNC( QT_QDESKTOPWIDGET_SCREEN )
*/
HB_FUNC( QT_QDESKTOPWIDGET_SCREENGEOMETRY )
{
hb_retptr( new QRect( hbqt_par_QDesktopWidget( 1 )->screenGeometry( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : -1 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QDesktopWidget( 1 )->screenGeometry( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : -1 ) ) ) ) );
}
/*
@@ -156,7 +156,7 @@ HB_FUNC( QT_QDESKTOPWIDGET_SCREENGEOMETRY )
*/
HB_FUNC( QT_QDESKTOPWIDGET_SCREENGEOMETRY_1 )
{
hb_retptr( new QRect( hbqt_par_QDesktopWidget( 1 )->screenGeometry( hbqt_par_QWidget( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QDesktopWidget( 1 )->screenGeometry( hbqt_par_QWidget( 2 ) ) ) ) );
}
/*
@@ -164,7 +164,7 @@ HB_FUNC( QT_QDESKTOPWIDGET_SCREENGEOMETRY_1 )
*/
HB_FUNC( QT_QDESKTOPWIDGET_SCREENGEOMETRY_2 )
{
hb_retptr( new QRect( hbqt_par_QDesktopWidget( 1 )->screenGeometry( *hbqt_par_QPoint( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QDesktopWidget( 1 )->screenGeometry( *hbqt_par_QPoint( 2 ) ) ) ) );
}
/*

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QDial>
@@ -74,19 +75,18 @@
* QDial ( QWidget * parent = 0 )
* ~QDial ()
*/
HB_FUNC( QT_QDIAL )
{
hb_retptr( ( QDial* ) new QDial( hbqt_par_QWidget( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QDial > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QDIAL_DESTROY )
{
delete hbqt_par_QDial( 1 );
}
pObj = ( QDial* ) new QDial( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* int notchSize () const
*/

View File

@@ -70,6 +70,7 @@
* enum DialogCode { Accepted, Rejected }
*/
#include <QtCore/QPointer>
#include <QtGui/QDialog>
@@ -78,19 +79,18 @@
* QDialog ( QWidget * parent = 0, Qt::WindowFlags f = 0 )
* ~QDialog ()
*/
HB_FUNC( QT_QDIALOG )
{
hb_retptr( new QDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QDialog > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QDIALOG_DESTROY )
{
delete hbqt_par_QDialog( 1 );
}
pObj = new QDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* bool isSizeGripEnabled () const
*/

View File

@@ -73,6 +73,7 @@
* flags SortFlags
*/
#include <QtCore/QPointer>
#include <QtCore/QDir>
@@ -83,19 +84,18 @@
* QDir ( const QString & path, const QString & nameFilter, SortFlags sort = SortFlags( Name | IgnoreCase ), Filters filters = AllEntries )
* ~QDir ()
*/
HB_FUNC( QT_QDIR )
{
hb_retptr( new QDir( hbqt_par_QString( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QDIR_DESTROY )
{
delete hbqt_par_QDir( 1 );
}
pObj = new QDir( hbqt_par_QString( 1 ) ) ;
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QDir" );
hb_retptrGC( p );
}
/*
* QString absoluteFilePath ( const QString & fileName ) const
*/
@@ -157,7 +157,7 @@ HB_FUNC( QT_QDIR_DIRNAME )
*/
HB_FUNC( QT_QDIR_ENTRYINFOLIST )
{
hb_retptr( new QFileInfoList( hbqt_par_QDir( 1 )->entryInfoList( *hbqt_par_QStringList( 2 ), ( HB_ISNUM( 3 ) ? ( QDir::Filters ) hb_parni( 3 ) : ( QDir::Filters ) QDir::NoFilter ), ( HB_ISNUM( 4 ) ? ( QDir::SortFlags ) hb_parni( 4 ) : ( QDir::SortFlags ) QDir::NoSort ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFileInfoList( hbqt_par_QDir( 1 )->entryInfoList( *hbqt_par_QStringList( 2 ), ( HB_ISNUM( 3 ) ? ( QDir::Filters ) hb_parni( 3 ) : ( QDir::Filters ) QDir::NoFilter ), ( HB_ISNUM( 4 ) ? ( QDir::SortFlags ) hb_parni( 4 ) : ( QDir::SortFlags ) QDir::NoSort ) ) ) ) );
}
/*
@@ -165,7 +165,7 @@ HB_FUNC( QT_QDIR_ENTRYINFOLIST )
*/
HB_FUNC( QT_QDIR_ENTRYINFOLIST_1 )
{
hb_retptr( new QFileInfoList( hbqt_par_QDir( 1 )->entryInfoList( ( HB_ISNUM( 2 ) ? ( QDir::Filters ) hb_parni( 2 ) : ( QDir::Filters ) QDir::NoFilter ), ( HB_ISNUM( 3 ) ? ( QDir::SortFlags ) hb_parni( 3 ) : ( QDir::SortFlags ) QDir::NoSort ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFileInfoList( hbqt_par_QDir( 1 )->entryInfoList( ( HB_ISNUM( 2 ) ? ( QDir::Filters ) hb_parni( 2 ) : ( QDir::Filters ) QDir::NoFilter ), ( HB_ISNUM( 3 ) ? ( QDir::SortFlags ) hb_parni( 3 ) : ( QDir::SortFlags ) QDir::NoSort ) ) ) ) );
}
/*
@@ -173,7 +173,7 @@ HB_FUNC( QT_QDIR_ENTRYINFOLIST_1 )
*/
HB_FUNC( QT_QDIR_ENTRYLIST )
{
hb_retptr( new QStringList( hbqt_par_QDir( 1 )->entryList( *hbqt_par_QStringList( 2 ), ( HB_ISNUM( 3 ) ? ( QDir::Filters ) hb_parni( 3 ) : ( QDir::Filters ) QDir::NoFilter ), ( HB_ISNUM( 4 ) ? ( QDir::SortFlags ) hb_parni( 4 ) : ( QDir::SortFlags ) QDir::NoSort ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QDir( 1 )->entryList( *hbqt_par_QStringList( 2 ), ( HB_ISNUM( 3 ) ? ( QDir::Filters ) hb_parni( 3 ) : ( QDir::Filters ) QDir::NoFilter ), ( HB_ISNUM( 4 ) ? ( QDir::SortFlags ) hb_parni( 4 ) : ( QDir::SortFlags ) QDir::NoSort ) ) ) ) );
}
/*
@@ -181,7 +181,7 @@ HB_FUNC( QT_QDIR_ENTRYLIST )
*/
HB_FUNC( QT_QDIR_ENTRYLIST_1 )
{
hb_retptr( new QStringList( hbqt_par_QDir( 1 )->entryList( ( HB_ISNUM( 2 ) ? ( QDir::Filters ) hb_parni( 2 ) : ( QDir::Filters ) QDir::NoFilter ), ( HB_ISNUM( 3 ) ? ( QDir::SortFlags ) hb_parni( 3 ) : ( QDir::SortFlags ) QDir::NoSort ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QDir( 1 )->entryList( ( HB_ISNUM( 2 ) ? ( QDir::Filters ) hb_parni( 2 ) : ( QDir::Filters ) QDir::NoFilter ), ( HB_ISNUM( 3 ) ? ( QDir::SortFlags ) hb_parni( 3 ) : ( QDir::SortFlags ) QDir::NoSort ) ) ) ) );
}
/*
@@ -277,7 +277,7 @@ HB_FUNC( QT_QDIR_MKPATH )
*/
HB_FUNC( QT_QDIR_NAMEFILTERS )
{
hb_retptr( new QStringList( hbqt_par_QDir( 1 )->nameFilters() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QDir( 1 )->nameFilters() ) ) );
}
/*
@@ -397,7 +397,7 @@ HB_FUNC( QT_QDIR_CLEANPATH )
*/
HB_FUNC( QT_QDIR_CURRENT )
{
hb_retptr( new QDir( hbqt_par_QDir( 1 )->current() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDir( hbqt_par_QDir( 1 )->current() ) ) );
}
/*
@@ -413,7 +413,7 @@ HB_FUNC( QT_QDIR_CURRENTPATH )
*/
HB_FUNC( QT_QDIR_DRIVES )
{
hb_retptr( new QFileInfoList( hbqt_par_QDir( 1 )->drives() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFileInfoList( hbqt_par_QDir( 1 )->drives() ) ) );
}
/*
@@ -429,7 +429,7 @@ HB_FUNC( QT_QDIR_FROMNATIVESEPARATORS )
*/
HB_FUNC( QT_QDIR_HOME )
{
hb_retptr( new QDir( hbqt_par_QDir( 1 )->home() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDir( hbqt_par_QDir( 1 )->home() ) ) );
}
/*
@@ -477,7 +477,7 @@ HB_FUNC( QT_QDIR_MATCH_1 )
*/
HB_FUNC( QT_QDIR_ROOT )
{
hb_retptr( new QDir( hbqt_par_QDir( 1 )->root() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDir( hbqt_par_QDir( 1 )->root() ) ) );
}
/*
@@ -493,7 +493,7 @@ HB_FUNC( QT_QDIR_ROOTPATH )
*/
HB_FUNC( QT_QDIR_SEARCHPATHS )
{
hb_retptr( new QStringList( hbqt_par_QDir( 1 )->searchPaths( hbqt_par_QString( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QDir( 1 )->searchPaths( hbqt_par_QString( 2 ) ) ) ) );
}
/*
@@ -517,7 +517,7 @@ HB_FUNC( QT_QDIR_SETSEARCHPATHS )
*/
HB_FUNC( QT_QDIR_TEMP )
{
hb_retptr( new QDir( hbqt_par_QDir( 1 )->temp() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDir( hbqt_par_QDir( 1 )->temp() ) ) );
}
/*

View File

@@ -70,6 +70,7 @@
* enum Roles { FileIconRole, FilePathRole, FileNameRole }
*/
#include <QtCore/QPointer>
#include <QtGui/QDirModel>
@@ -79,19 +80,18 @@
* QDirModel ( QObject * parent = 0 )
* ~QDirModel ()
*/
HB_FUNC( QT_QDIRMODEL )
{
hb_retptr( ( QDirModel* ) new QDirModel( hbqt_par_QObject( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QDirModel > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QDIRMODEL_DESTROY )
{
delete hbqt_par_QDirModel( 1 );
}
pObj = ( QDirModel* ) new QDirModel( hbqt_par_QObject( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* virtual int columnCount ( const QModelIndex & parent = QModelIndex() ) const
*/
@@ -105,7 +105,7 @@ HB_FUNC( QT_QDIRMODEL_COLUMNCOUNT )
*/
HB_FUNC( QT_QDIRMODEL_DATA )
{
hb_retptr( new QVariant( hbqt_par_QDirModel( 1 )->data( *hbqt_par_QModelIndex( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : Qt::DisplayRole ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QDirModel( 1 )->data( *hbqt_par_QModelIndex( 2 ), ( HB_ISNUM( 3 ) ? hb_parni( 3 ) : Qt::DisplayRole ) ) ) ) );
}
/*
@@ -121,7 +121,7 @@ HB_FUNC( QT_QDIRMODEL_DROPMIMEDATA )
*/
HB_FUNC( QT_QDIRMODEL_FILEICON )
{
hb_retptr( new QIcon( hbqt_par_QDirModel( 1 )->fileIcon( *hbqt_par_QModelIndex( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QIcon( hbqt_par_QDirModel( 1 )->fileIcon( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*
@@ -129,7 +129,7 @@ HB_FUNC( QT_QDIRMODEL_FILEICON )
*/
HB_FUNC( QT_QDIRMODEL_FILEINFO )
{
hb_retptr( new QFileInfo( hbqt_par_QDirModel( 1 )->fileInfo( *hbqt_par_QModelIndex( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFileInfo( hbqt_par_QDirModel( 1 )->fileInfo( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*
@@ -177,7 +177,7 @@ HB_FUNC( QT_QDIRMODEL_HASCHILDREN )
*/
HB_FUNC( QT_QDIRMODEL_HEADERDATA )
{
hb_retptr( new QVariant( hbqt_par_QDirModel( 1 )->headerData( hb_parni( 2 ), ( Qt::Orientation ) hb_parni( 3 ), ( HB_ISNUM( 4 ) ? hb_parni( 4 ) : Qt::DisplayRole ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QDirModel( 1 )->headerData( hb_parni( 2 ), ( Qt::Orientation ) hb_parni( 3 ), ( HB_ISNUM( 4 ) ? hb_parni( 4 ) : Qt::DisplayRole ) ) ) ) );
}
/*
@@ -193,7 +193,7 @@ HB_FUNC( QT_QDIRMODEL_ICONPROVIDER )
*/
HB_FUNC( QT_QDIRMODEL_INDEX )
{
hb_retptr( new QModelIndex( hbqt_par_QDirModel( 1 )->index( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QModelIndex( 4 ) : QModelIndex() ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QDirModel( 1 )->index( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QModelIndex( 4 ) : QModelIndex() ) ) ) ) );
}
/*
@@ -201,7 +201,7 @@ HB_FUNC( QT_QDIRMODEL_INDEX )
*/
HB_FUNC( QT_QDIRMODEL_INDEX_1 )
{
hb_retptr( new QModelIndex( hbqt_par_QDirModel( 1 )->index( hbqt_par_QString( 2 ), hb_parni( 3 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QDirModel( 1 )->index( hbqt_par_QString( 2 ), hb_parni( 3 ) ) ) ) );
}
/*
@@ -241,7 +241,7 @@ HB_FUNC( QT_QDIRMODEL_MIMEDATA )
*/
HB_FUNC( QT_QDIRMODEL_MIMETYPES )
{
hb_retptr( new QStringList( hbqt_par_QDirModel( 1 )->mimeTypes() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QDirModel( 1 )->mimeTypes() ) ) );
}
/*
@@ -249,7 +249,7 @@ HB_FUNC( QT_QDIRMODEL_MIMETYPES )
*/
HB_FUNC( QT_QDIRMODEL_MKDIR )
{
hb_retptr( new QModelIndex( hbqt_par_QDirModel( 1 )->mkdir( *hbqt_par_QModelIndex( 2 ), hbqt_par_QString( 3 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QDirModel( 1 )->mkdir( *hbqt_par_QModelIndex( 2 ), hbqt_par_QString( 3 ) ) ) ) );
}
/*
@@ -257,7 +257,7 @@ HB_FUNC( QT_QDIRMODEL_MKDIR )
*/
HB_FUNC( QT_QDIRMODEL_NAMEFILTERS )
{
hb_retptr( new QStringList( hbqt_par_QDirModel( 1 )->nameFilters() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QDirModel( 1 )->nameFilters() ) ) );
}
/*
@@ -265,7 +265,7 @@ HB_FUNC( QT_QDIRMODEL_NAMEFILTERS )
*/
HB_FUNC( QT_QDIRMODEL_PARENT )
{
hb_retptr( new QModelIndex( hbqt_par_QDirModel( 1 )->parent( *hbqt_par_QModelIndex( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QDirModel( 1 )->parent( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*

View File

@@ -71,6 +71,7 @@
* flags DockWidgetFeatures
*/
#include <QtCore/QPointer>
#include <QtGui/QDockWidget>
@@ -80,19 +81,18 @@
* QDockWidget ( QWidget * parent = 0, Qt::WindowFlags flags = 0 )
* ~QDockWidget ()
*/
HB_FUNC( QT_QDOCKWIDGET )
{
hb_retptr( new QDockWidget( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QDockWidget > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QDOCKWIDGET_DESTROY )
{
delete hbqt_par_QDockWidget( 1 );
}
pObj = new QDockWidget( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* Qt::DockWidgetAreas allowedAreas () const
*/

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QDoubleSpinBox>
@@ -73,19 +74,18 @@
/*
* QDoubleSpinBox ( QWidget * parent = 0 )
*/
HB_FUNC( QT_QDOUBLESPINBOX )
{
hb_retptr( ( QDoubleSpinBox* ) new QDoubleSpinBox( hbqt_par_QWidget( 1 ) ) );
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QDoubleSpinBox > pObj = NULL;
pObj = ( QDoubleSpinBox* ) new QDoubleSpinBox( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QDOUBLESPINBOX_DESTROY )
{
}
/*
* QString cleanText () const
*/

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QDragEnterEvent>
@@ -73,20 +74,11 @@
/*
* QDragEnterEvent ( const QPoint & point, Qt::DropActions actions, const QMimeData * data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers )
*/
HB_FUNC( QT_QDRAGENTEREVENT )
{
// hb_retptr( ( * ) new () );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QDRAGENTEREVENT_DESTROY )
{
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QDragLeaveEvent>
@@ -73,20 +74,11 @@
/*
* QDragLeaveEvent ()
*/
HB_FUNC( QT_QDRAGLEAVEEVENT )
{
// hb_retptr( ( * ) new () );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QDRAGLEAVEEVENT_DESTROY )
{
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QDragMoveEvent>
@@ -74,19 +75,10 @@
* QDragMoveEvent ( const QPoint & pos, Qt::DropActions actions, const QMimeData * data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Type type = DragMove )
* ~QDragMoveEvent ()
*/
HB_FUNC( QT_QDRAGMOVEEVENT )
{
// hb_retptr( ( * ) new () );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QDRAGMOVEEVENT_DESTROY )
{
delete hbqt_par_QDragMoveEvent( 1 );
}
/*
* void accept ( const QRect & rectangle )
*/
@@ -108,7 +100,7 @@ HB_FUNC( QT_QDRAGMOVEEVENT_ACCEPT_1 )
*/
HB_FUNC( QT_QDRAGMOVEEVENT_ANSWERRECT )
{
hb_retptr( new QRect( hbqt_par_QDragMoveEvent( 1 )->answerRect() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QDragMoveEvent( 1 )->answerRect() ) ) );
}
/*

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QDropEvent>
@@ -73,19 +74,10 @@
/*
* QDropEvent ( const QPoint & pos, Qt::DropActions actions, const QMimeData * data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Type type = Drop )
*/
HB_FUNC( QT_QDROPEVENT )
{
// hb_retptr( ( QDropEvent* ) new QDropEvent() );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QDROPEVENT_DESTROY )
{
}
/*
* void acceptProposedAction ()
*/
@@ -131,7 +123,7 @@ HB_FUNC( QT_QDROPEVENT_MOUSEBUTTONS )
*/
HB_FUNC( QT_QDROPEVENT_POS )
{
hb_retptr( new QPoint( hbqt_par_QDropEvent( 1 )->pos() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QDropEvent( 1 )->pos() ) ) );
}
/*

View File

@@ -75,6 +75,7 @@
* oid showMessage ( const QString & message )
*/
#include <QtCore/QPointer>
#include <QtGui/QErrorMessage>
@@ -83,19 +84,18 @@
* QErrorMessage ( QWidget * parent = 0 )
* ~QErrorMessage ()
*/
HB_FUNC( QT_QERRORMESSAGE )
{
hb_retptr( ( QErrorMessage* ) new QErrorMessage( hbqt_par_QWidget( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QErrorMessage > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QERRORMESSAGE_DESTROY )
{
delete hbqt_par_QErrorMessage( 1 );
}
pObj = ( QErrorMessage* ) new QErrorMessage( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* void showMessage ( const QString & message, const QString & type )
*/

View File

@@ -70,6 +70,7 @@
* enum Type { None, AccessibilityDescription, AccessibilityHelp, AccessibilityPrepare, ..., MaxUser }
*/
#include <QtCore/QPointer>
#include <QtCore/QEvent>
@@ -78,19 +79,15 @@
* QEvent ( Type type )
* virtual ~QEvent ()
*/
HB_FUNC( QT_QEVENT )
{
hb_retptr( ( QEvent* ) new QEvent( ( QEvent::Type ) hb_parni( 1 ) ) );
}
void * pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QEVENT_DESTROY )
{
delete hbqt_par_QEvent( 1 );
}
pObj = ( QEvent* ) new QEvent( ( QEvent::Type ) hb_parni( 1 ) ) ;
hb_retptr( pObj );
}
/*
* void accept ()
*/

View File

@@ -71,6 +71,7 @@
* flags ProcessEventsFlags
*/
#include <QtCore/QPointer>
#include <QtCore/QEventLoop>
#include <QtCore/QEvent>
@@ -79,19 +80,18 @@
* QEventLoop ( QObject * parent = 0 )
* ~QEventLoop ()
*/
HB_FUNC( QT_QEVENTLOOP )
{
hb_retptr( ( QEvent* ) new QEventLoop( hbqt_par_QObject( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QEventLoop > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QEVENTLOOP_DESTROY )
{
delete hbqt_par_QEventLoop( 1 );
}
pObj = new QEventLoop( hbqt_par_QObject( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* int exec ( ProcessEventsFlags flags = AllEvents )
*/

View File

@@ -92,6 +92,7 @@
* //QString getSaveFileName ( QWidget * parent = 0, const QString & caption = QString(), const QString & dir = QString(), const QString & filter = QString(), QString * selectedFilter = 0, Options options = 0 )
*/
#include <QtCore/QPointer>
#include <QtGui/QFileDialog>
@@ -101,19 +102,29 @@
* QFileDialog ( QWidget * parent = 0, const QString & caption = QString(), const QString & directory = QString(), const QString & filter = QString() )
* ~QFileDialog ()
*/
HB_FUNC( QT_QFILEDIALOG )
{
hb_retptr( ( QFileDialog* ) new QFileDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QFileDialog > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QFILEDIALOG_DESTROY )
{
delete hbqt_par_QFileDialog( 1 );
}
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = new QFileDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) 0 ) ;
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISNUM( 2 ) )
{
pObj = new QFileDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ;
}
else
{
pObj = new QFileDialog() ;
}
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* AcceptMode acceptMode () const
*/
@@ -143,7 +154,7 @@ HB_FUNC( QT_QFILEDIALOG_DEFAULTSUFFIX )
*/
HB_FUNC( QT_QFILEDIALOG_DIRECTORY )
{
hb_retptr( new QDir( hbqt_par_QFileDialog( 1 )->directory() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDir( hbqt_par_QFileDialog( 1 )->directory() ) ) );
}
/*
@@ -167,7 +178,7 @@ HB_FUNC( QT_QFILEDIALOG_FILTER )
*/
HB_FUNC( QT_QFILEDIALOG_HISTORY )
{
hb_retptr( new QStringList( hbqt_par_QFileDialog( 1 )->history() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QFileDialog( 1 )->history() ) ) );
}
/*
@@ -215,7 +226,7 @@ HB_FUNC( QT_QFILEDIALOG_LABELTEXT )
*/
HB_FUNC( QT_QFILEDIALOG_NAMEFILTERS )
{
hb_retptr( new QStringList( hbqt_par_QFileDialog( 1 )->nameFilters() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QFileDialog( 1 )->nameFilters() ) ) );
}
/*
@@ -255,7 +266,7 @@ HB_FUNC( QT_QFILEDIALOG_RESTORESTATE )
*/
HB_FUNC( QT_QFILEDIALOG_SAVESTATE )
{
hb_retptr( new QByteArray( hbqt_par_QFileDialog( 1 )->saveState() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QFileDialog( 1 )->saveState() ) ) );
}
/*
@@ -279,7 +290,7 @@ HB_FUNC( QT_QFILEDIALOG_SELECTNAMEFILTER )
*/
HB_FUNC( QT_QFILEDIALOG_SELECTEDFILES )
{
hb_retptr( new QStringList( hbqt_par_QFileDialog( 1 )->selectedFiles() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QFileDialog( 1 )->selectedFiles() ) ) );
}
/*

View File

@@ -70,6 +70,7 @@
* enum Roles { FileIconRole, FilePathRole, FileNameRole, FilePermissions }
*/
#include <QtCore/QPointer>
#include <QtGui/QFileSystemModel>
#include <QtCore/QDateTime>
@@ -78,19 +79,18 @@
* QFileSystemModel ( QObject * parent = 0 )
* ~QFileSystemModel ()
*/
HB_FUNC( QT_QFILESYSTEMMODEL )
{
hb_retptr( ( QFileSystemModel * ) new QFileSystemModel() );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QFileSystemModel > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QFILESYSTEMMODEL_DESTROY )
{
delete hbqt_par_QFileSystemModel( 1 );
}
pObj = ( QFileSystemModel * ) new QFileSystemModel() ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* virtual bool dropMimeData ( const QMimeData * data, Qt::DropAction action, int row, int column, const QModelIndex & parent )
*/
@@ -104,7 +104,7 @@ HB_FUNC( QT_QFILESYSTEMMODEL_DROPMIMEDATA )
*/
HB_FUNC( QT_QFILESYSTEMMODEL_FILEICON )
{
hb_retptr( new QIcon( hbqt_par_QFileSystemModel( 1 )->fileIcon( *hbqt_par_QModelIndex( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QIcon( hbqt_par_QFileSystemModel( 1 )->fileIcon( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*
@@ -112,7 +112,7 @@ HB_FUNC( QT_QFILESYSTEMMODEL_FILEICON )
*/
HB_FUNC( QT_QFILESYSTEMMODEL_FILEINFO )
{
hb_retptr( new QFileInfo( hbqt_par_QFileSystemModel( 1 )->fileInfo( *hbqt_par_QModelIndex( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFileInfo( hbqt_par_QFileSystemModel( 1 )->fileInfo( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*
@@ -152,7 +152,7 @@ HB_FUNC( QT_QFILESYSTEMMODEL_ICONPROVIDER )
*/
HB_FUNC( QT_QFILESYSTEMMODEL_INDEX )
{
hb_retptr( new QModelIndex( hbqt_par_QFileSystemModel( 1 )->index( hbqt_par_QString( 2 ), hb_parni( 3 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QFileSystemModel( 1 )->index( hbqt_par_QString( 2 ), hb_parni( 3 ) ) ) ) );
}
/*
@@ -176,7 +176,7 @@ HB_FUNC( QT_QFILESYSTEMMODEL_ISREADONLY )
*/
HB_FUNC( QT_QFILESYSTEMMODEL_LASTMODIFIED )
{
hb_retptr( new QDateTime( hbqt_par_QFileSystemModel( 1 )->lastModified( *hbqt_par_QModelIndex( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDateTime( hbqt_par_QFileSystemModel( 1 )->lastModified( *hbqt_par_QModelIndex( 2 ) ) ) ) );
}
/*
@@ -192,7 +192,7 @@ HB_FUNC( QT_QFILESYSTEMMODEL_MIMEDATA )
*/
HB_FUNC( QT_QFILESYSTEMMODEL_MIMETYPES )
{
hb_retptr( new QStringList( hbqt_par_QFileSystemModel( 1 )->mimeTypes() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QFileSystemModel( 1 )->mimeTypes() ) ) );
}
/*
@@ -200,7 +200,7 @@ HB_FUNC( QT_QFILESYSTEMMODEL_MIMETYPES )
*/
HB_FUNC( QT_QFILESYSTEMMODEL_MKDIR )
{
hb_retptr( new QModelIndex( hbqt_par_QFileSystemModel( 1 )->mkdir( *hbqt_par_QModelIndex( 2 ), hbqt_par_QString( 3 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QFileSystemModel( 1 )->mkdir( *hbqt_par_QModelIndex( 2 ), hbqt_par_QString( 3 ) ) ) ) );
}
/*
@@ -208,7 +208,7 @@ HB_FUNC( QT_QFILESYSTEMMODEL_MKDIR )
*/
HB_FUNC( QT_QFILESYSTEMMODEL_MYCOMPUTER )
{
hb_retptr( new QVariant( hbqt_par_QFileSystemModel( 1 )->myComputer( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : Qt::DisplayRole ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QFileSystemModel( 1 )->myComputer( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : Qt::DisplayRole ) ) ) ) );
}
/*
@@ -224,7 +224,7 @@ HB_FUNC( QT_QFILESYSTEMMODEL_NAMEFILTERDISABLES )
*/
HB_FUNC( QT_QFILESYSTEMMODEL_NAMEFILTERS )
{
hb_retptr( new QStringList( hbqt_par_QFileSystemModel( 1 )->nameFilters() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QFileSystemModel( 1 )->nameFilters() ) ) );
}
/*
@@ -264,7 +264,7 @@ HB_FUNC( QT_QFILESYSTEMMODEL_RMDIR )
*/
HB_FUNC( QT_QFILESYSTEMMODEL_ROOTDIRECTORY )
{
hb_retptr( new QDir( hbqt_par_QFileSystemModel( 1 )->rootDirectory() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QDir( hbqt_par_QFileSystemModel( 1 )->rootDirectory() ) ) );
}
/*
@@ -328,7 +328,7 @@ HB_FUNC( QT_QFILESYSTEMMODEL_SETRESOLVESYMLINKS )
*/
HB_FUNC( QT_QFILESYSTEMMODEL_SETROOTPATH )
{
hb_retptr( new QModelIndex( hbqt_par_QFileSystemModel( 1 )->setRootPath( hbqt_par_QString( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QFileSystemModel( 1 )->setRootPath( hbqt_par_QString( 2 ) ) ) ) );
}
/*

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QFocusEvent>
@@ -73,19 +74,10 @@
/*
* QFocusEvent ( Type type, Qt::FocusReason reason = Qt::OtherFocusReason )
*/
HB_FUNC( QT_QFOCUSEVENT )
{
// hb_retptr( ( QFocusEvent* ) new QFocusEvent() );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QFOCUSEVENT_DESTROY )
{
}
/*
* bool gotFocus () const
*/

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QFocusFrame>
@@ -74,19 +75,18 @@
* QFocusFrame ( QWidget * parent = 0 )
* ~QFocusFrame ()
*/
HB_FUNC( QT_QFOCUSFRAME )
{
hb_retptr( ( QFocusFrame* ) new QFocusFrame( hbqt_par_QWidget( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QFocusFrame > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QFOCUSFRAME_DESTROY )
{
delete hbqt_par_QFocusFrame( 1 );
}
pObj = ( QFocusFrame* ) new QFocusFrame( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* void setWidget ( QWidget * widget )
*/

View File

@@ -76,6 +76,7 @@
* enum Weight { Light, Normal, DemiBold, Bold, Black }
*/
#include <QtCore/QPointer>
#include <QStringList>
#include <QtGui/QFont>
@@ -87,46 +88,45 @@
* QFont ( const QFont & font )
* ~QFont ()
*/
HB_FUNC( QT_QFONT )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
{
hb_retptr( ( QFont* ) new QFont( hbqt_par_QString( 1 ), -1, -1, false ) );
pObj = ( QFont* ) new QFont( hbqt_par_QString( 1 ), -1, -1, false ) ;
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) )
{
hb_retptr( ( QFont* ) new QFont( hbqt_par_QString( 1 ), hb_parni( 2 ), -1, false ) );
pObj = ( QFont* ) new QFont( hbqt_par_QString( 1 ), hb_parni( 2 ), -1, false ) ;
}
else if( hb_pcount() == 3 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) )
{
hb_retptr( ( QFont* ) new QFont( hbqt_par_QString( 1 ), hb_parni( 2 ), hb_parni( 3 ), false ) );
pObj = ( QFont* ) new QFont( hbqt_par_QString( 1 ), hb_parni( 2 ), hb_parni( 3 ), false ) ;
}
else if( hb_pcount() == 4 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) && HB_ISLOG( 4 ) )
{
hb_retptr( ( QFont* ) new QFont( hbqt_par_QString( 1 ), hb_parni( 2 ), hb_parni( 3 ), hb_parl( 4 ) ) );
pObj = ( QFont* ) new QFont( hbqt_par_QString( 1 ), hb_parni( 2 ), hb_parni( 3 ), hb_parl( 4 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
hb_retptr( ( QFont* ) new QFont( *hbqt_par_QFont( 1 ) ) );
pObj = ( QFont* ) new QFont( *hbqt_par_QFont( 1 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
{
hb_retptr( ( QFont* ) new QFont( *hbqt_par_QFont( 1 ), hbqt_par_QPaintDevice( 2 ) ) );
pObj = ( QFont* ) new QFont( *hbqt_par_QFont( 1 ), hbqt_par_QPaintDevice( 2 ) ) ;
}
else
{
hb_retptr( ( QFont* ) new QFont() );
pObj = ( QFont* ) new QFont() ;
}
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QFONT_DESTROY )
{
delete hbqt_par_QFont( 1 );
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QFont" );
hb_retptrGC( p );
}
/*
* bool bold () const
*/
@@ -580,7 +580,7 @@ HB_FUNC( QT_QFONT_SUBSTITUTE )
*/
HB_FUNC( QT_QFONT_SUBSTITUTES )
{
hb_retptr( new QStringList( hbqt_par_QFont( 1 )->substitutes( hbqt_par_QString( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QFont( 1 )->substitutes( hbqt_par_QString( 2 ) ) ) ) );
}
/*
@@ -588,7 +588,7 @@ HB_FUNC( QT_QFONT_SUBSTITUTES )
*/
HB_FUNC( QT_QFONT_SUBSTITUTIONS )
{
hb_retptr( new QStringList( hbqt_par_QFont( 1 )->substitutions() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QFont( 1 )->substitutions() ) ) );
}

View File

@@ -71,6 +71,7 @@
* flags FontFilters
*/
#include <QtCore/QPointer>
#include <QtGui/QFontComboBox>
@@ -79,25 +80,24 @@
* QFontComboBox ( QWidget * parent = 0 )
* ~QFontComboBox ()
*/
HB_FUNC( QT_QFONTCOMBOBOX )
{
hb_retptr( ( QFontComboBox * ) new QFontComboBox( hbqt_par_QWidget( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QFontComboBox > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QFONTCOMBOBOX_DESTROY )
{
delete hbqt_par_QFontComboBox( 1 );
}
pObj = ( QFontComboBox * ) new QFontComboBox( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* QFont currentFont () const
*/
HB_FUNC( QT_QFONTCOMBOBOX_CURRENTFONT )
{
hb_retptr( new QFont( hbqt_par_QFontComboBox( 1 )->currentFont() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QFontComboBox( 1 )->currentFont() ) ) );
}
/*

View File

@@ -83,6 +83,7 @@
* QList<int> standardSizes ()
*/
#include <QtCore/QPointer>
#include <QStringList>
#include <QtGui/QFontDatabase>
@@ -91,19 +92,15 @@
/*
* QFontDatabase ()
*/
HB_FUNC( QT_QFONTDATABASE )
{
hb_retptr( ( QFontDatabase* ) new QFontDatabase() );
void * pObj = NULL;
pObj = new QFontDatabase() ;
hb_retptr( pObj );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QFONTDATABASE_DESTROY )
{
}
/*
* bool bold ( const QString & family, const QString & style ) const
*/
@@ -117,7 +114,7 @@ HB_FUNC( QT_QFONTDATABASE_BOLD )
*/
HB_FUNC( QT_QFONTDATABASE_FAMILIES )
{
hb_retptr( new QStringList( hbqt_par_QFontDatabase( 1 )->families( ( HB_ISNUM( 2 ) ? ( QFontDatabase::WritingSystem ) hb_parni( 2 ) : ( QFontDatabase::WritingSystem ) QFontDatabase::Any ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QFontDatabase( 1 )->families( ( HB_ISNUM( 2 ) ? ( QFontDatabase::WritingSystem ) hb_parni( 2 ) : ( QFontDatabase::WritingSystem ) QFontDatabase::Any ) ) ) ) );
}
/*
@@ -125,7 +122,7 @@ HB_FUNC( QT_QFONTDATABASE_FAMILIES )
*/
HB_FUNC( QT_QFONTDATABASE_FONT )
{
hb_retptr( new QFont( hbqt_par_QFontDatabase( 1 )->font( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ), hb_parni( 4 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QFontDatabase( 1 )->font( hbqt_par_QString( 2 ), hbqt_par_QString( 3 ), hb_parni( 4 ) ) ) ) );
}
/*
@@ -189,7 +186,7 @@ HB_FUNC( QT_QFONTDATABASE_STYLESTRING_1 )
*/
HB_FUNC( QT_QFONTDATABASE_STYLES )
{
hb_retptr( new QStringList( hbqt_par_QFontDatabase( 1 )->styles( hbqt_par_QString( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QFontDatabase( 1 )->styles( hbqt_par_QString( 2 ) ) ) ) );
}
/*
@@ -221,7 +218,7 @@ HB_FUNC( QT_QFONTDATABASE_ADDAPPLICATIONFONTFROMDATA )
*/
HB_FUNC( QT_QFONTDATABASE_APPLICATIONFONTFAMILIES )
{
hb_retptr( new QStringList( hbqt_par_QFontDatabase( 1 )->applicationFontFamilies( hb_parni( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QFontDatabase( 1 )->applicationFontFamilies( hb_parni( 2 ) ) ) ) );
}
/*

View File

@@ -71,6 +71,7 @@
* flags FontDialogOptions
*/
#include <QtCore/QPointer>
#include <QtGui/QFontDialog>
@@ -79,25 +80,35 @@
* QFontDialog ( QWidget * parent = 0 )
* QFontDialog ( const QFont & initial, QWidget * parent = 0 )
*/
HB_FUNC( QT_QFONTDIALOG )
{
hb_retptr( ( QFontDialog * ) new QFontDialog( hbqt_par_QWidget( 1 ) ) );
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QFontDialog > pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = new QFontDialog( hbqt_par_QWidget( 1 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
{
pObj = new QFontDialog( *hbqt_par_QFont( 1 ), hbqt_par_QWidget( 2 ) ) ;
}
else
{
pObj = new QFontDialog( 0 ) ;
}
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QFONTDIALOG_DESTROY )
{
}
/*
* QFont currentFont () const
*/
HB_FUNC( QT_QFONTDIALOG_CURRENTFONT )
{
hb_retptr( new QFont( hbqt_par_QFontDialog( 1 )->currentFont() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QFontDialog( 1 )->currentFont() ) ) );
}
/*
@@ -113,7 +124,7 @@ HB_FUNC( QT_QFONTDIALOG_OPTIONS )
*/
HB_FUNC( QT_QFONTDIALOG_SELECTEDFONT )
{
hb_retptr( new QFont( hbqt_par_QFontDialog( 1 )->selectedFont() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QFontDialog( 1 )->selectedFont() ) ) );
}
/*
@@ -155,7 +166,7 @@ HB_FUNC( QT_QFONTDIALOG_GETFONT )
{
bool iOk = 0;
hb_retptr( new QFont( hbqt_par_QFontDialog( 1 )->getFont( &iOk, *hbqt_par_QFont( 3 ), hbqt_par_QWidget( 4 ), hbqt_par_QString( 5 ), ( QFontDialog::FontDialogOptions ) hb_parni( 6 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QFontDialog( 1 )->getFont( &iOk, *hbqt_par_QFont( 3 ), hbqt_par_QWidget( 4 ), hbqt_par_QString( 5 ), ( QFontDialog::FontDialogOptions ) hb_parni( 6 ) ) ) ) );
hb_stornl( iOk, 2 );
}
@@ -167,7 +178,7 @@ HB_FUNC( QT_QFONTDIALOG_GETFONT_1 )
{
bool iOk = 0;
hb_retptr( new QFont( hbqt_par_QFontDialog( 1 )->getFont( &iOk, *hbqt_par_QFont( 3 ), hbqt_par_QWidget( 4 ), hbqt_par_char( 5 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QFontDialog( 1 )->getFont( &iOk, *hbqt_par_QFont( 3 ), hbqt_par_QWidget( 4 ), hbqt_par_char( 5 ) ) ) ) );
hb_stornl( iOk, 2 );
}
@@ -179,7 +190,7 @@ HB_FUNC( QT_QFONTDIALOG_GETFONT_2 )
{
bool iOk = 0;
hb_retptr( new QFont( hbqt_par_QFontDialog( 1 )->getFont( &iOk, *hbqt_par_QFont( 3 ), hbqt_par_QWidget( 4 ), hbqt_par_QString( 5 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QFontDialog( 1 )->getFont( &iOk, *hbqt_par_QFont( 3 ), hbqt_par_QWidget( 4 ), hbqt_par_QString( 5 ) ) ) ) );
hb_stornl( iOk, 2 );
}
@@ -191,7 +202,7 @@ HB_FUNC( QT_QFONTDIALOG_GETFONT_3 )
{
bool iOk = 0;
hb_retptr( new QFont( hbqt_par_QFontDialog( 1 )->getFont( &iOk, *hbqt_par_QFont( 3 ), hbqt_par_QWidget( 4 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QFontDialog( 1 )->getFont( &iOk, *hbqt_par_QFont( 3 ), hbqt_par_QWidget( 4 ) ) ) ) );
hb_stornl( iOk, 2 );
}
@@ -203,7 +214,7 @@ HB_FUNC( QT_QFONTDIALOG_GETFONT_4 )
{
bool iOk = 0;
hb_retptr( new QFont( hbqt_par_QFontDialog( 1 )->getFont( &iOk, hbqt_par_QWidget( 3 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QFontDialog( 1 )->getFont( &iOk, hbqt_par_QWidget( 3 ) ) ) ) );
hb_stornl( iOk, 2 );
}

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QFontInfo>
@@ -75,19 +76,25 @@
* QFontInfo ( const QFontInfo & fi )
* ~QFontInfo ()
*/
HB_FUNC( QT_QFONTINFO )
{
hb_retptr( new QFontInfo( *hbqt_par_QFont( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QFONTINFO_DESTROY )
{
delete hbqt_par_QFontInfo( 1 );
}
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = new QFontInfo( *hbqt_par_QFontInfo( 1 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
pObj = new QFontInfo( *hbqt_par_QFont( 2 ) ) ;
}
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QFontInfo" );
hb_retptrGC( p );
}
/*
* bool bold () const
*/

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QFontMetrics>
@@ -76,33 +77,32 @@
* QFontMetrics ( const QFontMetrics & fm )
* ~QFontMetrics ()
*/
HB_FUNC( QT_QFONTMETRICS )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
hb_retptr( ( QFontMetrics* ) new QFontMetrics( *hbqt_par_QFontMetrics( 1 ) ) );
pObj = new QFontMetrics( *hbqt_par_QFontMetrics( 1 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
if( hbqt_par_QString( 1 ) == ( QString ) "QFont" )
{
hb_retptr( ( QFontMetrics* ) new QFontMetrics( *hbqt_par_QFont( 2 ) ) );
pObj = new QFontMetrics( *hbqt_par_QFont( 2 ) ) ;
}
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
{
hb_retptr( ( QFontMetrics* ) new QFontMetrics( *hbqt_par_QFont( 1 ), hbqt_par_QPaintDevice( 2 ) ) );
pObj = new QFontMetrics( *hbqt_par_QFont( 1 ), hbqt_par_QPaintDevice( 2 ) ) ;
}
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QFONTMETRICS_DESTROY )
{
delete hbqt_par_QFontMetrics( 1 );
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QFontMetrics" );
hb_retptrGC( p );
}
/*
* int ascent () const
*/
@@ -124,7 +124,7 @@ HB_FUNC( QT_QFONTMETRICS_AVERAGECHARWIDTH )
*/
HB_FUNC( QT_QFONTMETRICS_BOUNDINGRECT )
{
hb_retptr( new QRect( hbqt_par_QFontMetrics( 1 )->boundingRect( hb_parni( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QFontMetrics( 1 )->boundingRect( hb_parni( 2 ) ) ) ) );
}
/*
@@ -132,7 +132,7 @@ HB_FUNC( QT_QFONTMETRICS_BOUNDINGRECT )
*/
HB_FUNC( QT_QFONTMETRICS_BOUNDINGRECT_1 )
{
hb_retptr( new QRect( hbqt_par_QFontMetrics( 1 )->boundingRect( hbqt_par_QString( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QFontMetrics( 1 )->boundingRect( hbqt_par_QString( 2 ) ) ) ) );
}
/*
@@ -142,7 +142,7 @@ HB_FUNC( QT_QFONTMETRICS_BOUNDINGRECT_2 )
{
int iTabArray = 0;
hb_retptr( new QRect( hbqt_par_QFontMetrics( 1 )->boundingRect( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), hb_parni( 6 ), hbqt_par_QString( 7 ), hb_parni( 8 ), &iTabArray ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QFontMetrics( 1 )->boundingRect( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), hb_parni( 6 ), hbqt_par_QString( 7 ), hb_parni( 8 ), &iTabArray ) ) ) );
hb_storni( iTabArray, 9 );
}
@@ -154,7 +154,7 @@ HB_FUNC( QT_QFONTMETRICS_BOUNDINGRECT_3 )
{
int iTabArray = 0;
hb_retptr( new QRect( hbqt_par_QFontMetrics( 1 )->boundingRect( *hbqt_par_QRect( 2 ), hb_parni( 3 ), hbqt_par_QString( 4 ), hb_parni( 5 ), &iTabArray ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QFontMetrics( 1 )->boundingRect( *hbqt_par_QRect( 2 ), hb_parni( 3 ), hbqt_par_QString( 4 ), hb_parni( 5 ), &iTabArray ) ) ) );
hb_storni( iTabArray, 6 );
}
@@ -270,7 +270,7 @@ HB_FUNC( QT_QFONTMETRICS_SIZE )
{
int iTabArray = 0;
hb_retptr( new QSize( hbqt_par_QFontMetrics( 1 )->size( hb_parni( 2 ), hbqt_par_QString( 3 ), hb_parni( 4 ), &iTabArray ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QFontMetrics( 1 )->size( hb_parni( 2 ), hbqt_par_QString( 3 ), hb_parni( 4 ), &iTabArray ) ) ) );
hb_storni( iTabArray, 5 );
}
@@ -288,7 +288,7 @@ HB_FUNC( QT_QFONTMETRICS_STRIKEOUTPOS )
*/
HB_FUNC( QT_QFONTMETRICS_TIGHTBOUNDINGRECT )
{
hb_retptr( new QRect( hbqt_par_QFontMetrics( 1 )->tightBoundingRect( hbqt_par_QString( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QFontMetrics( 1 )->tightBoundingRect( hbqt_par_QString( 2 ) ) ) ) );
}
/*

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QFontMetricsF>
@@ -77,37 +78,33 @@
* QFontMetricsF ( const QFontMetricsF & fm )
* ~QFontMetricsF ()
*/
HB_FUNC( QT_QFONTMETRICSF )
{
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
hb_retptr( ( QFontMetricsF* ) new QFontMetricsF( *hbqt_par_QFontMetricsF( 1 ) ) );
pObj = ( QFontMetricsF* ) new QFontMetricsF( *hbqt_par_QFontMetricsF( 1 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
if( hbqt_par_QString( 1 ) == ( QString ) "QFont" )
{
hb_retptr( ( QFontMetricsF* ) new QFontMetricsF( *hbqt_par_QFont( 2 ) ) );
pObj = ( QFontMetricsF* ) new QFontMetricsF( *hbqt_par_QFont( 2 ) ) ;
}
else if( hbqt_par_QString( 1 ) == ( QString ) "QFontMetrics" )
{
hb_retptr( ( QFontMetricsF* ) new QFontMetricsF( *hbqt_par_QFontMetrics( 2 ) ) );
pObj = ( QFontMetricsF* ) new QFontMetricsF( *hbqt_par_QFontMetrics( 2 ) ) ;
}
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
{
hb_retptr( ( QFontMetricsF* ) new QFontMetricsF( *hbqt_par_QFont( 1 ), hbqt_par_QPaintDevice( 2 ) ) );
pObj = ( QFontMetricsF* ) new QFontMetricsF( *hbqt_par_QFont( 1 ), hbqt_par_QPaintDevice( 2 ) ) ;
}
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QFONTMETRICSF_DESTROY )
{
delete hbqt_par_QFontMetricsF( 1 );
hb_retptr( pObj );
}
/*
* qreal ascent () const
*/
@@ -129,7 +126,7 @@ HB_FUNC( QT_QFONTMETRICSF_AVERAGECHARWIDTH )
*/
HB_FUNC( QT_QFONTMETRICSF_BOUNDINGRECT )
{
hb_retptr( new QRectF( hbqt_par_QFontMetricsF( 1 )->boundingRect( hbqt_par_QString( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRectF( hbqt_par_QFontMetricsF( 1 )->boundingRect( hbqt_par_QString( 2 ) ) ) ) );
}
/*
@@ -137,7 +134,7 @@ HB_FUNC( QT_QFONTMETRICSF_BOUNDINGRECT )
*/
HB_FUNC( QT_QFONTMETRICSF_BOUNDINGRECT_1 )
{
hb_retptr( new QRectF( hbqt_par_QFontMetricsF( 1 )->boundingRect( hb_parni( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRectF( hbqt_par_QFontMetricsF( 1 )->boundingRect( hb_parni( 2 ) ) ) ) );
}
/*
@@ -147,7 +144,7 @@ HB_FUNC( QT_QFONTMETRICSF_BOUNDINGRECT_2 )
{
int iTabArray = 0;
hb_retptr( new QRectF( hbqt_par_QFontMetricsF( 1 )->boundingRect( *hbqt_par_QRectF( 2 ), hb_parni( 3 ), hbqt_par_QString( 4 ), hb_parni( 5 ), &iTabArray ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRectF( hbqt_par_QFontMetricsF( 1 )->boundingRect( *hbqt_par_QRectF( 2 ), hb_parni( 3 ), hbqt_par_QString( 4 ), hb_parni( 5 ), &iTabArray ) ) ) );
hb_storni( iTabArray, 6 );
}
@@ -263,7 +260,7 @@ HB_FUNC( QT_QFONTMETRICSF_SIZE )
{
int iTabArray = 0;
hb_retptr( new QSizeF( hbqt_par_QFontMetricsF( 1 )->size( hb_parni( 2 ), hbqt_par_QString( 3 ), hb_parni( 4 ), &iTabArray ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSizeF( hbqt_par_QFontMetricsF( 1 )->size( hb_parni( 2 ), hbqt_par_QString( 3 ), hb_parni( 4 ), &iTabArray ) ) ) );
hb_storni( iTabArray, 5 );
}
@@ -281,7 +278,7 @@ HB_FUNC( QT_QFONTMETRICSF_STRIKEOUTPOS )
*/
HB_FUNC( QT_QFONTMETRICSF_TIGHTBOUNDINGRECT )
{
hb_retptr( new QRectF( hbqt_par_QFontMetricsF( 1 )->tightBoundingRect( hbqt_par_QString( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRectF( hbqt_par_QFontMetricsF( 1 )->tightBoundingRect( hbqt_par_QString( 2 ) ) ) ) );
}
/*

View File

@@ -72,6 +72,7 @@
* enum RowWrapPolicy { DontWrapRows, WrapLongRows, WrapAllRows }
*/
#include <QtCore/QPointer>
#include <QtGui/QFormLayout>
@@ -80,19 +81,18 @@
* QFormLayout ( QWidget * parent = 0 )
* ~QFormLayout ()
*/
HB_FUNC( QT_QFORMLAYOUT )
{
hb_retptr( ( QFormLayout * ) new QFormLayout( hbqt_par_QWidget( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QFormLayout > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QFORMLAYOUT_DESTROY )
{
delete hbqt_par_QFormLayout( 1 );
}
pObj = ( QFormLayout * ) new QFormLayout( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* void addRow ( QWidget * label, QWidget * field )
*/

View File

@@ -72,6 +72,7 @@
* enum StyleMask { Shadow_Mask, Shape_Mask }
*/
#include <QtCore/QPointer>
#include <QtGui/QFrame>
@@ -80,25 +81,24 @@
* QFrame ( QWidget * parent = 0, Qt::WindowFlags f = 0 )
* ~QFrame ()
*/
HB_FUNC( QT_QFRAME )
{
hb_retptr( new QFrame( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QFrame > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QFRAME_DESTROY )
{
delete hbqt_par_QFrame( 1 );
}
pObj = new QFrame( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* QRect frameRect () const
*/
HB_FUNC( QT_QFRAME_FRAMERECT )
{
hb_retptr( new QRect( hbqt_par_QFrame( 1 )->frameRect() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QFrame( 1 )->frameRect() ) ) );
}
/*

View File

@@ -74,6 +74,7 @@
* enum TransferType { Binary, Ascii }
*/
#include <QtCore/QPointer>
#include <QtNetwork/QFtp>
@@ -82,10 +83,6 @@
* QFtp ( QObject * parent = 0 )
* virtual ~QFtp ()
*/
HB_FUNC( QT_QFTP )
{
hb_retptr( new QFtp( hbqt_par_QObject( 1 ) ) );
}
/*
* qint64 read ( char * data, qint64 maxlen )
@@ -102,14 +99,17 @@ HB_FUNC( QT_QFTP_READ )
hb_xfree( iData );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QFTP_DESTROY )
HB_FUNC( QT_QFTP )
{
delete hbqt_par_QFtp( 1 );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QFtp > pObj = NULL;
pObj = new QFtp( hbqt_par_QObject( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* qint64 bytesAvailable () const
*/
@@ -259,7 +259,7 @@ HB_FUNC( QT_QFTP_RAWCOMMAND )
*/
HB_FUNC( QT_QFTP_READALL )
{
hb_retptr( new QByteArray( hbqt_par_QFtp( 1 )->readAll() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QFtp( 1 )->readAll() ) ) );
}
/*

View File

@@ -72,6 +72,7 @@
* enum Type { LinearGradient, RadialGradient, ConicalGradient, NoGradient }
*/
#include <QtCore/QPointer>
#include <QtGui/QGradient>
@@ -79,19 +80,10 @@
/*
*
*/
HB_FUNC( QT_QGRADIENT )
{
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QGRADIENT_DESTROY )
{
}
/*
* CoordinateMode coordinateMode () const
*/
@@ -145,7 +137,7 @@ HB_FUNC( QT_QGRADIENT_SPREAD )
*/
HB_FUNC( QT_QGRADIENT_STOPS )
{
hb_retptr( new QGradientStops( hbqt_par_QGradient( 1 )->stops() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QGradientStops( hbqt_par_QGradient( 1 )->stops() ) ) );
}
/*

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QGridLayout>
@@ -75,19 +76,18 @@
* QGridLayout ()
* ~QGridLayout ()
*/
HB_FUNC( QT_QGRIDLAYOUT )
{
hb_retptr( new QGridLayout( hbqt_par_QWidget( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QGridLayout > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QGRIDLAYOUT_DESTROY )
{
delete hbqt_par_QGridLayout( 1 );
}
pObj = new QGridLayout( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* void addItem ( QLayoutItem * item, int row, int column, int rowSpan = 1, int columnSpan = 1, Qt::Alignment alignment = 0 )
*/
@@ -133,7 +133,7 @@ HB_FUNC( QT_QGRIDLAYOUT_ADDWIDGET_1 )
*/
HB_FUNC( QT_QGRIDLAYOUT_CELLRECT )
{
hb_retptr( new QRect( hbqt_par_QGridLayout( 1 )->cellRect( hb_parni( 2 ), hb_parni( 3 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QGridLayout( 1 )->cellRect( hb_parni( 2 ), hb_parni( 3 ) ) ) ) );
}
/*

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QGroupBox>
@@ -75,19 +76,18 @@
* QGroupBox ( const QString & title, QWidget * parent = 0 )
* ~QGroupBox ()
*/
HB_FUNC( QT_QGROUPBOX )
{
hb_retptr( ( QGroupBox * ) new QGroupBox( hbqt_par_QWidget( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QGroupBox > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QGROUPBOX_DESTROY )
{
delete hbqt_par_QGroupBox( 1 );
}
pObj = ( QGroupBox * ) new QGroupBox( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* Qt::Alignment alignment () const
*/

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QHBoxLayout>
@@ -75,19 +76,18 @@
* QHBoxLayout ( QWidget * parent )
* ~QHBoxLayout ()
*/
HB_FUNC( QT_QHBOXLAYOUT )
{
hb_retptr( ( QHBoxLayout * ) new QHBoxLayout( hbqt_par_QWidget( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QHBoxLayout > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QHBOXLAYOUT_DESTROY )
{
delete hbqt_par_QHBoxLayout( 1 );
}
pObj = ( QHBoxLayout * ) new QHBoxLayout( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */

View File

@@ -70,6 +70,7 @@
* enum ResizeMode { Interactive, Fixed, Stretch, ResizeToContents, Custom }
*/
#include <QtCore/QPointer>
#include <QtGui/QHeaderView>
@@ -78,19 +79,18 @@
* QHeaderView ( Qt::Orientation orientation, QWidget * parent = 0 )
* virtual ~QHeaderView ()
*/
HB_FUNC( QT_QHEADERVIEW )
{
hb_retptr( new QHeaderView( ( Qt::Orientation ) hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QHeaderView > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QHEADERVIEW_DESTROY )
{
delete hbqt_par_QHeaderView( 1 );
}
pObj = new QHeaderView( ( Qt::Orientation ) hb_parni( 1 ), hbqt_par_QWidget( 2 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* bool cascadingSectionResizes () const
*/
@@ -288,7 +288,7 @@ HB_FUNC( QT_QHEADERVIEW_RESTORESTATE )
*/
HB_FUNC( QT_QHEADERVIEW_SAVESTATE )
{
hb_retptr( new QByteArray( hbqt_par_QHeaderView( 1 )->saveState() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QHeaderView( 1 )->saveState() ) ) );
}
/*
@@ -456,7 +456,7 @@ HB_FUNC( QT_QHEADERVIEW_SHOWSECTION )
*/
HB_FUNC( QT_QHEADERVIEW_SIZEHINT )
{
hb_retptr( new QSize( hbqt_par_QHeaderView( 1 )->sizeHint() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QHeaderView( 1 )->sizeHint() ) ) );
}
/*

View File

@@ -72,6 +72,7 @@
* enum State { Unconnected, HostLookup, Connecting, Sending, ..., Closing }
*/
#include <QtCore/QPointer>
#include <QtNetwork/QHttp>
@@ -82,10 +83,6 @@
* QHttp ( const QString & hostName, ConnectionMode mode, quint16 port = 0, QObject * parent = 0 )
* virtual ~QHttp ()
*/
HB_FUNC( QT_QHTTP )
{
hb_retptr( new QHttp( hbqt_par_QObject( 1 ) ) );
}
/*
* qint64 read ( char * data, qint64 maxlen )
@@ -102,14 +99,17 @@ HB_FUNC( QT_QHTTP_READ )
hb_xfree( iData );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QHTTP_DESTROY )
HB_FUNC( QT_QHTTP )
{
delete hbqt_par_QHttp( 1 );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QHttp > pObj = NULL;
pObj = new QHttp( hbqt_par_QObject( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* qint64 bytesAvailable () const
*/
@@ -155,7 +155,7 @@ HB_FUNC( QT_QHTTP_CURRENTID )
*/
HB_FUNC( QT_QHTTP_CURRENTREQUEST )
{
hb_retptr( new QHttpRequestHeader( hbqt_par_QHttp( 1 )->currentRequest() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QHttpRequestHeader( hbqt_par_QHttp( 1 )->currentRequest() ) ) );
}
/*
@@ -211,7 +211,7 @@ HB_FUNC( QT_QHTTP_HEAD )
*/
HB_FUNC( QT_QHTTP_LASTRESPONSE )
{
hb_retptr( new QHttpResponseHeader( hbqt_par_QHttp( 1 )->lastResponse() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QHttpResponseHeader( hbqt_par_QHttp( 1 )->lastResponse() ) ) );
}
/*
@@ -235,7 +235,7 @@ HB_FUNC( QT_QHTTP_POST_1 )
*/
HB_FUNC( QT_QHTTP_READALL )
{
hb_retptr( new QByteArray( hbqt_par_QHttp( 1 )->readAll() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QHttp( 1 )->readAll() ) ) );
}
/*

View File

@@ -71,6 +71,7 @@
* enum OpenModeFlag { NotOpen, ReadOnly, WriteOnly, ReadWrite, ..., Unbuffered }
*/
#include <QtCore/QPointer>
#include <QtCore/QIODevice>
@@ -80,28 +81,10 @@
* QIODevice ( QObject * parent )
* virtual ~QIODevice ()
*/
HB_FUNC( QT_QIODEVICE )
{
#if 0
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
hb_retptr( ( QIODevice* ) new QIODevice( hbqt_par_QObject( 1 ) ) );
}
else
{
hb_retptr( ( QIODevice* ) new QIODevice() );
}
#endif
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QIODEVICE_DESTROY )
{
delete hbqt_par_QIODevice( 1 );
}
/*
* virtual bool atEnd () const
*/
@@ -227,7 +210,7 @@ HB_FUNC( QT_QIODEVICE_PEEK )
*/
HB_FUNC( QT_QIODEVICE_PEEK_1 )
{
hb_retptr( new QByteArray( hbqt_par_QIODevice( 1 )->peek( hb_parnint( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QIODevice( 1 )->peek( hb_parnint( 2 ) ) ) ) );
}
/*
@@ -259,7 +242,7 @@ HB_FUNC( QT_QIODEVICE_READ )
*/
HB_FUNC( QT_QIODEVICE_READ_1 )
{
hb_retptr( new QByteArray( hbqt_par_QIODevice( 1 )->read( hb_parnint( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QIODevice( 1 )->read( hb_parnint( 2 ) ) ) ) );
}
/*
@@ -267,7 +250,7 @@ HB_FUNC( QT_QIODEVICE_READ_1 )
*/
HB_FUNC( QT_QIODEVICE_READALL )
{
hb_retptr( new QByteArray( hbqt_par_QIODevice( 1 )->readAll() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QIODevice( 1 )->readAll() ) ) );
}
/*
@@ -283,7 +266,7 @@ HB_FUNC( QT_QIODEVICE_READLINE )
*/
HB_FUNC( QT_QIODEVICE_READLINE_1 )
{
hb_retptr( new QByteArray( hbqt_par_QIODevice( 1 )->readLine( hb_parnint( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QIODevice( 1 )->readLine( hb_parnint( 2 ) ) ) ) );
}
/*

View File

@@ -80,6 +80,7 @@
* QList<QSize> availableSizes ( Mode mode = Normal, State state = Off ) const
*/
#include <QtCore/QPointer>
#include <QtGui/QIcon>
@@ -93,36 +94,35 @@
* QIcon ( QIconEngineV2 * engine )
* ~QIcon ()
*/
HB_FUNC( QT_QICON )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
{
hb_retptr( ( QIcon* ) new QIcon( hbqt_par_QString( 1 ) ) );
pObj = ( QIcon* ) new QIcon( hbqt_par_QString( 1 ) ) ;
}
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
hb_retptr( ( QIcon* ) new QIcon( *hbqt_par_QPixmap( 1 ) ) );
pObj = ( QIcon* ) new QIcon( *hbqt_par_QPixmap( 1 ) ) ;
}
else
{
hb_retptr( ( QIcon* ) new QIcon() );
pObj = ( QIcon* ) new QIcon() ;
}
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QICON_DESTROY )
{
delete hbqt_par_QIcon( 1 );
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QIcon" );
hb_retptrGC( p );
}
/*
* QSize actualSize ( const QSize & size, Mode mode = Normal, State state = Off ) const
*/
HB_FUNC( QT_QICON_ACTUALSIZE )
{
hb_retptr( new QSize( hbqt_par_QIcon( 1 )->actualSize( *hbqt_par_QSize( 2 ), ( HB_ISNUM( 3 ) ? ( QIcon::Mode ) hb_parni( 3 ) : ( QIcon::Mode ) QIcon::Normal ), ( HB_ISNUM( 4 ) ? ( QIcon::State ) hb_parni( 4 ) : ( QIcon::State ) QIcon::Off ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QIcon( 1 )->actualSize( *hbqt_par_QSize( 2 ), ( HB_ISNUM( 3 ) ? ( QIcon::Mode ) hb_parni( 3 ) : ( QIcon::Mode ) QIcon::Normal ), ( HB_ISNUM( 4 ) ? ( QIcon::State ) hb_parni( 4 ) : ( QIcon::State ) QIcon::Off ) ) ) ) );
}
/*
@@ -178,7 +178,7 @@ HB_FUNC( QT_QICON_PAINT_1 )
*/
HB_FUNC( QT_QICON_PIXMAP )
{
hb_retptr( new QPixmap( hbqt_par_QIcon( 1 )->pixmap( *hbqt_par_QSize( 2 ), ( HB_ISNUM( 3 ) ? ( QIcon::Mode ) hb_parni( 3 ) : ( QIcon::Mode ) QIcon::Normal ), ( HB_ISNUM( 4 ) ? ( QIcon::State ) hb_parni( 4 ) : ( QIcon::State ) QIcon::Off ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPixmap( hbqt_par_QIcon( 1 )->pixmap( *hbqt_par_QSize( 2 ), ( HB_ISNUM( 3 ) ? ( QIcon::Mode ) hb_parni( 3 ) : ( QIcon::Mode ) QIcon::Normal ), ( HB_ISNUM( 4 ) ? ( QIcon::State ) hb_parni( 4 ) : ( QIcon::State ) QIcon::Off ) ) ) ) );
}
/*
@@ -186,7 +186,7 @@ HB_FUNC( QT_QICON_PIXMAP )
*/
HB_FUNC( QT_QICON_PIXMAP_1 )
{
hb_retptr( new QPixmap( hbqt_par_QIcon( 1 )->pixmap( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISNUM( 4 ) ? ( QIcon::Mode ) hb_parni( 4 ) : ( QIcon::Mode ) QIcon::Normal ), ( HB_ISNUM( 5 ) ? ( QIcon::State ) hb_parni( 5 ) : ( QIcon::State ) QIcon::Off ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPixmap( hbqt_par_QIcon( 1 )->pixmap( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISNUM( 4 ) ? ( QIcon::Mode ) hb_parni( 4 ) : ( QIcon::Mode ) QIcon::Normal ), ( HB_ISNUM( 5 ) ? ( QIcon::State ) hb_parni( 5 ) : ( QIcon::State ) QIcon::Off ) ) ) ) );
}
/*
@@ -194,7 +194,7 @@ HB_FUNC( QT_QICON_PIXMAP_1 )
*/
HB_FUNC( QT_QICON_PIXMAP_2 )
{
hb_retptr( new QPixmap( hbqt_par_QIcon( 1 )->pixmap( hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( QIcon::Mode ) hb_parni( 3 ) : ( QIcon::Mode ) QIcon::Normal ), ( HB_ISNUM( 4 ) ? ( QIcon::State ) hb_parni( 4 ) : ( QIcon::State ) QIcon::Off ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPixmap( hbqt_par_QIcon( 1 )->pixmap( hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( QIcon::Mode ) hb_parni( 3 ) : ( QIcon::Mode ) QIcon::Normal ), ( HB_ISNUM( 4 ) ? ( QIcon::State ) hb_parni( 4 ) : ( QIcon::State ) QIcon::Off ) ) ) ) );
}

View File

@@ -86,6 +86,7 @@
* // bool loadFromData ( const uchar * data, int len, const char * format = 0 )
*/
#include <QtCore/QPointer>
#include <QStringList>
#include <QtGui/QImage>
@@ -105,50 +106,49 @@
* QImage ( const QImage & image )
* ~QImage ()
*/
HB_FUNC( QT_QIMAGE )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
hb_retptr( ( QImage* ) new QImage( *hbqt_par_QImage( 1 ) ) );
pObj = ( QImage* ) new QImage( *hbqt_par_QImage( 1 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
{
hb_retptr( ( QImage* ) new QImage( hbqt_par_QString( 1 ), ( const char * ) 0 ) );
pObj = ( QImage* ) new QImage( hbqt_par_QString( 1 ), ( const char * ) 0 ) ;
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISCHAR( 2 ) )
{
hb_retptr( ( QImage* ) new QImage( hbqt_par_QString( 1 ), ( const char * ) hb_parcx( 2 ) ) );
pObj = ( QImage* ) new QImage( hbqt_par_QString( 1 ), ( const char * ) hb_parcx( 2 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISNUM( 2 ) )
{
hb_retptr( ( QImage* ) new QImage( *hbqt_par_QSize( 1 ), ( QImage::Format ) hb_parni( 2 ) ) );
pObj = ( QImage* ) new QImage( *hbqt_par_QSize( 1 ), ( QImage::Format ) hb_parni( 2 ) ) ;
}
else if( hb_pcount() == 3 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) )
{
hb_retptr( ( QImage* ) new QImage( hb_parni( 1 ), hb_parni( 2 ), ( QImage::Format ) hb_parni( 3 ) ) );
pObj = ( QImage* ) new QImage( hb_parni( 1 ), hb_parni( 2 ), ( QImage::Format ) hb_parni( 3 ) ) ;
}
else if( hb_pcount() == 4 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) && HB_ISNUM( 4 ) )
{
hb_retptr( ( QImage* ) new QImage( ( const uchar * ) hb_parc( 1 ), hb_parni( 2 ), hb_parni( 3 ), ( QImage::Format ) hb_parni( 4 ) ) );
pObj = ( QImage* ) new QImage( ( const uchar * ) hb_parc( 1 ), hb_parni( 2 ), hb_parni( 3 ), ( QImage::Format ) hb_parni( 4 ) ) ;
}
else if( hb_pcount() == 5 && HB_ISCHAR( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) && HB_ISNUM( 4 ) && HB_ISNUM( 5 ) )
{
hb_retptr( ( QImage* ) new QImage( ( const uchar * ) hb_parc( 1 ), hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), ( QImage::Format ) hb_parni( 5 ) ) );
pObj = ( QImage* ) new QImage( ( const uchar * ) hb_parc( 1 ), hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), ( QImage::Format ) hb_parni( 5 ) ) ;
}
else
{
hb_retptr( ( QImage* ) new QImage() );
pObj = ( QImage* ) new QImage() ;
}
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QIMAGE_DESTROY )
{
delete hbqt_par_QImage( 1 );
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QImage" );
hb_retptrGC( p );
}
/*
* bool allGray () const
*/
@@ -162,7 +162,7 @@ HB_FUNC( QT_QIMAGE_ALLGRAY )
*/
HB_FUNC( QT_QIMAGE_ALPHACHANNEL )
{
hb_retptr( new QImage( hbqt_par_QImage( 1 )->alphaChannel() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->alphaChannel() ) ) );
}
/*
@@ -210,7 +210,7 @@ HB_FUNC( QT_QIMAGE_COLOR )
*/
HB_FUNC( QT_QIMAGE_CONVERTTOFORMAT )
{
hb_retptr( new QImage( hbqt_par_QImage( 1 )->convertToFormat( ( QImage::Format ) hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::ImageConversionFlags ) hb_parni( 3 ) : ( Qt::ImageConversionFlags ) Qt::AutoColor ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->convertToFormat( ( QImage::Format ) hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::ImageConversionFlags ) hb_parni( 3 ) : ( Qt::ImageConversionFlags ) Qt::AutoColor ) ) ) ) );
}
/*
@@ -218,7 +218,7 @@ HB_FUNC( QT_QIMAGE_CONVERTTOFORMAT )
*/
HB_FUNC( QT_QIMAGE_COPY )
{
hb_retptr( new QImage( hbqt_par_QImage( 1 )->copy( ( HB_ISPOINTER( 2 ) ? *hbqt_par_QRect( 2 ) : QRect() ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->copy( ( HB_ISPOINTER( 2 ) ? *hbqt_par_QRect( 2 ) : QRect() ) ) ) ) );
}
/*
@@ -226,7 +226,7 @@ HB_FUNC( QT_QIMAGE_COPY )
*/
HB_FUNC( QT_QIMAGE_COPY_1 )
{
hb_retptr( new QImage( hbqt_par_QImage( 1 )->copy( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->copy( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ) ) ) ) );
}
/*
@@ -234,7 +234,7 @@ HB_FUNC( QT_QIMAGE_COPY_1 )
*/
HB_FUNC( QT_QIMAGE_CREATEALPHAMASK )
{
hb_retptr( new QImage( hbqt_par_QImage( 1 )->createAlphaMask( ( HB_ISNUM( 2 ) ? ( Qt::ImageConversionFlags ) hb_parni( 2 ) : ( Qt::ImageConversionFlags ) Qt::AutoColor ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->createAlphaMask( ( HB_ISNUM( 2 ) ? ( Qt::ImageConversionFlags ) hb_parni( 2 ) : ( Qt::ImageConversionFlags ) Qt::AutoColor ) ) ) ) );
}
/*
@@ -242,7 +242,7 @@ HB_FUNC( QT_QIMAGE_CREATEALPHAMASK )
*/
HB_FUNC( QT_QIMAGE_CREATEHEURISTICMASK )
{
hb_retptr( new QImage( hbqt_par_QImage( 1 )->createHeuristicMask( hb_parl( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->createHeuristicMask( hb_parl( 2 ) ) ) ) );
}
/*
@@ -250,7 +250,7 @@ HB_FUNC( QT_QIMAGE_CREATEHEURISTICMASK )
*/
HB_FUNC( QT_QIMAGE_CREATEMASKFROMCOLOR )
{
hb_retptr( new QImage( hbqt_par_QImage( 1 )->createMaskFromColor( hb_parnl( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::MaskMode ) hb_parni( 3 ) : ( Qt::MaskMode ) Qt::MaskInColor ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->createMaskFromColor( hb_parnl( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::MaskMode ) hb_parni( 3 ) : ( Qt::MaskMode ) Qt::MaskInColor ) ) ) ) );
}
/*
@@ -362,7 +362,7 @@ HB_FUNC( QT_QIMAGE_LOADFROMDATA )
*/
HB_FUNC( QT_QIMAGE_MIRRORED )
{
hb_retptr( new QImage( hbqt_par_QImage( 1 )->mirrored( hb_parl( 2 ), hb_parl( 3 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->mirrored( hb_parl( 2 ), hb_parl( 3 ) ) ) ) );
}
/*
@@ -386,7 +386,7 @@ HB_FUNC( QT_QIMAGE_NUMCOLORS )
*/
HB_FUNC( QT_QIMAGE_OFFSET )
{
hb_retptr( new QPoint( hbqt_par_QImage( 1 )->offset() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QImage( 1 )->offset() ) ) );
}
/*
@@ -426,7 +426,7 @@ HB_FUNC( QT_QIMAGE_PIXELINDEX_1 )
*/
HB_FUNC( QT_QIMAGE_RECT )
{
hb_retptr( new QRect( hbqt_par_QImage( 1 )->rect() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QImage( 1 )->rect() ) ) );
}
/*
@@ -434,7 +434,7 @@ HB_FUNC( QT_QIMAGE_RECT )
*/
HB_FUNC( QT_QIMAGE_RGBSWAPPED )
{
hb_retptr( new QImage( hbqt_par_QImage( 1 )->rgbSwapped() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->rgbSwapped() ) ) );
}
/*
@@ -458,7 +458,7 @@ HB_FUNC( QT_QIMAGE_SAVE_1 )
*/
HB_FUNC( QT_QIMAGE_SCALED )
{
hb_retptr( new QImage( hbqt_par_QImage( 1 )->scaled( *hbqt_par_QSize( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::AspectRatioMode ) hb_parni( 3 ) : ( Qt::AspectRatioMode ) Qt::IgnoreAspectRatio ), ( HB_ISNUM( 4 ) ? ( Qt::TransformationMode ) hb_parni( 4 ) : ( Qt::TransformationMode ) Qt::FastTransformation ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->scaled( *hbqt_par_QSize( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::AspectRatioMode ) hb_parni( 3 ) : ( Qt::AspectRatioMode ) Qt::IgnoreAspectRatio ), ( HB_ISNUM( 4 ) ? ( Qt::TransformationMode ) hb_parni( 4 ) : ( Qt::TransformationMode ) Qt::FastTransformation ) ) ) ) );
}
/*
@@ -466,7 +466,7 @@ HB_FUNC( QT_QIMAGE_SCALED )
*/
HB_FUNC( QT_QIMAGE_SCALED_1 )
{
hb_retptr( new QImage( hbqt_par_QImage( 1 )->scaled( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISNUM( 4 ) ? ( Qt::AspectRatioMode ) hb_parni( 4 ) : ( Qt::AspectRatioMode ) Qt::IgnoreAspectRatio ), ( HB_ISNUM( 5 ) ? ( Qt::TransformationMode ) hb_parni( 5 ) : ( Qt::TransformationMode ) Qt::FastTransformation ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->scaled( hb_parni( 2 ), hb_parni( 3 ), ( HB_ISNUM( 4 ) ? ( Qt::AspectRatioMode ) hb_parni( 4 ) : ( Qt::AspectRatioMode ) Qt::IgnoreAspectRatio ), ( HB_ISNUM( 5 ) ? ( Qt::TransformationMode ) hb_parni( 5 ) : ( Qt::TransformationMode ) Qt::FastTransformation ) ) ) ) );
}
/*
@@ -474,7 +474,7 @@ HB_FUNC( QT_QIMAGE_SCALED_1 )
*/
HB_FUNC( QT_QIMAGE_SCALEDTOHEIGHT )
{
hb_retptr( new QImage( hbqt_par_QImage( 1 )->scaledToHeight( hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::TransformationMode ) hb_parni( 3 ) : ( Qt::TransformationMode ) Qt::FastTransformation ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->scaledToHeight( hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::TransformationMode ) hb_parni( 3 ) : ( Qt::TransformationMode ) Qt::FastTransformation ) ) ) ) );
}
/*
@@ -482,7 +482,7 @@ HB_FUNC( QT_QIMAGE_SCALEDTOHEIGHT )
*/
HB_FUNC( QT_QIMAGE_SCALEDTOWIDTH )
{
hb_retptr( new QImage( hbqt_par_QImage( 1 )->scaledToWidth( hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::TransformationMode ) hb_parni( 3 ) : ( Qt::TransformationMode ) Qt::FastTransformation ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->scaledToWidth( hb_parni( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::TransformationMode ) hb_parni( 3 ) : ( Qt::TransformationMode ) Qt::FastTransformation ) ) ) ) );
}
/*
@@ -570,7 +570,7 @@ HB_FUNC( QT_QIMAGE_SETTEXT )
*/
HB_FUNC( QT_QIMAGE_SIZE )
{
hb_retptr( new QSize( hbqt_par_QImage( 1 )->size() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QImage( 1 )->size() ) ) );
}
/*
@@ -586,7 +586,7 @@ HB_FUNC( QT_QIMAGE_TEXT )
*/
HB_FUNC( QT_QIMAGE_TEXTKEYS )
{
hb_retptr( new QStringList( hbqt_par_QImage( 1 )->textKeys() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QImage( 1 )->textKeys() ) ) );
}
/*
@@ -594,7 +594,7 @@ HB_FUNC( QT_QIMAGE_TEXTKEYS )
*/
HB_FUNC( QT_QIMAGE_TRANSFORMED )
{
hb_retptr( new QImage( hbqt_par_QImage( 1 )->transformed( *hbqt_par_QMatrix( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::TransformationMode ) hb_parni( 3 ) : ( Qt::TransformationMode ) Qt::FastTransformation ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->transformed( *hbqt_par_QMatrix( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::TransformationMode ) hb_parni( 3 ) : ( Qt::TransformationMode ) Qt::FastTransformation ) ) ) ) );
}
/*
@@ -602,7 +602,7 @@ HB_FUNC( QT_QIMAGE_TRANSFORMED )
*/
HB_FUNC( QT_QIMAGE_TRANSFORMED_1 )
{
hb_retptr( new QImage( hbqt_par_QImage( 1 )->transformed( *hbqt_par_QTransform( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::TransformationMode ) hb_parni( 3 ) : ( Qt::TransformationMode ) Qt::FastTransformation ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImage( 1 )->transformed( *hbqt_par_QTransform( 2 ), ( HB_ISNUM( 3 ) ? ( Qt::TransformationMode ) hb_parni( 3 ) : ( Qt::TransformationMode ) Qt::FastTransformation ) ) ) ) );
}
/*

View File

@@ -79,6 +79,7 @@
* QList<QByteArray> supportedImageFormats ()
*/
#include <QtCore/QPointer>
#include <QColor>
#include <QtGui/QImageReader>
@@ -90,19 +91,15 @@
* QImageReader ( const QString & fileName, const QByteArray & format = QByteArray() )
* ~QImageReader ()
*/
HB_FUNC( QT_QIMAGEREADER )
{
hb_retptr( ( QImageReader* ) new QImageReader() );
}
void * pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QIMAGEREADER_DESTROY )
{
delete hbqt_par_QImageReader( 1 );
}
pObj = ( QImageReader* ) new QImageReader() ;
hb_retptr( pObj );
}
/*
* bool autoDetectImageFormat () const
*/
@@ -116,7 +113,7 @@ HB_FUNC( QT_QIMAGEREADER_AUTODETECTIMAGEFORMAT )
*/
HB_FUNC( QT_QIMAGEREADER_BACKGROUNDCOLOR )
{
hb_retptr( new QColor( hbqt_par_QImageReader( 1 )->backgroundColor() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QImageReader( 1 )->backgroundColor() ) ) );
}
/*
@@ -132,7 +129,7 @@ HB_FUNC( QT_QIMAGEREADER_CANREAD )
*/
HB_FUNC( QT_QIMAGEREADER_CLIPRECT )
{
hb_retptr( new QRect( hbqt_par_QImageReader( 1 )->clipRect() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QImageReader( 1 )->clipRect() ) ) );
}
/*
@@ -148,7 +145,7 @@ HB_FUNC( QT_QIMAGEREADER_CURRENTIMAGENUMBER )
*/
HB_FUNC( QT_QIMAGEREADER_CURRENTIMAGERECT )
{
hb_retptr( new QRect( hbqt_par_QImageReader( 1 )->currentImageRect() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QImageReader( 1 )->currentImageRect() ) ) );
}
/*
@@ -188,7 +185,7 @@ HB_FUNC( QT_QIMAGEREADER_FILENAME )
*/
HB_FUNC( QT_QIMAGEREADER_FORMAT )
{
hb_retptr( new QByteArray( hbqt_par_QImageReader( 1 )->format() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QImageReader( 1 )->format() ) ) );
}
/*
@@ -252,7 +249,7 @@ HB_FUNC( QT_QIMAGEREADER_QUALITY )
*/
HB_FUNC( QT_QIMAGEREADER_READ )
{
hb_retptr( new QImage( hbqt_par_QImageReader( 1 )->read() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QImage( hbqt_par_QImageReader( 1 )->read() ) ) );
}
/*
@@ -268,7 +265,7 @@ HB_FUNC( QT_QIMAGEREADER_READ_1 )
*/
HB_FUNC( QT_QIMAGEREADER_SCALEDCLIPRECT )
{
hb_retptr( new QRect( hbqt_par_QImageReader( 1 )->scaledClipRect() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QImageReader( 1 )->scaledClipRect() ) ) );
}
/*
@@ -276,7 +273,7 @@ HB_FUNC( QT_QIMAGEREADER_SCALEDCLIPRECT )
*/
HB_FUNC( QT_QIMAGEREADER_SCALEDSIZE )
{
hb_retptr( new QSize( hbqt_par_QImageReader( 1 )->scaledSize() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QImageReader( 1 )->scaledSize() ) ) );
}
/*
@@ -356,7 +353,7 @@ HB_FUNC( QT_QIMAGEREADER_SETSCALEDSIZE )
*/
HB_FUNC( QT_QIMAGEREADER_SIZE )
{
hb_retptr( new QSize( hbqt_par_QImageReader( 1 )->size() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QImageReader( 1 )->size() ) ) );
}
/*
@@ -388,7 +385,7 @@ HB_FUNC( QT_QIMAGEREADER_TEXT )
*/
HB_FUNC( QT_QIMAGEREADER_TEXTKEYS )
{
hb_retptr( new QStringList( hbqt_par_QImageReader( 1 )->textKeys() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QImageReader( 1 )->textKeys() ) ) );
}
/*
@@ -396,7 +393,7 @@ HB_FUNC( QT_QIMAGEREADER_TEXTKEYS )
*/
HB_FUNC( QT_QIMAGEREADER_IMAGEFORMAT_1 )
{
hb_retptr( new QByteArray( hbqt_par_QImageReader( 1 )->imageFormat( hbqt_par_QString( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QImageReader( 1 )->imageFormat( hbqt_par_QString( 2 ) ) ) ) );
}
/*
@@ -404,7 +401,7 @@ HB_FUNC( QT_QIMAGEREADER_IMAGEFORMAT_1 )
*/
HB_FUNC( QT_QIMAGEREADER_IMAGEFORMAT_2 )
{
hb_retptr( new QByteArray( hbqt_par_QImageReader( 1 )->imageFormat( hbqt_par_QIODevice( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QImageReader( 1 )->imageFormat( hbqt_par_QIODevice( 2 ) ) ) ) );
}

View File

@@ -79,6 +79,7 @@
* QList<QByteArray> supportedImageFormats ()
*/
#include <QtCore/QPointer>
#include <QtGui/QImageWriter>
@@ -89,19 +90,15 @@
* QImageWriter ( const QString & fileName, const QByteArray & format = QByteArray() )
* ~QImageWriter ()
*/
HB_FUNC( QT_QIMAGEWRITER )
{
hb_retptr( ( QImageWriter* ) new QImageWriter() );
}
void * pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QIMAGEWRITER_DESTROY )
{
delete hbqt_par_QImageWriter( 1 );
}
pObj = ( QImageWriter* ) new QImageWriter() ;
hb_retptr( pObj );
}
/*
* bool canWrite () const
*/
@@ -155,7 +152,7 @@ HB_FUNC( QT_QIMAGEWRITER_FILENAME )
*/
HB_FUNC( QT_QIMAGEWRITER_FORMAT )
{
hb_retptr( new QByteArray( hbqt_par_QImageWriter( 1 )->format() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QImageWriter( 1 )->format() ) ) );
}
/*
@@ -163,7 +160,7 @@ HB_FUNC( QT_QIMAGEWRITER_FORMAT )
*/
HB_FUNC( QT_QIMAGEWRITER_GAMMA )
{
hb_retptr( new float( hbqt_par_QImageWriter( 1 )->gamma() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new float( hbqt_par_QImageWriter( 1 )->gamma() ) ) );
}
/*

View File

@@ -72,6 +72,7 @@
* flags InputDialogOptions
*/
#include <QtCore/QPointer>
#include <QtGui/QInputDialog>
@@ -80,19 +81,18 @@
* QInputDialog ( QWidget * parent = 0, Qt::WindowFlags flags = 0 )
* ~QInputDialog ()
*/
HB_FUNC( QT_QINPUTDIALOG )
{
hb_retptr( ( QInputDialog * ) new QInputDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QInputDialog > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QINPUTDIALOG_DESTROY )
{
delete hbqt_par_QInputDialog( 1 );
}
pObj = ( QInputDialog * ) new QInputDialog( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* QString cancelButtonText () const
*/
@@ -106,7 +106,7 @@ HB_FUNC( QT_QINPUTDIALOG_CANCELBUTTONTEXT )
*/
HB_FUNC( QT_QINPUTDIALOG_COMBOBOXITEMS )
{
hb_retptr( new QStringList( hbqt_par_QInputDialog( 1 )->comboBoxItems() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QStringList( hbqt_par_QInputDialog( 1 )->comboBoxItems() ) ) );
}
/*

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QInputEvent>
#include <QtCore/QEvent>
@@ -74,20 +75,15 @@
*
*
*/
HB_FUNC( QT_QINPUTEVENT )
{
hb_retptr( ( QInputEvent* ) new QInputEvent( ( QEvent::Type ) hb_parni( 1 ),
( Qt::KeyboardModifiers ) hb_parni( 2 ) ) );
void * pObj = NULL;
pObj = ( QInputEvent* ) new QInputEvent( ( QEvent::Type ) hb_parni( 1 ), ( Qt::KeyboardModifiers ) hb_parni( 2 ) ) ;
hb_retptr( pObj );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QINPUTEVENT_DESTROY )
{
}
/*
* Qt::KeyboardModifiers modifiers () const
*/

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QKeyEvent>
@@ -74,19 +75,10 @@
* QKeyEvent ( Type type, int key, Qt::KeyboardModifiers modifiers, const QString & text = QString(), bool autorep = false, ushort count = 1 )
* ~QKeyEvent ()
*/
HB_FUNC( QT_QKEYEVENT )
{
//hb_retptr( ( QKeyEvent * ) new QKeyEvent( *hbqt_par_QKeyEvent( 1 ) ) );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QKEYEVENT_DESTROY )
{
delete hbqt_par_QKeyEvent( 1 );
}
/*
* int count () const
*/

View File

@@ -81,6 +81,7 @@
* QList<QKeySequence> keyBindings ( StandardKey key )
*/
#include <QtCore/QPointer>
#include <QtGui/QKeySequence>
@@ -93,26 +94,25 @@
* QKeySequence ( StandardKey key )
* ~QKeySequence ()
*/
HB_FUNC( QT_QKEYSEQUENCE )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( HB_ISPOINTER( 1 ) )
hb_retptr( ( QKeySequence * ) new QKeySequence( *hbqt_par_QKeySequence( 1 ) ) );
pObj = ( QKeySequence * ) new QKeySequence( *hbqt_par_QKeySequence( 1 ) ) ;
else if( HB_ISCHAR( 1 ) )
hb_retptr( ( QKeySequence * ) new QKeySequence( hbqt_par_QString( 1 ) ) );
pObj = ( QKeySequence * ) new QKeySequence( hbqt_par_QString( 1 ) ) ;
else if( HB_ISNUM( 1 ) )
hb_retptr( ( QKeySequence * ) new QKeySequence( hb_parni( 1 ) ) );
pObj = ( QKeySequence * ) new QKeySequence( hb_parni( 1 ) ) ;
else
hb_retptr( ( QKeySequence * ) new QKeySequence() );
}
pObj = ( QKeySequence * ) new QKeySequence() ;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QKEYSEQUENCE_DESTROY )
{
delete hbqt_par_QKeySequence( 1 );
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QKeySequence" );
hb_retptrGC( p );
}
/*
* uint count () const
*/
@@ -150,7 +150,7 @@ HB_FUNC( QT_QKEYSEQUENCE_TOSTRING )
*/
HB_FUNC( QT_QKEYSEQUENCE_FROMSTRING )
{
hb_retptr( new QKeySequence( hbqt_par_QKeySequence( 1 )->fromString( hbqt_par_QString( 2 ), ( HB_ISNUM( 3 ) ? ( QKeySequence::SequenceFormat ) hb_parni( 3 ) : ( QKeySequence::SequenceFormat ) QKeySequence::PortableText ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QKeySequence( hbqt_par_QKeySequence( 1 )->fromString( hbqt_par_QString( 2 ), ( HB_ISNUM( 3 ) ? ( QKeySequence::SequenceFormat ) hb_parni( 3 ) : ( QKeySequence::SequenceFormat ) QKeySequence::PortableText ) ) ) ) );
}
/*
@@ -158,7 +158,7 @@ HB_FUNC( QT_QKEYSEQUENCE_FROMSTRING )
*/
HB_FUNC( QT_QKEYSEQUENCE_MNEMONIC )
{
hb_retptr( new QKeySequence( hbqt_par_QKeySequence( 1 )->mnemonic( hbqt_par_QString( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QKeySequence( hbqt_par_QKeySequence( 1 )->mnemonic( hbqt_par_QString( 2 ) ) ) ) );
}

View File

@@ -71,6 +71,7 @@
* enum SegmentStyle { Outline, Filled, Flat }
*/
#include <QtCore/QPointer>
#include <QtGui/QLCDNumber>
@@ -80,19 +81,18 @@
* QLCDNumber ( uint numDigits, QWidget * parent = 0 )
* ~QLCDNumber ()
*/
HB_FUNC( QT_QLCDNUMBER )
{
hb_retptr( ( QLCDNumber * ) new QLCDNumber( hbqt_par_QWidget( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QLCDNumber > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QLCDNUMBER_DESTROY )
{
delete hbqt_par_QLCDNumber( 1 );
}
pObj = ( QLCDNumber * ) new QLCDNumber( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* bool checkOverflow ( double num ) const
*/

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QLabel>
@@ -75,19 +76,18 @@
* QLabel ( const QString & text, QWidget * parent = 0, Qt::WindowFlags f = 0 )
* ~QLabel ()
*/
HB_FUNC( QT_QLABEL )
{
hb_retptr( ( QLabel* ) new QLabel( hbqt_par_QWidget( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QLabel > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QLABEL_DESTROY )
{
delete hbqt_par_QLabel( 1 );
}
pObj = ( QLabel* ) new QLabel( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* Qt::Alignment alignment () const
*/

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtCore/QLatin1Char>
@@ -73,19 +74,15 @@
/*
* QLatin1Char ( char c )
*/
HB_FUNC( QT_QLATIN1CHAR )
{
hb_retptr( ( QLatin1Char* ) new QLatin1Char( *hb_parcx( 1 ) ) );
void * pObj = NULL;
pObj = ( QLatin1Char* ) new QLatin1Char( *hb_parcx( 1 ) ) ;
hb_retptr( pObj );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QLATIN1CHAR_DESTROY )
{
}
/*
* char toLatin1 () const
*/
@@ -99,7 +96,7 @@ HB_FUNC( QT_QLATIN1CHAR_TOLATIN1 )
*/
HB_FUNC( QT_QLATIN1CHAR_UNICODE )
{
hb_retptr( new ushort( hbqt_par_QLatin1Char( 1 )->unicode() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new ushort( hbqt_par_QLatin1Char( 1 )->unicode() ) ) );
}

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtCore/QLatin1String>
@@ -73,19 +74,15 @@
/*
* QLatin1String ( const char * str )
*/
HB_FUNC( QT_QLATIN1STRING )
{
hb_retptr( ( QLatin1String* ) new QLatin1String( hb_parcx( 1 ) ) );
void * pObj = NULL;
pObj = ( QLatin1String* ) new QLatin1String( hb_parcx( 1 ) ) ;
hb_retptr( pObj );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QLATIN1STRING_DESTROY )
{
}
/*
* const char * latin1 () const
*/

View File

@@ -70,6 +70,7 @@
* enum SizeConstraint { SetDefaultConstraint, SetFixedSize, SetMinimumSize, SetMaximumSize, SetMinAndMaxSize, SetNoConstraint }
*/
#include <QtCore/QPointer>
#include <QtGui/QLayout>
@@ -78,19 +79,10 @@
* QLayout ( QWidget * parent )
* QLayout ()
*/
HB_FUNC( QT_QLAYOUT )
{
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QLAYOUT_DESTROY )
{
}
/*
* bool activate ()
*/
@@ -120,7 +112,7 @@ HB_FUNC( QT_QLAYOUT_ADDWIDGET )
*/
HB_FUNC( QT_QLAYOUT_CONTENTSRECT )
{
hb_retptr( new QRect( hbqt_par_QLayout( 1 )->contentsRect() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QLayout( 1 )->contentsRect() ) ) );
}
/*
@@ -186,7 +178,7 @@ HB_FUNC( QT_QLAYOUT_ITEMAT )
*/
HB_FUNC( QT_QLAYOUT_MAXIMUMSIZE )
{
hb_retptr( new QSize( hbqt_par_QLayout( 1 )->maximumSize() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QLayout( 1 )->maximumSize() ) ) );
}
/*
@@ -202,7 +194,7 @@ HB_FUNC( QT_QLAYOUT_MENUBAR )
*/
HB_FUNC( QT_QLAYOUT_MINIMUMSIZE )
{
hb_retptr( new QSize( hbqt_par_QLayout( 1 )->minimumSize() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QLayout( 1 )->minimumSize() ) ) );
}
/*
@@ -330,7 +322,7 @@ HB_FUNC( QT_QLAYOUT_UPDATE )
*/
HB_FUNC( QT_QLAYOUT_CLOSESTACCEPTABLESIZE )
{
hb_retptr( new QSize( hbqt_par_QLayout( 1 )->closestAcceptableSize( hbqt_par_QWidget( 2 ), *hbqt_par_QSize( 3 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QLayout( 1 )->closestAcceptableSize( hbqt_par_QWidget( 2 ), *hbqt_par_QSize( 3 ) ) ) ) );
}

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QLayoutItem>
@@ -74,19 +75,10 @@
* QLayoutItem ( Qt::Alignment alignment = 0 )
* virtual ~QLayoutItem ()
*/
HB_FUNC( QT_QLAYOUTITEM )
{
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QLAYOUTITEM_DESTROY )
{
delete hbqt_par_QLayoutItem( 1 );
}
/*
* Qt::Alignment alignment () const
*/
@@ -116,7 +108,7 @@ HB_FUNC( QT_QLAYOUTITEM_EXPANDINGDIRECTIONS )
*/
HB_FUNC( QT_QLAYOUTITEM_GEOMETRY )
{
hb_retptr( new QRect( hbqt_par_QLayoutItem( 1 )->geometry() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QLayoutItem( 1 )->geometry() ) ) );
}
/*
@@ -164,7 +156,7 @@ HB_FUNC( QT_QLAYOUTITEM_LAYOUT )
*/
HB_FUNC( QT_QLAYOUTITEM_MAXIMUMSIZE )
{
hb_retptr( new QSize( hbqt_par_QLayoutItem( 1 )->maximumSize() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QLayoutItem( 1 )->maximumSize() ) ) );
}
/*
@@ -180,7 +172,7 @@ HB_FUNC( QT_QLAYOUTITEM_MINIMUMHEIGHTFORWIDTH )
*/
HB_FUNC( QT_QLAYOUTITEM_MINIMUMSIZE )
{
hb_retptr( new QSize( hbqt_par_QLayoutItem( 1 )->minimumSize() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QLayoutItem( 1 )->minimumSize() ) ) );
}
/*
@@ -204,7 +196,7 @@ HB_FUNC( QT_QLAYOUTITEM_SETGEOMETRY )
*/
HB_FUNC( QT_QLAYOUTITEM_SIZEHINT )
{
hb_retptr( new QSize( hbqt_par_QLayoutItem( 1 )->sizeHint() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QLayoutItem( 1 )->sizeHint() ) ) );
}
/*

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtCore/QLine>
@@ -75,40 +76,39 @@
* QLine ( const QPoint & p1, const QPoint & p2 )
* QLine ( int x1, int y1, int x2, int y2 )
*/
HB_FUNC( QT_QLINE )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
hb_retptr( ( QLine* ) new QLine( *hbqt_par_QLine( 1 ) ) );
pObj = ( QLine* ) new QLine( *hbqt_par_QLine( 1 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
{
hb_retptr( ( QLine* ) new QLine( *hbqt_par_QPoint( 1 ), *hbqt_par_QPoint( 2 ) ) );
pObj = ( QLine* ) new QLine( *hbqt_par_QPoint( 1 ), *hbqt_par_QPoint( 2 ) ) ;
}
else if( hb_pcount() == 4 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) && HB_ISNUM( 4 ) )
{
hb_retptr( ( QLine* ) new QLine( hb_parni( 1 ), hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ) ) );
pObj = ( QLine* ) new QLine( hb_parni( 1 ), hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ) ) ;
}
else
{
hb_retptr( ( QLine* ) new QLine() );
pObj = ( QLine* ) new QLine() ;
}
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QLine" );
hb_retptrGC( p );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QLINE_DESTROY )
{
}
/*
* QPoint p1 () const
*/
HB_FUNC( QT_QLINE_P1 )
{
hb_retptr( new QPoint( hbqt_par_QLine( 1 )->p1() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QLine( 1 )->p1() ) ) );
}
/*
@@ -116,7 +116,7 @@ HB_FUNC( QT_QLINE_P1 )
*/
HB_FUNC( QT_QLINE_P2 )
{
hb_retptr( new QPoint( hbqt_par_QLine( 1 )->p2() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QLine( 1 )->p2() ) ) );
}
/*
@@ -228,7 +228,7 @@ HB_FUNC( QT_QLINE_TRANSLATE_1 )
*/
HB_FUNC( QT_QLINE_TRANSLATED )
{
hb_retptr( new QLine( hbqt_par_QLine( 1 )->translated( *hbqt_par_QPoint( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QLine( hbqt_par_QLine( 1 )->translated( *hbqt_par_QPoint( 2 ) ) ) ) );
}
/*
@@ -236,7 +236,7 @@ HB_FUNC( QT_QLINE_TRANSLATED )
*/
HB_FUNC( QT_QLINE_TRANSLATED_1 )
{
hb_retptr( new QLine( hbqt_par_QLine( 1 )->translated( hb_parni( 2 ), hb_parni( 3 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QLine( hbqt_par_QLine( 1 )->translated( hb_parni( 2 ), hb_parni( 3 ) ) ) ) );
}

View File

@@ -70,6 +70,7 @@
* enum EchoMode { Normal, NoEcho, Password, PasswordEchoOnEdit }
*/
#include <QtCore/QPointer>
#include <QtGui/QLineEdit>
@@ -79,19 +80,18 @@
* QLineEdit ( const QString & contents, QWidget * parent = 0 )
* ~QLineEdit ()
*/
HB_FUNC( QT_QLINEEDIT )
{
hb_retptr( ( QLineEdit* ) new QLineEdit( hbqt_par_QWidget( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QLineEdit > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QLINEEDIT_DESTROY )
{
delete hbqt_par_QLineEdit( 1 );
}
pObj = ( QLineEdit* ) new QLineEdit( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* Qt::Alignment alignment () const
*/
@@ -331,7 +331,7 @@ HB_FUNC( QT_QLINEEDIT_MAXLENGTH )
*/
HB_FUNC( QT_QLINEEDIT_MINIMUMSIZEHINT )
{
hb_retptr( new QSize( hbqt_par_QLineEdit( 1 )->minimumSizeHint() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QLineEdit( 1 )->minimumSizeHint() ) ) );
}
/*
@@ -459,7 +459,7 @@ HB_FUNC( QT_QLINEEDIT_SETVALIDATOR )
*/
HB_FUNC( QT_QLINEEDIT_SIZEHINT )
{
hb_retptr( new QSize( hbqt_par_QLineEdit( 1 )->sizeHint() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QLineEdit( 1 )->sizeHint() ) ) );
}
/*

View File

@@ -72,6 +72,7 @@
* enum Type { LinearGradient, RadialGradient, ConicalGradient, NoGradient }
*/
#include <QtCore/QPointer>
#include <QtGui/QLinearGradient>
@@ -81,40 +82,36 @@
* QLinearGradient ( const QPointF & start, const QPointF & finalStop )
* QLinearGradient ( qreal x1, qreal y1, qreal x2, qreal y2 )
*/
HB_FUNC( QT_QLINEARGRADIENT )
{
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
hb_retptr( ( QLinearGradient* ) new QLinearGradient( *hbqt_par_QLinearGradient( 1 ) ) );
pObj = ( QLinearGradient* ) new QLinearGradient( *hbqt_par_QLinearGradient( 1 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
{
hb_retptr( ( QLinearGradient* ) new QLinearGradient( *hbqt_par_QPoint( 1 ), *hbqt_par_QPoint( 2 ) ) );
pObj = ( QLinearGradient* ) new QLinearGradient( *hbqt_par_QPoint( 1 ), *hbqt_par_QPoint( 2 ) ) ;
}
else if( hb_pcount() == 4 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) && HB_ISNUM( 4 ) )
{
hb_retptr( ( QLinearGradient* ) new QLinearGradient( hb_parnd( 1 ), hb_parnd( 2 ), hb_parnd( 3 ), hb_parnd( 4 ) ) );
pObj = ( QLinearGradient* ) new QLinearGradient( hb_parnd( 1 ), hb_parnd( 2 ), hb_parnd( 3 ), hb_parnd( 4 ) ) ;
}
else
{
hb_retptr( ( QLinearGradient* ) new QLinearGradient() );
pObj = ( QLinearGradient* ) new QLinearGradient() ;
}
hb_retptr( pObj );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QLINEARGRADIENT_DESTROY )
{
}
/*
* QPointF finalStop () const
*/
HB_FUNC( QT_QLINEARGRADIENT_FINALSTOP )
{
hb_retptr( new QPointF( hbqt_par_QLinearGradient( 1 )->finalStop() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPointF( hbqt_par_QLinearGradient( 1 )->finalStop() ) ) );
}
/*
@@ -154,7 +151,7 @@ HB_FUNC( QT_QLINEARGRADIENT_SETSTART_1 )
*/
HB_FUNC( QT_QLINEARGRADIENT_START )
{
hb_retptr( new QPointF( hbqt_par_QLinearGradient( 1 )->start() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPointF( hbqt_par_QLinearGradient( 1 )->start() ) ) );
}

View File

@@ -92,6 +92,7 @@
* //const_iterator end () const
*/
#include <QtCore/QPointer>
#include <QtCore/QList>
@@ -101,20 +102,16 @@
* QList ( const QList<T> & other )
* ~QList ()
*/
HB_FUNC( QT_QLIST )
{
void * pObj = NULL;
QList<void*>* list = NULL;
hb_retptr( ( QList<void*>* ) list );
}
pObj = ( QList<void*>* ) list ;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QLIST_DESTROY )
{
delete hbqt_par_QList( 1 );
hb_retptr( pObj );
}
/*
* void append ( const T & value )
*/

View File

@@ -74,6 +74,7 @@
* enum ViewMode { ListMode, IconMode }
*/
#include <QtCore/QPointer>
#include <QtGui/QListView>
@@ -82,19 +83,18 @@
* QListView ( QWidget * parent = 0 )
* ~QListView ()
*/
HB_FUNC( QT_QLISTVIEW )
{
hb_retptr( ( QListView * ) new QListView( hbqt_par_QWidget( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QListView > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QLISTVIEW_DESTROY )
{
delete hbqt_par_QListView( 1 );
}
pObj = ( QListView * ) new QListView( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* int batchSize () const
*/
@@ -124,7 +124,7 @@ HB_FUNC( QT_QLISTVIEW_FLOW )
*/
HB_FUNC( QT_QLISTVIEW_GRIDSIZE )
{
hb_retptr( new QSize( hbqt_par_QListView( 1 )->gridSize() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QListView( 1 )->gridSize() ) ) );
}
/*

View File

@@ -76,6 +76,7 @@
* QList<QListWidgetItem *> selectedItems () const
*/
#include <QtCore/QPointer>
#include <QtGui/QListWidget>
@@ -84,19 +85,18 @@
* QListWidget ( QWidget * parent = 0 )
* ~QListWidget ()
*/
HB_FUNC( QT_QLISTWIDGET )
{
hb_retptr( new QListWidget( hbqt_par_QWidget( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QListWidget > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QLISTWIDGET_DESTROY )
{
delete hbqt_par_QListWidget( 1 );
}
pObj = new QListWidget( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* void addItem ( const QString & label )
*/
@@ -318,7 +318,7 @@ HB_FUNC( QT_QLISTWIDGET_TAKEITEM )
*/
HB_FUNC( QT_QLISTWIDGET_VISUALITEMRECT )
{
hb_retptr( new QRect( hbqt_par_QListWidget( 1 )->visualItemRect( hbqt_par_QListWidgetItem( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QListWidget( 1 )->visualItemRect( hbqt_par_QListWidgetItem( 2 ) ) ) ) );
}
/*

View File

@@ -70,6 +70,7 @@
* enum ItemType { Type, UserType }
*/
#include <QtCore/QPointer>
#include <QtGui/QListWidgetItem>
@@ -81,25 +82,21 @@
* QListWidgetItem ( const QListWidgetItem & other )
* virtual ~QListWidgetItem ()
*/
HB_FUNC( QT_QLISTWIDGETITEM )
{
hb_retptr( new QListWidgetItem( hbqt_par_QListWidget( 1 ), hb_parni( 2 ) ) );
}
void * pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QLISTWIDGETITEM_DESTROY )
{
delete hbqt_par_QListWidgetItem( 1 );
}
pObj = new QListWidgetItem( hbqt_par_QListWidget( 1 ), hb_parni( 2 ) ) ;
hb_retptr( pObj );
}
/*
* QBrush background () const
*/
HB_FUNC( QT_QLISTWIDGETITEM_BACKGROUND )
{
hb_retptr( new QBrush( hbqt_par_QListWidgetItem( 1 )->background() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QListWidgetItem( 1 )->background() ) ) );
}
/*
@@ -123,7 +120,7 @@ HB_FUNC( QT_QLISTWIDGETITEM_CLONE )
*/
HB_FUNC( QT_QLISTWIDGETITEM_DATA )
{
hb_retptr( new QVariant( hbqt_par_QListWidgetItem( 1 )->data( hb_parni( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QListWidgetItem( 1 )->data( hb_parni( 2 ) ) ) ) );
}
/*
@@ -139,7 +136,7 @@ HB_FUNC( QT_QLISTWIDGETITEM_FLAGS )
*/
HB_FUNC( QT_QLISTWIDGETITEM_FONT )
{
hb_retptr( new QFont( hbqt_par_QListWidgetItem( 1 )->font() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QListWidgetItem( 1 )->font() ) ) );
}
/*
@@ -147,7 +144,7 @@ HB_FUNC( QT_QLISTWIDGETITEM_FONT )
*/
HB_FUNC( QT_QLISTWIDGETITEM_FOREGROUND )
{
hb_retptr( new QBrush( hbqt_par_QListWidgetItem( 1 )->foreground() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QListWidgetItem( 1 )->foreground() ) ) );
}
/*
@@ -155,7 +152,7 @@ HB_FUNC( QT_QLISTWIDGETITEM_FOREGROUND )
*/
HB_FUNC( QT_QLISTWIDGETITEM_ICON )
{
hb_retptr( new QIcon( hbqt_par_QListWidgetItem( 1 )->icon() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QIcon( hbqt_par_QListWidgetItem( 1 )->icon() ) ) );
}
/*
@@ -315,7 +312,7 @@ HB_FUNC( QT_QLISTWIDGETITEM_SETWHATSTHIS )
*/
HB_FUNC( QT_QLISTWIDGETITEM_SIZEHINT )
{
hb_retptr( new QSize( hbqt_par_QListWidgetItem( 1 )->sizeHint() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QListWidgetItem( 1 )->sizeHint() ) ) );
}
/*

View File

@@ -80,6 +80,7 @@
* QList<QDockWidget *> tabifiedDockWidgets ( QDockWidget * dockwidget ) const
*/
#include <QtCore/QPointer>
#include <QtGui/QMainWindow>
@@ -88,19 +89,18 @@
* QMainWindow ( QWidget * parent = 0, Qt::WindowFlags flags = 0 )
* ~QMainWindow ()
*/
HB_FUNC( QT_QMAINWINDOW )
{
hb_retptr( ( QMainWindow* ) new QMainWindow( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QMainWindow > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QMAINWINDOW_DESTROY )
{
delete hbqt_par_QMainWindow( 1 );
}
pObj = ( QMainWindow* ) new QMainWindow( hbqt_par_QWidget( 1 ), ( Qt::WindowFlags ) hb_parni( 2 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* void addDockWidget ( Qt::DockWidgetArea area, QDockWidget * dockwidget )
*/
@@ -202,7 +202,7 @@ HB_FUNC( QT_QMAINWINDOW_DOCUMENTMODE )
*/
HB_FUNC( QT_QMAINWINDOW_ICONSIZE )
{
hb_retptr( new QSize( hbqt_par_QMainWindow( 1 )->iconSize() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QSize( hbqt_par_QMainWindow( 1 )->iconSize() ) ) );
}
/*
@@ -298,7 +298,7 @@ HB_FUNC( QT_QMAINWINDOW_RESTORESTATE )
*/
HB_FUNC( QT_QMAINWINDOW_SAVESTATE )
{
hb_retptr( new QByteArray( hbqt_par_QMainWindow( 1 )->saveState( hb_parni( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QByteArray( hbqt_par_QMainWindow( 1 )->saveState( hb_parni( 2 ) ) ) ) );
}
/*

View File

@@ -76,6 +76,7 @@
* HMENU wceMenu ( bool create = false )
*/
#include <QtCore/QPointer>
#include <QtGui/QMenu>
@@ -85,26 +86,25 @@
* QMenu ( const QString & title, QWidget * parent = 0 )
* ~QMenu ()
*/
HB_FUNC( QT_QMENU )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QMenu > pObj = NULL;
if( hb_pcount() >= 1 && HB_ISCHAR( 1 ) )
{
hb_retptr( ( QMenu* ) new QMenu( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) );
pObj = ( QMenu* ) new QMenu( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) ;
}
else
{
hb_retptr( ( QMenu* ) new QMenu( hbqt_par_QWidget( 1 ) ) );
pObj = ( QMenu* ) new QMenu( hbqt_par_QWidget( 1 ) ) ;
}
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QMENU_DESTROY )
{
delete hbqt_par_QMenu( 1 );
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* QAction * actionAt ( const QPoint & pt ) const
*/
@@ -118,7 +118,7 @@ HB_FUNC( QT_QMENU_ACTIONAT )
*/
HB_FUNC( QT_QMENU_ACTIONGEOMETRY )
{
hb_retptr( new QRect( hbqt_par_QMenu( 1 )->actionGeometry( hbqt_par_QAction( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QMenu( 1 )->actionGeometry( hbqt_par_QAction( 2 ) ) ) ) );
}
/*
@@ -246,7 +246,7 @@ HB_FUNC( QT_QMENU_HIDETEAROFFMENU )
*/
HB_FUNC( QT_QMENU_ICON )
{
hb_retptr( new QIcon( hbqt_par_QMenu( 1 )->icon() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QIcon( hbqt_par_QMenu( 1 )->icon() ) ) );
}
/*

View File

@@ -80,6 +80,7 @@
* // void setDefaultAction ( QAction * act )
*/
#include <QtCore/QPointer>
#include <QtGui/QMenuBar>
@@ -88,19 +89,18 @@
* QMenuBar ( QWidget * parent = 0 )
* ~QMenuBar ()
*/
HB_FUNC( QT_QMENUBAR )
{
hb_retptr( ( QMenuBar* ) new QMenuBar( hbqt_par_QWidget( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QMenuBar > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QMENUBAR_DESTROY )
{
delete hbqt_par_QMenuBar( 1 );
}
pObj = ( QMenuBar* ) new QMenuBar( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* QAction * activeAction () const
*/

View File

@@ -82,6 +82,7 @@
* QList<QAbstractButton *> buttons () const
*/
#include <QtCore/QPointer>
#include <QtGui/QMessageBox>
@@ -91,19 +92,18 @@
* QMessageBox ( Icon icon, const QString & title, const QString & text, StandardButtons buttons = NoButton, QWidget * parent = 0, Qt::WindowFlags f = Qt::Dialog | Qt::MSWindowsFixedSizeDialogHint )
* ~QMessageBox ()
*/
HB_FUNC( QT_QMESSAGEBOX )
{
hb_retptr( ( QMessageBox* ) new QMessageBox() );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QMessageBox > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QMESSAGEBOX_DESTROY )
{
delete hbqt_par_QMessageBox( 1 );
}
pObj = ( QMessageBox* ) new QMessageBox() ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* void addButton ( QAbstractButton * button, ButtonRole role )
*/
@@ -189,7 +189,7 @@ HB_FUNC( QT_QMESSAGEBOX_ICON )
*/
HB_FUNC( QT_QMESSAGEBOX_ICONPIXMAP )
{
hb_retptr( new QPixmap( hbqt_par_QMessageBox( 1 )->iconPixmap() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPixmap( hbqt_par_QMessageBox( 1 )->iconPixmap() ) ) );
}
/*

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtCore/QModelIndex>
@@ -75,25 +76,24 @@
* QModelIndex ( const QModelIndex & other )
* ~QModelIndex ()
*/
HB_FUNC( QT_QMODELINDEX )
{
hb_retptr( ( QModelIndex * ) new QModelIndex() );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QMODELINDEX_DESTROY )
{
delete hbqt_par_QModelIndex( 1 );
}
pObj = new QModelIndex() ;
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QModelIndex" );
hb_retptrGC( p );
}
/*
* QModelIndex child ( int row, int column ) const
*/
HB_FUNC( QT_QMODELINDEX_CHILD )
{
hb_retptr( new QModelIndex( hbqt_par_QModelIndex( 1 )->child( hb_parni( 2 ), hb_parni( 3 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QModelIndex( 1 )->child( hb_parni( 2 ), hb_parni( 3 ) ) ) ) );
}
/*
@@ -109,7 +109,7 @@ HB_FUNC( QT_QMODELINDEX_COLUMN )
*/
HB_FUNC( QT_QMODELINDEX_DATA )
{
hb_retptr( new QVariant( hbqt_par_QModelIndex( 1 )->data( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : Qt::DisplayRole ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QModelIndex( 1 )->data( ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : Qt::DisplayRole ) ) ) ) );
}
/*
@@ -157,7 +157,7 @@ HB_FUNC( QT_QMODELINDEX_MODEL )
*/
HB_FUNC( QT_QMODELINDEX_PARENT )
{
hb_retptr( new QModelIndex( hbqt_par_QModelIndex( 1 )->parent() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QModelIndex( 1 )->parent() ) ) );
}
/*
@@ -173,7 +173,7 @@ HB_FUNC( QT_QMODELINDEX_ROW )
*/
HB_FUNC( QT_QMODELINDEX_SIBLING )
{
hb_retptr( new QModelIndex( hbqt_par_QModelIndex( 1 )->sibling( hb_parni( 2 ), hb_parni( 3 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QModelIndex( hbqt_par_QModelIndex( 1 )->sibling( hb_parni( 2 ), hb_parni( 3 ) ) ) ) );
}

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QMouseEvent>
@@ -75,19 +76,18 @@
* QMouseEvent ( Type type, const QPoint & pos, const QPoint & globalPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers )
* ~QMouseEvent ()
*/
HB_FUNC( QT_QMOUSEEVENT )
{
hb_retptr( ( QMouseEvent * ) new QMouseEvent( *hbqt_par_QMouseEvent( 1 ) ) );
}
void * pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QMOUSEEVENT_DESTROY )
{
delete hbqt_par_QMouseEvent( 1 );
}
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = new QMouseEvent( *hbqt_par_QMouseEvent( 1 ) ) ;
}
hb_retptr( pObj );
}
/*
* Qt::MouseButton button () const
*/
@@ -109,7 +109,7 @@ HB_FUNC( QT_QMOUSEEVENT_BUTTONS )
*/
HB_FUNC( QT_QMOUSEEVENT_GLOBALPOS )
{
hb_retptr( new QPoint( hbqt_par_QMouseEvent( 1 )->globalPos() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QMouseEvent( 1 )->globalPos() ) ) );
}
/*
@@ -133,7 +133,7 @@ HB_FUNC( QT_QMOUSEEVENT_GLOBALY )
*/
HB_FUNC( QT_QMOUSEEVENT_POS )
{
hb_retptr( new QPoint( hbqt_par_QMouseEvent( 1 )->pos() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QMouseEvent( 1 )->pos() ) ) );
}
/*
@@ -141,7 +141,7 @@ HB_FUNC( QT_QMOUSEEVENT_POS )
*/
HB_FUNC( QT_QMOUSEEVENT_POSF )
{
hb_retptr( new QPointF( hbqt_par_QMouseEvent( 1 )->posF() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPointF( hbqt_par_QMouseEvent( 1 )->posF() ) ) );
}
/*

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QMoveEvent>
@@ -74,25 +75,16 @@
* QMoveEvent ( const QPoint & pos, const QPoint & oldPos )
* ~QMoveEvent ()
*/
HB_FUNC( QT_QMOVEEVENT )
{
// hb_retptr( ( QMoveEvent* ) new QMoveEvent() );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QMOVEEVENT_DESTROY )
{
delete hbqt_par_QMoveEvent( 1 );
}
/*
* const QPoint & oldPos () const
*/
HB_FUNC( QT_QMOVEEVENT_OLDPOS )
{
hb_retptr( new QPoint( hbqt_par_QMoveEvent( 1 )->oldPos() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QMoveEvent( 1 )->oldPos() ) ) );
}
/*
@@ -100,7 +92,7 @@ HB_FUNC( QT_QMOVEEVENT_OLDPOS )
*/
HB_FUNC( QT_QMOVEEVENT_POS )
{
hb_retptr( new QPoint( hbqt_par_QMoveEvent( 1 )->pos() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QMoveEvent( 1 )->pos() ) ) );
}

View File

@@ -82,6 +82,7 @@
* //T findChild ( const QString & name = QString() ) const
*/
#include <QtCore/QPointer>
#include <QWidget>
#include <QtCore/QObject>
@@ -91,19 +92,18 @@
* Q_INVOKABLE QObject ( QObject * parent = 0 )
* virtual ~QObject ()
*/
HB_FUNC( QT_QOBJECT )
{
hb_retptr( ( QObject* ) new QObject( hbqt_par_QWidget( 1 ) ) );
}
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QObject > pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QOBJECT_DESTROY )
{
delete hbqt_par_QObject( 1 );
}
pObj = ( QObject* ) new QObject( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* bool blockSignals ( bool block )
*/
@@ -117,7 +117,7 @@ HB_FUNC( QT_QOBJECT_BLOCKSIGNALS )
*/
HB_FUNC( QT_QOBJECT_CHILDREN )
{
hb_retptr( new QObjectList( hbqt_par_QObject( 1 )->children() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QObjectList( hbqt_par_QObject( 1 )->children() ) ) );
}
/*
@@ -245,7 +245,7 @@ HB_FUNC( QT_QOBJECT_PARENT )
*/
HB_FUNC( QT_QOBJECT_PROPERTY )
{
hb_retptr( new QVariant( hbqt_par_QObject( 1 )->property( hbqt_par_char( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QVariant( hbqt_par_QObject( 1 )->property( hbqt_par_char( 2 ) ) ) ) );
}
/*

View File

@@ -71,6 +71,7 @@
* flags PageSetupDialogOptions
*/
#include <QtCore/QPointer>
#include <QtGui/QPageSetupDialog>
@@ -79,22 +80,21 @@
* QPageSetupDialog ( QPrinter * printer, QWidget * parent = 0 )
* QPageSetupDialog ( QWidget * parent = 0 )
*/
HB_FUNC( QT_QPAGESETUPDIALOG )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
QPointer< QPageSetupDialog > pObj = NULL;
if( hb_pcount() >= 2 )
hb_retptr( ( QPageSetupDialog* ) new QPageSetupDialog( hbqt_par_QPrinter( 1 ), hbqt_par_QWidget( 1 ) ) );
pObj = ( QPageSetupDialog* ) new QPageSetupDialog( hbqt_par_QPrinter( 1 ), hbqt_par_QWidget( 1 ) ) ;
else
hb_retptr( ( QPageSetupDialog* ) new QPageSetupDialog( hbqt_par_QWidget( 1 ) ) );
pObj = ( QPageSetupDialog* ) new QPageSetupDialog( hbqt_par_QWidget( 1 ) ) ;
p->ph = pObj;
p->type = 1001;
hb_retptrGC( p );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QPAGESETUPDIALOG_DESTROY )
{
}
/*
* virtual int exec ()
*/

View File

@@ -70,25 +70,17 @@
* enum PaintDeviceMetric { PdmWidth, PdmHeight, PdmWidthMM, PdmHeightMM, ..., PdmPhysicalDpiY }
*/
#include <QtCore/QPointer>
#include <QtGui/QPaintDevice>
/*
* virtual ~QPaintDevice ()
*/
HB_FUNC( QT_QPAINTDEVICE )
{
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QPAINTDEVICE_DESTROY )
{
delete hbqt_par_QPaintDevice( 1 );
}
/*
* int depth () const
*/

View File

@@ -66,6 +66,7 @@
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtCore/QPointer>
#include <QtGui/QPaintEvent>
@@ -74,25 +75,33 @@
* QPaintEvent ( const QRegion & paintRegion )
* QPaintEvent ( const QRect & paintRect )
*/
HB_FUNC( QT_QPAINTEVENT )
{
hb_retptr( ( QPaintEvent* ) new QPaintEvent( *hbqt_par_QRect( 1 ) ) );
void * pObj = NULL;
if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
QString objName = ( QString ) hbqt_par_QString( 1 );
if( objName == ( QString ) "QRect" )
{
pObj = new QPaintEvent( *hbqt_par_QRect( 1 ) ) ;
}
else if( objName == ( QString ) "QRegion" )
{
pObj = new QPaintEvent( *hbqt_par_QRegion( 1 ) ) ;
}
}
hb_retptr( pObj );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QPAINTEVENT_DESTROY )
{
}
/*
* const QRect & rect () const
*/
HB_FUNC( QT_QPAINTEVENT_RECT )
{
hb_retptr( new QRect( hbqt_par_QPaintEvent( 1 )->rect() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QPaintEvent( 1 )->rect() ) ) );
}
/*
@@ -100,7 +109,7 @@ HB_FUNC( QT_QPAINTEVENT_RECT )
*/
HB_FUNC( QT_QPAINTEVENT_REGION )
{
hb_retptr( new QRegion( hbqt_par_QPaintEvent( 1 )->region() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRegion( hbqt_par_QPaintEvent( 1 )->region() ) ) );
}

View File

@@ -86,6 +86,7 @@
* void drawRects ( const QVector<QRect> & rectangles )
*/
#include <QtCore/QPointer>
#include <QtGui/QPainter>
@@ -94,32 +95,28 @@
* QPainter ( QPaintDevice * device )
* ~QPainter ()
*/
HB_FUNC( QT_QPAINTER )
{
if( hb_pcount() >= 1 && HB_ISPOINTER( 1 ) )
{
hb_retptr( ( QPainter* ) new QPainter( hbqt_par_QPaintDevice( 1 ) ) );
}
else
{
hb_retptr( ( QPainter* ) new QPainter() );
}
}
void * pObj = NULL;
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QPAINTER_DESTROY )
{
delete hbqt_par_QPainter( 1 );
}
if( hb_pcount() >= 1 && HB_ISPOINTER( 1 ) )
{
pObj = new QPainter( hbqt_par_QPaintDevice( 1 ) ) ;
}
else
{
pObj = new QPainter() ;
}
hb_retptr( pObj );
}
/*
* const QBrush & background () const
*/
HB_FUNC( QT_QPAINTER_BACKGROUND )
{
hb_retptr( new QBrush( hbqt_par_QPainter( 1 )->background() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPainter( 1 )->background() ) ) );
}
/*
@@ -143,7 +140,7 @@ HB_FUNC( QT_QPAINTER_BEGIN )
*/
HB_FUNC( QT_QPAINTER_BOUNDINGRECT )
{
hb_retptr( new QRectF( hbqt_par_QPainter( 1 )->boundingRect( *hbqt_par_QRectF( 2 ), hb_parni( 3 ), hbqt_par_QString( 4 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRectF( hbqt_par_QPainter( 1 )->boundingRect( *hbqt_par_QRectF( 2 ), hb_parni( 3 ), hbqt_par_QString( 4 ) ) ) ) );
}
/*
@@ -151,7 +148,7 @@ HB_FUNC( QT_QPAINTER_BOUNDINGRECT )
*/
HB_FUNC( QT_QPAINTER_BOUNDINGRECT_1 )
{
hb_retptr( new QRect( hbqt_par_QPainter( 1 )->boundingRect( *hbqt_par_QRect( 2 ), hb_parni( 3 ), hbqt_par_QString( 4 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QPainter( 1 )->boundingRect( *hbqt_par_QRect( 2 ), hb_parni( 3 ), hbqt_par_QString( 4 ) ) ) ) );
}
/*
@@ -159,7 +156,7 @@ HB_FUNC( QT_QPAINTER_BOUNDINGRECT_1 )
*/
HB_FUNC( QT_QPAINTER_BOUNDINGRECT_2 )
{
hb_retptr( new QRect( hbqt_par_QPainter( 1 )->boundingRect( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), hb_parni( 6 ), hbqt_par_QString( 7 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QPainter( 1 )->boundingRect( hb_parni( 2 ), hb_parni( 3 ), hb_parni( 4 ), hb_parni( 5 ), hb_parni( 6 ), hbqt_par_QString( 7 ) ) ) ) );
}
/*
@@ -167,7 +164,7 @@ HB_FUNC( QT_QPAINTER_BOUNDINGRECT_2 )
*/
HB_FUNC( QT_QPAINTER_BOUNDINGRECT_3 )
{
hb_retptr( new QRectF( hbqt_par_QPainter( 1 )->boundingRect( *hbqt_par_QRectF( 2 ), hbqt_par_QString( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QTextOption( 4 ) : QTextOption() ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRectF( hbqt_par_QPainter( 1 )->boundingRect( *hbqt_par_QRectF( 2 ), hbqt_par_QString( 3 ), ( HB_ISPOINTER( 4 ) ? *hbqt_par_QTextOption( 4 ) : QTextOption() ) ) ) ) );
}
/*
@@ -175,7 +172,7 @@ HB_FUNC( QT_QPAINTER_BOUNDINGRECT_3 )
*/
HB_FUNC( QT_QPAINTER_BRUSH )
{
hb_retptr( new QBrush( hbqt_par_QPainter( 1 )->brush() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPainter( 1 )->brush() ) ) );
}
/*
@@ -183,7 +180,7 @@ HB_FUNC( QT_QPAINTER_BRUSH )
*/
HB_FUNC( QT_QPAINTER_BRUSHORIGIN )
{
hb_retptr( new QPoint( hbqt_par_QPainter( 1 )->brushOrigin() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPoint( hbqt_par_QPainter( 1 )->brushOrigin() ) ) );
}
/*
@@ -191,7 +188,7 @@ HB_FUNC( QT_QPAINTER_BRUSHORIGIN )
*/
HB_FUNC( QT_QPAINTER_CLIPPATH )
{
hb_retptr( new QPainterPath( hbqt_par_QPainter( 1 )->clipPath() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPainterPath( hbqt_par_QPainter( 1 )->clipPath() ) ) );
}
/*
@@ -199,7 +196,7 @@ HB_FUNC( QT_QPAINTER_CLIPPATH )
*/
HB_FUNC( QT_QPAINTER_CLIPREGION )
{
hb_retptr( new QRegion( hbqt_par_QPainter( 1 )->clipRegion() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRegion( hbqt_par_QPainter( 1 )->clipRegion() ) ) );
}
/*
@@ -207,7 +204,7 @@ HB_FUNC( QT_QPAINTER_CLIPREGION )
*/
HB_FUNC( QT_QPAINTER_COMBINEDMATRIX )
{
hb_retptr( new QMatrix( hbqt_par_QPainter( 1 )->combinedMatrix() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QMatrix( hbqt_par_QPainter( 1 )->combinedMatrix() ) ) );
}
/*
@@ -215,7 +212,7 @@ HB_FUNC( QT_QPAINTER_COMBINEDMATRIX )
*/
HB_FUNC( QT_QPAINTER_COMBINEDTRANSFORM )
{
hb_retptr( new QTransform( hbqt_par_QPainter( 1 )->combinedTransform() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QTransform( hbqt_par_QPainter( 1 )->combinedTransform() ) ) );
}
/*
@@ -239,7 +236,7 @@ HB_FUNC( QT_QPAINTER_DEVICE )
*/
HB_FUNC( QT_QPAINTER_DEVICEMATRIX )
{
hb_retptr( new QMatrix( hbqt_par_QPainter( 1 )->deviceMatrix() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QMatrix( hbqt_par_QPainter( 1 )->deviceMatrix() ) ) );
}
/*
@@ -247,7 +244,7 @@ HB_FUNC( QT_QPAINTER_DEVICEMATRIX )
*/
HB_FUNC( QT_QPAINTER_DEVICETRANSFORM )
{
hb_retptr( new QTransform( hbqt_par_QPainter( 1 )->deviceTransform() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QTransform( hbqt_par_QPainter( 1 )->deviceTransform() ) ) );
}
/*
@@ -1063,7 +1060,7 @@ HB_FUNC( QT_QPAINTER_FILLRECT_11 )
*/
HB_FUNC( QT_QPAINTER_FONT )
{
hb_retptr( new QFont( hbqt_par_QPainter( 1 )->font() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFont( hbqt_par_QPainter( 1 )->font() ) ) );
}
/*
@@ -1071,7 +1068,7 @@ HB_FUNC( QT_QPAINTER_FONT )
*/
HB_FUNC( QT_QPAINTER_FONTINFO )
{
hb_retptr( new QFontInfo( hbqt_par_QPainter( 1 )->fontInfo() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFontInfo( hbqt_par_QPainter( 1 )->fontInfo() ) ) );
}
/*
@@ -1079,7 +1076,7 @@ HB_FUNC( QT_QPAINTER_FONTINFO )
*/
HB_FUNC( QT_QPAINTER_FONTMETRICS )
{
hb_retptr( new QFontMetrics( hbqt_par_QPainter( 1 )->fontMetrics() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QFontMetrics( hbqt_par_QPainter( 1 )->fontMetrics() ) ) );
}
/*
@@ -1135,7 +1132,7 @@ HB_FUNC( QT_QPAINTER_PAINTENGINE )
*/
HB_FUNC( QT_QPAINTER_PEN )
{
hb_retptr( new QPen( hbqt_par_QPainter( 1 )->pen() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPen( hbqt_par_QPainter( 1 )->pen() ) ) );
}
/*
@@ -1471,7 +1468,7 @@ HB_FUNC( QT_QPAINTER_TESTRENDERHINT )
*/
HB_FUNC( QT_QPAINTER_TRANSFORM )
{
hb_retptr( new QTransform( hbqt_par_QPainter( 1 )->transform() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QTransform( hbqt_par_QPainter( 1 )->transform() ) ) );
}
/*
@@ -1511,7 +1508,7 @@ HB_FUNC( QT_QPAINTER_VIEWTRANSFORMENABLED )
*/
HB_FUNC( QT_QPAINTER_VIEWPORT )
{
hb_retptr( new QRect( hbqt_par_QPainter( 1 )->viewport() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QPainter( 1 )->viewport() ) ) );
}
/*
@@ -1519,7 +1516,7 @@ HB_FUNC( QT_QPAINTER_VIEWPORT )
*/
HB_FUNC( QT_QPAINTER_WINDOW )
{
hb_retptr( new QRect( hbqt_par_QPainter( 1 )->window() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QRect( hbqt_par_QPainter( 1 )->window() ) ) );
}
/*
@@ -1527,7 +1524,7 @@ HB_FUNC( QT_QPAINTER_WINDOW )
*/
HB_FUNC( QT_QPAINTER_WORLDMATRIX )
{
hb_retptr( new QMatrix( hbqt_par_QPainter( 1 )->worldMatrix() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QMatrix( hbqt_par_QPainter( 1 )->worldMatrix() ) ) );
}
/*
@@ -1543,7 +1540,7 @@ HB_FUNC( QT_QPAINTER_WORLDMATRIXENABLED )
*/
HB_FUNC( QT_QPAINTER_WORLDTRANSFORM )
{
hb_retptr( new QTransform( hbqt_par_QPainter( 1 )->worldTransform() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QTransform( hbqt_par_QPainter( 1 )->worldTransform() ) ) );
}
/*

View File

@@ -71,6 +71,7 @@
* enum ColorRole { Window, Background, WindowText, Foreground, ..., NoRole }
*/
#include <QtCore/QPointer>
#include <QtGui/QPalette>
@@ -84,40 +85,39 @@
* QPalette ( const QPalette & p )
* ~QPalette ()
*/
HB_FUNC( QT_QPALETTE )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISNUM( 1 ) )
{
hb_retptr( ( QPalette* ) new QPalette( ( Qt::GlobalColor ) hb_parni( 1 ) ) );
pObj = ( QPalette* ) new QPalette( ( Qt::GlobalColor ) hb_parni( 1 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
hb_retptr( ( QPalette* ) new QPalette( *hbqt_par_QPalette( 1 ) ) );
pObj = ( QPalette* ) new QPalette( *hbqt_par_QPalette( 1 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
{
hb_retptr( ( QPalette* ) new QPalette( *hbqt_par_QColor( 1 ), *hbqt_par_QColor( 2 ) ) );
pObj = ( QPalette* ) new QPalette( *hbqt_par_QColor( 1 ), *hbqt_par_QColor( 2 ) ) ;
}
else
{
hb_retptr( ( QPalette* ) new QPalette() );
pObj = ( QPalette* ) new QPalette() ;
}
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QPALETTE_DESTROY )
{
delete hbqt_par_QPalette( 1 );
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QPalette" );
hb_retptrGC( p );
}
/*
* const QBrush & alternateBase () const
*/
HB_FUNC( QT_QPALETTE_ALTERNATEBASE )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->alternateBase() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->alternateBase() ) ) );
}
/*
@@ -125,7 +125,7 @@ HB_FUNC( QT_QPALETTE_ALTERNATEBASE )
*/
HB_FUNC( QT_QPALETTE_BASE )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->base() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->base() ) ) );
}
/*
@@ -133,7 +133,7 @@ HB_FUNC( QT_QPALETTE_BASE )
*/
HB_FUNC( QT_QPALETTE_BRIGHTTEXT )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->brightText() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->brightText() ) ) );
}
/*
@@ -141,7 +141,7 @@ HB_FUNC( QT_QPALETTE_BRIGHTTEXT )
*/
HB_FUNC( QT_QPALETTE_BRUSH )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->brush( ( QPalette::ColorGroup ) hb_parni( 2 ), ( QPalette::ColorRole ) hb_parni( 3 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->brush( ( QPalette::ColorGroup ) hb_parni( 2 ), ( QPalette::ColorRole ) hb_parni( 3 ) ) ) ) );
}
/*
@@ -149,7 +149,7 @@ HB_FUNC( QT_QPALETTE_BRUSH )
*/
HB_FUNC( QT_QPALETTE_BRUSH_1 )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->brush( ( QPalette::ColorRole ) hb_parni( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->brush( ( QPalette::ColorRole ) hb_parni( 2 ) ) ) ) );
}
/*
@@ -157,7 +157,7 @@ HB_FUNC( QT_QPALETTE_BRUSH_1 )
*/
HB_FUNC( QT_QPALETTE_BUTTON )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->button() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->button() ) ) );
}
/*
@@ -165,7 +165,7 @@ HB_FUNC( QT_QPALETTE_BUTTON )
*/
HB_FUNC( QT_QPALETTE_BUTTONTEXT )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->buttonText() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->buttonText() ) ) );
}
/*
@@ -181,7 +181,7 @@ HB_FUNC( QT_QPALETTE_CACHEKEY )
*/
HB_FUNC( QT_QPALETTE_COLOR )
{
hb_retptr( new QColor( hbqt_par_QPalette( 1 )->color( ( QPalette::ColorGroup ) hb_parni( 2 ), ( QPalette::ColorRole ) hb_parni( 3 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QPalette( 1 )->color( ( QPalette::ColorGroup ) hb_parni( 2 ), ( QPalette::ColorRole ) hb_parni( 3 ) ) ) ) );
}
/*
@@ -189,7 +189,7 @@ HB_FUNC( QT_QPALETTE_COLOR )
*/
HB_FUNC( QT_QPALETTE_COLOR_1 )
{
hb_retptr( new QColor( hbqt_par_QPalette( 1 )->color( ( QPalette::ColorRole ) hb_parni( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QPalette( 1 )->color( ( QPalette::ColorRole ) hb_parni( 2 ) ) ) ) );
}
/*
@@ -205,7 +205,7 @@ HB_FUNC( QT_QPALETTE_CURRENTCOLORGROUP )
*/
HB_FUNC( QT_QPALETTE_DARK )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->dark() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->dark() ) ) );
}
/*
@@ -213,7 +213,7 @@ HB_FUNC( QT_QPALETTE_DARK )
*/
HB_FUNC( QT_QPALETTE_HIGHLIGHT )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->highlight() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->highlight() ) ) );
}
/*
@@ -221,7 +221,7 @@ HB_FUNC( QT_QPALETTE_HIGHLIGHT )
*/
HB_FUNC( QT_QPALETTE_HIGHLIGHTEDTEXT )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->highlightedText() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->highlightedText() ) ) );
}
/*
@@ -253,7 +253,7 @@ HB_FUNC( QT_QPALETTE_ISEQUAL )
*/
HB_FUNC( QT_QPALETTE_LIGHT )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->light() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->light() ) ) );
}
/*
@@ -261,7 +261,7 @@ HB_FUNC( QT_QPALETTE_LIGHT )
*/
HB_FUNC( QT_QPALETTE_LINK )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->link() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->link() ) ) );
}
/*
@@ -269,7 +269,7 @@ HB_FUNC( QT_QPALETTE_LINK )
*/
HB_FUNC( QT_QPALETTE_LINKVISITED )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->linkVisited() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->linkVisited() ) ) );
}
/*
@@ -277,7 +277,7 @@ HB_FUNC( QT_QPALETTE_LINKVISITED )
*/
HB_FUNC( QT_QPALETTE_MID )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->mid() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->mid() ) ) );
}
/*
@@ -285,7 +285,7 @@ HB_FUNC( QT_QPALETTE_MID )
*/
HB_FUNC( QT_QPALETTE_MIDLIGHT )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->midlight() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->midlight() ) ) );
}
/*
@@ -293,7 +293,7 @@ HB_FUNC( QT_QPALETTE_MIDLIGHT )
*/
HB_FUNC( QT_QPALETTE_RESOLVE )
{
hb_retptr( new QPalette( hbqt_par_QPalette( 1 )->resolve( *hbqt_par_QPalette( 2 ) ) ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QPalette( hbqt_par_QPalette( 1 )->resolve( *hbqt_par_QPalette( 2 ) ) ) ) );
}
/*
@@ -349,7 +349,7 @@ HB_FUNC( QT_QPALETTE_SETCURRENTCOLORGROUP )
*/
HB_FUNC( QT_QPALETTE_SHADOW )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->shadow() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->shadow() ) ) );
}
/*
@@ -357,7 +357,7 @@ HB_FUNC( QT_QPALETTE_SHADOW )
*/
HB_FUNC( QT_QPALETTE_TEXT )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->text() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->text() ) ) );
}
/*
@@ -365,7 +365,7 @@ HB_FUNC( QT_QPALETTE_TEXT )
*/
HB_FUNC( QT_QPALETTE_TOOLTIPBASE )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->toolTipBase() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->toolTipBase() ) ) );
}
/*
@@ -373,7 +373,7 @@ HB_FUNC( QT_QPALETTE_TOOLTIPBASE )
*/
HB_FUNC( QT_QPALETTE_TOOLTIPTEXT )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->toolTipText() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->toolTipText() ) ) );
}
/*
@@ -381,7 +381,7 @@ HB_FUNC( QT_QPALETTE_TOOLTIPTEXT )
*/
HB_FUNC( QT_QPALETTE_WINDOW )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->window() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->window() ) ) );
}
/*
@@ -389,7 +389,7 @@ HB_FUNC( QT_QPALETTE_WINDOW )
*/
HB_FUNC( QT_QPALETTE_WINDOWTEXT )
{
hb_retptr( new QBrush( hbqt_par_QPalette( 1 )->windowText() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPalette( 1 )->windowText() ) ) );
}

View File

@@ -76,6 +76,7 @@
* void setDashPattern ( const QVector<qreal> & pattern )
*/
#include <QtCore/QPointer>
#include <QtGui/QPen>
@@ -88,15 +89,19 @@
* QPen ( const QPen & pen )
* ~QPen ()
*/
HB_FUNC( QT_QPEN )
{
QGC_POINTER * p = ( QGC_POINTER * ) hb_gcAlloc( sizeof( QGC_POINTER ), Q_release );
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISNUM( 1 ) )
{
hb_retptr( ( QPen* ) new QPen( ( Qt::PenStyle ) hb_parni( 1 ) ) );
pObj = ( QPen* ) new QPen( ( Qt::PenStyle ) hb_parni( 1 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
hb_retptr( ( QPen* ) new QPen( *hbqt_par_QPen( 1 ) ) );
pObj = ( QPen* ) new QPen( *hbqt_par_QPen( 1 ) ) ;
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
@@ -104,41 +109,36 @@ HB_FUNC( QT_QPEN )
if( objName == ( QString ) "QColor" )
{
hb_retptr( ( QPen* ) new QPen( *hbqt_par_QColor( 2 ) ) );
pObj = ( QPen* ) new QPen( *hbqt_par_QColor( 2 ) ) ;
}
else
{
hb_retptr( ( QPen* ) new QPen() );
pObj = ( QPen* ) new QPen() ;
}
}
else if( hb_pcount() >= 2 && HB_ISPOINTER( 1 ) && HB_ISNUM( 2 ) )
{
hb_retptr( ( QPen* ) new QPen( *hbqt_par_QBrush( 1 ), hb_parnd( 2 ),
HB_ISNUM( 3 ) ? ( Qt::PenStyle ) hb_parni( 3 ) : Qt::SolidLine,
HB_ISNUM( 4 ) ? ( Qt::PenCapStyle ) hb_parni( 4 ) : Qt::SquareCap,
HB_ISNUM( 5 ) ? ( Qt::PenJoinStyle ) hb_parni( 5 ) : Qt::BevelJoin
) );
Qt::PenStyle iStyle = HB_ISNUM( 3 ) ? ( Qt::PenStyle ) hb_parni( 3 ) : Qt::SolidLine;
Qt::PenCapStyle iCap = HB_ISNUM( 4 ) ? ( Qt::PenCapStyle ) hb_parni( 4 ) : Qt::SquareCap;
Qt::PenJoinStyle iJoin = HB_ISNUM( 5 ) ? ( Qt::PenJoinStyle ) hb_parni( 5 ) : Qt::BevelJoin;
pObj = ( QPen* ) new QPen( *hbqt_par_QBrush( 1 ), hb_parnd( 2 ), iStyle, iCap, iJoin ) ;
}
else
{
hb_retptr( ( QPen* ) new QPen() );
pObj = ( QPen* ) new QPen() ;
}
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QPEN_DESTROY )
{
delete hbqt_par_QPen( 1 );
p->ph = pObj;
p->type = hbqt_getIdByName( ( QString ) "QPen" );
hb_retptrGC( p );
}
/*
* QBrush brush () const
*/
HB_FUNC( QT_QPEN_BRUSH )
{
hb_retptr( new QBrush( hbqt_par_QPen( 1 )->brush() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QBrush( hbqt_par_QPen( 1 )->brush() ) ) );
}
/*
@@ -154,7 +154,7 @@ HB_FUNC( QT_QPEN_CAPSTYLE )
*/
HB_FUNC( QT_QPEN_COLOR )
{
hb_retptr( new QColor( hbqt_par_QPen( 1 )->color() ) );
hb_retptrGC( hbqt_ptrTOgcpointer( new QColor( hbqt_par_QPen( 1 )->color() ) ) );
}
/*

Some files were not shown because too many files have changed in this diff Show More