2009-12-07 23:43 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)

* contrib/hbqt/hbqt_hbqtdbfmodel.cpp
  * contrib/hbqt/hbqt_slots.cpp
  * contrib/hbxbp/tests/demoxbp.prg
    ! Fixed unoperational demoxbp.exe.
This commit is contained in:
Pritpal Bedi
2009-12-08 07:45:20 +00:00
parent 267d7c11cb
commit 4895ac7e80
4 changed files with 19 additions and 13 deletions

View File

@@ -17,6 +17,12 @@
past entries belonging to author(s): Viktor Szakats.
*/
2009-12-07 23:43 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/hbqt_hbqtdbfmodel.cpp
* contrib/hbqt/hbqt_slots.cpp
* contrib/hbxbp/tests/demoxbp.prg
! Fixed unoperational demoxbp.exe.
2009-12-08 04:07 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hbcairo/core.c
! fixed code which operates on GC blocks and make both versions

View File

@@ -96,8 +96,6 @@ static QVariant hbqt_fetchRole( PHB_ITEM block, int what, int par1, int par2 )
hb_itemRelease( p1 );
hb_itemRelease( p2 );
hb_vmRequestRestore();
if( hb_itemType( ret ) & HB_IT_STRING )
{
vv = hb_itemGetCPtr( ret );
@@ -126,6 +124,8 @@ hbqt_debug( " fetchRole[ d = %i ]", hb_itemGetND( ret ) );
hbqt_debug( " fetchRole[ n = %i ]", hb_itemGetNI( ret ) );
#endif
}
hb_vmRequestRestore();
}
return vv;
}
@@ -208,7 +208,7 @@ hbqt_debug( "data - row=%i col=%i role=%i", index.row(), index.column(), role );
QVariant HbDbfModel::headerData( int section, Qt::Orientation orientation, int role ) const
{
#if defined( __HB_DEBUG__ )
hbqt_debug( "headerData - section=%i orient=%i role=%i name=%s", section, orientation, role, objectName() );
hbqt_debug( "headerData - section=%i orient=%i role=%i", section, orientation, role );
#endif
if( orientation == Qt::Horizontal )
{

View File

@@ -1106,7 +1106,7 @@ HB_FUNC( QT_DISCONNECT_SIGNAL )
s_s->listBlock[ i - 1 ] = NULL;
bFreed = disconnect_signal( object, signal );
#if defined( __HB_DEBUG__ )
hbqt_debug( " QT_DISCONNECT_SIGNAL: %s %s", ret ? "YES" : "NO", signal );
hbqt_debug( " QT_DISCONNECT_SIGNAL: %s %s", bFreed ? "YES" : "NO", signal );
#endif
}
}
@@ -1132,12 +1132,12 @@ bool Events::eventFilter( QObject * object, QEvent * event )
{
QEvent::Type eventtype = event->type();
#if defined( __HB_DEBUG__ )
hbqt_debug( "0 Events::eventFilter = %i", ( int ) eventtype );
//hbqt_debug( "0 Events::eventFilter = %i", ( int ) eventtype );
#endif
if( ( int ) eventtype == 0 )
{
#if defined( __HB_DEBUG__ )
hbqt_debug( "x Events::eventFilter = 0" );
//hbqt_debug( "x Events::eventFilter = 0" );
#endif
return false;
}
@@ -1148,7 +1148,7 @@ hbqt_debug( "x Events::eventFilter = 0" );
if( found == 0 )
{
#if defined( __HB_DEBUG__ )
hbqt_debug( "f Events::eventFilter = %s %i", " found=0", ( int ) eventtype );
//hbqt_debug( "f Events::eventFilter = %s %i", " found=0", ( int ) eventtype );
#endif
return false;
}
@@ -1160,11 +1160,11 @@ hbqt_debug( "f Events::eventFilter = %s %i", " found=0", ( int ) eventtyp
PHB_ITEM pObject = hb_itemPutPtr( NULL, object );
PHB_ITEM pEvent = hb_itemPutPtr( NULL, event );
#if defined( __HB_DEBUG__ )
hbqt_debug( "0 Events::eventFilter = %i", ( int ) eventtype );
//hbqt_debug( "0 Events::eventFilter = %i", ( int ) eventtype );
#endif
ret = hb_itemGetL( hb_vmEvalBlockV( ( PHB_ITEM ) listBlock.at( found - 1 ), 2, pObject, pEvent ) );
#if defined( __HB_DEBUG__ )
hbqt_debug( "1 Events::eventFilter = %s", ret ? " yes" : " no" );
//hbqt_debug( "1 Events::eventFilter = %s", ret ? " yes" : " no" );
#endif
hb_itemRelease( pObject );
hb_itemRelease( pEvent );
@@ -1177,7 +1177,7 @@ hbqt_debug( "1 Events::eventFilter = %s", ret ? " yes" : " no" );
}
}
#if defined( __HB_DEBUG__ )
hbqt_debug( "1 Events::eventFilter = %i", ( int ) eventtype );
//hbqt_debug( "1 Events::eventFilter = %i", ( int ) eventtype );
#endif
return ret;
}
@@ -1283,7 +1283,10 @@ MyMainWindow::~MyMainWindow( void )
hbqt_debug( " MyMainWindow::~MyMainWindow 0" );
#endif
if( block )
{
hb_itemRelease( block );
block = NULL;
}
#if defined( __HB_DEBUG__ )
hbqt_debug( " MyMainWindow::~MyMainWindow 1" );
#endif

View File

@@ -1683,9 +1683,6 @@ FUNCTION Build_Browse( oWnd )
#ifdef __HARBOUR__
s := "selection-background-color: qlineargradient(x1: 0, y1: 0, x2: 0.5, y2: 0.5, stop: 0 #FF92BB, stop: 1 gray); "
// s := "HbTableView::item:hover { background-color: qlineargradient(x1: 0, y1: 0, x2: 0.5, y2: 0.5, stop: 0 #FF92BB, stop: 1 red) }; "
// s += "HbTableView::item:focus { background-color: qlineargradient(x1: 0, y1: 0, x2: 0.5, y2: 0.5, stop: 0 #FF92BB, stop: 1 blue) }; "
// s += "focus-background-color: qlineargradient(x1: 0, y1: 0, x2: 0.5, y2: 0.5, stop: 0 #FF92BB, stop: 1 blue) ; "
oXbpBrowse:setStyleSheet( s )
#endif