From 6ee6172042893eafc19f98bc06a5d5b80d79141a Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Mon, 6 Apr 2009 16:51:30 +0000 Subject: [PATCH] 2009-04-06 09:45 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) * harbour/contrib/hbqt/generator/qt45.qtp * harbour/contrib/hbqt/hbqt.h + harbour/contrib/hbqt/qth/QEvent.qth + harbour/contrib/hbqt/qth/QEventLoop.qth + harbour/contrib/hbqt/qth/QInputEvent.qth + harbour/contrib/hbqt/qth/QPaintEvent.qth + harbour/contrib/hbqt/qth/QRegion.qth * harbour/contrib/hbqt/qth/QSize.qth + harbour/contrib/hbqt/qth/QVariant.qth + Added more classes and update qt45.qtp --- harbour/ChangeLog | 12 ++ harbour/contrib/hbqt/generator/qt45.qtp | 9 +- harbour/contrib/hbqt/hbqt.h | 7 + harbour/contrib/hbqt/qth/QEvent.qth | 97 ++++++++++++ harbour/contrib/hbqt/qth/QEventLoop.qth | 99 +++++++++++++ harbour/contrib/hbqt/qth/QInputEvent.qth | 93 ++++++++++++ harbour/contrib/hbqt/qth/QPaintEvent.qth | 93 ++++++++++++ harbour/contrib/hbqt/qth/QRegion.qth | 118 +++++++++++++++ harbour/contrib/hbqt/qth/QSize.qth | 3 +- harbour/contrib/hbqt/qth/QVariant.qth | 179 +++++++++++++++++++++++ 10 files changed, 708 insertions(+), 2 deletions(-) create mode 100644 harbour/contrib/hbqt/qth/QEvent.qth create mode 100644 harbour/contrib/hbqt/qth/QEventLoop.qth create mode 100644 harbour/contrib/hbqt/qth/QInputEvent.qth create mode 100644 harbour/contrib/hbqt/qth/QPaintEvent.qth create mode 100644 harbour/contrib/hbqt/qth/QRegion.qth create mode 100644 harbour/contrib/hbqt/qth/QVariant.qth diff --git a/harbour/ChangeLog b/harbour/ChangeLog index a35fb4c1cf..cb1592e962 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,18 @@ 2009-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org) */ +2009-04-06 09:45 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) + * harbour/contrib/hbqt/generator/qt45.qtp + * harbour/contrib/hbqt/hbqt.h + + harbour/contrib/hbqt/qth/QEvent.qth + + harbour/contrib/hbqt/qth/QEventLoop.qth + + harbour/contrib/hbqt/qth/QInputEvent.qth + + harbour/contrib/hbqt/qth/QPaintEvent.qth + + harbour/contrib/hbqt/qth/QRegion.qth + * harbour/contrib/hbqt/qth/QSize.qth + + harbour/contrib/hbqt/qth/QVariant.qth + + Added more classes and update qt45.qtp + 2009-04-06 09:36 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) * harbour/contrib/hbqt/generator/hbqtgen.prg ! StdOut() used instead of ?. diff --git a/harbour/contrib/hbqt/generator/qt45.qtp b/harbour/contrib/hbqt/generator/qt45.qtp index 68522455ab..c99a8d6d07 100644 --- a/harbour/contrib/hbqt/generator/qt45.qtp +++ b/harbour/contrib/hbqt/generator/qt45.qtp @@ -103,10 +103,17 @@ QWebPage.qth QWidget.qth QWizard.qth QWebView.qth - QSize.qth QSizeF.qth QPoint.qth QPointF.qth QRect.qth QRectF.qth + +QRegion.qth +QVariant.qth +QEvent.qth +QEventLoop.qth +QPaintEvent.qth +QInputEvent.qth + diff --git a/harbour/contrib/hbqt/hbqt.h b/harbour/contrib/hbqt/hbqt.h index 0fc1a4eabb..613796780c 100644 --- a/harbour/contrib/hbqt/hbqt.h +++ b/harbour/contrib/hbqt/hbqt.h @@ -202,6 +202,7 @@ #define hbqt_par_QImage( n ) ( ( QImage* ) hb_parptr( n ) ) #define hbqt_par_QKeySequence( n ) ( ( QKeySequence* ) hb_parptr( n ) ) #define hbqt_par_QSize( n ) ( ( QSize* ) hb_parptr( n ) ) +#define hbqt_par_QSizeF( n ) ( ( QSizeF* ) hb_parptr( n ) ) #define hbqt_par_QModelIndex( n ) ( ( QModelIndex* ) hb_parptr( n ) ) #define hbqt_par_QVariant( n ) ( ( QVariant* ) hb_parptr( n ) ) #define hbqt_par_QSessionManager( n ) ( ( QSessionManager* ) hb_parptr( n ) ) @@ -225,6 +226,12 @@ #define hbqt_par_WId( n ) ( ( HWND* ) hb_parptr( n ) ) #define hbqt_par_HDC( n ) ( ( HDC* ) hb_parptr( n ) ) #define hbqt_par_QBitmap( n ) ( ( QBitmap* ) hb_parptr( n ) ) +#define hbqt_par_QTextStream( n ) ( ( QTextStream* ) hb_parptr( n ) ) +#define hbqt_par_QTextCodec( n ) ( ( QTextCodec* ) hb_parptr( n ) ) +#define hbqt_par_QEventLoop( n ) ( ( QEventLoop* ) hb_parptr( n ) ) +#define hbqt_par_QPaintEvent( n ) ( ( QPaintEvent* ) hb_parptr( n ) ) +#define hbqt_par_QInputEvent( n ) ( ( QInputEvent* ) hb_parptr( n ) ) +#define hbqt_par_HRGN( n ) ( ( HRGN* ) hb_parptr( n ) ) #define hbqt_par_QIcon( n ) ( ( QIcon ) hb_parc( n ) ) #define hbqt_par_QString( n ) ( ( QString ) hb_parc( n ) ) diff --git a/harbour/contrib/hbqt/qth/QEvent.qth b/harbour/contrib/hbqt/qth/QEvent.qth new file mode 100644 index 0000000000..b7405b78f9 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QEvent.qth @@ -0,0 +1,97 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +Type = Core +New = nType + + + +#include + + +/* + * QEvent ( Type type ) + * virtual ~QEvent () + */ +HB_FUNC( QT_QEVENT ) +{ + hb_retptr( ( QEvent* ) new QEvent( ( QEvent::Type ) hb_parni( 1 ) ) ); +} + + + +enum Type { None, AccessibilityDescription, AccessibilityHelp, AccessibilityPrepare, ..., MaxUser } + + + +void accept () +void ignore () +bool isAccepted () const +void setAccepted ( bool accepted ) +bool spontaneous () const +Type type () const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QEventLoop.qth b/harbour/contrib/hbqt/qth/QEventLoop.qth new file mode 100644 index 0000000000..370b489688 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QEventLoop.qth @@ -0,0 +1,99 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +Inherits = QObject +Type = Core +New = pObject + + + +#include +#include + +/* + * QEventLoop ( QObject * parent = 0 ) + * ~QEventLoop () + */ +HB_FUNC( QT_QEVENTLOOP ) +{ + hb_retptr( ( QEvent* ) new QEventLoop( hbqt_par_QObject( 1 ) ) ); +} + + + +enum ProcessEventsFlag { AllEvents, ExcludeUserInputEvents, ExcludeSocketNotifiers, WaitForMoreEvents, DeferredDeletion } +flags ProcessEventsFlags + + + +int exec ( ProcessEventsFlags flags = AllEvents ) +void exit ( int returnCode = 0 ) +bool isRunning () const +bool processEvents ( ProcessEventsFlags flags = AllEvents ) +void processEvents ( ProcessEventsFlags flags, int maxTime ) +void wakeUp () + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QInputEvent.qth b/harbour/contrib/hbqt/qth/QInputEvent.qth new file mode 100644 index 0000000000..b6c039595e --- /dev/null +++ b/harbour/contrib/hbqt/qth/QInputEvent.qth @@ -0,0 +1,93 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +Inherits = QEvent +Type = Parameters +New = + + + +#include +#include + +/* + * + * + */ +HB_FUNC( QT_QINPUTEVENT ) +{ + hb_retptr( ( QInputEvent* ) new QInputEvent( ( QEvent::Type ) hb_parni( 1 ), + ( Qt::KeyboardModifiers ) hb_parni( 2 ) ) ); +} + + + + + + +Qt::KeyboardModifiers modifiers () const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QPaintEvent.qth b/harbour/contrib/hbqt/qth/QPaintEvent.qth new file mode 100644 index 0000000000..842604c6d8 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QPaintEvent.qth @@ -0,0 +1,93 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +Inherits = QEvent +Type = Core +New = + + + +#include + + +/* + * QPaintEvent ( const QRegion & paintRegion ) + * QPaintEvent ( const QRect & paintRect ) + */ +HB_FUNC( QT_QPAINTEVENT ) +{ + hb_retptr( ( QPaintEvent* ) new QPaintEvent( *hbqt_par_QRect( 1 ) ) ); +} + + + + + + +const QRect & rect () const +const QRegion & region () const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QRegion.qth b/harbour/contrib/hbqt/qth/QRegion.qth new file mode 100644 index 0000000000..a047e48ded --- /dev/null +++ b/harbour/contrib/hbqt/qth/QRegion.qth @@ -0,0 +1,118 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +Type = Parameters +New = nX, nY, nWidth, nHeight, nType + + + +#include + + +/* + * QRegion () + * QRegion ( int x, int y, int w, int h, RegionType t = Rectangle ) + * QRegion ( const QPolygon & a, Qt::FillRule fillRule = Qt::OddEvenFill ) + * QRegion ( const QRegion & r ) + * QRegion ( const QBitmap & bm ) + * QRegion ( const QRect & r, RegionType t = Rectangle ) + */ +HB_FUNC( QT_QREGION ) +{ + hb_retptr( ( QRegion* ) new QRegion( hb_parni( 1 ), hb_parni( 2 ), + hb_parni( 3 ), hb_parni( 4 ), + ( QRegion::RegionType ) ( HB_ISNUM( 5 ) ? hb_parni( 5 ) : QRegion::Rectangle ) ) ); +} + + + +enum RegionType { Rectangle, Ellipse } + + + +QRect boundingRect () const +bool contains ( const QPoint & p ) const +bool contains ( const QRect & r ) const +//Handle handle () const +HRGN handle () const +QRegion intersected ( const QRegion & r ) const +QRegion intersected ( const QRect & rect ) const +bool intersects ( const QRegion & region ) const +bool intersects ( const QRect & rect ) const +bool isEmpty () const +int numRects () const +QVector rects () const +void setRects ( const QRect * rects, int number ) +QRegion subtracted ( const QRegion & r ) const +void translate ( int dx, int dy ) +void translate ( const QPoint & point ) +QRegion translated ( int dx, int dy ) const +QRegion translated ( const QPoint & p ) const +QRegion united ( const QRegion & r ) const +QRegion united ( const QRect & rect ) const +QRegion xored ( const QRegion & r ) const + + + + + + + + + + + diff --git a/harbour/contrib/hbqt/qth/QSize.qth b/harbour/contrib/hbqt/qth/QSize.qth index f11bba023d..defb42a4c3 100644 --- a/harbour/contrib/hbqt/qth/QSize.qth +++ b/harbour/contrib/hbqt/qth/QSize.qth @@ -55,7 +55,8 @@ ; -New = iWidth, iHeight +Type = Core +New = nWidth, nHeight diff --git a/harbour/contrib/hbqt/qth/QVariant.qth b/harbour/contrib/hbqt/qth/QVariant.qth new file mode 100644 index 0000000000..84d4555785 --- /dev/null +++ b/harbour/contrib/hbqt/qth/QVariant.qth @@ -0,0 +1,179 @@ +/* + * $Id$ + */ + +/* + * Harbour Project source code: + * QT Source Generator for Harbour + * + * Copyright 2009 Pritpal Bedi + * www - http://www.harbour-project.org + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, + * Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/). + * + * As a special exception, the Harbour Project gives permission for + * additional uses of the text contained in its release of Harbour. + * + * The exception is that, if you link the Harbour libraries with other + * files to produce an executable, this does not by itself cause the + * resulting executable to be covered by the GNU General Public License. + * Your use of that executable is in no way restricted on account of + * linking the Harbour library code into it. + * + * This exception does not however invalidate any other reasons why + * the executable file might be covered by the GNU General Public License. + * + * This exception applies only to the code released by the Harbour + * Project under the name Harbour. If you copy code from other + * Harbour Project or Free Software Foundation releases into a copy of + * Harbour, as the General Public License permits, the exception does + * not apply to the code that you add in this way. To avoid misleading + * anyone as to the status of such modified files, you must delete + * this exception notice from them. + * + * If you write modifications of your own for Harbour, it is your choice + * whether to permit this exception to apply to your modifications. + * If you do not wish that, delete this exception notice. + * + */ +/*----------------------------------------------------------------------*/ +; +; Header File to Generate QT Wrapper Sources +; + + +Type = Core +New = + + + +#include +#include +#include +#include +#include + + +/* +QVariant () +QVariant ( Qt::GlobalColor color ) +QVariant ( Type type ) +QVariant ( int typeOrUserType, const void * copy ) +QVariant ( const QVariant & p ) +QVariant ( QDataStream & s ) +QVariant ( int val ) +QVariant ( uint val ) +QVariant ( qlonglong val ) +QVariant ( qulonglong val ) +QVariant ( bool val ) +QVariant ( double val ) +QVariant ( const char * val ) +QVariant ( const QByteArray & val ) +QVariant ( const QBitArray & val ) +QVariant ( const QString & val ) +QVariant ( const QLatin1String & val ) +QVariant ( const QStringList & val ) +QVariant ( const QChar & c ) +QVariant ( const QDate & val ) +QVariant ( const QTime & val ) +QVariant ( const QDateTime & val ) +QVariant ( const QList & val ) +QVariant ( const QMap & val ) +QVariant ( const QHash & val ) +QVariant ( const QSize & val ) +QVariant ( const QSizeF & val ) +QVariant ( const QPoint & val ) +QVariant ( const QPointF & val ) +QVariant ( const QLine & val ) +QVariant ( const QLineF & val ) +QVariant ( const QRect & val ) +QVariant ( const QRectF & val ) +QVariant ( const QUrl & val ) +QVariant ( const QLocale & l ) +QVariant ( const QRegExp & regExp ) +~QVariant () + */ +HB_FUNC( QT_QVARIANT ) +{ + hb_retptr( ( QVariant* ) new QVariant() ); +} + + + +enum Type { Invalid, BitArray, Bitmap, Bool, ..., UserType } + + + +bool canConvert ( Type t ) const +bool canConvert ( Type t ) const +void clear () +bool convert ( Type t ) +bool isNull () const +bool isValid () const +void setValue ( const T & value ) +QBitArray toBitArray () const +bool toBool () const +QByteArray toByteArray () const +# +# Donot know how to return this type +# +//QChar toChar () const +# +QDate toDate () const +QDateTime toDateTime () const +double toDouble ( bool * ok = 0 ) const +QHash toHash () const +int toInt ( bool * ok = 0 ) const +QLine toLine () const +QLineF toLineF () const +QList toList () const +QLocale toLocale () const +qlonglong toLongLong ( bool * ok = 0 ) const +QMap toMap () const +QPoint toPoint () const +QPointF toPointF () const +QRect toRect () const +QRectF toRectF () const +QRegExp toRegExp () const +QSize toSize () const +QSizeF toSizeF () const +QString toString () const +QStringList toStringList () const +QTime toTime () const +uint toUInt ( bool * ok = 0 ) const +qulonglong toULongLong ( bool * ok = 0 ) const +QUrl toUrl () const +Type type () const +# +//const char * typeName () const +# +int userType () const +# +# No Matching Function Call +# +//T value () const +# + + + + + + + + + + +