@ -953,7 +953,7 @@ void TQTextEdit::init()
d = new TQTextEditPrivate ;
d = new TQTextEditPrivate ;
doc - > formatCollection ( ) - > setPaintDevice ( this ) ;
doc - > formatCollection ( ) - > setPaintDevice ( this ) ;
undoEnabled = TRUE ;
undoEnabled = TRUE ;
read o nly = TRUE ;
read O nly = TRUE ;
setReadOnly ( FALSE ) ;
setReadOnly ( FALSE ) ;
setFrameStyle ( LineEditPanel | Sunken ) ;
setFrameStyle ( LineEditPanel | Sunken ) ;
connect ( doc , TQ_SIGNAL ( minimumWidthChanged ( int ) ) ,
connect ( doc , TQ_SIGNAL ( minimumWidthChanged ( int ) ) ,
@ -2920,7 +2920,7 @@ void TQTextEdit::updateMicroFocusHint()
if ( hasFocus ( ) | | viewport ( ) - > hasFocus ( ) ) {
if ( hasFocus ( ) | | viewport ( ) - > hasFocus ( ) ) {
int h = c . paragraph ( ) - > lineHeightOfChar ( cursor - > index ( ) ) ;
int h = c . paragraph ( ) - > lineHeightOfChar ( cursor - > index ( ) ) ;
if ( ! read o nly ) {
if ( ! read O nly ) {
TQFont f = c . paragraph ( ) - > at ( c . index ( ) ) - > format ( ) - > font ( ) ;
TQFont f = c . paragraph ( ) - > at ( c . index ( ) ) - > format ( ) - > font ( ) ;
setMicroFocusHint ( c . x ( ) - contentsX ( ) + frameWidth ( ) ,
setMicroFocusHint ( c . x ( ) - contentsX ( ) + frameWidth ( ) ,
c . y ( ) + cursor - > paragraph ( ) - > rect ( ) . y ( ) - contentsY ( ) + frameWidth ( ) , 0 , h , TRUE , & f ) ;
c . y ( ) + cursor - > paragraph ( ) - > rect ( ) . y ( ) - contentsY ( ) + frameWidth ( ) , 0 , h , TRUE , & f ) ;
@ -5891,15 +5891,15 @@ void TQTextEdit::windowActivationChange( bool oldActive )
void TQTextEdit : : setReadOnly ( bool b )
void TQTextEdit : : setReadOnly ( bool b )
{
{
if ( ( bool ) read o nly = = b )
if ( ( bool ) read O nly = = b )
return ;
return ;
read o nly = b ;
read O nly = b ;
# ifndef TQT_NO_CURSOR
# ifndef TQT_NO_CURSOR
if ( read o nly )
if ( read O nly )
viewport ( ) - > setCursor ( arrowCursor ) ;
viewport ( ) - > setCursor ( arrowCursor ) ;
else
else
viewport ( ) - > setCursor ( ibeamCursor ) ;
viewport ( ) - > setCursor ( ibeamCursor ) ;
setInputMethodEnabled ( ! read o nly ) ;
setInputMethodEnabled ( ! read O nly ) ;
# endif
# endif
# ifdef QT_TEXTEDIT_OPTIMIZATION
# ifdef QT_TEXTEDIT_OPTIMIZATION
checkOptimMode ( ) ;
checkOptimMode ( ) ;