* contrib/hbqt/hbmk2_qt.hb
! Guarded: qth_is_QObject() function under __HBQT_REVAMP__.
This facilitates to change how we would like to use this
construct in the future. Also there is a lot which may be
added to this protocol, apart from only detecting if a class
is QObject() derived, and hence is subject to change.
We will do what is proposed after all is settled on new
protocol.
- Removed: QIcon() hack which was exploiting hbqt_par_Qstring()
usage. Also it was not per Qt documantation. Now anywhere
an icon is needed, it has to be constructed explicitily
with a call to QIcon( cFileName ). Earlier QIcon() was passed
as only a <cFileName>
INCOMPATIBLE: 3rd party libs have to modify their code.
* contrib/hbqt/qtcore/qth/QLibraryInfo.qth
* contrib/hbqt/qtcore/qth/QMimeData.qth
* contrib/hbqt/qtgui/qth/QClipboard.qth
* contrib/hbqt/qtgui/qth/QDirModel.qth
* contrib/hbqt/qtgui/qth/QDropEvent.qth
* contrib/hbqt/qtgui/qth/QFileSystemModel.qth
* contrib/hbqt/qtgui/qth/QGraphicsSceneDragDropEvent.qth
+ Implemented: _HBQT_REVAMP__ specific signal/slot firing objects.
* contrib/hbqt/qtgui/qth/QPushButton.qth
- Removed: <CLASS> PaintEvent = </CLASS> token.
* contrib/hbqt/qtgui/hbqt_hbqgraphicsitem.cpp
* contrib/hbqt/qtgui/hbqt_hbqgraphicsscene.cpp
* contrib/hbqt/qtgui/hbqt_hbqplaintextedit.cpp
* contrib/hbqt/qtgui/hbqt_hbqtableview.cpp
+ Implemented: _HBQT_REVAMP__ specific signal/slot firing objects.
* contrib/hbqt/qtcore/hbqt_bind.cpp
* contrib/hbqt/qtcore/hbqt_hbqevents.cpp
* contrib/hbqt/qtcore/hbqt_hbqslots.cpp
* contrib/hbqt/qtcore/hbqt_init.cpp
* contrib/hbqt/qtcore/hbqt_pointer.cpp
* contrib/hbqt/qtgui/hbqt_init.cpp
+ Implemented: _HBQT_REVAMP__ specific signal/slot/events management.
; NOTE: hbIDE is almost running under __HBQT_REVAMP__ methodoly
with signal/slots/events catched anfired properly.
This implementation is subject to a lot of improvements
but at of current shows up a good promise to achieve
the end-results soon.
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>
|
|
Inherit = QAbstractButton
|
|
New = pParent
|
|
</CLASS>
|
|
|
|
<CODE>
|
|
#include <QtGui/QPushButton>
|
|
|
|
|
|
/*
|
|
* QPushButton ( QWidget * parent = 0 )
|
|
* QPushButton ( const QString & text, QWidget * parent = 0 )
|
|
* QPushButton ( const QIcon & icon, const QString & text, QWidget * parent = 0 )
|
|
* ~QPushButton ()
|
|
*/
|
|
HB_FUNC( QT_QPUSHBUTTON )
|
|
{
|
|
if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QWIDGET" ) )
|
|
{
|
|
__HB_RETPTRGC__( new QPushButton( hbqt_par_QWidget( 1 ) ) );
|
|
}
|
|
#if 0
|
|
else if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
|
|
{
|
|
void * pText01 = NULL;
|
|
__HB_RETPTRGC__( new QPushButton( ( const char * ) hb_parstr_utf8( 1, &pText01, NULL ) ) );
|
|
hb_strfree( pText01 );
|
|
}
|
|
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && hbqt_par_isDerivedFrom( 2, "QWIDGET" ) )
|
|
{
|
|
void * pText01 = NULL;
|
|
__HB_RETPTRGC__( new QPushButton( hb_parstr_utf8( 1, &pText01, NULL ), hbqt_par_QWidget( 2 ) ) );
|
|
hb_strfree( pText01 );
|
|
}
|
|
else if( hb_pcount() == 2 && hbqt_par_isDerivedFrom( 1, "QICON" ) && HB_ISCHAR( 2 ) )
|
|
{
|
|
void * pText01 = NULL;
|
|
__HB_RETPTRGC__( new QPushButton( *hbqt_par_QIcon( 1 ), hb_parstr_utf8( 2, &pText01, NULL ) ) );
|
|
hb_strfree( pText01 );
|
|
}
|
|
#endif
|
|
else
|
|
{
|
|
__HB_RETPTRGC__( new QPushButton() );
|
|
}
|
|
}
|
|
</CODE>
|
|
|
|
<PROTOS>
|
|
bool autoDefault () const
|
|
bool isDefault () const
|
|
bool isFlat () const
|
|
QMenu * menu () const
|
|
void setAutoDefault ( bool )
|
|
void setDefault ( bool )
|
|
void setFlat ( bool )
|
|
void setMenu ( QMenu * menu )
|
|
</PROTOS>
|
|
|
|
<SLOTS>
|
|
void showMenu ()
|
|
</SLOTS>
|