2009-08-16 21:44 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)

* contrib/hbqt/hbqt_slots.cpp

  * contrib/hbqt/QColor.cpp
  * contrib/hbqt/QFont.cpp
  * contrib/hbqt/QKeyEvent.cpp
  * contrib/hbqt/QMouseEvent.cpp
  * contrib/hbqt/QMoveEvent.cpp
  * contrib/hbqt/QPoint.cpp
  * contrib/hbqt/QRect.cpp
  * contrib/hbqt/QRectF.cpp
  * contrib/hbqt/QRegion.cpp
  * contrib/hbqt/QSize.cpp
  * contrib/hbqt/QSizeF.cpp

  * contrib/hbqt/qth/QColor.qth
  * contrib/hbqt/qth/QFont.qth
  * contrib/hbqt/qth/QKeyEvent.qth
  * contrib/hbqt/qth/QMouseEvent.qth
  * contrib/hbqt/qth/QMoveEvent.qth
  * contrib/hbqt/qth/QPoint.qth
  * contrib/hbqt/qth/QRect.qth
  * contrib/hbqt/qth/QRectF.qth
  * contrib/hbqt/qth/QRegion.qth
  * contrib/hbqt/qth/QSize.qth
  * contrib/hbqt/qth/QSizeF.qth
   
    ! Tweaked some definitions.
This commit is contained in:
Pritpal Bedi
2009-08-17 04:48:18 +00:00
parent ffb226c3c5
commit e223dff7e8
24 changed files with 68 additions and 13 deletions

View File

@@ -17,6 +17,35 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-08-16 21:44 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/hbqt_slots.cpp
* contrib/hbqt/QColor.cpp
* contrib/hbqt/QFont.cpp
* contrib/hbqt/QKeyEvent.cpp
* contrib/hbqt/QMouseEvent.cpp
* contrib/hbqt/QMoveEvent.cpp
* contrib/hbqt/QPoint.cpp
* contrib/hbqt/QRect.cpp
* contrib/hbqt/QRectF.cpp
* contrib/hbqt/QRegion.cpp
* contrib/hbqt/QSize.cpp
* contrib/hbqt/QSizeF.cpp
* contrib/hbqt/qth/QColor.qth
* contrib/hbqt/qth/QFont.qth
* contrib/hbqt/qth/QKeyEvent.qth
* contrib/hbqt/qth/QMouseEvent.qth
* contrib/hbqt/qth/QMoveEvent.qth
* contrib/hbqt/qth/QPoint.qth
* contrib/hbqt/qth/QRect.qth
* contrib/hbqt/qth/QRectF.qth
* contrib/hbqt/qth/QRegion.qth
* contrib/hbqt/qth/QSize.qth
* contrib/hbqt/qth/QSizeF.qth
! Tweaked some definitions.
2009-08-16 10:37 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
* config/global.cf
+ Package creation now only works if run from Harbour source root.

View File

@@ -75,6 +75,7 @@ QColor ( Qt::GlobalColor color )
QColor ( const QString & name )
QColor ( const char * name )
QColor ( const QColor & color )
~QColor ()
*/
HB_FUNC( QT_QCOLOR )
{
@@ -120,7 +121,7 @@ HB_FUNC( QT_QCOLOR )
*/
HB_FUNC( QT_QCOLOR_DESTROY )
{
hbqt_par_QColor( 1 )->~QColor();
}
/*

View File

@@ -79,6 +79,7 @@
* QFont ( const QString & family, int pointSize = -1, int weight = -1, bool italic = false )
* QFont ( const QFont & font, QPaintDevice * pd )
* QFont ( const QFont & font )
* ~QFont ()
*/
HB_FUNC( QT_QFONT )
{
@@ -117,7 +118,7 @@ HB_FUNC( QT_QFONT )
*/
HB_FUNC( QT_QFONT_DESTROY )
{
hbqt_par_QFont( 1 )->~QFont();
}
/*

View File

@@ -66,6 +66,7 @@
/*
* QKeyEvent ( Type type, int key, Qt::KeyboardModifiers modifiers, const QString & text = QString(), bool autorep = false, ushort count = 1 )
* ~QKeyEvent ()
*/
HB_FUNC( QT_QKEYEVENT )
{
@@ -77,7 +78,7 @@ HB_FUNC( QT_QKEYEVENT )
*/
HB_FUNC( QT_QKEYEVENT_DESTROY )
{
hbqt_par_QKeyEvent( 1 )->~QKeyEvent();
}
/*

View File

@@ -67,6 +67,7 @@
/*
* QMouseEvent ( Type type, const QPoint & position, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers )
* QMouseEvent ( Type type, const QPoint & pos, const QPoint & globalPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers )
* ~QMouseEvent ()
*/
HB_FUNC( QT_QMOUSEEVENT )
{
@@ -78,7 +79,7 @@ HB_FUNC( QT_QMOUSEEVENT )
*/
HB_FUNC( QT_QMOUSEEVENT_DESTROY )
{
hbqt_par_QMouseEvent( 1 )->~QMouseEvent();
}
/*

View File

@@ -66,6 +66,7 @@
/*
* QMoveEvent ( const QPoint & pos, const QPoint & oldPos )
* ~QMoveEvent ()
*/
HB_FUNC( QT_QMOVEEVENT )
{
@@ -77,7 +78,7 @@ HB_FUNC( QT_QMOVEEVENT )
*/
HB_FUNC( QT_QMOVEEVENT_DESTROY )
{
hbqt_par_QMoveEvent( 1 )->~QMoveEvent();
}
/*

View File

@@ -67,6 +67,7 @@
/*
* QPoint ()
* QPoint ( int x, int y )
* ~QPoint ()
*/
HB_FUNC( QT_QPOINT )
{
@@ -89,7 +90,7 @@ HB_FUNC( QT_QPOINT )
*/
HB_FUNC( QT_QPOINT_DESTROY )
{
hbqt_par_QPoint( 1 )->~QPoint();
}
/*

View File

@@ -69,6 +69,7 @@
* QRect ( const QPoint & topLeft, const QPoint & bottomRight )
* QRect ( const QPoint & topLeft, const QSize & size )
* QRect ( int x, int y, int width, int height )
* ~QRect ()
*/
HB_FUNC( QT_QRECT )
{
@@ -95,7 +96,7 @@ HB_FUNC( QT_QRECT )
*/
HB_FUNC( QT_QRECT_DESTROY )
{
hbqt_par_QRect( 1 )->~QRect();
}
/*

View File

@@ -70,6 +70,7 @@
* QRectF ( const QPointF & topLeft, const QPointF & bottomRight )
* QRectF ( qreal x, qreal y, qreal width, qreal height )
* QRectF ( const QRect & rectangle )
* ~QRectF ()
*/
HB_FUNC( QT_QRECTF )
{
@@ -96,7 +97,7 @@ HB_FUNC( QT_QRECTF )
*/
HB_FUNC( QT_QRECTF_DESTROY )
{
hbqt_par_QRectF( 1 )->~QRectF();
}
/*

View File

@@ -88,6 +88,7 @@
* QRegion ( const QRegion & r )
* QRegion ( const QBitmap & bm )
* QRegion ( const QRect & r, RegionType t = Rectangle )
* ~QRegion ()
*/
HB_FUNC( QT_QREGION )
{
@@ -136,7 +137,7 @@ HB_FUNC( QT_QREGION )
*/
HB_FUNC( QT_QREGION_DESTROY )
{
hbqt_par_QRegion( 1 )->~QRegion();
}
/*

View File

@@ -67,6 +67,7 @@
/*
* QSize ()
* QSize ( int width, int height )
* ~QSize ()
*/
HB_FUNC( QT_QSIZE )
{
@@ -89,7 +90,7 @@ HB_FUNC( QT_QSIZE )
*/
HB_FUNC( QT_QSIZE_DESTROY )
{
hbqt_par_QSize( 1 )->~QSize();
}
/*

View File

@@ -68,6 +68,7 @@
* QSizeF ()
* QSizeF ( const QSize & size )
* QSizeF ( qreal width, qreal height )
* ~QSizeF ()
*/
HB_FUNC( QT_QSIZEF )
{
@@ -86,7 +87,7 @@ HB_FUNC( QT_QSIZEF )
*/
HB_FUNC( QT_QSIZEF_DESTROY )
{
hbqt_par_QSizeF( 1 )->~QSizeF();
}
/*

View File

@@ -1871,8 +1871,12 @@ QVariant fetchRole( PHB_ITEM block, int what, int par1, int par2 )
return( hb_itemGetND( ret ) );
else if( hb_itemType( ret ) & HB_IT_NUMERIC )
return( hb_itemGetNI( ret ) );
// else if( hb_itemType( ret ) & HB_IT_POINTER )
// return( hb_itemGetPtr( ret ) );
#if 0
else if( hb_itemType( ret ) & HB_IT_POINTER )
{
QPixmap pixmap = qobject_cast<QPixmap>( (QPixmap*) hb_itemGetPtr( ret ) );
}
#endif
else
return QVariant();
}

View File

@@ -81,6 +81,7 @@ QColor ( Qt::GlobalColor color )
QColor ( const QString & name )
QColor ( const char * name )
QColor ( const QColor & color )
~QColor ()
*/
HB_FUNC( QT_QCOLOR )
{

View File

@@ -77,6 +77,7 @@ oFont := QFont():new( pFont, pPaintDevice )
* QFont ( const QString & family, int pointSize = -1, int weight = -1, bool italic = false )
* QFont ( const QFont & font, QPaintDevice * pd )
* QFont ( const QFont & font )
* ~QFont ()
*/
HB_FUNC( QT_QFONT )
{

View File

@@ -66,6 +66,7 @@ New =
/*
* QKeyEvent ( Type type, int key, Qt::KeyboardModifiers modifiers, const QString & text = QString(), bool autorep = false, ushort count = 1 )
* ~QKeyEvent ()
*/
HB_FUNC( QT_QKEYEVENT )
{

View File

@@ -67,6 +67,7 @@ New =
/*
* QMouseEvent ( Type type, const QPoint & position, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers )
* QMouseEvent ( Type type, const QPoint & pos, const QPoint & globalPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers )
* ~QMouseEvent ()
*/
HB_FUNC( QT_QMOUSEEVENT )
{

View File

@@ -66,6 +66,7 @@ New =
/*
* QMoveEvent ( const QPoint & pos, const QPoint & oldPos )
* ~QMoveEvent ()
*/
HB_FUNC( QT_QMOVEEVENT )
{

View File

@@ -72,6 +72,7 @@ oPoint := QPoint():new( pQPoint )
/*
* QPoint ()
* QPoint ( int x, int y )
* ~QPoint ()
*/
HB_FUNC( QT_QPOINT )
{

View File

@@ -80,6 +80,7 @@ oRect := QRect():new( nX, nY, nWidth, nHeight )
* QRect ( const QPoint & topLeft, const QPoint & bottomRight )
* QRect ( const QPoint & topLeft, const QSize & size )
* QRect ( int x, int y, int width, int height )
* ~QRect ()
*/
HB_FUNC( QT_QRECT )
{

View File

@@ -81,6 +81,7 @@ oRectF := QRectF():new( nX, nY, nWidth, nHeight )
* QRectF ( const QPointF & topLeft, const QPointF & bottomRight )
* QRectF ( qreal x, qreal y, qreal width, qreal height )
* QRectF ( const QRect & rectangle )
* ~QRectF ()
*/
HB_FUNC( QT_QRECTF )
{

View File

@@ -80,6 +80,7 @@ oRegion := QRegion():new( pQRect, nQRegion_RegionType )
* QRegion ( const QRegion & r )
* QRegion ( const QBitmap & bm )
* QRegion ( const QRect & r, RegionType t = Rectangle )
* ~QRegion ()
*/
HB_FUNC( QT_QREGION )
{

View File

@@ -72,6 +72,7 @@ oSize := QSize():new( nWidth, nHeight )
/*
* QSize ()
* QSize ( int width, int height )
* ~QSize ()
*/
HB_FUNC( QT_QSIZE )
{

View File

@@ -72,6 +72,7 @@ oSizeF := QSizeF():new( nWidth, nHeight )
* QSizeF ()
* QSizeF ( const QSize & size )
* QSizeF ( qreal width, qreal height )
* ~QSizeF ()
*/
HB_FUNC( QT_QSIZEF )
{