diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-27 19:25:43 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-12-27 19:25:43 +0900 |
commit | fb401a891f1b426e9419c0cb16403df407138611 (patch) | |
tree | 045b51949b3140039e37d898d8b0513016a86bea /src/widgets/qtextedit.cpp | |
parent | a9d178f1000475ba1727ffe123a2c54585488c01 (diff) | |
download | tqt3-fb401a891f1b426e9419c0cb16403df407138611.tar.gz tqt3-fb401a891f1b426e9419c0cb16403df407138611.zip |
Rename METHOD, SIGNAL, SLOT to TQ_METHOD, TQ_SIGNAL, TQ_SLOT
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/widgets/qtextedit.cpp')
-rw-r--r-- | src/widgets/qtextedit.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/widgets/qtextedit.cpp b/src/widgets/qtextedit.cpp index fac5ca2b9..1205f46fe 100644 --- a/src/widgets/qtextedit.cpp +++ b/src/widgets/qtextedit.cpp @@ -956,8 +956,8 @@ void TQTextEdit::init() readonly = TRUE; setReadOnly( FALSE ); setFrameStyle( LineEditPanel | Sunken ); - connect( doc, SIGNAL( minimumWidthChanged(int) ), - this, SLOT( documentWidthChanged(int) ) ); + connect( doc, TQ_SIGNAL( minimumWidthChanged(int) ), + this, TQ_SLOT( documentWidthChanged(int) ) ); mousePressed = FALSE; inDoubleClick = FALSE; @@ -989,28 +989,28 @@ void TQTextEdit::init() cursor = new TQTextCursor( doc ); formatTimer = new TQTimer( this ); - connect( formatTimer, SIGNAL( timeout() ), - this, SLOT( formatMore() ) ); + connect( formatTimer, TQ_SIGNAL( timeout() ), + this, TQ_SLOT( formatMore() ) ); lastFormatted = doc->firstParagraph(); scrollTimer = new TQTimer( this ); - connect( scrollTimer, SIGNAL( timeout() ), - this, SLOT( autoScrollTimerDone() ) ); + connect( scrollTimer, TQ_SIGNAL( timeout() ), + this, TQ_SLOT( autoScrollTimerDone() ) ); interval = 0; changeIntervalTimer = new TQTimer( this ); - connect( changeIntervalTimer, SIGNAL( timeout() ), - this, SLOT( doChangeInterval() ) ); + connect( changeIntervalTimer, TQ_SIGNAL( timeout() ), + this, TQ_SLOT( doChangeInterval() ) ); cursorVisible = TRUE; blinkTimer = new TQTimer( this ); - connect( blinkTimer, SIGNAL( timeout() ), - this, SLOT( blinkCursor() ) ); + connect( blinkTimer, TQ_SIGNAL( timeout() ), + this, TQ_SLOT( blinkCursor() ) ); #ifndef TQT_NO_DRAGANDDROP dragStartTimer = new TQTimer( this ); - connect( dragStartTimer, SIGNAL( timeout() ), - this, SLOT( startDrag() ) ); + connect( dragStartTimer, TQ_SIGNAL( timeout() ), + this, TQ_SLOT( startDrag() ) ); #endif d->trippleClickTimer = new TQTimer( this ); @@ -1023,8 +1023,8 @@ void TQTextEdit::init() viewport()->setFocusPolicy( WheelFocus ); setInputMethodEnabled( TRUE ); viewport()->installEventFilter( this ); - connect( this, SIGNAL(horizontalSliderReleased()), this, SLOT(sliderReleased()) ); - connect( this, SIGNAL(verticalSliderReleased()), this, SLOT(sliderReleased()) ); + connect( this, TQ_SIGNAL(horizontalSliderReleased()), this, TQ_SLOT(sliderReleased()) ); + connect( this, TQ_SIGNAL(verticalSliderReleased()), this, TQ_SLOT(sliderReleased()) ); installEventFilter( this ); } @@ -2411,11 +2411,11 @@ void TQTextEdit::copyToClipboard() d->clipboard_mode = TQClipboard::Selection; // don't listen to selection changes - disconnect( TQApplication::clipboard(), SIGNAL(selectionChanged()), this, 0); + disconnect( TQApplication::clipboard(), TQ_SIGNAL(selectionChanged()), this, 0); copy(); // listen to selection changes - connect( TQApplication::clipboard(), SIGNAL(selectionChanged()), - this, SLOT(clipboardChanged()) ); + connect( TQApplication::clipboard(), TQ_SIGNAL(selectionChanged()), + this, TQ_SLOT(clipboardChanged()) ); d->clipboard_mode = TQClipboard::Clipboard; } @@ -2776,11 +2776,11 @@ void TQTextEdit::contentsContextMenuEvent( TQContextMenuEvent *e ) d->clipboard_mode = TQClipboard::Selection; // don't listen to selection changes - disconnect( TQApplication::clipboard(), SIGNAL(selectionChanged()), this, 0); + disconnect( TQApplication::clipboard(), TQ_SIGNAL(selectionChanged()), this, 0); copy(); // listen to selection changes - connect( TQApplication::clipboard(), SIGNAL(selectionChanged()), - this, SLOT(clipboardChanged()) ); + connect( TQApplication::clipboard(), TQ_SIGNAL(selectionChanged()), + this, TQ_SLOT(clipboardChanged()) ); d->clipboard_mode = TQClipboard::Clipboard; } @@ -6135,7 +6135,7 @@ void TQTextEdit::clipboardChanged() { #ifndef TQT_NO_CLIPBOARD // don't listen to selection changes - disconnect( TQApplication::clipboard(), SIGNAL(selectionChanged()), this, 0); + disconnect( TQApplication::clipboard(), TQ_SIGNAL(selectionChanged()), this, 0); #endif selectAll(FALSE); } @@ -6186,19 +6186,19 @@ bool TQTextEdit::checkOptimMode() if ( oldMode != d->optimMode ) { if ( d->optimMode ) { d->od = new TQTextEditOptimPrivate; - connect( scrollTimer, SIGNAL( timeout() ), this, SLOT( optimDoAutoScroll() ) ); - disconnect( doc, SIGNAL( minimumWidthChanged(int) ), this, SLOT( documentWidthChanged(int) ) ); - disconnect( scrollTimer, SIGNAL( timeout() ), this, SLOT( autoScrollTimerDone() ) ); - disconnect( formatTimer, SIGNAL( timeout() ), this, SLOT( formatMore() ) ); + connect( scrollTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( optimDoAutoScroll() ) ); + disconnect( doc, TQ_SIGNAL( minimumWidthChanged(int) ), this, TQ_SLOT( documentWidthChanged(int) ) ); + disconnect( scrollTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( autoScrollTimerDone() ) ); + disconnect( formatTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( formatMore() ) ); optimSetText( doc->originalText() ); doc->clear(TRUE); delete cursor; cursor = new TQTextCursor( doc ); } else { - disconnect( scrollTimer, SIGNAL( timeout() ), this, SLOT( optimDoAutoScroll() ) ); - connect( doc, SIGNAL( minimumWidthChanged(int) ), this, SLOT( documentWidthChanged(int) ) ); - connect( scrollTimer, SIGNAL( timeout() ), this, SLOT( autoScrollTimerDone() ) ); - connect( formatTimer, SIGNAL( timeout() ), this, SLOT( formatMore() ) ); + disconnect( scrollTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( optimDoAutoScroll() ) ); + connect( doc, TQ_SIGNAL( minimumWidthChanged(int) ), this, TQ_SLOT( documentWidthChanged(int) ) ); + connect( scrollTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( autoScrollTimerDone() ) ); + connect( formatTimer, TQ_SIGNAL( timeout() ), this, TQ_SLOT( formatMore() ) ); setText( optimText() ); delete d->od; d->od = 0; |