@ -70,7 +70,7 @@ QextScintillaBase::QextScintillaBase(TQWidget *parent,const char *name,WFlags f)
{
sci = 0 ;
TQGridLayout * tq layout = new TQGridLayout ( this , 2 , 2 ) ;
TQGridLayout * layout = new TQGridLayout ( this , 2 , 2 ) ;
txtarea = new TQWidget ( this , 0 , WRepaintNoErase | WResizeNoErase ) ;
txtarea - > setSizePolicy ( TQSizePolicy ( TQSizePolicy : : Expanding , TQSizePolicy : : Expanding ) ) ;
@ -78,14 +78,14 @@ QextScintillaBase::QextScintillaBase(TQWidget *parent,const char *name,WFlags f)
txtarea - > setAcceptDrops ( TRUE ) ;
txtarea - > setFocusPolicy ( WheelFocus ) ;
txtarea - > setFocusProxy ( this ) ;
tq layout - > addWidget ( txtarea , 0 , 0 ) ;
layout - > addWidget ( txtarea , 0 , 0 ) ;
vsb = new TQScrollBar ( Qt : : Vertical , this ) ;
tq layout - > addWidget ( vsb , 0 , 1 ) ;
layout - > addWidget ( vsb , 0 , 1 ) ;
connect ( vsb , TQT_SIGNAL ( valueChanged ( int ) ) , TQT_SLOT ( handleVSb ( int ) ) ) ;
hsb = new TQScrollBar ( Qt : : Horizontal , this ) ;
tq layout - > addWidget ( hsb , 1 , 0 ) ;
layout - > addWidget ( hsb , 1 , 0 ) ;
connect ( hsb , TQT_SIGNAL ( valueChanged ( int ) ) , TQT_SLOT ( handleHSb ( int ) ) ) ;
txtarea - > installEventFilter ( this ) ;
@ -104,7 +104,7 @@ QextScintillaBase::QextScintillaBase(TQWidget *parent,const char *name,WFlags f)
lexersLinked = TRUE ;
}
TQClipboard * cb = TQApplication : : tq clipboard( ) ;
TQClipboard * cb = TQApplication : : clipboard( ) ;
if ( cb - > supportsSelection ( ) )
connect ( cb , TQT_SIGNAL ( selectionChanged ( ) ) , TQT_SLOT ( handleSelection ( ) ) ) ;
@ -329,7 +329,7 @@ void QextScintillaBase::mousePress(TQMouseEvent *me)
case MidButton :
{
TQClipboard * cb = TQApplication : : tq clipboard( ) ;
TQClipboard * cb = TQApplication : : clipboard( ) ;
if ( cb - > supportsSelection ( ) )
{
@ -488,7 +488,7 @@ void QextScintillaBase::keyPressEvent(TQKeyEvent *ke)
// key.
if ( ke - > text ( ) . length ( ) = = 1 )
{
if ( ( key = ke - > text ( ) [ 0 ] . tq unicode( ) ) > = 0x80 )
if ( ( key = ke - > text ( ) [ 0 ] . unicode( ) ) > = 0x80 )
key = 0 ;
}
else
@ -577,6 +577,6 @@ TQSize QextScintillaBase::sizeHint() const
// Handle the selection changing.
void QextScintillaBase : : handleSelection ( )
{
if ( ! TQApplication : : tq clipboard( ) - > ownsSelection ( ) )
if ( ! TQApplication : : clipboard( ) - > ownsSelection ( ) )
sci - > UnclaimSelection ( ) ;
}