* contrib/hbqt/qtcore/qth/*.qth
* contrib/hbqt/qtgui/qth/*.qth
* contrib/hbqt/qtnetwork/qth/*.qth
! Copyright year bump.
+ Formatting.
- Long coptyright notice to short one.
76 lines
1.8 KiB
Plaintext
76 lines
1.8 KiB
Plaintext
/*
|
|
* $Id$
|
|
*/
|
|
|
|
/*
|
|
* Harbour Qt wrapper generator control file
|
|
*
|
|
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
|
|
* www - http://www.harbour-project.org
|
|
*
|
|
* See COPYING for licensing terms.
|
|
*/
|
|
|
|
<CLASS>
|
|
QObject = no
|
|
Inherit = QInputEvent
|
|
Type = Core
|
|
New =
|
|
Constructor = no
|
|
</CLASS>
|
|
|
|
<CODE>
|
|
#include <QtGui/QKeyEvent>
|
|
|
|
|
|
/*
|
|
* QKeyEvent ( Type type, int key, Qt::KeyboardModifiers modifiers, const QString & text = QString(), bool autorep = false, ushort count = 1 )
|
|
* ~QKeyEvent ()
|
|
*/
|
|
HB_FUNC( QT_QKEYEVENT )
|
|
{
|
|
if( hb_pcount() >= 4 && HB_ISNUM( 1 ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) && HB_ISCHAR( 4 ) )
|
|
{
|
|
void * pText01 = NULL;
|
|
__HB_RETPTRGC__( new QKeyEvent( ( QEvent::Type ) hb_parni( 1 ), hb_parni( 2 ), ( Qt::KeyboardModifiers ) hb_parni( 3 ), hb_parstr_utf8( 4, &pText01, NULL ), HB_ISLOG( 5 ) ? hb_parl( 5 ) : false, HB_ISNUM( 6 ) ? hb_parni( 6 ) : 1 ) );
|
|
hb_strfree( pText01 );
|
|
}
|
|
else 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 ), QString(), hb_parl( 5 ), HB_ISNUM( 6 ) ? hb_parni( 6 ) : 1 ) );
|
|
}
|
|
else if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QKEYEVENT" ) )
|
|
{
|
|
__HB_RETPTRGC__( new QKeyEvent( *hbqt_par_QKeyEvent( 1 ) ) );
|
|
}
|
|
else
|
|
{
|
|
hb_errRT_BASE( EG_ARG, 9999, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
|
|
}
|
|
}
|
|
</CODE>
|
|
|
|
<ENUMS>
|
|
</ENUMS>
|
|
|
|
<PROTOS>
|
|
int count () const
|
|
bool isAutoRepeat () const
|
|
int key () const
|
|
bool matches ( QKeySequence::StandardKey key ) const
|
|
Qt::KeyboardModifiers modifiers () const
|
|
quint32 nativeModifiers () const
|
|
quint32 nativeScanCode () const
|
|
quint32 nativeVirtualKey () const
|
|
QString text () const
|
|
</PROTOS>
|
|
|
|
<SLOTS>
|
|
</SLOTS>
|
|
|
|
<SIGNALS>
|
|
</SIGNALS>
|
|
|
|
<VARIABLES>
|
|
</VARIABLES>
|