2010-05-19 19:11 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/THbQtUI.prg
! Code cleanup.
* contrib/hbqt/hbqt_hbqplaintextedit.cpp
! Fix to honor tab width with font change.
This commit is contained in:
@@ -17,6 +17,13 @@
|
||||
past entries belonging to author(s): Viktor Szakats.
|
||||
*/
|
||||
|
||||
2010-05-19 19:11 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
|
||||
* contrib/hbqt/THbQtUI.prg
|
||||
! Code cleanup.
|
||||
|
||||
* contrib/hbqt/hbqt_hbqplaintextedit.cpp
|
||||
! Fix to honor tab width with font change.
|
||||
|
||||
2010-05-19 16:41 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
|
||||
* contrib/hbqt/hbqt_hbqplaintextedit.cpp
|
||||
* contrib/hbide/hbide.prg
|
||||
|
||||
@@ -479,12 +479,11 @@ METHOD HbQtUI:build( cFileOrBuffer, qParent )
|
||||
|
||||
::qObj[ cMNam ] := ::oWidget
|
||||
|
||||
//HB_TRACE( HB_TR_ALWAYS, "------------------------------------------------------------" )
|
||||
FOR EACH a_ IN ::widgets
|
||||
IF a_:__enumIndex() > 1
|
||||
IF type( a_[ 3 ] ) == "UI"
|
||||
cBlock := "{|o| " + a_[ 4 ] + "}"
|
||||
//HB_TRACE( HB_TR_ALWAYS, "Constr ", pad( a_[ 2 ], 20 ), cBlock )
|
||||
|
||||
bBlock := &( cBlock )
|
||||
|
||||
x := eval( bBlock, ::qObj )
|
||||
@@ -492,11 +491,10 @@ METHOD HbQtUI:build( cFileOrBuffer, qParent )
|
||||
::qObj[ a_[ 2 ] ] := x
|
||||
ENDIF
|
||||
ELSE
|
||||
//HB_TRACE( HB_TR_ALWAYS, "----------------------------", a_[ 3 ] )
|
||||
|
||||
ENDIF
|
||||
ENDIF
|
||||
NEXT
|
||||
//HB_TRACE( HB_TR_ALWAYS, "------------------------------------------------------------" )
|
||||
|
||||
::aCommands := aCommands
|
||||
|
||||
|
||||
@@ -1810,8 +1810,6 @@ int HBQPlainTextEdit::hbLineNumberAreaWidth()
|
||||
|
||||
void HBQPlainTextEdit::hbUpdateLineNumberAreaWidth( int )
|
||||
{
|
||||
setTabStopWidth( spaces * fontMetrics().averageCharWidth() );
|
||||
|
||||
if( numberBlock )
|
||||
{
|
||||
setViewportMargins( hbLineNumberAreaWidth(), HORZRULER_HEIGHT, 0, 0 );
|
||||
@@ -1828,6 +1826,8 @@ void HBQPlainTextEdit::hbUpdateHorzRuler( const QRect & rect, int dy )
|
||||
{
|
||||
HB_SYMBOL_UNUSED( rect );
|
||||
|
||||
setTabStopWidth( spaces * fontMetrics().averageCharWidth() );
|
||||
|
||||
if( dy == 0 )
|
||||
horzRuler->update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user