2011-03-02 17:15 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)

* contrib/hbqt/qtcore/qth/QCoreApplication.qth
    ! Reversed previous commit.
    
  * contrib/hbqt/qtgui/hbqt_init.cpp
    - Deleted: hbqtgui_eventpush() function, not needed anymore.

  * contrib/hbqt/qtgui/qth/QContextMenuEvent.qth
  * contrib/hbqt/qtgui/qth/QDragEnterEvent.qth
  * contrib/hbqt/qtgui/qth/QDragLeaveEvent.qth
  * contrib/hbqt/qtgui/qth/QDragMoveEvent.qth
  * contrib/hbqt/qtgui/qth/QDropEvent.qth
  * contrib/hbqt/qtgui/qth/QFocusEvent.qth
  * contrib/hbqt/qtgui/qth/QGraphicsSceneContextMenuEvent.qth
  * contrib/hbqt/qtgui/qth/QGraphicsSceneDragDropEvent.qth
  * contrib/hbqt/qtgui/qth/QGraphicsSceneEvent.qth
  * contrib/hbqt/qtgui/qth/QGraphicsSceneHelpEvent.qth
  * contrib/hbqt/qtgui/qth/QGraphicsSceneHoverEvent.qth
  * contrib/hbqt/qtgui/qth/QGraphicsSceneMouseEvent.qth
  * contrib/hbqt/qtgui/qth/QGraphicsSceneMoveEvent.qth
  * contrib/hbqt/qtgui/qth/QGraphicsSceneResizeEvent.qth
  * contrib/hbqt/qtgui/qth/QGraphicsSceneWheelEvent.qth
  * contrib/hbqt/qtgui/qth/QHelpEvent.qth
  * contrib/hbqt/qtgui/qth/QHideEvent.qth
  * contrib/hbqt/qtgui/qth/QInputMethodEvent.qth
  * contrib/hbqt/qtgui/qth/QKeyEvent.qth
  * contrib/hbqt/qtgui/qth/QMouseEvent.qth
  * contrib/hbqt/qtgui/qth/QMoveEvent.qth
  * contrib/hbqt/qtgui/qth/QPaintEvent.qth
  * contrib/hbqt/qtgui/qth/QResizeEvent.qth
  * contrib/hbqt/qtgui/qth/QShowEvent.qth
  * contrib/hbqt/qtgui/qth/QWheelEvent.qth
    + Added: constructors for all events with due parameters.
      I do not know why it elluded me so far. And I cannot 
      recollect what wrong I was doing. May be due to some 
      problems at initial stages kept unattended with 
      ongoing development.
This commit is contained in:
Pritpal Bedi
2011-03-03 01:22:51 +00:00
parent 8524b506c2
commit 5d0b22d9cf
28 changed files with 156 additions and 96 deletions

View File

@@ -16,6 +16,44 @@
The license applies to all entries newer than 2009-04-28.
*/
2011-03-02 17:15 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtcore/qth/QCoreApplication.qth
! Reversed previous commit.
* contrib/hbqt/qtgui/hbqt_init.cpp
- Deleted: hbqtgui_eventpush() function, not needed anymore.
* contrib/hbqt/qtgui/qth/QContextMenuEvent.qth
* contrib/hbqt/qtgui/qth/QDragEnterEvent.qth
* contrib/hbqt/qtgui/qth/QDragLeaveEvent.qth
* contrib/hbqt/qtgui/qth/QDragMoveEvent.qth
* contrib/hbqt/qtgui/qth/QDropEvent.qth
* contrib/hbqt/qtgui/qth/QFocusEvent.qth
* contrib/hbqt/qtgui/qth/QGraphicsSceneContextMenuEvent.qth
* contrib/hbqt/qtgui/qth/QGraphicsSceneDragDropEvent.qth
* contrib/hbqt/qtgui/qth/QGraphicsSceneEvent.qth
* contrib/hbqt/qtgui/qth/QGraphicsSceneHelpEvent.qth
* contrib/hbqt/qtgui/qth/QGraphicsSceneHoverEvent.qth
* contrib/hbqt/qtgui/qth/QGraphicsSceneMouseEvent.qth
* contrib/hbqt/qtgui/qth/QGraphicsSceneMoveEvent.qth
* contrib/hbqt/qtgui/qth/QGraphicsSceneResizeEvent.qth
* contrib/hbqt/qtgui/qth/QGraphicsSceneWheelEvent.qth
* contrib/hbqt/qtgui/qth/QHelpEvent.qth
* contrib/hbqt/qtgui/qth/QHideEvent.qth
* contrib/hbqt/qtgui/qth/QInputMethodEvent.qth
* contrib/hbqt/qtgui/qth/QKeyEvent.qth
* contrib/hbqt/qtgui/qth/QMouseEvent.qth
* contrib/hbqt/qtgui/qth/QMoveEvent.qth
* contrib/hbqt/qtgui/qth/QPaintEvent.qth
* contrib/hbqt/qtgui/qth/QResizeEvent.qth
* contrib/hbqt/qtgui/qth/QShowEvent.qth
* contrib/hbqt/qtgui/qth/QWheelEvent.qth
+ Added: constructors for all events with due parameters.
I do not know why it elluded me so far. And I cannot
recollect what wrong I was doing. May be due to some
problems at initial stages kept unattended with
ongoing development.
2011-03-02 15:29 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtcore/qth/QCoreApplication.qth
! Commented out: sendEvent() and postEvent() methods until

View File

@@ -60,15 +60,15 @@ QCoreApplication * instance ()
QStringList libraryPaths ()
QString organizationDomain ()
QString organizationName ()
// void postEvent ( QObject * receiver, QEvent * event )
// void postEvent ( QObject * receiver, QEvent * event, int priority )
void postEvent ( QObject * receiver, QEvent * event )
void postEvent ( QObject * receiver, QEvent * event, int priority )
void processEvents ( QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents )
void processEvents ( QEventLoop::ProcessEventsFlags flags, int maxtime )
void removeLibraryPath ( const QString & path )
void removePostedEvents ( QObject * receiver )
void removePostedEvents ( QObject * receiver, int eventType )
void removeTranslator ( QTranslator * translationFile )
// bool sendEvent ( QObject * receiver, QEvent * event )
bool sendEvent ( QObject * receiver, QEvent * event )
void sendPostedEvents ( QObject * receiver, int event_type )
void sendPostedEvents ()
void setApplicationName ( const QString & application )

View File

@@ -588,53 +588,6 @@ static void hbqt_lib_exit( void * cargo )
HB_SYMBOL_UNUSED( cargo );
}
#if 0
/* TOFIX: Accept .prg level object already created instead of duplicating
logic present in QKeyEvent.qth and QMouseEvent.qth.
Check its type here.
Another pending TOFIX is why this doesn't work, and why does it
GPF even:
QApplication():sendEvent( oWnd, QKeyEvent( QEvent_KeyPress, Qt_Key_X, Qt_NoModifier, "X", 0 ) )
*/
HB_FUNC( HBQTGUI_EVENTPUSH )
{
switch( hb_parni( 2 ) )
{
case QEvent::KeyPress:
case QEvent::KeyRelease:
case QEvent::ShortcutOverride:
{
QKeyEvent pKeyEvent = QKeyEvent( ( QEvent::Type ) hb_parni( 2 ),
hb_parni( 3 ),
( Qt::KeyboardModifiers ) hb_parni( 4 ),
( HB_ISCHAR( 5 ) ? hbqt_par_QString( 5 ) : QString() ),
( HB_ISLOG( 6 ) ? hb_parl( 6 ) : false ),
( HB_ISNUM( 7 ) ? hb_parni( 7 ) : 1 ) );
QObject * pObj = ( QObject * ) hbqt_gcpointer( 1 );
s_app->sendEvent( pObj, &pKeyEvent );
break;
}
case QEvent::MouseButtonPress:
case QEvent::MouseButtonRelease:
case QEvent::MouseButtonDblClick:
case QEvent::MouseMove:
{
#if 0 /* QPoint is in qrcore so how to handle ? qtcore is always required anyway for any Qt appln */
QKeyEvent pMouseEvent = QMouseEvent( ( QEvent::Type ) hb_parni( 2 ),
hbqt_par_QPoint( 3 ),
( Qt::MouseButton ) hb_parni( 4 ),
( Qt::MouseButtons ) hb_parni( 5 ),
( Qt::KeyboardModifiers ) hb_parni( 6 ) );
QObject * pObj = ( QObject * ) hbqt_gcpointer( 1 );
s_app->sendEvent( pObj, &pMouseEvent );
#endif
break;
}
}
}
#endif
HB_CALL_ON_STARTUP_BEGIN( _hbqtgui_init_ )
hb_vmAtInit( hbqt_lib_init, NULL );

View File

@@ -28,7 +28,18 @@ New =
*/
HB_FUNC( QT_QCONTEXTMENUEVENT )
{
__HB_RETPTRGC__( new QContextMenuEvent( ( QContextMenuEvent::Reason ) hb_parni( 1 ), *hbqt_par_QPoint( 2 ) ) );
if( hb_pcount() == 2 && HB_ISNUM( 1 ) && HB_ISPOINTER( 2 ) )
{
__HB_RETPTRGC__( new QContextMenuEvent( ( QContextMenuEvent::Reason ) hb_parni( 1 ), *hbqt_par_QPoint( 2 ) ) );
}
else if( hb_pcount() == 3 && HB_ISNUM( 1 ) && HB_ISPOINTER( 2 ) && HB_ISPOINTER( 3 ) )
{
__HB_RETPTRGC__( new QContextMenuEvent( ( QContextMenuEvent::Reason ) hb_parni( 1 ), *hbqt_par_QPoint( 2 ), *hbqt_par_QPoint( 3 ) ) );
}
else if( hb_pcount() == 4 && HB_ISNUM( 1 ) && HB_ISPOINTER( 2 ) && HB_ISPOINTER( 3 ) && HB_ISNUM( 4 ) )
{
__HB_RETPTRGC__( new QContextMenuEvent( ( QContextMenuEvent::Reason ) hb_parni( 1 ), *hbqt_par_QPoint( 2 ), *hbqt_par_QPoint( 3 ), ( Qt::KeyboardModifiers ) hb_parni( 4 ) ) );
}
}
</CODE>

View File

@@ -28,7 +28,10 @@ Constructor = no
*/
HB_FUNC( QT_QDRAGENTEREVENT )
{
if( hb_pcount() == 5 && HB_ISPOINTER( 1 ) && HB_ISNUM( 2 ) && HB_ISPOINTER( 3 ) && HB_ISNUM( 4 ) && HB_ISNUM( 5 ) )
{
__HB_RETPTRGC__( new QDragEnterEvent( *hbqt_par_QPoint( 1 ), ( Qt::DropActions ) hb_parni( 2 ), hbqt_par_QMimeData( 3 ), ( Qt::MouseButtons ) hb_parni( 4 ), ( Qt::KeyboardModifiers ) hb_parni( 5 ) ) );
}
}
</CODE>

View File

@@ -28,7 +28,7 @@ Constructor = no
*/
HB_FUNC( QT_QDRAGLEAVEEVENT )
{
// __HB_RETPTRGC__( new QDragLeaveEvent() );
__HB_RETPTRGC__( new QDragLeaveEvent() );
}
</CODE>

View File

@@ -29,7 +29,10 @@ Constructor = no
*/
HB_FUNC( QT_QDRAGMOVEEVENT )
{
// __HB_RETPTRGC__( new QDragMoveEvent() );
if( hb_pcount() >= 5 && HB_ISPOINTER( 1 ) && HB_ISNUM( 2 ) && HB_ISPOINTER( 3 ) && HB_ISNUM( 4 ) && HB_ISNUM( 5 ) )
{
__HB_RETPTRGC__( new QDragMoveEvent( *hbqt_par_QPoint( 1 ), ( Qt::DropActions ) hb_parni( 2 ), hbqt_par_QMimeData( 3 ), ( Qt::MouseButtons ) hb_parni( 4 ), ( Qt::KeyboardModifiers ) hb_parni( 5 ), ( QEvent::Type ) ( HB_ISNUM( 6 ) ? hb_parni( 6 ) : QEvent::DragMove ) ) );
}
}
</CODE>

View File

@@ -28,7 +28,10 @@ Constructor = no
*/
HB_FUNC( QT_QDROPEVENT )
{
// __HB_RETPTRGC__( new QDropEvent() );
if( hb_pcount() >= 5 && HB_ISPOINTER( 1 ) && HB_ISNUM( 2 ) && HB_ISPOINTER( 3 ) && HB_ISNUM( 4 ) && HB_ISNUM( 5 ) )
{
__HB_RETPTRGC__( new QDropEvent( *hbqt_par_QPoint( 1 ), ( Qt::DropActions ) hb_parni( 2 ), hbqt_par_QMimeData( 3 ), ( Qt::MouseButtons ) hb_parni( 4 ), ( Qt::KeyboardModifiers ) hb_parni( 5 ), ( QEvent::Type ) ( HB_ISNUM( 6 ) ? hb_parni( 6 ) : QEvent::Drop ) ) );
}
}
</CODE>

View File

@@ -16,7 +16,7 @@ QObject = no
Inherits = QEvent
Type = Core
New =
Constructor = no
Constructor =
</CLASS>
<CODE>
@@ -28,7 +28,10 @@ Constructor = no
*/
HB_FUNC( QT_QFOCUSEVENT )
{
// __HB_RETPTRGC__( new QFocusEvent() );
if( hb_pcount() >= 1 && HB_ISNUM( 1 ) )
{
__HB_RETPTRGC__( new QFocusEvent( ( QEvent::Type ) hb_parni( 1 ), ( Qt::FocusReason ) ( HB_ISNUM( 2 ) ? hb_parni( 2 ) : Qt::OtherFocusReason ) ) );
}
}
</CODE>

View File

@@ -16,7 +16,7 @@ QObject = no
Inherit = QGraphicsSceneEvent
Type =
New =
Constructor = no
Constructor =
</CLASS>
<CODE>
@@ -31,7 +31,7 @@ Constructor = no
*/
HB_FUNC( QT_QGRAPHICSSCENECONTEXTMENUEVENT )
{
//__HB_RETPTRGC__( new QGraphicsSceneContextMenuEvent() );
__HB_RETPTRGC__( new QGraphicsSceneContextMenuEvent() );
}
</CODE>

View File

@@ -16,7 +16,7 @@ QObject = no
Inherit = QGraphicsSceneEvent
Type =
New =
Constructor = no
Constructor =
</CLASS>
<CODE>
@@ -33,7 +33,7 @@ Constructor = no
*/
HB_FUNC( QT_QGRAPHICSSCENEDRAGDROPEVENT )
{
//__HB_RETPTRGC__( new QGraphicsSceneDragDropEvent() );
__HB_RETPTRGC__( new QGraphicsSceneDragDropEvent() );
}
</CODE>

View File

@@ -16,7 +16,7 @@ QObject = no
Inherit = QEvent
Type =
New =
Constructor = no
Constructor =
</CLASS>
<CODE>
@@ -29,7 +29,14 @@ Constructor = no
*/
HB_FUNC( QT_QGRAPHICSSCENEEVENT )
{
//__HB_RETPTRGC__( new QGraphicsSceneEvent() );
if( hb_pcount() == 1 && HB_ISNUM( 1 ) )
{
__HB_RETPTRGC__( new QGraphicsSceneEvent( ( QEvent::Type ) hb_parni( 1 ) ) );
}
else if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
__HB_RETPTRGC__( new QGraphicsSceneEvent( *hbqt_par_QGraphicsSceneEvent( 1 ) ) );
}
}
</CODE>

View File

@@ -16,7 +16,7 @@ QObject = no
Inherit = QGraphicsSceneEvent
Type =
New =
Constructor = no
Constructor =
</CLASS>
<CODE>
@@ -31,7 +31,7 @@ Constructor = no
*/
HB_FUNC( QT_QGRAPHICSSCENEHELPEVENT )
{
//__HB_RETPTRGC__( new QGraphicsSceneHelpEvent() );
__HB_RETPTRGC__( new QGraphicsSceneHelpEvent() );
}
</CODE>

View File

@@ -16,7 +16,7 @@ QObject = no
Inherit = QGraphicsSceneEvent
Type =
New =
Constructor = no
Constructor =
</CLASS>
<CODE>
@@ -31,7 +31,7 @@ Constructor = no
*/
HB_FUNC( QT_QGRAPHICSSCENEHOVEREVENT )
{
//__HB_RETPTRGC__( new QGraphicsSceneHoverEvent() );
__HB_RETPTRGC__( new QGraphicsSceneHoverEvent() );
}
</CODE>

View File

@@ -16,7 +16,7 @@ QObject = no
Inherit = QGraphicsSceneEvent
Type =
New =
Constructor = no
Constructor =
</CLASS>
<CODE>
@@ -31,7 +31,7 @@ Constructor = no
*/
HB_FUNC( QT_QGRAPHICSSCENEMOUSEEVENT )
{
//__HB_RETPTRGC__( new QGraphicsSceneMouseEvent() );
__HB_RETPTRGC__( new QGraphicsSceneMouseEvent() );
}
</CODE>

View File

@@ -16,7 +16,7 @@ QObject = no
Inherit = QGraphicsSceneEvent
Type =
New =
Constructor = no
Constructor =
</CLASS>
<CODE>
@@ -31,7 +31,7 @@ Constructor = no
*/
HB_FUNC( QT_QGRAPHICSSCENEMOVEEVENT )
{
//__HB_RETPTRGC__( new QGraphicsSceneMoveEvent() );
__HB_RETPTRGC__( new QGraphicsSceneMoveEvent() );
}
</CODE>

View File

@@ -16,7 +16,7 @@ QObject = no
Inherit = QGraphicsSceneEvent
Type =
New =
Constructor = no
Constructor =
</CLASS>
<CODE>
@@ -30,7 +30,7 @@ Constructor = no
*/
HB_FUNC( QT_QGRAPHICSSCENERESIZEEVENT )
{
//__HB_RETPTRGC__( new QGraphicsSceneResizeEvent() );
__HB_RETPTRGC__( new QGraphicsSceneResizeEvent() );
}
</CODE>

View File

@@ -16,7 +16,7 @@ QObject = no
Inherit = QGraphicsSceneEvent
Type =
New =
Constructor = no
Constructor =
</CLASS>
<CODE>
@@ -30,7 +30,7 @@ Constructor = no
*/
HB_FUNC( QT_QGRAPHICSSCENEWHEELEVENT )
{
//__HB_RETPTRGC__( new QGraphicsSceneWheelEvent() );
__HB_RETPTRGC__( new QGraphicsSceneWheelEvent() );
}
</CODE>

View File

@@ -13,11 +13,10 @@
<CLASS>
QObject = no
Inherits =
Inherits = QEvent
Type = Core
New =
Destructor =
Constructor = no
</CLASS>
<CODE>
@@ -29,7 +28,10 @@ Constructor = no
*/
HB_FUNC( QT_QHELPEVENT )
{
// __HB_RETPTRGC__( new QHelpEvent() );
if( hb_pcount() == 3 && HB_ISNUM( 1 ) && HB_ISPOINTER( 2 ) && HB_ISPOINTER( 3 ) )
{
__HB_RETPTRGC__( new QHelpEvent( ( QEvent::Type ) hb_parni( 1 ), *hbqt_par_QPoint( 2 ), *hbqt_par_QPoint( 3 ) ) );
}
}
</CODE>

View File

@@ -28,7 +28,7 @@ Constructor = no
*/
HB_FUNC( QT_QHIDEEVENT )
{
// __HB_RETPTRGC__( new QHideEvent() );
__HB_RETPTRGC__( new QHideEvent() );
}
</CODE>

View File

@@ -29,7 +29,14 @@ Destructor =
*/
HB_FUNC( QT_QINPUTMETHODEVENT )
{
__HB_RETPTRGC__( new QInputMethodEvent() );
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
__HB_RETPTRGC__( new QInputMethodEvent( *hbqt_par_QInputMethodEvent( 1 ) ) );
}
else
{
__HB_RETPTRGC__( new QInputMethodEvent() );
}
}
</CODE>

View File

@@ -29,7 +29,14 @@ Constructor = no
*/
HB_FUNC( QT_QKEYEVENT )
{
//__HB_RETPTRGC__( new QKeyEvent( *hbqt_par_QKeyEvent( 1 ) ) );
if( hb_pcount() >= 3 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) )
{
__HB_RETPTRGC__( new QKeyEvent( ( QEvent::Type ) hb_parni( 1 ), hb_parni( 2 ), ( Qt::KeyboardModifiers ) hb_parni( 3 ), HB_ISCHAR( 4 ) ? hbqt_par_QString( 4 ) : QString(), HB_ISLOG( 5 ) ? hb_parl( 5 ) : false, HB_ISNUM( 6 ) ? hb_parni( 6 ) : 1 ) );
}
else if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
__HB_RETPTRGC__( new QKeyEvent( *hbqt_par_QKeyEvent( 1 ) ) );
}
}
</CODE>

View File

@@ -37,6 +37,10 @@ HB_FUNC( QT_QMOUSEEVENT )
{
__HB_RETPTRGC__( new QMouseEvent( ( QEvent::Type ) hb_parni( 1 ), *hbqt_par_QPoint( 2 ), ( Qt::MouseButton ) hb_parni( 3 ), ( Qt::MouseButtons ) hb_parni( 4 ), ( Qt::KeyboardModifiers ) hb_parni( 5 ) ) );
}
else if( hb_pcount() == 6 )
{
__HB_RETPTRGC__( new QMouseEvent( ( QEvent::Type ) hb_parni( 1 ), *hbqt_par_QPoint( 2 ), *hbqt_par_QPoint( 3 ), ( Qt::MouseButton ) hb_parni( 4 ), ( Qt::MouseButtons ) hb_parni( 5 ), ( Qt::KeyboardModifiers ) hb_parni( 6 ) ) );
}
}
</CODE>

View File

@@ -29,7 +29,14 @@ Constructor = no
*/
HB_FUNC( QT_QMOVEEVENT )
{
// __HB_RETPTRGC__( new QMoveEvent() );
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
__HB_RETPTRGC__( new QMoveEvent( *hbqt_par_QMoveEvent( 1 ) ) );
}
else if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
{
__HB_RETPTRGC__( new QMoveEvent( *hbqt_par_QPoint( 1 ), *hbqt_par_QPoint( 2 ) ) );
}
}
</CODE>

View File

@@ -28,18 +28,16 @@ New =
*/
HB_FUNC( QT_QPAINTEVENT )
{
if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
QString objName = ( QString ) hbqt_par_QString( 1 );
if( objName == ( QString ) "QRect" )
{
__HB_RETPTRGC__( new QPaintEvent( *hbqt_par_QRect( 1 ) ) );
}
else if( objName == ( QString ) "QRegion" )
if( hbqt_IsObjectType( 1, HBQT_TYPE_QRegion ) )
{
__HB_RETPTRGC__( new QPaintEvent( *hbqt_par_QRegion( 1 ) ) );
}
else if( hbqt_IsObjectType( 1, HBQT_TYPE_QRect ) )
{
__HB_RETPTRGC__( new QPaintEvent( *hbqt_par_QRect( 1 ) ) );
}
}
}
</CODE>

View File

@@ -16,7 +16,7 @@ QObject = no
Inherits = QEvent
Type = Core
New =
Constructor = no
Constructor =
</CLASS>
<CODE>
@@ -28,7 +28,10 @@ Constructor = no
*/
HB_FUNC( QT_QRESIZEEVENT )
{
// __HB_RETPTRGC__( new QResizeEvent() );
if( hb_pcount() == 2 && HB_ISPOINTER( 1 ) && HB_ISPOINTER( 2 ) )
{
__HB_RETPTRGC__( new QResizeEvent( *hbqt_par_QSize( 1 ), *hbqt_par_QSize( 2 ) ) );
}
}
</CODE>

View File

@@ -16,7 +16,7 @@ QObject = no
Inherits = QEvent
Type = Core
New =
Constructor = no
Constructor =
</CLASS>
<CODE>
@@ -28,7 +28,7 @@ Constructor = no
*/
HB_FUNC( QT_QSHOWEVENT )
{
// __HB_RETPTRGC__( new QShowEvent() );
__HB_RETPTRGC__( new QShowEvent() );
}
</CODE>

View File

@@ -16,7 +16,7 @@ QObject = no
Inherits = QInputEvent
Type = Core
New =
Constructor = no
Constructor =
</CLASS>
<CODE>
@@ -29,7 +29,18 @@ Constructor = no
*/
HB_FUNC( QT_QWHEELEVENT )
{
// __HB_RETPTRGC__( new QWheelEvent() );
if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
__HB_RETPTRGC__( new QWheelEvent( *hbqt_par_QWheelEvent( 1 ) ) );
}
else if( hb_pcount() >= 4 )
{
__HB_RETPTRGC__( new QWheelEvent( *hbqt_par_QPoint( 1 ), hb_parni( 2 ), ( Qt::MouseButtons ) hb_parni( 3 ), ( Qt::KeyboardModifiers ) hb_parni( 4 ), ( Qt::Orientation ) ( HB_ISNUM( 5 ) ? hb_parni( 5 ) : Qt::Vertical ) ) );
}
else if( hb_pcount() >= 5 )
{
__HB_RETPTRGC__( new QWheelEvent( *hbqt_par_QPoint( 1 ), *hbqt_par_QPoint( 2 ), hb_parni( 3 ), ( Qt::MouseButtons ) hb_parni( 4 ), ( Qt::KeyboardModifiers ) hb_parni( 5 ), ( Qt::Orientation ) ( HB_ISNUM( 6 ) ? hb_parni( 6 ) : Qt::Vertical ) ) );
}
}
</CODE>