diff --git a/harbour/ChangeLog b/harbour/ChangeLog index a306e2ed7d..df6115626a 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,14 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-09-09 12:20 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) + * contrib/gtqtc/gtqtc.cpp + ! toLatin1().data() + => + toAscii().data() + + I am unable to build gtqtc.lib so please test it. + 2009-09-09 09:24 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) * contrib/hbqt/generator/hbqtgen.prg ! cCmd := 'hb_retc( ' + cCmn + '.toLatin1().data()' + ' )' diff --git a/harbour/contrib/gtqtc/gtqtc.cpp b/harbour/contrib/gtqtc/gtqtc.cpp index a3f979b7da..c4eb36bb02 100644 --- a/harbour/contrib/gtqtc/gtqtc.cpp +++ b/harbour/contrib/gtqtc/gtqtc.cpp @@ -1023,7 +1023,7 @@ static BOOL hb_gt_wvt_Info( PHB_GT pGT, int iType, PHB_GT_INFO pInfo ) case HB_GTI_WINTITLE: if( pWVT->qWnd ) { - pInfo->pResult = hb_itemPutCPtr( pInfo->pResult, pWVT->qWnd->windowTitle().toLatin1().data() ); + pInfo->pResult = hb_itemPutCPtr( pInfo->pResult, pWVT->qWnd->windowTitle().toAscii().data() ); if( hb_itemType( pInfo->pNewVal ) & HB_IT_STRING ) pWVT->qWnd->setWindowTitle( hb_itemGetCPtr( pInfo->pNewVal ) ); } @@ -1091,7 +1091,7 @@ static BOOL hb_gt_wvt_Info( PHB_GT pGT, int iType, PHB_GT_INFO pInfo ) else { QClipboard *cb = QApplication::clipboard(); - pInfo->pResult = hb_itemPutC( pInfo->pResult, cb->text().toLatin1().data() ); + pInfo->pResult = hb_itemPutC( pInfo->pResult, cb->text().toAscii().data() ); } break; @@ -2023,7 +2023,7 @@ static void hb_gt_wvt_QTranslateKeyAlpha( PHB_GTWVT pWVT, Qt::KeyboardModifiers if( kbm & Qt::ControlModifier ) hb_gt_wvt_AddCharToInputQueue( pWVT, controlkey ); else - hb_gt_wvt_AddCharToInputQueue( pWVT, ( int ) *text.toLatin1().data() ); + hb_gt_wvt_AddCharToInputQueue( pWVT, ( int ) *text.toAscii().data() ); } }