From 9645dd42aadef5604168489a9fb907c19a40aba9 Mon Sep 17 00:00:00 2001 From: Pritpal Bedi Date: Thu, 14 Jun 2012 16:47:24 +0000 Subject: [PATCH] 2012-06-14 09:45 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbqt/qtcore/hbqt_hbqslots.cpp * contrib/hbqt/qtcore/hbqt_misc.prg * contrib/hbqt/qtcore/hbqt_pointer.cpp - Removed: trace entries. --- harbour/ChangeLog | 6 ++++++ harbour/contrib/hbqt/qtcore/hbqt_hbqslots.cpp | 16 ++++++++-------- harbour/contrib/hbqt/qtcore/hbqt_misc.prg | 10 +++++----- harbour/contrib/hbqt/qtcore/hbqt_pointer.cpp | 2 +- 4 files changed, 20 insertions(+), 14 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 89db1e7074..aa22b8d74b 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,12 @@ The license applies to all entries newer than 2009-04-28. */ +2012-06-14 09:45 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) + * contrib/hbqt/qtcore/hbqt_hbqslots.cpp + * contrib/hbqt/qtcore/hbqt_misc.prg + * contrib/hbqt/qtcore/hbqt_pointer.cpp + - Removed: trace entries. + 2012-06-14 14:43 UTC+0200 Francesco Perillo ( fperillo at gmail.com ) * contrib/hbqt/qtcore/hbqt_pointer.cpp * contrib/hbqt/qtcore/hbqt_hbqslots.cpp diff --git a/harbour/contrib/hbqt/qtcore/hbqt_hbqslots.cpp b/harbour/contrib/hbqt/qtcore/hbqt_hbqslots.cpp index 781cb38c9a..3f0ac09257 100644 --- a/harbour/contrib/hbqt/qtcore/hbqt_hbqslots.cpp +++ b/harbour/contrib/hbqt/qtcore/hbqt_hbqslots.cpp @@ -112,7 +112,7 @@ HBQSlots::HBQSlots() : QObject() HBQSlots::~HBQSlots() { - HB_TRACE( HB_TR_ALWAYS, ( "HBQSlots::~HBQSlots()" ) ); + HB_TRACE( HB_TR_DEBUG, ( "HBQSlots::~HBQSlots()" ) ); } int HBQSlots::hbConnect( PHB_ITEM pObj, char * pszSignal, PHB_ITEM bBlock ) @@ -188,7 +188,7 @@ int HBQSlots::hbDisconnect( PHB_ITEM pObj, char * pszSignal ) { if( QMetaObject::disconnect( object, signalId, 0, 0 ) ) { - HB_TRACE( HB_TR_ALWAYS, ( "HBQSlots::hbDisconnect( %s ) signalId=%d", pszSignal, signalId ) ); + HB_TRACE( HB_TR_DEBUG, ( "HBQSlots::hbDisconnect( %s ) signalId=%d", pszSignal, signalId ) ); nResult = 0; } else @@ -211,7 +211,7 @@ int HBQSlots::hbDisconnect( PHB_ITEM pObj, char * pszSignal ) int HBQSlots::hbDisconnectAll( PHB_ITEM pObj ) { - HB_TRACE( HB_TR_ALWAYS, ( "DISCONNECTALL" ) ); + HB_TRACE( HB_TR_DEBUG, ( "DISCONNECTALL" ) ); QObject * object = ( QObject * ) hbqt_get_ptr( pObj ); if( object ) @@ -228,7 +228,7 @@ int HBQSlots::qt_metacall( QMetaObject::Call c, int id, void ** arguments ) if( id < 0 || c != QMetaObject::InvokeMetaMethod ) return id; - HB_TRACE( HB_TR_ALWAYS, ( "qt_metacall" ) ); + HB_TRACE( HB_TR_DEBUG, ( "qt_metacall" ) ); QObject * object = sender(); if( object ) { @@ -271,7 +271,7 @@ int HBQSlots::qt_metacall( QMetaObject::Call c, int id, void ** arguments ) object->setProperty( szPList, pList ); - HB_TRACE( HB_TR_ALWAYS, ( " SlotsProxy parList %s ", ( char * ) paramString.data() ) ); + HB_TRACE( HB_TR_DEBUG, ( " SlotsProxy parList %s ", ( char * ) paramString.data() ) ); } } @@ -445,16 +445,16 @@ static void hbqt_lib_init( void * cargo ) { HB_SYMBOL_UNUSED( cargo ); - HB_TRACE( HB_TR_ALWAYS, ( "Slots: hbqt_lib_init" ) ); + HB_TRACE( HB_TR_DEBUG, ( "Slots: hbqt_lib_init" ) ); if( receiverSlot == NULL ) receiverSlot = new HBQSlots; - HB_TRACE( HB_TR_ALWAYS, ( "Slots: hbqt_lib_init" ) ); + HB_TRACE( HB_TR_DEBUG, ( "Slots: hbqt_lib_init" ) ); } static void hbqt_lib_exit( void* cargo ) { HB_SYMBOL_UNUSED( cargo ); - HB_TRACE( HB_TR_ALWAYS, ( "Exiting slots lib" ) ); + HB_TRACE( HB_TR_DEBUG, ( "Exiting slots lib" ) ); if( receiverSlot ) delete receiverSlot; diff --git a/harbour/contrib/hbqt/qtcore/hbqt_misc.prg b/harbour/contrib/hbqt/qtcore/hbqt_misc.prg index 01262b225d..2e268c658f 100644 --- a/harbour/contrib/hbqt/qtcore/hbqt_misc.prg +++ b/harbour/contrib/hbqt/qtcore/hbqt_misc.prg @@ -139,7 +139,7 @@ METHOD HbQtObjectHandler:connect( cnEvent, bBlock ) LOCAL nResult IF ! __objDerivedFrom( Self, "QOBJECT" ) - HB_TRACE( HB_TR_ALWAYS, "REFUSED CONNECT ", Self:className() ) + HB_TRACE( HB_TR_DEBUG, "REFUSED CONNECT ", Self:className() ) RETURN .f. ENDIF @@ -173,7 +173,7 @@ METHOD HbQtObjectHandler:connect( cnEvent, bBlock ) ::__pEvents := HBQEvents() ::__pEvents:hbInstallEventFilter( Self ) ENDIF - HB_TRACE( HB_TR_ALWAYS, " _HbQtObjectHandler:connect valtype __pEvents object=", Self:className() ) + HB_TRACE( HB_TR_DEBUG, " _HbQtObjectHandler:connect valtype __pEvents object=", Self:className() ) nResult := ::__pEvents:hbConnect( Self, cnEvent, bBlock ) SWITCH nResult @@ -190,7 +190,7 @@ METHOD HbQtObjectHandler:connect( cnEvent, bBlock ) ENDSWITCH - HB_TRACE( HB_TR_ALWAYS, "Errore in connect " + hb_ntos( nResult ) ) + HB_TRACE( HB_TR_DEBUG, "Errore in connect " + hb_ntos( nResult ) ) __hbqt_error( 1200 + nResult ) RETURN .F. @@ -255,7 +255,7 @@ METHOD HbQtObjectHandler:disconnect( cnEvent ) ENDSWITCH ENDIF - HB_TRACE( HB_TR_ALWAYS, "Errore in disconnect nResult="+str(nResult) ) + HB_TRACE( HB_TR_DEBUG, "Errore in disconnect nResult="+str(nResult) ) __hbqt_error( 1300 + nResult ) RETURN .F. @@ -263,7 +263,7 @@ METHOD HbQtObjectHandler:disconnect( cnEvent ) METHOD HbQtObjectHandler:__destroy() - HB_TRACE( HB_TR_ALWAYS, " _destroy()", __objDerivedFrom( Self, "QOBJECT" ), __objGetClsName( Self ) ) + HB_TRACE( HB_TR_DEBUG, " _destroy()", __objDerivedFrom( Self, "QOBJECT" ), __objGetClsName( Self ) ) __hbqt_destroy( Self ) diff --git a/harbour/contrib/hbqt/qtcore/hbqt_pointer.cpp b/harbour/contrib/hbqt/qtcore/hbqt_pointer.cpp index 280e874329..85fac05f91 100644 --- a/harbour/contrib/hbqt/qtcore/hbqt_pointer.cpp +++ b/harbour/contrib/hbqt/qtcore/hbqt_pointer.cpp @@ -151,7 +151,7 @@ PHB_ITEM hbqt_defineClassBegin( const char * pszClsName, PHB_ITEM s_oClass, cons /* array with parent classes (at least ONE) */ hb_arrayNew( pSuper, 0 ); - HB_TRACE( HB_TR_ALWAYS, ("%s: dCB 3", pszClsName ) ); + HB_TRACE( HB_TR_DEBUG, ("%s: dCB 3", pszClsName ) ); while( pszParentClsStr[ nPos++ ] ) {