Files
harbour-core/harbour/contrib/hbqt/qtgui/qth/QCommandLinkButton.qth
Pritpal Bedi 79438d19a0 2012-06-02 14:40 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/qtgui/qth/QCalendarWidget.qth
  * contrib/hbqt/qtgui/qth/QCheckBox.qth
  * contrib/hbqt/qtgui/qth/QCloseEvent.qth
  * contrib/hbqt/qtgui/qth/QCommandLinkButton.qth
  * contrib/hbqt/qtgui/qth/QCompleter.qth
  * contrib/hbqt/qtgui/qth/QConicalGradient.qth
  * contrib/hbqt/qtgui/qth/QDateEdit.qth
  * contrib/hbqt/qtgui/qth/QDateTimeEdit.qth
  * contrib/hbqt/qtgui/qth/QDeclarativeContext.qth
  * contrib/hbqt/qtgui/qth/QDial.qth
  * contrib/hbqt/qtgui/qth/QDialog.qth
  * contrib/hbqt/qtgui/qth/QDockWidget.qth
  * contrib/hbqt/qtgui/qth/QDoubleSpinBox.qth
  * contrib/hbqt/qtgui/qth/QDrag.qth
  * contrib/hbqt/qtgui/qth/QErrorMessage.qth
  * contrib/hbqt/qtgui/qth/QFileSystemModel.qth
  * contrib/hbqt/qtgui/qth/QFocusFrame.qth
  * contrib/hbqt/qtgui/qth/QFontComboBox.qth
  * contrib/hbqt/qtgui/qth/QFontMetrics.qth
  * contrib/hbqt/qtgui/qth/QFontMetricsF.qth
  * contrib/hbqt/qtgui/qth/QGroupBox.qth
  * contrib/hbqt/qtgui/qth/QInputDialog.qth
  * contrib/hbqt/qtgui/qth/QItemSelection.qth
  * contrib/hbqt/qtgui/qth/QKeySequence.qth
  * contrib/hbqt/qtgui/qth/QLCDNumber.qth
  * contrib/hbqt/qtgui/qth/QListView.qth
  * contrib/hbqt/qtgui/qth/QMatrix.qth
  * contrib/hbqt/qtgui/qth/QMessageBox.qth
  * contrib/hbqt/qtgui/qth/QMovie.qth
  * contrib/hbqt/qtgui/qth/QPainterPath.qth
  * contrib/hbqt/qtgui/qth/QPixmap.qth
  * contrib/hbqt/qtgui/qth/QProgressBar.qth
  * contrib/hbqt/qtgui/qth/QProgressDialog.qth
  * contrib/hbqt/qtgui/qth/QRadioButton.qth
  * contrib/hbqt/qtgui/qth/QSpacerItem.qth
    ! Fixed: constructors.
       This has been a tidious process and I could have 
       broken something in the process, though, all demoes 
       and hbIDE is working fine. If you find some inconsistency,
       please shout. Also if someone can overlook the .qth's 
       for remaining files yet needs the constructors reworked,
       it will be a great help.
2012-06-02 21:49:19 +00:00

77 lines
2.1 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 = QPushButton
New = pParent
Calls = QT_QCommandLinkButton
</CLASS>
<CODE>
#include <QtGui/QCommandLinkButton>
/*
* QCommandLinkButton ( QWidget * parent = 0 )
* QCommandLinkButton ( const QString & text, QWidget * parent = 0 )
* QCommandLinkButton ( const QString & text, const QString & description, QWidget * parent = 0 )
*/
HB_FUNC( QT_QCOMMANDLINKBUTTON )
{
if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
{
void * pText01 = NULL;
__HB_RETPTRGC__( new QCommandLinkButton( hb_parstr_utf8( 1, &pText01, NULL ) ) );
hb_strfree( pText01 );
}
else if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QWIDGET" ) )
{
__HB_RETPTRGC__( new QCommandLinkButton( hbqt_par_QWidget( 1 ) ) );
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && hbqt_par_isDerivedFrom( 2, "QWIDGET" ) )
{
void * pText01 = NULL;
__HB_RETPTRGC__( new QCommandLinkButton( hb_parstr_utf8( 1, &pText01, NULL ), hbqt_par_QWidget( 2 ) ) );
hb_strfree( pText01 );
}
else if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISCHAR( 2 ) )
{
void * pText01 = NULL;
void * pText02 = NULL;
__HB_RETPTRGC__( new QCommandLinkButton( hb_parstr_utf8( 1, &pText01, NULL ), hb_parstr_utf8( 2, &pText02, NULL ) ) );
hb_strfree( pText02 );
hb_strfree( pText01 );
}
else if( hb_pcount() == 3 && HB_ISCHAR( 1 ) && HB_ISCHAR( 2 ) && hbqt_par_isDerivedFrom( 3, "QWIDGET" ) )
{
void * pText01 = NULL;
void * pText02 = NULL;
__HB_RETPTRGC__( new QCommandLinkButton( hb_parstr_utf8( 1, &pText01, NULL ), hb_parstr_utf8( 2, &pText02, NULL ), hbqt_par_QWidget( 3 ) ) );
hb_strfree( pText02 );
hb_strfree( pText01 );
}
else
{
__HB_RETPTRGC__( new QCommandLinkButton() );
}
}
</CODE>
<PROTOS>
QString description () const
void setDescription ( const QString & description )
</PROTOS>