2009-12-03 11:39 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)

* contrib/hbqt/generator/qt45.qtp
  * contrib/hbqt/hbqt_garbage.h
  * contrib/hbqt/qtcore/filelist.mk
  * contrib/hbqt/qtcore/QUiLoader.cpp
  * contrib/hbqt/qtgui/QLabel.cpp
  * contrib/hbqt/qth/QLabel.qth
    ! Fixed QUiLoader issue.
    ! Fixed XbpStatic()'s weired behaviour which was caused by expected improvements
      in QLabel() class which eventually did not yield desired results, unluckily.
      I will look into this matter later.
      Now, HBQT sources re-built places proper make files and components.
This commit is contained in:
Pritpal Bedi
2009-12-03 19:44:05 +00:00
parent e1f3d8f9fe
commit 5b9f7f3d97
7 changed files with 40 additions and 36 deletions

View File

@@ -17,6 +17,19 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-12-03 11:39 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/generator/qt45.qtp
* contrib/hbqt/hbqt_garbage.h
* contrib/hbqt/qtcore/filelist.mk
* contrib/hbqt/qtcore/QUiLoader.cpp
* contrib/hbqt/qtgui/QLabel.cpp
* contrib/hbqt/qth/QLabel.qth
! Fixed QUiLoader issue.
! Fixed XbpStatic()'s weired behaviour which was caused by expected improvements
in QLabel() class which eventually did not yield desired results, unluckily.
I will look into this matter later.
Now, HBQT sources re-built places proper make files and components.
2009-12-03 18:47 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/Makefile
+ Moved hbcairo to section for contribs with external dependencies.

View File

@@ -261,7 +261,7 @@ QTranslator.qth
QTreeView.qth
QTreeWidget.qth
QTreeWidgetItem.qth
;QUiLoader.qth
QUiLoader.qth
QUrl.qth
QValidator.qth
QVariant.qth

View File

@@ -255,6 +255,7 @@ extern QT_G_FUNC( release_QTranslator );
extern QT_G_FUNC( release_QTreeView );
extern QT_G_FUNC( release_QTreeWidget );
extern QT_G_FUNC( release_QTreeWidgetItem );
extern QT_G_FUNC( release_QUiLoader );
extern QT_G_FUNC( release_QUrl );
extern QT_G_FUNC( release_QValidator );
extern QT_G_FUNC( release_QVariant );
@@ -523,6 +524,7 @@ extern void * gcAllocate_QTranslator( void * pObj );
extern void * gcAllocate_QTreeView( void * pObj );
extern void * gcAllocate_QTreeWidget( void * pObj );
extern void * gcAllocate_QTreeWidgetItem( void * pObj );
extern void * gcAllocate_QUiLoader( void * pObj );
extern void * gcAllocate_QUrl( void * pObj );
extern void * gcAllocate_QValidator( void * pObj );
extern void * gcAllocate_QVariant( void * pObj );

View File

@@ -2,6 +2,12 @@
* $Id$
*/
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated source file. DO NOT EDIT! */
/* Instead, edit corresponding .qth file, */
/* or the generator tool itself, and run regenarate. */
/* -------------------------------------------------------------------- */
/*
* Harbour Project source code:
* QT wrapper main header
@@ -90,11 +96,22 @@ QT_G_FUNC( release_QUiLoader )
const QMetaObject * m = ( ( QObject * ) p->ph )->metaObject();
if( ( QString ) m->className() != ( QString ) "QObject" )
{
( ( QUiLoader * ) p->ph )->~QUiLoader();
switch( hbqt_get_object_release_method() )
{
case HBQT_RELEASE_WITH_DELETE:
delete ( ( QUiLoader * ) p->ph );
break;
case HBQT_RELEASE_WITH_DESTRUTOR:
( ( QUiLoader * ) p->ph )->~QUiLoader();
break;
case HBQT_RELEASE_WITH_DELETE_LATER:
( ( QUiLoader * ) p->ph )->deleteLater();
break;
}
p->ph = NULL;
HB_TRACE( HB_TR_DEBUG, ( "release_QUiLoader Object deleted!" ) );
#if defined( __HB_DEBUG__ )
hbqt_debug( " YES release_QUiLoader %i B %i KB", ( int ) hb_xquery( 1001 ), hb_getMemUsed() );
hbqt_debug( " YES release_QUiLoader %i B %i KB", ( int ) hb_xquery( 1001 ), hbqt_getmemused() );
#endif
}
else
@@ -122,7 +139,7 @@ void * gcAllocate_QUiLoader( void * pObj )
p->func = release_QUiLoader;
new( & p->pq ) QPointer< QUiLoader >( ( QUiLoader * ) pObj );
#if defined( __HB_DEBUG__ )
hbqt_debug( " new_QUiLoader %i B %i KB", ( int ) hb_xquery( 1001 ), hb_getMemUsed() );
hbqt_debug( " new_QUiLoader %i B %i KB", ( int ) hb_xquery( 1001 ), hbqt_getmemused() );
#endif
return( p );
}

View File

@@ -53,6 +53,7 @@ CPP_SOURCES := \
QTime.cpp \
QTimer.cpp \
QTranslator.cpp \
QUiLoader.cpp \
QUrl.cpp \
QVariant.cpp \
@@ -103,6 +104,7 @@ PRG_SOURCES := \
TQTime.prg \
TQTimer.prg \
TQTranslator.prg \
TQUiLoader.prg \
TQUrl.prg \
TQVariant.prg \

View File

@@ -148,22 +148,7 @@ HB_FUNC( QT_QLABEL )
{
void * pObj = NULL;
if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
{
pObj = ( QLabel* ) new QLabel( hbqt_par_QString( 1 ) ) ;
}
else if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
pObj = ( QLabel* ) new QLabel( hbqt_par_QWidget( 1 ) ) ;
}
if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
pObj = ( QLabel* ) new QLabel( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) ;
}
else
{
pObj = ( QLabel* ) new QLabel() ;
}
pObj = ( QLabel* ) new QLabel( hbqt_par_QWidget( 1 ) ) ;
hb_retptrGC( gcAllocate_QLabel( pObj ) );
}

View File

@@ -70,22 +70,7 @@ New = pParent, nFlags
*/
HB_FUNC( QT_QLABEL )
{
if( hb_pcount() == 1 && HB_ISCHAR( 1 ) )
{
hb_retptr( ( QLabel* ) new QLabel( hbqt_par_QString( 1 ) ) );
}
else if( hb_pcount() == 1 && HB_ISPOINTER( 1 ) )
{
hb_retptr( ( QLabel* ) new QLabel( hbqt_par_QWidget( 1 ) ) );
}
if( hb_pcount() == 2 && HB_ISCHAR( 1 ) && HB_ISPOINTER( 2 ) )
{
hb_retptr( ( QLabel* ) new QLabel( hbqt_par_QString( 1 ), hbqt_par_QWidget( 2 ) ) );
}
else
{
hb_retptr( ( QLabel* ) new QLabel() );
}
hb_retptr( ( QLabel* ) new QLabel( hbqt_par_QWidget( 1 ) ) );
}
</CODE>