diff options
author | Michele Calgaro <[email protected]> | 2024-01-04 10:30:32 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-04 12:36:03 +0900 |
commit | c0332621bc998c9786f4841e86a62b7711fe4abf (patch) | |
tree | 38b3ab6688de7a9396a1c5993a8ec265f5f33b64 /lib/kotext | |
parent | 6c81ff8d61ec679e735d3fbd875583b12f0ef0a5 (diff) | |
download | koffice-c0332621bc998c9786f4841e86a62b7711fe4abf.tar.gz koffice-c0332621bc998c9786f4841e86a62b7711fe4abf.zip |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'lib/kotext')
-rw-r--r-- | lib/kotext/DateFormatWidget.cpp | 8 | ||||
-rw-r--r-- | lib/kotext/KoAutoFormatDia.cpp | 86 | ||||
-rw-r--r-- | lib/kotext/KoBgSpellCheck.cpp | 26 | ||||
-rw-r--r-- | lib/kotext/KoCommentDia.cpp | 4 | ||||
-rw-r--r-- | lib/kotext/KoCompletionDia.cpp | 14 | ||||
-rw-r--r-- | lib/kotext/KoCreateStyleDia.cpp | 2 | ||||
-rw-r--r-- | lib/kotext/KoCustomVariablesDia.cpp | 52 | ||||
-rw-r--r-- | lib/kotext/KoDecorationTab.cpp | 10 | ||||
-rw-r--r-- | lib/kotext/KoFontDia.cpp | 44 | ||||
-rw-r--r-- | lib/kotext/KoFontTab.cpp | 2 | ||||
-rw-r--r-- | lib/kotext/KoHighlightingTab.cpp | 14 | ||||
-rw-r--r-- | lib/kotext/KoImportStyleDia.cpp | 2 | ||||
-rw-r--r-- | lib/kotext/KoLanguageTab.cpp | 2 | ||||
-rw-r--r-- | lib/kotext/KoLayoutTab.cpp | 8 | ||||
-rw-r--r-- | lib/kotext/KoParagDia.cpp | 110 | ||||
-rw-r--r-- | lib/kotext/KoSearchDia.cpp | 72 | ||||
-rw-r--r-- | lib/kotext/KoSpell.cpp | 2 | ||||
-rw-r--r-- | lib/kotext/KoStyleManager.cpp | 14 | ||||
-rw-r--r-- | lib/kotext/KoTextIterator.cpp | 8 | ||||
-rw-r--r-- | lib/kotext/KoTextObject.cpp | 36 | ||||
-rw-r--r-- | lib/kotext/KoTextView.cpp | 26 | ||||
-rw-r--r-- | lib/kotext/KoVariable.cpp | 4 | ||||
-rw-r--r-- | lib/kotext/TimeFormatWidget.cpp | 8 |
23 files changed, 277 insertions, 277 deletions
diff --git a/lib/kotext/DateFormatWidget.cpp b/lib/kotext/DateFormatWidget.cpp index f72bbbd3..bed2b571 100644 --- a/lib/kotext/DateFormatWidget.cpp +++ b/lib/kotext/DateFormatWidget.cpp @@ -52,10 +52,10 @@ DateFormatWidget::DateFormatWidget( TQWidget* parent, const char* name, WFlags label_correction->setText(i18n("Correct in Days")); - connect( CheckBox1, TQT_SIGNAL(toggled ( bool )),this,TQT_SLOT(slotPersonalizeChanged(bool))); - connect( combo1, TQT_SIGNAL(activated ( const TQString & )), this, TQT_SLOT(slotDefaultValueChanged(const TQString &))); - connect( combo1, TQT_SIGNAL(textChanged ( const TQString & )), this, TQT_SLOT(slotDefaultValueChanged(const TQString &))); - connect( KIntNumInput1, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT( slotOffsetChanged(int))); + connect( CheckBox1, TQ_SIGNAL(toggled ( bool )),this,TQ_SLOT(slotPersonalizeChanged(bool))); + connect( combo1, TQ_SIGNAL(activated ( const TQString & )), this, TQ_SLOT(slotDefaultValueChanged(const TQString &))); + connect( combo1, TQ_SIGNAL(textChanged ( const TQString & )), this, TQ_SLOT(slotDefaultValueChanged(const TQString &))); + connect( KIntNumInput1, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT( slotOffsetChanged(int))); slotPersonalizeChanged(false); } diff --git a/lib/kotext/KoAutoFormatDia.cpp b/lib/kotext/KoAutoFormatDia.cpp index 5b548756..b62812d8 100644 --- a/lib/kotext/KoAutoFormatDia.cpp +++ b/lib/kotext/KoAutoFormatDia.cpp @@ -71,18 +71,18 @@ KoAutoFormatExceptionWidget::KoAutoFormatExceptionWidget(TQWidget *parent, const exceptionLine = new KoAutoFormatLineEdit( this ); grid->addWidget(exceptionLine,1,0); - connect(exceptionLine,TQT_SIGNAL(keyReturnPressed()),TQT_SLOT(slotAddException())); - connect(exceptionLine ,TQT_SIGNAL(textChanged ( const TQString & )), - TQT_SLOT(textChanged ( const TQString & ))); + connect(exceptionLine,TQ_SIGNAL(keyReturnPressed()),TQ_SLOT(slotAddException())); + connect(exceptionLine ,TQ_SIGNAL(textChanged ( const TQString & )), + TQ_SLOT(textChanged ( const TQString & ))); pbAddException=new TQPushButton(i18n("Add"),this); - connect(pbAddException, TQT_SIGNAL(clicked()),TQT_SLOT(slotAddException())); + connect(pbAddException, TQ_SIGNAL(clicked()),TQ_SLOT(slotAddException())); grid->addWidget(pbAddException,1,1); pbAddException->setEnabled(false); pbRemoveException=new TQPushButton(i18n("Remove"),this); - connect(pbRemoveException, TQT_SIGNAL(clicked()),TQT_SLOT(slotRemoveException())); + connect(pbRemoveException, TQ_SIGNAL(clicked()),TQ_SLOT(slotRemoveException())); grid->addWidget(pbRemoveException,2,1,TQt::AlignTop); exceptionList=new TQListBox(this); @@ -92,8 +92,8 @@ KoAutoFormatExceptionWidget::KoAutoFormatExceptionWidget(TQWidget *parent, const grid->setRowStretch( 2, 1 ); - connect( exceptionList , TQT_SIGNAL(selectionChanged () ), - this,TQT_SLOT(slotExceptionListSelected()) ); + connect( exceptionList , TQ_SIGNAL(selectionChanged () ), + this,TQ_SLOT(slotExceptionListSelected()) ); pbRemoveException->setEnabled( exceptionList->currentItem()!=-1); @@ -188,7 +188,7 @@ KoAutoFormatDia::KoAutoFormatDia( TQWidget *parent, const char *name, setupTab3(); setupTab4(); setInitialSize( TQSize(500, 300) ); - connect( this, TQT_SIGNAL( user1Clicked() ), this, TQT_SLOT(slotResetConf())); + connect( this, TQ_SIGNAL( user1Clicked() ), this, TQ_SLOT(slotResetConf())); noSignal=false; } @@ -322,8 +322,8 @@ void KoAutoFormatDia::setupTab1() "formatting means that a correct bullet is used to draw the list." ) ); - connect( cbUseBulletStyle, TQT_SIGNAL( toggled( bool ) ), - TQT_SLOT( slotBulletStyleToggled( bool ) ) ); + connect( cbUseBulletStyle, TQ_SIGNAL( toggled( bool ) ), + TQ_SLOT( slotBulletStyleToggled( bool ) ) ); vbox->addWidget(cbUseBulletStyle); TQHBoxLayout *hbox = new TQHBoxLayout(); @@ -345,9 +345,9 @@ void KoAutoFormatDia::setupTab1() initTab1(); - connect( pbBulletStyle, TQT_SIGNAL( clicked() ), TQT_SLOT( chooseBulletStyle() ) ); - connect( pbDefaultBulletStyle, TQT_SIGNAL( clicked()), - TQT_SLOT( defaultBulletStyle() ) ); + connect( pbBulletStyle, TQ_SIGNAL( clicked() ), TQ_SLOT( chooseBulletStyle() ) ); + connect( pbDefaultBulletStyle, TQ_SIGNAL( clicked()), + TQ_SLOT( defaultBulletStyle() ) ); } void KoAutoFormatDia::initTab1() @@ -384,8 +384,8 @@ void KoAutoFormatDia::setupTab2() cbTypographicDoubleQuotes->setText( i18n( "Replace &double quotes with typographical quotes" ) ); - connect( cbTypographicDoubleQuotes,TQT_SIGNAL(toggled ( bool)), - TQT_SLOT(slotChangeStateDouble(bool))); + connect( cbTypographicDoubleQuotes,TQ_SIGNAL(toggled ( bool)), + TQ_SLOT(slotChangeStateDouble(bool))); vbox->addWidget( cbTypographicDoubleQuotes ); @@ -415,9 +415,9 @@ void KoAutoFormatDia::setupTab2() hbox->addStretch( 1 ); - connect(pbDoubleQuote1, TQT_SIGNAL( clicked() ), TQT_SLOT( chooseDoubleQuote1() )); - connect(pbDoubleQuote2, TQT_SIGNAL( clicked() ), TQT_SLOT( chooseDoubleQuote2() )); - connect(pbDoubleDefault, TQT_SIGNAL( clicked()), TQT_SLOT( defaultDoubleQuote() )); + connect(pbDoubleQuote1, TQ_SIGNAL( clicked() ), TQ_SLOT( chooseDoubleQuote1() )); + connect(pbDoubleQuote2, TQ_SIGNAL( clicked() ), TQ_SLOT( chooseDoubleQuote2() )); + connect(pbDoubleDefault, TQ_SIGNAL( clicked()), TQ_SLOT( defaultDoubleQuote() )); vbox->addItem( hbox ); @@ -425,8 +425,8 @@ void KoAutoFormatDia::setupTab2() cbTypographicSimpleQuotes->setText( i18n( "Replace &single quotes with typographical quotes" ) ); - connect( cbTypographicSimpleQuotes,TQT_SIGNAL(toggled ( bool)), - TQT_SLOT(slotChangeStateSimple(bool))); + connect( cbTypographicSimpleQuotes,TQ_SIGNAL(toggled ( bool)), + TQ_SLOT(slotChangeStateSimple(bool))); vbox->addWidget( cbTypographicSimpleQuotes ); @@ -456,9 +456,9 @@ void KoAutoFormatDia::setupTab2() hbox->addStretch( 1 ); - connect(pbSimpleQuote1, TQT_SIGNAL( clicked() ), TQT_SLOT( chooseSimpleQuote1() )); - connect(pbSimpleQuote2, TQT_SIGNAL( clicked() ), TQT_SLOT( chooseSimpleQuote2() )); - connect(pbSimpleDefault, TQT_SIGNAL( clicked()), TQT_SLOT( defaultSimpleQuote() )); + connect(pbSimpleQuote1, TQ_SIGNAL( clicked() ), TQ_SLOT( chooseSimpleQuote1() )); + connect(pbSimpleQuote2, TQ_SIGNAL( clicked() ), TQ_SLOT( chooseSimpleQuote2() )); + connect(pbSimpleDefault, TQ_SIGNAL( clicked()), TQ_SLOT( defaultSimpleQuote() )); vbox->addItem( hbox ); vbox->addStretch( 1 ); @@ -524,7 +524,7 @@ void KoAutoFormatDia::setupTab3() } autoFormatLanguage->insertStringList(lst); - connect(autoFormatLanguage->listBox(), TQT_SIGNAL(selected ( const TQString & )), this, TQT_SLOT(changeAutoformatLanguage(const TQString & ))); + connect(autoFormatLanguage->listBox(), TQ_SIGNAL(selected ( const TQString & )), this, TQ_SLOT(changeAutoformatLanguage(const TQString & ))); grid->addMultiCellWidget( autoFormatLanguage, 0, 0, 4, 6 ); TQLabel *lblAutoFormatLanguage = new TQLabel( i18n("Replacements and exceptions for language:"), tab3); @@ -532,7 +532,7 @@ void KoAutoFormatDia::setupTab3() cbAdvancedAutoCorrection = new TQCheckBox( tab3 ); cbAdvancedAutoCorrection->setText( i18n("Enable word replacement") ); - connect( cbAdvancedAutoCorrection, TQT_SIGNAL(clicked ()), this, TQT_SLOT( slotChangeAdvancedAutoCorrection())); + connect( cbAdvancedAutoCorrection, TQ_SIGNAL(clicked ()), this, TQ_SLOT( slotChangeAdvancedAutoCorrection())); grid->addMultiCellWidget( cbAdvancedAutoCorrection, 1, 1, 0, 6 ); cbAutoCorrectionWithFormat = new TQCheckBox( tab3 ); @@ -547,17 +547,17 @@ void KoAutoFormatDia::setupTab3() lblFind->setBuddy( m_find ); - connect( m_find, TQT_SIGNAL( textChanged( const TQString & ) ), - TQT_SLOT( slotfind( const TQString & ) ) ); - connect( m_find, TQT_SIGNAL( keyReturnPressed() ), - TQT_SLOT( slotAddEntry())); + connect( m_find, TQ_SIGNAL( textChanged( const TQString & ) ), + TQ_SLOT( slotfind( const TQString & ) ) ); + connect( m_find, TQ_SIGNAL( keyReturnPressed() ), + TQ_SLOT( slotAddEntry())); pbSpecialChar1 = new TQPushButton( "...", tab3 ); TQToolTip::add( pbSpecialChar1, i18n( "Insert a special character..." ) ); pbSpecialChar1->setFixedWidth( 40 ); grid->addWidget( pbSpecialChar1, 3, 2 ); - connect(pbSpecialChar1,TQT_SIGNAL(clicked()), TQT_SLOT(chooseSpecialChar1())); + connect(pbSpecialChar1,TQ_SIGNAL(clicked()), TQ_SLOT(chooseSpecialChar1())); lblReplace = new TQLabel( i18n( "&Replace:" ), tab3 ); grid->addWidget( lblReplace, 3, 3 ); @@ -567,22 +567,22 @@ void KoAutoFormatDia::setupTab3() lblReplace->setBuddy( m_replace ); - connect( m_replace, TQT_SIGNAL( textChanged( const TQString & ) ), - TQT_SLOT( slotfind2( const TQString & ) ) ); - connect( m_replace, TQT_SIGNAL( keyReturnPressed() ), - TQT_SLOT( slotAddEntry())); + connect( m_replace, TQ_SIGNAL( textChanged( const TQString & ) ), + TQ_SLOT( slotfind2( const TQString & ) ) ); + connect( m_replace, TQ_SIGNAL( keyReturnPressed() ), + TQ_SLOT( slotAddEntry())); pbSpecialChar2 = new TQPushButton( "...", tab3 ); TQToolTip::add( pbSpecialChar2, i18n( "Insert a special character..." ) ); pbSpecialChar2->setFixedWidth( 40 ); grid->addWidget( pbSpecialChar2, 3, 5 ); - connect(pbSpecialChar2,TQT_SIGNAL(clicked()), TQT_SLOT(chooseSpecialChar2())); + connect(pbSpecialChar2,TQ_SIGNAL(clicked()), TQ_SLOT(chooseSpecialChar2())); pbAdd = new TQPushButton( i18n( "&Add"), tab3 ); grid->addWidget( pbAdd, 3, 6 ); - connect(pbAdd,TQT_SIGNAL(clicked()),this, TQT_SLOT(slotAddEntry())); + connect(pbAdd,TQ_SIGNAL(clicked()),this, TQ_SLOT(slotAddEntry())); m_pListView = new TDEListView( tab3 ); m_pListView->addColumn( i18n( "Find" ) ); @@ -590,25 +590,25 @@ void KoAutoFormatDia::setupTab3() m_pListView->setAllColumnsShowFocus( true ); grid->addMultiCellWidget( m_pListView, 4, 10, 0, 5 ); - connect(m_pListView, TQT_SIGNAL(doubleClicked ( TQListViewItem * )), - TQT_SLOT(slotChangeTextFormatEntry()) ); - connect(m_pListView, TQT_SIGNAL(clicked ( TQListViewItem * ) ), - TQT_SLOT(slotEditEntry()) ); + connect(m_pListView, TQ_SIGNAL(doubleClicked ( TQListViewItem * )), + TQ_SLOT(slotChangeTextFormatEntry()) ); + connect(m_pListView, TQ_SIGNAL(clicked ( TQListViewItem * ) ), + TQ_SLOT(slotEditEntry()) ); pbRemove = new TQPushButton( i18n( "Remove" ), tab3 ); grid->addWidget( pbRemove, 4, 6, TQt::AlignTop ); - connect(pbRemove,TQT_SIGNAL(clicked()), TQT_SLOT(slotRemoveEntry())); + connect(pbRemove,TQ_SIGNAL(clicked()), TQ_SLOT(slotRemoveEntry())); pbChangeFormat= new TQPushButton( i18n( "Change Format..." ), tab3 ); grid->addWidget( pbChangeFormat, 5, 6, TQt::AlignTop ); - connect( pbChangeFormat, TQT_SIGNAL(clicked()), TQT_SLOT(slotChangeTextFormatEntry())); + connect( pbChangeFormat, TQ_SIGNAL(clicked()), TQ_SLOT(slotChangeTextFormatEntry())); pbClearFormat= new TQPushButton( i18n( "Clear Format" ), tab3 ); grid->addWidget( pbClearFormat, 6, 6, TQt::AlignTop ); - connect( pbClearFormat, TQT_SIGNAL(clicked()), TQT_SLOT(slotClearTextFormatEntry())); + connect( pbClearFormat, TQ_SIGNAL(clicked()), TQ_SLOT(slotClearTextFormatEntry())); grid->setRowStretch( 10, 1 ); initTab3(); diff --git a/lib/kotext/KoBgSpellCheck.cpp b/lib/kotext/KoBgSpellCheck.cpp index 6546c51c..1be09595 100644 --- a/lib/kotext/KoBgSpellCheck.cpp +++ b/lib/kotext/KoBgSpellCheck.cpp @@ -73,12 +73,12 @@ KoBgSpellCheck::KoBgSpellCheck( const Broker::Ptr& broker, TQObject *parent, d->intraWordPosition = 0; d->backSpeller = new KoSpell( broker, this, "KoSpell" ); - connect( d->backSpeller, TQT_SIGNAL(misspelling(const TQString&, int)), - TQT_SLOT(spellCheckerMisspelling(const TQString &, int )) ); - connect( d->backSpeller, TQT_SIGNAL(done()), - TQT_SLOT(spellCheckerDone()) ); - connect( d->backSpeller, TQT_SIGNAL(aboutToFeedText()), - TQT_SLOT(slotClearPara()) ); + connect( d->backSpeller, TQ_SIGNAL(misspelling(const TQString&, int)), + TQ_SLOT(spellCheckerMisspelling(const TQString &, int )) ); + connect( d->backSpeller, TQ_SIGNAL(done()), + TQ_SLOT(spellCheckerDone()) ); + connect( d->backSpeller, TQ_SIGNAL(aboutToFeedText()), + TQ_SLOT(slotClearPara()) ); } KoBgSpellCheck::~KoBgSpellCheck() @@ -90,12 +90,12 @@ void KoBgSpellCheck::registerNewTextObject( KoTextObject *obj ) { Q_ASSERT( obj ); - connect( obj, TQT_SIGNAL(paragraphCreated(KoTextParag*)), - TQT_SLOT(slotParagraphCreated(KoTextParag*)) ); - connect( obj, TQT_SIGNAL(paragraphModified(KoTextParag*, int, int, int)), - TQT_SLOT(slotParagraphModified(KoTextParag*, int, int, int)) ); - connect( obj, TQT_SIGNAL(paragraphDeleted(KoTextParag*)), - TQT_SLOT(slotParagraphDeleted(KoTextParag*)) ); + connect( obj, TQ_SIGNAL(paragraphCreated(KoTextParag*)), + TQ_SLOT(slotParagraphCreated(KoTextParag*)) ); + connect( obj, TQ_SIGNAL(paragraphModified(KoTextParag*, int, int, int)), + TQ_SLOT(slotParagraphModified(KoTextParag*, int, int, int)) ); + connect( obj, TQ_SIGNAL(paragraphDeleted(KoTextParag*)), + TQ_SLOT(slotParagraphDeleted(KoTextParag*)) ); } void KoBgSpellCheck::setEnabled( bool b ) @@ -140,7 +140,7 @@ void KoBgSpellCheck::spellCheckerMisspelling( const TQString &old, int pos ) if ( d->startupChecking && d->marked > delayAfterMarked ) { d->marked = 0; - TQTimer::singleShot( 1000, this, TQT_SLOT(checkerContinue()) ); + TQTimer::singleShot( 1000, this, TQ_SLOT(checkerContinue()) ); } else { if ( d->startupChecking ) ++d->marked; diff --git a/lib/kotext/KoCommentDia.cpp b/lib/kotext/KoCommentDia.cpp index 727c6e5b..f0625da3 100644 --- a/lib/kotext/KoCommentDia.cpp +++ b/lib/kotext/KoCommentDia.cpp @@ -45,8 +45,8 @@ KoCommentDia::KoCommentDia( TQWidget *parent, const TQString &_note, const TQStr if ( authorName.isEmpty() ) pbAddAuthorName->setEnabled( false ); else - connect (pbAddAuthorName, TQT_SIGNAL(clicked ()), this , TQT_SLOT(slotAddAuthorName())); - connect ( m_multiLine , TQT_SIGNAL( textChanged()), this, TQT_SLOT( slotTextChanged( ))); + connect (pbAddAuthorName, TQ_SIGNAL(clicked ()), this , TQ_SLOT(slotAddAuthorName())); + connect ( m_multiLine , TQ_SIGNAL( textChanged()), this, TQ_SLOT( slotTextChanged( ))); slotTextChanged( ); resize( 300,100 ); diff --git a/lib/kotext/KoCompletionDia.cpp b/lib/kotext/KoCompletionDia.cpp index 9def0ec8..867730e8 100644 --- a/lib/kotext/KoCompletionDia.cpp +++ b/lib/kotext/KoCompletionDia.cpp @@ -41,7 +41,7 @@ KoCompletionDia::KoCompletionDia( TQWidget *parent, const char *name, KoAutoForm TQVBox *page = makeVBoxMainWidget(); m_widget = new KoCompletion(page, autoFormat); m_widget->layout()->setMargin(0); - connect( this, TQT_SIGNAL( user1Clicked() ), m_widget, TQT_SLOT(slotResetConf())); + connect( this, TQ_SIGNAL( user1Clicked() ), m_widget, TQ_SLOT(slotResetConf())); setButtonWhatsThis(Ok,i18n("This will save your options.")); setButtonWhatsThis(Cancel,i18n("This will abort all changes.")); setButtonWhatsThis(User1,i18n("This will reset to the state after you clicked on the Make Default button.")); @@ -57,7 +57,7 @@ KoCompletion::KoCompletion(TQWidget *parent, KoAutoFormat *autoFormat) : KoCompl m_autoFormat( *autoFormat ), m_docAutoFormat( autoFormat ) { - connect(cbAllowCompletion, TQT_SIGNAL(toggled ( bool )), this, TQT_SLOT( changeButtonStatus())); + connect(cbAllowCompletion, TQ_SIGNAL(toggled ( bool )), this, TQ_SLOT( changeButtonStatus())); TQStringList lst; lst << i18n( "Enter" ); lst << i18n( "Tab" ); @@ -66,12 +66,12 @@ KoCompletion::KoCompletion(TQWidget *parent, KoAutoFormat *autoFormat) : KoCompl lst << i18n( "Right" ); m_completionKeyAction->insertStringList( lst ); - connect( m_lbListCompletion, TQT_SIGNAL( selected ( const TQString & ) ), this, TQT_SLOT( slotCompletionWordSelected( const TQString & ))); - connect( m_lbListCompletion, TQT_SIGNAL( highlighted ( const TQString & ) ), this, TQT_SLOT( slotCompletionWordSelected( const TQString & ))); + connect( m_lbListCompletion, TQ_SIGNAL( selected ( const TQString & ) ), this, TQ_SLOT( slotCompletionWordSelected( const TQString & ))); + connect( m_lbListCompletion, TQ_SIGNAL( highlighted ( const TQString & ) ), this, TQ_SLOT( slotCompletionWordSelected( const TQString & ))); - connect( pbAddCompletionEntry, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddCompletionEntry())); - connect( pbRemoveCompletionEntry, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotRemoveCompletionEntry())); - connect( pbSaveCompletionEntry, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotSaveCompletionEntry())); + connect( pbAddCompletionEntry, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotAddCompletionEntry())); + connect( pbRemoveCompletionEntry, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotRemoveCompletionEntry())); + connect( pbSaveCompletionEntry, TQ_SIGNAL( clicked() ), this, TQ_SLOT( slotSaveCompletionEntry())); slotResetConf(); // aka load config changeButtonStatus(); diff --git a/lib/kotext/KoCreateStyleDia.cpp b/lib/kotext/KoCreateStyleDia.cpp index 93c3dafd..2a0c7e99 100644 --- a/lib/kotext/KoCreateStyleDia.cpp +++ b/lib/kotext/KoCreateStyleDia.cpp @@ -35,7 +35,7 @@ KoCreateStyleDia::KoCreateStyleDia( const TQStringList & _list, TQWidget *parent m_styleName = new TQLineEdit( page ); m_styleName->setMinimumWidth( m_styleName->sizeHint().width() * 3 ); - connect( m_styleName, TQT_SIGNAL(textChanged ( const TQString & )), this, TQT_SLOT(nameChanged( const TQString &))); + connect( m_styleName, TQ_SIGNAL(textChanged ( const TQString & )), this, TQ_SLOT(nameChanged( const TQString &))); m_styleName->setFocus(); enableButtonOK( false ); } diff --git a/lib/kotext/KoCustomVariablesDia.cpp b/lib/kotext/KoCustomVariablesDia.cpp index a331596a..41c2f5df 100644 --- a/lib/kotext/KoCustomVariablesDia.cpp +++ b/lib/kotext/KoCustomVariablesDia.cpp @@ -71,12 +71,12 @@ void KoVariableNameDia::init() names = new TQComboBox( TRUE, row1 ); names->setFocus(); - connect( names, TQT_SIGNAL( textChanged ( const TQString & )), - this, TQT_SLOT( textChanged ( const TQString & ))); - connect( this, TQT_SIGNAL( okClicked() ), - this, TQT_SLOT( accept() ) ); - connect( this, TQT_SIGNAL( cancelClicked() ), - this, TQT_SLOT( reject() ) ); + connect( names, TQ_SIGNAL( textChanged ( const TQString & )), + this, TQ_SLOT( textChanged ( const TQString & ))); + connect( this, TQ_SIGNAL( okClicked() ), + this, TQ_SLOT( accept() ) ); + connect( this, TQ_SIGNAL( cancelClicked() ), + this, TQ_SLOT( reject() ) ); enableButtonOK( !names->currentText().isEmpty() ); resize( 350, 100 ); } @@ -164,10 +164,10 @@ KoCustomVariablesList::KoCustomVariablesList( TQWidget *parent ) header()->setMovingEnabled( FALSE ); addColumn( i18n( "Variable" ) ); addColumn( i18n( "Value" ) ); - connect( header(), TQT_SIGNAL( sizeChange( int, int, int ) ), - this, TQT_SLOT( columnSizeChange( int, int, int ) ) ); - connect( header(), TQT_SIGNAL( sectionClicked( int ) ), - this, TQT_SLOT( sectionClicked( int ) ) ); + connect( header(), TQ_SIGNAL( sizeChange( int, int, int ) ), + this, TQ_SLOT( columnSizeChange( int, int, int ) ) ); + connect( header(), TQ_SIGNAL( sectionClicked( int ) ), + this, TQ_SLOT( sectionClicked( int ) ) ); setResizeMode(TQListView::LastColumn); setSorting( -1 ); @@ -227,10 +227,10 @@ KoCustomVariablesDia::KoCustomVariablesDia( TQWidget *parent, const TQPtrList<Ko } - connect( this, TQT_SIGNAL( okClicked() ), - this, TQT_SLOT( slotOk() ) ); - connect( this, TQT_SIGNAL( cancelClicked() ), - this, TQT_SLOT( reject() ) ); + connect( this, TQ_SIGNAL( okClicked() ), + this, TQ_SLOT( slotOk() ) ); + connect( this, TQ_SIGNAL( cancelClicked() ), + this, TQ_SLOT( reject() ) ); showButtonOK(lst.count()>0); resize( 600, 400 ); @@ -255,13 +255,13 @@ KoCustomVarDialog::KoCustomVarDialog( TQWidget *parent ) m_name->setFocus(); - connect( this, TQT_SIGNAL( okClicked() ), - this, TQT_SLOT( slotAddOk() ) ); - connect( this, TQT_SIGNAL( cancelClicked() ), - this, TQT_SLOT( reject() ) ); + connect( this, TQ_SIGNAL( okClicked() ), + this, TQ_SLOT( slotAddOk() ) ); + connect( this, TQ_SIGNAL( cancelClicked() ), + this, TQ_SLOT( reject() ) ); - connect( m_name, TQT_SIGNAL( textChanged(const TQString&) ), - this, TQT_SLOT( slotTextChanged(const TQString&) ) ); + connect( m_name, TQ_SIGNAL( textChanged(const TQString&) ), + this, TQ_SLOT( slotTextChanged(const TQString&) ) ); enableButtonOK( false ); resize( 350, 100 ); @@ -279,13 +279,13 @@ KoCustomVarDialog::KoCustomVarDialog( TQWidget *parent, KoCustomVariable *var ) m_value->setFocus(); - connect( this, TQT_SIGNAL( okClicked() ), - this, TQT_SLOT( slotEditOk() ) ); - connect( this, TQT_SIGNAL( cancelClicked() ), - this, TQT_SLOT( reject() ) ); + connect( this, TQ_SIGNAL( okClicked() ), + this, TQ_SLOT( slotEditOk() ) ); + connect( this, TQ_SIGNAL( cancelClicked() ), + this, TQ_SLOT( reject() ) ); - connect( m_value, TQT_SIGNAL( textChanged(const TQString&) ), - this, TQT_SLOT( slotTextChanged(const TQString&) ) ); + connect( m_value, TQ_SIGNAL( textChanged(const TQString&) ), + this, TQ_SLOT( slotTextChanged(const TQString&) ) ); enableButtonOK( true ); resize( 350, 100 ); diff --git a/lib/kotext/KoDecorationTab.cpp b/lib/kotext/KoDecorationTab.cpp index 93b24a53..e3c969b3 100644 --- a/lib/kotext/KoDecorationTab.cpp +++ b/lib/kotext/KoDecorationTab.cpp @@ -34,11 +34,11 @@ KoDecorationTab::KoDecorationTab( TQWidget* parent, const char* name, WFlags fl { shadowDistanceKDoubleNumInput->setRange(0, 9, 0.5, false); - connect( textKColorButton, TQT_SIGNAL( changed( const TQColor& ) ), this, TQT_SIGNAL( fontColorChanged( const TQColor& ) ) ); - connect( backgroundKColorButton, TQT_SIGNAL( changed( const TQColor& ) ), this, TQT_SIGNAL( backgroundColorChanged( const TQColor& ) ) ); - connect( shadowKColorButton, TQT_SIGNAL( changed( const TQColor& ) ), this, TQT_SIGNAL( shadowColorChanged( const TQColor& ) ) ); - connect( shadowDistanceKDoubleNumInput, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SIGNAL( shadowDistanceChanged( double ) ) ); - connect( shadowDirectionButtonGroup, TQT_SIGNAL( clicked( int ) ), this, TQT_SIGNAL( shadowDirectionChanged( int ) ) ); + connect( textKColorButton, TQ_SIGNAL( changed( const TQColor& ) ), this, TQ_SIGNAL( fontColorChanged( const TQColor& ) ) ); + connect( backgroundKColorButton, TQ_SIGNAL( changed( const TQColor& ) ), this, TQ_SIGNAL( backgroundColorChanged( const TQColor& ) ) ); + connect( shadowKColorButton, TQ_SIGNAL( changed( const TQColor& ) ), this, TQ_SIGNAL( shadowColorChanged( const TQColor& ) ) ); + connect( shadowDistanceKDoubleNumInput, TQ_SIGNAL( valueChanged( double ) ), this, TQ_SIGNAL( shadowDistanceChanged( double ) ) ); + connect( shadowDirectionButtonGroup, TQ_SIGNAL( clicked( int ) ), this, TQ_SIGNAL( shadowDirectionChanged( int ) ) ); } KoDecorationTab::~KoDecorationTab() diff --git a/lib/kotext/KoFontDia.cpp b/lib/kotext/KoFontDia.cpp index fbde5028..fd29ee47 100644 --- a/lib/kotext/KoFontDia.cpp +++ b/lib/kotext/KoFontDia.cpp @@ -62,45 +62,45 @@ KoFontDia::KoFontDia( const KoTextFormat& initialFormat, fontTab = new KoFontTab( TDEFontChooser::SmoothScalableFonts, this ); fontTabWidget->addTab( fontTab, i18n( "Font" ) ); - connect( fontTab, TQT_SIGNAL( familyChanged() ), this, TQT_SLOT( slotFontFamilyChanged() ) ); - connect( fontTab, TQT_SIGNAL( boldChanged() ), this, TQT_SLOT( slotFontBoldChanged() ) ); - connect( fontTab, TQT_SIGNAL( italicChanged() ), this, TQT_SLOT( slotFontItalicChanged() ) ); - connect( fontTab, TQT_SIGNAL( sizeChanged() ), this, TQT_SLOT( slotFontSizeChanged() ) ); + connect( fontTab, TQ_SIGNAL( familyChanged() ), this, TQ_SLOT( slotFontFamilyChanged() ) ); + connect( fontTab, TQ_SIGNAL( boldChanged() ), this, TQ_SLOT( slotFontBoldChanged() ) ); + connect( fontTab, TQ_SIGNAL( italicChanged() ), this, TQ_SLOT( slotFontItalicChanged() ) ); + connect( fontTab, TQ_SIGNAL( sizeChanged() ), this, TQ_SLOT( slotFontSizeChanged() ) ); //Highlighting tab highlightingTab = new KoHighlightingTab( this ); fontTabWidget->addTab( highlightingTab, i18n( "Highlighting" ) ); - connect( highlightingTab, TQT_SIGNAL( underlineChanged( int ) ), this, TQT_SLOT( slotUnderlineChanged( int ) ) ); - connect( highlightingTab, TQT_SIGNAL( underlineStyleChanged( int ) ), this, TQT_SLOT( slotUnderlineStyleChanged( int ) ) ); - connect( highlightingTab, TQT_SIGNAL( underlineColorChanged( const TQColor & ) ), this, TQT_SLOT( slotUnderlineColorChanged( const TQColor & ) ) ); - connect( highlightingTab, TQT_SIGNAL( strikethroughChanged( int ) ), this, TQT_SLOT( slotStrikethroughChanged( int ) ) ); - connect( highlightingTab, TQT_SIGNAL( strikethroughStyleChanged( int ) ), this, TQT_SLOT( slotStrikethroughStyleChanged( int ) ) ); - connect( highlightingTab, TQT_SIGNAL( wordByWordChanged( bool ) ), this, TQT_SLOT( slotWordByWordChanged( bool ) ) ); - connect( highlightingTab, TQT_SIGNAL( capitalisationChanged( int ) ), this, TQT_SLOT( slotCapitalisationChanged( int ) ) ); + connect( highlightingTab, TQ_SIGNAL( underlineChanged( int ) ), this, TQ_SLOT( slotUnderlineChanged( int ) ) ); + connect( highlightingTab, TQ_SIGNAL( underlineStyleChanged( int ) ), this, TQ_SLOT( slotUnderlineStyleChanged( int ) ) ); + connect( highlightingTab, TQ_SIGNAL( underlineColorChanged( const TQColor & ) ), this, TQ_SLOT( slotUnderlineColorChanged( const TQColor & ) ) ); + connect( highlightingTab, TQ_SIGNAL( strikethroughChanged( int ) ), this, TQ_SLOT( slotStrikethroughChanged( int ) ) ); + connect( highlightingTab, TQ_SIGNAL( strikethroughStyleChanged( int ) ), this, TQ_SLOT( slotStrikethroughStyleChanged( int ) ) ); + connect( highlightingTab, TQ_SIGNAL( wordByWordChanged( bool ) ), this, TQ_SLOT( slotWordByWordChanged( bool ) ) ); + connect( highlightingTab, TQ_SIGNAL( capitalisationChanged( int ) ), this, TQ_SLOT( slotCapitalisationChanged( int ) ) ); //Decoratio tab decorationTab = new KoDecorationTab( this ); fontTabWidget->addTab( decorationTab, i18n( "Decoration" ) ); - connect( decorationTab, TQT_SIGNAL( fontColorChanged( const TQColor& ) ), this, TQT_SLOT( slotFontColorChanged( const TQColor& ) ) ); - connect( decorationTab, TQT_SIGNAL( backgroundColorChanged( const TQColor& ) ), this, TQT_SLOT( slotBackgroundColorChanged( const TQColor& ) ) ); - connect( decorationTab, TQT_SIGNAL( shadowColorChanged( const TQColor& ) ), this, TQT_SLOT( slotShadowColorChanged( const TQColor& ) ) ); - connect( decorationTab, TQT_SIGNAL( shadowDistanceChanged( double ) ), this, TQT_SLOT( slotShadowDistanceChanged( double ) ) ); - connect( decorationTab, TQT_SIGNAL( shadowDirectionChanged( int ) ), this, TQT_SLOT( slotShadowDirectionChanged( int ) ) ); + connect( decorationTab, TQ_SIGNAL( fontColorChanged( const TQColor& ) ), this, TQ_SLOT( slotFontColorChanged( const TQColor& ) ) ); + connect( decorationTab, TQ_SIGNAL( backgroundColorChanged( const TQColor& ) ), this, TQ_SLOT( slotBackgroundColorChanged( const TQColor& ) ) ); + connect( decorationTab, TQ_SIGNAL( shadowColorChanged( const TQColor& ) ), this, TQ_SLOT( slotShadowColorChanged( const TQColor& ) ) ); + connect( decorationTab, TQ_SIGNAL( shadowDistanceChanged( double ) ), this, TQ_SLOT( slotShadowDistanceChanged( double ) ) ); + connect( decorationTab, TQ_SIGNAL( shadowDirectionChanged( int ) ), this, TQ_SLOT( slotShadowDirectionChanged( int ) ) ); //Layout tab layoutTab = new KoLayoutTab( true, this ); fontTabWidget->addTab( layoutTab, i18n( "Layout" ) ); - connect( layoutTab, TQT_SIGNAL( subSuperScriptChanged() ), this, TQT_SLOT( slotSubSuperChanged() ) );; - connect( layoutTab, TQT_SIGNAL( offsetChanged( int ) ), this, TQT_SLOT( slotOffsetChanged( int ) ) ); - connect( layoutTab, TQT_SIGNAL( relativeSizeChanged( double ) ), this, TQT_SLOT( slotRelativeSizeChanged( double ) ) ); - connect( layoutTab, TQT_SIGNAL( hyphenationChanged( bool ) ), this, TQT_SLOT( slotHyphenationChanged( bool ) ) ); + connect( layoutTab, TQ_SIGNAL( subSuperScriptChanged() ), this, TQ_SLOT( slotSubSuperChanged() ) );; + connect( layoutTab, TQ_SIGNAL( offsetChanged( int ) ), this, TQ_SLOT( slotOffsetChanged( int ) ) ); + connect( layoutTab, TQ_SIGNAL( relativeSizeChanged( double ) ), this, TQ_SLOT( slotRelativeSizeChanged( double ) ) ); + connect( layoutTab, TQ_SIGNAL( hyphenationChanged( bool ) ), this, TQ_SLOT( slotHyphenationChanged( bool ) ) ); //Language tab languageTab = new KoLanguageTab( broker, this ); fontTabWidget->addTab( languageTab, i18n( "Language" ) ); - connect( languageTab, TQT_SIGNAL( languageChanged() ), this, TQT_SLOT( slotLanguageChanged() ) ); + connect( languageTab, TQ_SIGNAL( languageChanged() ), this, TQ_SLOT( slotLanguageChanged() ) ); //Related properties List View //relatedPropertiesListView = new TDEListView( mainHBox ); @@ -115,7 +115,7 @@ KoFontDia::KoFontDia( const KoTextFormat& initialFormat, void KoFontDia::init() { - connect( this, TQT_SIGNAL( user1Clicked() ), this, TQT_SLOT(slotReset()) ); + connect( this, TQ_SIGNAL( user1Clicked() ), this, TQ_SLOT(slotReset()) ); slotReset(); } diff --git a/lib/kotext/KoFontTab.cpp b/lib/kotext/KoFontTab.cpp index 78a9f67f..fcf70a93 100644 --- a/lib/kotext/KoFontTab.cpp +++ b/lib/kotext/KoFontTab.cpp @@ -28,7 +28,7 @@ KoFontTab::KoFontTab( uint fontListCriteria, TQWidget* parent, const char* name, characterFont->setFamilyList( list ); characterFont->setSampleBoxVisible(false); comparisonFont = characterFont->font(); - connect( characterFont, TQT_SIGNAL( fontSelected( const TQFont & ) ), this, TQT_SLOT( slotFontChanged( const TQFont & ) ) ); + connect( characterFont, TQ_SIGNAL( fontSelected( const TQFont & ) ), this, TQ_SLOT( slotFontChanged( const TQFont & ) ) ); } KoFontTab::~KoFontTab() diff --git a/lib/kotext/KoHighlightingTab.cpp b/lib/kotext/KoHighlightingTab.cpp index 405887bf..9f22ca63 100644 --- a/lib/kotext/KoHighlightingTab.cpp +++ b/lib/kotext/KoHighlightingTab.cpp @@ -46,13 +46,13 @@ KoHighlightingTab::KoHighlightingTab( TQWidget* parent, const char* name, WFlags } capitalisationButtonGroup->setButton( 0 ); - connect( underlineStyleKComboBox, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( slotUnderlineChanged( int ) ) ); - connect( underlineLineStyleKComboBox, TQT_SIGNAL( activated( int ) ), this, TQT_SIGNAL( underlineStyleChanged( int ) ) ); - connect( underlineKColorButton, TQT_SIGNAL( changed( const TQColor & ) ), this, TQT_SIGNAL( underlineColorChanged( const TQColor & ) ) ); - connect( strikethroughStyleKComboBox, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( slotStrikethroughChanged( int ) ) ); - connect( strikethroughLineStyleKComboBox, TQT_SIGNAL( activated( int ) ), this, TQT_SIGNAL( strikethroughStyleChanged( int ) ) ); - connect( underlineWordByWordCheckBox, TQT_SIGNAL( toggled( bool ) ), this, TQT_SIGNAL( wordByWordChanged( bool ) ) ); - connect( capitalisationButtonGroup, TQT_SIGNAL( clicked( int ) ), this, TQT_SIGNAL( capitalisationChanged( int ) ) ); + connect( underlineStyleKComboBox, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( slotUnderlineChanged( int ) ) ); + connect( underlineLineStyleKComboBox, TQ_SIGNAL( activated( int ) ), this, TQ_SIGNAL( underlineStyleChanged( int ) ) ); + connect( underlineKColorButton, TQ_SIGNAL( changed( const TQColor & ) ), this, TQ_SIGNAL( underlineColorChanged( const TQColor & ) ) ); + connect( strikethroughStyleKComboBox, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( slotStrikethroughChanged( int ) ) ); + connect( strikethroughLineStyleKComboBox, TQ_SIGNAL( activated( int ) ), this, TQ_SIGNAL( strikethroughStyleChanged( int ) ) ); + connect( underlineWordByWordCheckBox, TQ_SIGNAL( toggled( bool ) ), this, TQ_SIGNAL( wordByWordChanged( bool ) ) ); + connect( capitalisationButtonGroup, TQ_SIGNAL( clicked( int ) ), this, TQ_SIGNAL( capitalisationChanged( int ) ) ); } KoHighlightingTab::~KoHighlightingTab() diff --git a/lib/kotext/KoImportStyleDia.cpp b/lib/kotext/KoImportStyleDia.cpp index 1e048939..1b330200 100644 --- a/lib/kotext/KoImportStyleDia.cpp +++ b/lib/kotext/KoImportStyleDia.cpp @@ -39,7 +39,7 @@ KoImportStyleDia::KoImportStyleDia( KoStyleCollection* currentCollection, TQWidg m_listStyleName->setSelectionMode( TQListBox::Multi ); enableButtonOK( m_listStyleName->count() != 0 ); setButtonText( KDialogBase::User1, i18n("Load...") ); - connect( this, TQT_SIGNAL( user1Clicked() ), this, TQT_SLOT(slotLoadFile())); + connect( this, TQ_SIGNAL( user1Clicked() ), this, TQ_SLOT(slotLoadFile())); setInitialSize( TQSize( 300, 400 ) ); setFocus(); } diff --git a/lib/kotext/KoLanguageTab.cpp b/lib/kotext/KoLanguageTab.cpp index b5b6e0dd..e7d84953 100644 --- a/lib/kotext/KoLanguageTab.cpp +++ b/lib/kotext/KoLanguageTab.cpp @@ -47,7 +47,7 @@ KoLanguageTab::KoLanguageTab( KSpell2::Broker::Ptr broker, TQWidget* parent, con else languageKComboBox->insertItem( *itName ); } - connect( languageKComboBox, TQT_SIGNAL( activated( int ) ), this, TQT_SIGNAL( languageChanged() ) ); + connect( languageKComboBox, TQ_SIGNAL( activated( int ) ), this, TQ_SIGNAL( languageChanged() ) ); } KoLanguageTab::~KoLanguageTab() diff --git a/lib/kotext/KoLayoutTab.cpp b/lib/kotext/KoLayoutTab.cpp index 9a2d4e18..c587b1b4 100644 --- a/lib/kotext/KoLayoutTab.cpp +++ b/lib/kotext/KoLayoutTab.cpp @@ -33,10 +33,10 @@ KoLayoutTab::KoLayoutTab( bool withSubSuperScript, TQWidget* parent, const char* { if ( !withSubSuperScript ) positionButtonGroup->hide(); - connect( positionButtonGroup, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( slotSubSuperScriptChanged( int ) ) ); - connect( offsetSpinBox, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SIGNAL( offsetChanged( int ) ) ); - connect( relativeSizeKDoubleSpinBox, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( slotRelativeSizeChanged( double ) ) ); - connect( hyphenateCheckBox, TQT_SIGNAL( toggled( bool ) ), this, TQT_SIGNAL( hyphenationChanged( bool ) ) ); + connect( positionButtonGroup, TQ_SIGNAL( clicked( int ) ), this, TQ_SLOT( slotSubSuperScriptChanged( int ) ) ); + connect( offsetSpinBox, TQ_SIGNAL( valueChanged( int ) ), this, TQ_SIGNAL( offsetChanged( int ) ) ); + connect( relativeSizeKDoubleSpinBox, TQ_SIGNAL( valueChanged( double ) ), this, TQ_SLOT( slotRelativeSizeChanged( double ) ) ); + connect( hyphenateCheckBox, TQ_SIGNAL( toggled( bool ) ), this, TQ_SIGNAL( hyphenationChanged( bool ) ) ); } KoLayoutTab::~KoLayoutTab() diff --git a/lib/kotext/KoParagDia.cpp b/lib/kotext/KoParagDia.cpp index 826c44a5..c9ed078b 100644 --- a/lib/kotext/KoParagDia.cpp +++ b/lib/kotext/KoParagDia.cpp @@ -71,7 +71,7 @@ KoCounterStyleWidget::KoCounterStyleWidget( bool displayDepth, bool onlyStyleTyp lstStyle = new TQListBox( gStyle, "styleListBox" ); grid->addMultiCellWidget( lstStyle, 1, 11, 0, 0); fillStyleCombo(); - connect( lstStyle, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( numStyleChanged() ) ); + connect( lstStyle, TQ_SIGNAL( selectionChanged() ), this, TQ_SLOT( numStyleChanged() ) ); TQLabel *lPrefix = new TQLabel( gStyle, "lPrefix" ); @@ -116,7 +116,7 @@ KoCounterStyleWidget::KoCounterStyleWidget( bool displayDepth, bool onlyStyleTyp bCustom = new TQPushButton( "", gStyle, "bCustom" ); lCustom->setBuddy( bCustom ); customCharBox->addWidget( bCustom ); - connect( bCustom, TQT_SIGNAL( clicked() ), this, TQT_SLOT( selectCustomBullet() ) ); + connect( bCustom, TQ_SIGNAL( clicked() ), this, TQ_SLOT( selectCustomBullet() ) ); TQSpacerItem* spacer_2 = new TQSpacerItem( 0, 0, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); customCharBox->addItem( spacer_2 ); @@ -166,14 +166,14 @@ KoCounterStyleWidget::KoCounterStyleWidget( bool displayDepth, bool onlyStyleTyp } - connect( cbRestart, TQT_SIGNAL( toggled(bool) ), this, TQT_SLOT( restartChanged(bool) ) ); + connect( cbRestart, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( restartChanged(bool) ) ); - connect( sSuffix, TQT_SIGNAL( textChanged (const TQString &) ), this, TQT_SLOT( suffixChanged(const TQString &) ) ); - connect( sPrefix, TQT_SIGNAL( textChanged (const TQString &) ), this, TQT_SLOT( prefixChanged(const TQString &) ) ); - connect( spnStart, TQT_SIGNAL( valueChanged (int) ), this, TQT_SLOT( startChanged(int) ) ); - connect( spnDepth, TQT_SIGNAL( valueChanged (int) ), this, TQT_SLOT( depthChanged(int) ) ); - connect( spnDisplayLevels, TQT_SIGNAL( valueChanged (int) ), this, TQT_SLOT( displayLevelsChanged(int) ) ); - connect( cbAlignment, TQT_SIGNAL( activated (const TQString&) ), this, TQT_SLOT( alignmentChanged(const TQString&) ) ); + connect( sSuffix, TQ_SIGNAL( textChanged (const TQString &) ), this, TQ_SLOT( suffixChanged(const TQString &) ) ); + connect( sPrefix, TQ_SIGNAL( textChanged (const TQString &) ), this, TQ_SLOT( prefixChanged(const TQString &) ) ); + connect( spnStart, TQ_SIGNAL( valueChanged (int) ), this, TQ_SLOT( startChanged(int) ) ); + connect( spnDepth, TQ_SIGNAL( valueChanged (int) ), this, TQ_SLOT( depthChanged(int) ) ); + connect( spnDisplayLevels, TQ_SIGNAL( valueChanged (int) ), this, TQ_SLOT( displayLevelsChanged(int) ) ); + connect( cbAlignment, TQ_SIGNAL( activated (const TQString&) ), this, TQ_SLOT( alignmentChanged(const TQString&) ) ); noSignals = false; if ( disableAll ) { @@ -899,7 +899,7 @@ KoIndentSpacingWidget::KoIndentSpacingWidget( KoUnit::Unit unit, double _frameW eLeft = new KoUnitDoubleSpinBox( indentFrame, 0, 9999, 1, 0.0, m_unit ); lLeft->setBuddy( eLeft ); indentGrid->addWidget( eLeft, 1, 1 ); - connect( eLeft, TQT_SIGNAL( valueChangedPt(double ) ), this, TQT_SLOT( leftChanged( double ) ) ); + connect( eLeft, TQ_SIGNAL( valueChangedPt(double ) ), this, TQ_SLOT( leftChanged( double ) ) ); TQLabel * lRight = new TQLabel( i18n("&Right:"), indentFrame ); lRight->setAlignment( TQt::AlignVCenter | TQt::AlignRight ); @@ -908,7 +908,7 @@ KoIndentSpacingWidget::KoIndentSpacingWidget( KoUnit::Unit unit, double _frameW eRight = new KoUnitDoubleSpinBox( indentFrame, 0, 9999, 1, 0.0, m_unit ); lRight->setBuddy( eRight ); indentGrid->addWidget( eRight, 2, 1 ); - connect( eRight, TQT_SIGNAL( valueChangedPt( double ) ), this, TQT_SLOT( rightChanged( double ) ) ); + connect( eRight, TQ_SIGNAL( valueChangedPt( double ) ), this, TQ_SLOT( rightChanged( double ) ) ); TQLabel * lFirstLine = new TQLabel( i18n("&First line:"), indentFrame ); lFirstLine->setAlignment( TQt::AlignVCenter | TQt::AlignRight ); @@ -916,7 +916,7 @@ KoIndentSpacingWidget::KoIndentSpacingWidget( KoUnit::Unit unit, double _frameW eFirstLine = new KoUnitDoubleSpinBox( indentFrame, -9999, 9999, 1, 0.0, m_unit ); lFirstLine->setBuddy( eFirstLine ); - connect( eFirstLine, TQT_SIGNAL( valueChangedPt( double ) ), this, TQT_SLOT( firstChanged( double ) ) ); + connect( eFirstLine, TQ_SIGNAL( valueChangedPt( double ) ), this, TQ_SLOT( firstChanged( double ) ) ); indentGrid->addWidget( eFirstLine, 3, 1 ); // grid row spacing @@ -940,7 +940,7 @@ KoIndentSpacingWidget::KoIndentSpacingWidget( KoUnit::Unit unit, double _frameW cSpacing->insertItem( i18n( "At Least (%1)" ).arg(unitName) ); cSpacing->insertItem( i18n( "Fixed (%1)").arg(unitName) ); // LS_FIXED - connect( cSpacing, TQT_SIGNAL( activated( int ) ), this, TQT_SLOT( spacingActivated( int ) ) ); + connect( cSpacing, TQ_SIGNAL( activated( int ) ), this, TQ_SLOT( spacingActivated( int ) ) ); spacingGrid->addWidget( cSpacing, 1, 0 ); sSpacingStack = new TQWidgetStack( spacingFrame ); @@ -948,11 +948,11 @@ KoIndentSpacingWidget::KoIndentSpacingWidget( KoUnit::Unit unit, double _frameW eSpacing = new KoUnitDoubleSpinBox( spacingFrame, 0, 9999, CM_TO_POINT(1), 0.0, m_unit ); eSpacing->setRange( 0, 9999, 1, false); - connect( eSpacing, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( spacingChanged( double ) ) ); + connect( eSpacing, TQ_SIGNAL( valueChanged( double ) ), this, TQ_SLOT( spacingChanged( double ) ) ); eSpacingPercent = new KIntNumInput( 100, spacingFrame ); eSpacingPercent->setRange( 0, 1000, 10, false ); eSpacingPercent->setSuffix( " %" ); - connect( eSpacingPercent, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( spacingChanged( int ) ) ); + connect( eSpacingPercent, TQ_SIGNAL( valueChanged( int ) ), this, TQ_SLOT( spacingChanged( int ) ) ); sSpacingStack->addWidget( eSpacing ); sSpacingStack->addWidget( eSpacingPercent ); @@ -977,7 +977,7 @@ KoIndentSpacingWidget::KoIndentSpacingWidget( KoUnit::Unit unit, double _frameW eBefore = new KoUnitDoubleSpinBox( pSpaceFrame, 0, 9999, CM_TO_POINT(1), 0.0, m_unit ); eBefore->setRange( 0 , 9999, 1, false); - connect( eBefore, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( beforeChanged( double ) ) ); + connect( eBefore, TQ_SIGNAL( valueChanged( double ) ), this, TQ_SLOT( beforeChanged( double ) ) ); pSpaceGrid->addWidget( eBefore, 1, 1 ); TQLabel * lAfter = new TQLabel( i18n("After:"), pSpaceFrame ); @@ -986,7 +986,7 @@ KoIndentSpacingWidget::KoIndentSpacingWidget( KoUnit::Unit unit, double _frameW eAfter = new KoUnitDoubleSpinBox( pSpaceFrame, 0, 9999, 1, 0.0, m_unit ); eAfter->setRange( 0, 9999, 1, false); - connect( eAfter, TQT_SIGNAL( valueChanged( double ) ), this, TQT_SLOT( afterChanged( double ) ) ); + connect( eAfter, TQ_SIGNAL( valueChanged( double ) ), this, TQ_SLOT( afterChanged( double ) ) ); pSpaceGrid->addWidget( eAfter, 2, 1 ); // grid row spacing @@ -1211,16 +1211,16 @@ KoParagAlignWidget::KoParagAlignWidget( bool breakLine, TQWidget * parent, const TQVGroupBox * AlignGroup = new TQVGroupBox( i18n( "Alignment" ), this ); rLeft = new TQRadioButton( i18n( "&Left" ), AlignGroup ); - connect( rLeft, TQT_SIGNAL( clicked() ), this, TQT_SLOT( alignLeft() ) ); + connect( rLeft, TQ_SIGNAL( clicked() ), this, TQ_SLOT( alignLeft() ) ); rCenter = new TQRadioButton( i18n( "C&enter" ), AlignGroup ); - connect( rCenter, TQT_SIGNAL( clicked() ), this, TQT_SLOT( alignCenter() ) ); + connect( rCenter, TQ_SIGNAL( clicked() ), this, TQ_SLOT( alignCenter() ) ); rRight = new TQRadioButton( i18n( "&Right" ), AlignGroup ); - connect( rRight, TQT_SIGNAL( clicked() ), this, TQT_SLOT( alignRight() ) ); + connect( rRight, TQ_SIGNAL( clicked() ), this, TQ_SLOT( alignRight() ) ); rJustify = new TQRadioButton( i18n( "&Justify" ), AlignGroup ); - connect( rJustify, TQT_SIGNAL( clicked() ), this, TQT_SLOT( alignJustify() ) ); + connect( rJustify, TQ_SIGNAL( clicked() ), this, TQ_SLOT( alignJustify() ) ); clearAligns(); rLeft->setChecked( true ); @@ -1376,23 +1376,23 @@ KoParagDecorationWidget::KoParagDecorationWidget( TQWidget * parent, wDeco->cbBorderWidth->insertItem(TQString::number(i)); // Setup the border toggle buttons, and merge checkbox - connect( wDeco->bBorderLeft, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SLOT( brdLeftToggled( bool ) ) ); - connect( wDeco->bBorderRight, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SLOT( brdRightToggled( bool ) ) ); - connect( wDeco->bBorderTop, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SLOT( brdTopToggled( bool ) ) ); - connect( wDeco->bBorderBottom, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SLOT( brdBottomToggled( bool ) ) ); - connect( wDeco->cbJoinBorder, TQT_SIGNAL( toggled( bool ) ), - this, TQT_SLOT( brdJoinToggled( bool ) ) ); + connect( wDeco->bBorderLeft, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SLOT( brdLeftToggled( bool ) ) ); + connect( wDeco->bBorderRight, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SLOT( brdRightToggled( bool ) ) ); + connect( wDeco->bBorderTop, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SLOT( brdTopToggled( bool ) ) ); + connect( wDeco->bBorderBottom, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SLOT( brdBottomToggled( bool ) ) ); + connect( wDeco->cbJoinBorder, TQ_SIGNAL( toggled( bool ) ), + this, TQ_SLOT( brdJoinToggled( bool ) ) ); // Set up Border preview widget wPreview = new KoBorderPreview( wDeco->borderPreview ); TQVBoxLayout *previewLayout = new TQVBoxLayout( wDeco->borderPreview ); previewLayout->addWidget( wPreview ); - connect( wPreview, TQT_SIGNAL( choosearea(TQMouseEvent * ) ), - this, TQT_SLOT( slotPressEvent(TQMouseEvent *) ) ); + connect( wPreview, TQ_SIGNAL( choosearea(TQMouseEvent * ) ), + this, TQ_SLOT( slotPressEvent(TQMouseEvent *) ) ); } /////// @@ -1625,21 +1625,21 @@ KoParagCounterWidget::KoParagCounterWidget( bool disableAll, TQWidget * parent, gNumbering->insert( rChapter , KoParagCounter::NUM_CHAPTER); numberingGroupLayout->addWidget( rChapter ); Form1Layout->addWidget( gNumbering ); - connect( gNumbering, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( numTypeChanged( int ) ) ); + connect( gNumbering, TQ_SIGNAL( clicked( int ) ), this, TQ_SLOT( numTypeChanged( int ) ) ); m_styleWidget = new KoCounterStyleWidget( true, false, disableAll, this ); - connect( m_styleWidget, TQT_SIGNAL( sig_suffixChanged (const TQString &) ), this, TQT_SLOT( suffixChanged(const TQString &) ) ); - connect( m_styleWidget, TQT_SIGNAL( sig_prefixChanged (const TQString &) ), this, TQT_SLOT( prefixChanged(const TQString &) ) ); - connect( m_styleWidget, TQT_SIGNAL( sig_startChanged(int) ), this, TQT_SLOT( startChanged(int) ) ); - connect( m_styleWidget, TQT_SIGNAL( sig_restartChanged(bool) ), this, TQT_SLOT( restartChanged(bool) ) ); - connect( m_styleWidget, TQT_SIGNAL( sig_depthChanged (int) ), this, TQT_SLOT( depthChanged(int) ) ); - connect( m_styleWidget, TQT_SIGNAL( sig_displayLevelsChanged (int) ), this, TQT_SLOT( displayLevelsChanged(int) ) ); - connect( m_styleWidget, TQT_SIGNAL( sig_alignmentChanged (int) ), this, TQT_SLOT( alignmentChanged(int) ) ); - connect( m_styleWidget, TQT_SIGNAL( changeCustomBullet( const TQString & , TQChar ) ), this, TQT_SLOT( slotChangeCustomBullet( const TQString & , TQChar ) ) ); + connect( m_styleWidget, TQ_SIGNAL( sig_suffixChanged (const TQString &) ), this, TQ_SLOT( suffixChanged(const TQString &) ) ); + connect( m_styleWidget, TQ_SIGNAL( sig_prefixChanged (const TQString &) ), this, TQ_SLOT( prefixChanged(const TQString &) ) ); + connect( m_styleWidget, TQ_SIGNAL( sig_startChanged(int) ), this, TQ_SLOT( startChanged(int) ) ); + connect( m_styleWidget, TQ_SIGNAL( sig_restartChanged(bool) ), this, TQ_SLOT( restartChanged(bool) ) ); + connect( m_styleWidget, TQ_SIGNAL( sig_depthChanged (int) ), this, TQ_SLOT( depthChanged(int) ) ); + connect( m_styleWidget, TQ_SIGNAL( sig_displayLevelsChanged (int) ), this, TQ_SLOT( displayLevelsChanged(int) ) ); + connect( m_styleWidget, TQ_SIGNAL( sig_alignmentChanged (int) ), this, TQ_SLOT( alignmentChanged(int) ) ); + connect( m_styleWidget, TQ_SIGNAL( changeCustomBullet( const TQString & , TQChar ) ), this, TQ_SLOT( slotChangeCustomBullet( const TQString & , TQChar ) ) ); - connect( m_styleWidget, TQT_SIGNAL( sig_numTypeChanged( int ) ), this, TQT_SLOT( numTypeChanged(int ) ) ); - connect( m_styleWidget, TQT_SIGNAL( changeStyle( KoParagCounter::Style ) ), this, TQT_SLOT( styleChanged (KoParagCounter::Style ) ) ); + connect( m_styleWidget, TQ_SIGNAL( sig_numTypeChanged( int ) ), this, TQ_SLOT( numTypeChanged(int ) ) ); + connect( m_styleWidget, TQ_SIGNAL( changeStyle( KoParagCounter::Style ) ), this, TQ_SLOT( styleChanged (KoParagCounter::Style ) ) ); Form1Layout->addWidget( m_styleWidget ); @@ -1898,16 +1898,16 @@ KoParagTabulatorsWidget::KoParagTabulatorsWidget( KoUnit::Unit unit, double fram //signal valueChanged passes value which the user see (unlike the value() function) //so fromUserValue has to be used in slotTabValueChanged - connect(sTabPos,TQT_SIGNAL(valueChanged(double)), this, TQT_SLOT(slotTabValueChanged(double ))); - connect(sTabPos,TQT_SIGNAL( keyReturnPressed()),this,TQT_SLOT(newClicked())); - connect(sAlignChar,TQT_SIGNAL(textChanged( const TQString & )), this, TQT_SLOT(slotAlignCharChanged( const TQString & ))); - connect(bNew,TQT_SIGNAL(clicked ()),this,TQT_SLOT(newClicked())); - connect(bDelete,TQT_SIGNAL(clicked ()),this,TQT_SLOT(deleteClicked())); - connect(bDeleteAll,TQT_SIGNAL(clicked ()),this,TQT_SLOT(deleteAllClicked())); - connect(bgAlign,TQT_SIGNAL(clicked (int)),this,TQT_SLOT(updateAlign(int))); - connect(cFilling,TQT_SIGNAL(activated (int)),this,TQT_SLOT(updateFilling(int))); - connect(eWidth,TQT_SIGNAL(valueChangedPt( double ) ),this,TQT_SLOT(updateWidth())); - connect(lstTabs,TQT_SIGNAL(highlighted (int)),this,TQT_SLOT(setActiveItem(int))); + connect(sTabPos,TQ_SIGNAL(valueChanged(double)), this, TQ_SLOT(slotTabValueChanged(double ))); + connect(sTabPos,TQ_SIGNAL( keyReturnPressed()),this,TQ_SLOT(newClicked())); + connect(sAlignChar,TQ_SIGNAL(textChanged( const TQString & )), this, TQ_SLOT(slotAlignCharChanged( const TQString & ))); + connect(bNew,TQ_SIGNAL(clicked ()),this,TQ_SLOT(newClicked())); + connect(bDelete,TQ_SIGNAL(clicked ()),this,TQ_SLOT(deleteClicked())); + connect(bDeleteAll,TQ_SIGNAL(clicked ()),this,TQ_SLOT(deleteAllClicked())); + connect(bgAlign,TQ_SIGNAL(clicked (int)),this,TQ_SLOT(updateAlign(int))); + connect(cFilling,TQ_SIGNAL(activated (int)),this,TQ_SLOT(updateFilling(int))); + connect(eWidth,TQ_SIGNAL(valueChangedPt( double ) ),this,TQ_SLOT(updateWidth())); + connect(lstTabs,TQ_SIGNAL(highlighted (int)),this,TQ_SLOT(setActiveItem(int))); noSignals=false; } @@ -2182,7 +2182,7 @@ KoParagDia::KoParagDia( TQWidget* parent, const char* name, m_tabulatorsWidget->layout()->setMargin(0); } - connect( this, TQT_SIGNAL( user1Clicked() ), this, TQT_SLOT(slotReset())); + connect( this, TQ_SIGNAL( user1Clicked() ), this, TQ_SLOT(slotReset())); setInitialSize( TQSize(630, 500) ); } diff --git a/lib/kotext/KoSearchDia.cpp b/lib/kotext/KoSearchDia.cpp index 4e81463d..554a6805 100644 --- a/lib/kotext/KoSearchDia.cpp +++ b/lib/kotext/KoSearchDia.cpp @@ -67,7 +67,7 @@ KoSearchContextUI::KoSearchContextUI( KoSearchContext *ctx, TQWidget *parent ) { m_bOptionsShown = false; m_btnShowOptions = new TQPushButton( i18n("Show Formatting Options"), parent ); - connect( m_btnShowOptions, TQT_SIGNAL( clicked() ), TQT_SLOT( slotShowOptions() ) ); + connect( m_btnShowOptions, TQ_SIGNAL( clicked() ), TQ_SLOT( slotShowOptions() ) ); m_grid = new TQGridLayout( m_parent, 1, 1, 0, 6 ); m_grid->addWidget( m_btnShowOptions, 0, 0 ); @@ -174,30 +174,30 @@ KoFindReplace::KoFindReplace( TQWidget * parent, KoReplaceDia * dialog, const TQ m_lastTextObjectHighlighted( 0 ) { connectFind( m_replace ); - connect( m_replace, TQT_SIGNAL( replace( const TQString &, int , int, int ) ), - this, TQT_SLOT( replace( const TQString &, int , int,int ) ) ); + connect( m_replace, TQ_SIGNAL( replace( const TQString &, int , int, int ) ), + this, TQ_SLOT( replace( const TQString &, int , int,int ) ) ); } void KoFindReplace::connectFind( KFind* find ) { - connect( find, TQT_SIGNAL( optionsChanged() ), - this, TQT_SLOT( optionsChanged() ) ); - connect( find, TQT_SIGNAL( dialogClosed() ), - this, TQT_SLOT( dialogClosed() ) ); + connect( find, TQ_SIGNAL( optionsChanged() ), + this, TQ_SLOT( optionsChanged() ) ); + connect( find, TQ_SIGNAL( dialogClosed() ), + this, TQ_SLOT( dialogClosed() ) ); // Connect highlight signal to code which handles highlighting // of found text. - connect( find, TQT_SIGNAL( highlight( const TQString &, int, int ) ), - this, TQT_SLOT( highlight( const TQString &, int, int ) ) ); + connect( find, TQ_SIGNAL( highlight( const TQString &, int, int ) ), + this, TQ_SLOT( highlight( const TQString &, int, int ) ) ); // Connect findNext signal - called when pressing the button in the dialog - connect( find, TQT_SIGNAL( findNext() ), - this, TQT_SLOT( slotFindNext() ) ); + connect( find, TQ_SIGNAL( findNext() ), + this, TQ_SLOT( slotFindNext() ) ); m_bInit = true; m_currentParagraphModified = false; m_matchingIndex = -1; // Also connect to the textiterator - connect( &m_textIterator, TQT_SIGNAL( currentParagraphModified( int, int, int ) ), - this, TQT_SLOT( slotCurrentParagraphModified( int, int, int ) ) ); + connect( &m_textIterator, TQ_SIGNAL( currentParagraphModified( int, int, int ) ), + this, TQ_SLOT( slotCurrentParagraphModified( int, int, int ) ) ); } KoFindReplace::~KoFindReplace() @@ -389,16 +389,16 @@ void KoFindReplace::replace( const TQString &text, int matchingIndex, TQString rep = text.mid( matchingIndex, replacementLength ); // Don't let the replacement set the paragraph to "modified by user" - disconnect( &m_textIterator, TQT_SIGNAL( currentParagraphModified( int, int, int ) ), - this, TQT_SLOT( slotCurrentParagraphModified( int, int, int ) ) ); + disconnect( &m_textIterator, TQ_SIGNAL( currentParagraphModified( int, int, int ) ), + this, TQ_SLOT( slotCurrentParagraphModified( int, int, int ) ) ); KCommand *cmd = currentTextObj->replaceSelectionCommand( &cursor, rep, TQString(), KoTextDocument::HighlightSelection, repaint ? KoTextObject::DefaultInsertFlags : KoTextObject::DoNotRepaint ); - connect( &m_textIterator, TQT_SIGNAL( currentParagraphModified( int, int, int ) ), - this, TQT_SLOT( slotCurrentParagraphModified( int, int, int ) ) ); + connect( &m_textIterator, TQ_SIGNAL( currentParagraphModified( int, int, int ) ), + this, TQ_SLOT( slotCurrentParagraphModified( int, int, int ) ) ); if( cmd ) macroCommand()->addCommand(cmd); @@ -549,8 +549,8 @@ KoFormatDia::KoFormatDia( TQWidget* parent, const TQString & _caption, KoSearchC setButtonText( KDialogBase::User1, i18n("Reset") ); setButtonText( KDialogBase::User2, i18n("Clear") ); - connect( this, TQT_SIGNAL( user1Clicked() ), this, TQT_SLOT(slotReset())); - connect( this, TQT_SIGNAL( user2Clicked() ), this, TQT_SLOT(slotClear())); + connect( this, TQ_SIGNAL( user1Clicked() ), this, TQ_SLOT(slotReset())); + connect( this, TQ_SIGNAL( user2Clicked() ), this, TQ_SLOT(slotClear())); TQGridLayout *m_grid = new TQGridLayout( page, 15, 2, 0, 6 ); m_checkFamily = new TQCheckBox( i18n( "Family:" ),page ); @@ -670,29 +670,29 @@ KoFormatDia::KoFormatDia( TQWidget* parent, const TQString & _caption, KoSearchC m_grid->addMultiCellWidget( tmpSep, 14, 14, 0, 1 ); // signals and slots connections - TQObject::connect( m_checkFamily, TQT_SIGNAL( toggled( bool ) ), m_familyItem, TQT_SLOT( setEnabled( bool ) ) ); - TQObject::connect( m_checkSize, TQT_SIGNAL( toggled( bool ) ), m_sizeItem, TQT_SLOT( setEnabled( bool ) ) ); - TQObject::connect( m_checkColor, TQT_SIGNAL( toggled( bool ) ), m_colorItem, TQT_SLOT( setEnabled( bool ) ) ); - TQObject::connect( m_checkBgColor, TQT_SIGNAL( toggled( bool ) ), m_bgColorItem, TQT_SLOT( setEnabled( bool ) ) ); + TQObject::connect( m_checkFamily, TQ_SIGNAL( toggled( bool ) ), m_familyItem, TQ_SLOT( setEnabled( bool ) ) ); + TQObject::connect( m_checkSize, TQ_SIGNAL( toggled( bool ) ), m_sizeItem, TQ_SLOT( setEnabled( bool ) ) ); + TQObject::connect( m_checkColor, TQ_SIGNAL( toggled( bool ) ), m_colorItem, TQ_SLOT( setEnabled( bool ) ) ); + TQObject::connect( m_checkBgColor, TQ_SIGNAL( toggled( bool ) ), m_bgColorItem, TQ_SLOT( setEnabled( bool ) ) ); - TQObject::connect( m_checkBold, TQT_SIGNAL( toggled( bool ) ), m_boldYes, TQT_SLOT( setEnabled( bool ) ) ); - TQObject::connect( m_checkItalic, TQT_SIGNAL( toggled( bool ) ), m_italicYes, TQT_SLOT( setEnabled( bool ) ) ); - TQObject::connect( m_checkStrikeOut, TQT_SIGNAL( toggled( bool ) ), m_strikeOutItem, TQT_SLOT( setEnabled( bool ) ) ); - TQObject::connect( m_checkShadow, TQT_SIGNAL( toggled( bool ) ), m_shadowYes, TQT_SLOT( setEnabled( bool ) ) ); - TQObject::connect( m_checkWordByWord, TQT_SIGNAL( toggled( bool ) ), m_wordByWordYes, TQT_SLOT( setEnabled( bool ) ) ); - TQObject::connect( m_checkFontAttribute, TQT_SIGNAL( toggled( bool ) ), m_fontAttributeItem, TQT_SLOT( setEnabled( bool ) ) ); - TQObject::connect( m_checkLanguage, TQT_SIGNAL( toggled( bool ) ), m_languageItem, TQT_SLOT( setEnabled( bool ) ) ); + TQObject::connect( m_checkBold, TQ_SIGNAL( toggled( bool ) ), m_boldYes, TQ_SLOT( setEnabled( bool ) ) ); + TQObject::connect( m_checkItalic, TQ_SIGNAL( toggled( bool ) ), m_italicYes, TQ_SLOT( setEnabled( bool ) ) ); + TQObject::connect( m_checkStrikeOut, TQ_SIGNAL( toggled( bool ) ), m_strikeOutItem, TQ_SLOT( setEnabled( bool ) ) ); + TQObject::connect( m_checkShadow, TQ_SIGNAL( toggled( bool ) ), m_shadowYes, TQ_SLOT( setEnabled( bool ) ) ); + TQObject::connect( m_checkWordByWord, TQ_SIGNAL( toggled( bool ) ), m_wordByWordYes, TQ_SLOT( setEnabled( bool ) ) ); + TQObject::connect( m_checkFontAttribute, TQ_SIGNAL( toggled( bool ) ), m_fontAttributeItem, TQ_SLOT( setEnabled( bool ) ) ); + TQObject::connect( m_checkLanguage, TQ_SIGNAL( toggled( bool ) ), m_languageItem, TQ_SLOT( setEnabled( bool ) ) ); - TQObject::connect( m_checkBold, TQT_SIGNAL( toggled( bool ) ), m_boldNo, TQT_SLOT( setEnabled( bool ) ) ); - TQObject::connect( m_checkItalic, TQT_SIGNAL( toggled( bool ) ), m_italicNo, TQT_SLOT( setEnabled( bool ) ) ); - TQObject::connect( m_checkShadow, TQT_SIGNAL( toggled( bool ) ), m_shadowNo, TQT_SLOT( setEnabled( bool ) ) ); - TQObject::connect( m_checkWordByWord, TQT_SIGNAL( toggled( bool ) ), m_wordByWordNo, TQT_SLOT( setEnabled( bool ) ) ); + TQObject::connect( m_checkBold, TQ_SIGNAL( toggled( bool ) ), m_boldNo, TQ_SLOT( setEnabled( bool ) ) ); + TQObject::connect( m_checkItalic, TQ_SIGNAL( toggled( bool ) ), m_italicNo, TQ_SLOT( setEnabled( bool ) ) ); + TQObject::connect( m_checkShadow, TQ_SIGNAL( toggled( bool ) ), m_shadowNo, TQ_SLOT( setEnabled( bool ) ) ); + TQObject::connect( m_checkWordByWord, TQ_SIGNAL( toggled( bool ) ), m_wordByWordNo, TQ_SLOT( setEnabled( bool ) ) ); - TQObject::connect( m_checkVertAlign, TQT_SIGNAL( toggled( bool ) ), m_vertAlignItem, TQT_SLOT( setEnabled( bool ) ) ); + TQObject::connect( m_checkVertAlign, TQ_SIGNAL( toggled( bool ) ), m_vertAlignItem, TQ_SLOT( setEnabled( bool ) ) ); - TQObject::connect( m_checkUnderline, TQT_SIGNAL( toggled( bool ) ), m_underlineItem, TQT_SLOT( setEnabled( bool ) ) ); + TQObject::connect( m_checkUnderline, TQ_SIGNAL( toggled( bool ) ), m_underlineItem, TQ_SLOT( setEnabled( bool ) ) ); slotReset(); } diff --git a/lib/kotext/KoSpell.cpp b/lib/kotext/KoSpell.cpp index 8e96a44f..0f90443b 100644 --- a/lib/kotext/KoSpell.cpp +++ b/lib/kotext/KoSpell.cpp @@ -74,7 +74,7 @@ bool KoSpell::check( KoTextIterator *itr, bool dialog ) return ret; d->itr = itr; - connect( d->itr, TQT_SIGNAL( currentParagraphDeleted() ), TQT_SLOT( slotCurrentParagraphDeleted() ) ); + connect( d->itr, TQ_SIGNAL( currentParagraphDeleted() ), TQ_SLOT( slotCurrentParagraphDeleted() ) ); d->lastTxtDocument = d->itr->currentTextObject()->textDocument(); d->needsIncrement = false; ret = !d->itr->atEnd(); diff --git a/lib/kotext/KoStyleManager.cpp b/lib/kotext/KoStyleManager.cpp index 3ec2e5c1..f00fe0f1 100644 --- a/lib/kotext/KoStyleManager.cpp +++ b/lib/kotext/KoStyleManager.cpp @@ -149,32 +149,32 @@ void KoStyleManager::setupWidget(const KoStyleCollection& styleCollection) m_moveUpButton = new TQPushButton( frame1, "moveUpButton" ); m_moveUpButton->setIconSet( SmallIconSet( "go-up" ) ); - connect( m_moveUpButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( moveUpStyle() ) ); + connect( m_moveUpButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( moveUpStyle() ) ); frame1Layout->addWidget( m_moveUpButton, 1, 1 ); m_moveDownButton = new TQPushButton( frame1, "moveDownButton" ); m_moveDownButton->setIconSet( SmallIconSet( "go-down" ) ); - connect( m_moveDownButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( moveDownStyle() ) ); + connect( m_moveDownButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( moveDownStyle() ) ); frame1Layout->addWidget( m_moveDownButton, 1, 0 ); m_deleteButton = new TQPushButton( frame1, "deleteButton" ); m_deleteButton->setText( i18n( "&Delete" ) ); - connect( m_deleteButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( deleteStyle() ) ); + connect( m_deleteButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( deleteStyle() ) ); frame1Layout->addWidget( m_deleteButton, 2, 1 ); m_newButton = new TQPushButton( frame1, "newButton" ); m_newButton->setText( i18n( "New" ) ); - connect( m_newButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( addStyle() ) ); + connect( m_newButton, TQ_SIGNAL( clicked() ), this, TQ_SLOT( addStyle() ) ); frame1Layout->addWidget( m_newButton, 2, 0 ); m_tabs = new TQTabWidget( frame1 ); frame1Layout->addMultiCellWidget( m_tabs, 0, 2, 2, 2 ); - connect( m_stylesList, TQT_SIGNAL( selectionChanged() ), this, TQT_SLOT( switchStyle() ) ); - connect( m_tabs, TQT_SIGNAL( currentChanged ( TQWidget * ) ), this, TQT_SLOT( switchTabs() ) ); + connect( m_stylesList, TQ_SIGNAL( selectionChanged() ), this, TQ_SLOT( switchStyle() ) ); + connect( m_tabs, TQ_SIGNAL( currentChanged ( TQWidget * ) ), this, TQ_SLOT( switchTabs() ) ); } void KoStyleManager::addGeneralTab( int flags ) { @@ -186,7 +186,7 @@ void KoStyleManager::addGeneralTab( int flags ) { m_nameString = new TQLineEdit( tab ); m_nameString->resize(m_nameString->sizeHint() ); - connect( m_nameString, TQT_SIGNAL( textChanged( const TQString &) ), this, TQT_SLOT( renameStyle(const TQString &) ) ); + connect( m_nameString, TQ_SIGNAL( textChanged( const TQString &) ), this, TQ_SLOT( renameStyle(const TQString &) ) ); tabLayout->addWidget( m_nameString, 0, 1 ); diff --git a/lib/kotext/KoTextIterator.cpp b/lib/kotext/KoTextIterator.cpp index 8ac76173..ca3311ae 100644 --- a/lib/kotext/KoTextIterator.cpp +++ b/lib/kotext/KoTextIterator.cpp @@ -163,10 +163,10 @@ void KoTextIterator::connectTextObjects() { TQValueList<KoTextObject *>::Iterator it = m_lstObjects.begin(); for( ; it != m_lstObjects.end(); ++it ) { - connect( (*it), TQT_SIGNAL( paragraphDeleted( KoTextParag* ) ), - this, TQT_SLOT( slotParagraphDeleted( KoTextParag* ) ) ); - connect( (*it), TQT_SIGNAL( paragraphModified( KoTextParag*, int, int, int ) ), - this, TQT_SLOT( slotParagraphModified( KoTextParag*, int, int, int ) ) ); + connect( (*it), TQ_SIGNAL( paragraphDeleted( KoTextParag* ) ), + this, TQ_SLOT( slotParagraphDeleted( KoTextParag* ) ) ); + connect( (*it), TQ_SIGNAL( paragraphModified( KoTextParag*, int, int, int ) ), + this, TQ_SLOT( slotParagraphModified( KoTextParag*, int, int, int ) ) ); // We don't connect to destroyed(), because for undo/redo purposes, // we never really delete textdocuments nor textobjects. // So this is never called. diff --git a/lib/kotext/KoTextObject.cpp b/lib/kotext/KoTextObject.cpp index cae6e9e4..01eea0fa 100644 --- a/lib/kotext/KoTextObject.cpp +++ b/lib/kotext/KoTextObject.cpp @@ -88,30 +88,30 @@ void KoTextObject::init() m_highlightSelectionAdded = false; interval = 0; changeIntervalTimer = new TQTimer( this ); - connect( changeIntervalTimer, TQT_SIGNAL( timeout() ), - this, TQT_SLOT( doChangeInterval() ) ); + connect( changeIntervalTimer, TQ_SIGNAL( timeout() ), + this, TQ_SLOT( doChangeInterval() ) ); formatTimer = new TQTimer( this ); - connect( formatTimer, TQT_SIGNAL( timeout() ), - this, TQT_SLOT( formatMore() ) ); + connect( formatTimer, TQ_SIGNAL( timeout() ), + this, TQ_SLOT( formatMore() ) ); // Apply default style to initial paragraph if ( m_lastFormatted && m_defaultStyle ) m_lastFormatted->applyStyle( m_defaultStyle ); - connect( textdoc, TQT_SIGNAL( paragraphDeleted( KoTextParag* ) ), - this, TQT_SIGNAL( paragraphDeleted( KoTextParag* ) ) ); - connect( textdoc, TQT_SIGNAL( paragraphDeleted( KoTextParag* ) ), - this, TQT_SLOT( slotParagraphDeleted( KoTextParag* ) ) ); - connect( textdoc, TQT_SIGNAL( newCommand( KCommand* ) ), - this, TQT_SIGNAL( newCommand( KCommand* ) ) ); - connect( textdoc, TQT_SIGNAL( repaintChanged() ), - this, TQT_SLOT( emitRepaintChanged() ) ); + connect( textdoc, TQ_SIGNAL( paragraphDeleted( KoTextParag* ) ), + this, TQ_SIGNAL( paragraphDeleted( KoTextParag* ) ) ); + connect( textdoc, TQ_SIGNAL( paragraphDeleted( KoTextParag* ) ), + this, TQ_SLOT( slotParagraphDeleted( KoTextParag* ) ) ); + connect( textdoc, TQ_SIGNAL( newCommand( KCommand* ) ), + this, TQ_SIGNAL( newCommand( KCommand* ) ) ); + connect( textdoc, TQ_SIGNAL( repaintChanged() ), + this, TQ_SLOT( emitRepaintChanged() ) ); - connect( this, TQT_SIGNAL(paragraphModified( KoTextParag*, int, int , int ) ), - this, TQT_SLOT(slotParagraphModified(KoTextParag *, int, int , int))); - connect( this, TQT_SIGNAL(paragraphCreated( KoTextParag* )), - this, TQT_SLOT(slotParagraphCreated(KoTextParag *))); + connect( this, TQ_SIGNAL(paragraphModified( KoTextParag*, int, int , int ) ), + this, TQ_SLOT(slotParagraphModified(KoTextParag *, int, int , int))); + connect( this, TQ_SIGNAL(paragraphCreated( KoTextParag* )), + this, TQ_SLOT(slotParagraphCreated(KoTextParag *))); } KoTextObject::~KoTextObject() @@ -231,7 +231,7 @@ void KoTextObject::undo() emit setCursor( c ); setLastFormattedParag( textdoc->firstParag() ); delete cursor; - TQTimer::singleShot( 0, this, TQT_SLOT( slotAfterUndoRedo() ) ); + TQTimer::singleShot( 0, this, TQ_SLOT( slotAfterUndoRedo() ) ); } void KoTextObject::redo() @@ -248,7 +248,7 @@ void KoTextObject::redo() emit setCursor( c ); // see undo setLastFormattedParag( textdoc->firstParag() ); delete cursor; - TQTimer::singleShot( 0, this, TQT_SLOT( slotAfterUndoRedo() ) ); + TQTimer::singleShot( 0, this, TQ_SLOT( slotAfterUndoRedo() ) ); } KoTextObject::UndoRedoInfo::UndoRedoInfo( KoTextObject *to ) diff --git a/lib/kotext/KoTextView.cpp b/lib/kotext/KoTextView.cpp index d70f9f72..86f87a54 100644 --- a/lib/kotext/KoTextView.cpp +++ b/lib/kotext/KoTextView.cpp @@ -68,12 +68,12 @@ KoTextView::KoTextView( KoTextObject *textobj ) m_bReadWrite = true; m_textobj = textobj; dcop=0; - connect( m_textobj, TQT_SIGNAL( hideCursor() ), this, TQT_SLOT( hideCursor() ) ); - connect( m_textobj, TQT_SIGNAL( showCursor() ), this, TQT_SLOT( showCursor() ) ); - connect( m_textobj, TQT_SIGNAL( setCursor( KoTextCursor * ) ), this, TQT_SLOT( setCursor( KoTextCursor * ) ) ); - connect( m_textobj, TQT_SIGNAL( updateUI(bool, bool) ), this, TQT_SLOT( updateUI(bool, bool) ) ); - connect( m_textobj, TQT_SIGNAL( showCurrentFormat() ), this, TQT_SLOT( showCurrentFormat() ) ); - connect( m_textobj, TQT_SIGNAL( ensureCursorVisible() ), this, TQT_SLOT( ensureCursorVisible() ) ); + connect( m_textobj, TQ_SIGNAL( hideCursor() ), this, TQ_SLOT( hideCursor() ) ); + connect( m_textobj, TQ_SIGNAL( showCursor() ), this, TQ_SLOT( showCursor() ) ); + connect( m_textobj, TQ_SIGNAL( setCursor( KoTextCursor * ) ), this, TQ_SLOT( setCursor( KoTextCursor * ) ) ); + connect( m_textobj, TQ_SIGNAL( updateUI(bool, bool) ), this, TQ_SLOT( updateUI(bool, bool) ) ); + connect( m_textobj, TQ_SIGNAL( showCurrentFormat() ), this, TQ_SLOT( showCurrentFormat() ) ); + connect( m_textobj, TQ_SIGNAL( ensureCursorVisible() ), this, TQ_SLOT( ensureCursorVisible() ) ); m_cursor = new KoTextCursor( m_textobj->textDocument() ); @@ -81,14 +81,14 @@ KoTextView::KoTextView( KoTextObject *textobj ) showCursor(); blinkTimer = new TQTimer( this ); - connect( blinkTimer, TQT_SIGNAL( timeout() ), - this, TQT_SLOT( blinkCursor() ) ); + connect( blinkTimer, TQ_SIGNAL( timeout() ), + this, TQ_SLOT( blinkCursor() ) ); if ( TQApplication::cursorFlashTime() > 0 ) blinkTimer->start( TQApplication::cursorFlashTime() / 2 ); dragStartTimer = new TQTimer( this ); - connect( dragStartTimer, TQT_SIGNAL( timeout() ), - this, TQT_SLOT( startDrag() ) ); + connect( dragStartTimer, TQ_SIGNAL( timeout() ), + this, TQ_SLOT( startDrag() ) ); m_textobj->formatMore( 2 ); @@ -837,7 +837,7 @@ void KoTextView::handleMouseDoubleClickEvent( TQMouseEvent*ev, const TQPoint& i possibleTripleClick=true; - TQTimer::singleShot(TQApplication::doubleClickInterval(),this,TQT_SLOT(tripleClickTimeout())); + TQTimer::singleShot(TQApplication::doubleClickInterval(),this,TQ_SLOT(tripleClickTimeout())); } void KoTextView::tripleClickTimeout() @@ -855,7 +855,7 @@ void KoTextView::handleMouseTripleClickEvent( TQMouseEvent*ev, const TQPoint& /* afterTripleClick= true; inDoubleClick = FALSE; *m_cursor = selectParagUnderCursor( *m_cursor ); - TQTimer::singleShot(TQApplication::doubleClickInterval(),this,TQT_SLOT(afterTripleClickTimeout())); + TQTimer::singleShot(TQApplication::doubleClickInterval(),this,TQ_SLOT(afterTripleClickTimeout())); } void KoTextView::afterTripleClickTimeout() @@ -1133,7 +1133,7 @@ TQPtrList<TDEAction> KoTextView::dataToolActionList(TDEInstance * instance, cons // Maybe one day we'll have tools that use libkotext (or qt3's qrt), to act on formatted text tools += KDataToolInfo::query( "KoTextString", "application/x-qrichtext", instance ); - return KDataToolAction::dataToolActionList( tools, this, TQT_SLOT( slotToolActivated( const KDataToolInfo &, const TQString & ) ) ); + return KDataToolAction::dataToolActionList( tools, this, TQ_SLOT( slotToolActivated( const KDataToolInfo &, const TQString & ) ) ); } TQString KoTextView::currentWordOrSelection() const diff --git a/lib/kotext/KoVariable.cpp b/lib/kotext/KoVariable.cpp index 0c55f52e..981c0f03 100644 --- a/lib/kotext/KoVariable.cpp +++ b/lib/kotext/KoVariable.cpp @@ -584,7 +584,7 @@ TQPtrList<TDEAction> KoVariableCollection::popupActionList() const // We store the subtype number as the action name TQCString name; name.setNum(i); TDEToggleAction * act = new TDEToggleAction( *it, TDEShortcut(), 0, name ); - connect( act, TQT_SIGNAL(activated()), this, TQT_SLOT(slotChangeSubType()) ); + connect( act, TQ_SIGNAL(activated()), this, TQ_SLOT(slotChangeSubType()) ); if ( i == m_varSelected->subType() ) act->setChecked( true ); //m_subTextMap.insert( act, i ); @@ -608,7 +608,7 @@ TQPtrList<TDEAction> KoVariableCollection::popupActionList() const TQString text = format->convert( m_varSelected->varValue() ); // We store the raw format as the action name TDEToggleAction * act = new TDEToggleAction(text, TDEShortcut(), 0, (*it).utf8()); - connect( act, TQT_SIGNAL(activated()), this, TQT_SLOT(slotChangeFormat()) ); + connect( act, TQ_SIGNAL(activated()), this, TQ_SLOT(slotChangeFormat()) ); if ( (*it) == currentFormat ) act->setChecked( true ); listAction.append( act ); diff --git a/lib/kotext/TimeFormatWidget.cpp b/lib/kotext/TimeFormatWidget.cpp index 5bbd3d1f..b022cce8 100644 --- a/lib/kotext/TimeFormatWidget.cpp +++ b/lib/kotext/TimeFormatWidget.cpp @@ -38,10 +38,10 @@ TimeFormatWidget::TimeFormatWidget( TQWidget* parent, const char* name, WFlags combo2->setCurrentItem( 0 ); label_correction->setText(i18n("Correct in Minutes")); - connect( CheckBox1, TQT_SIGNAL(toggled ( bool )),this,TQT_SLOT(slotPersonalizeChanged(bool))); - connect( combo1, TQT_SIGNAL(activated ( const TQString & )), this, TQT_SLOT(slotDefaultValueChanged(const TQString &))); - connect( combo1, TQT_SIGNAL(textChanged ( const TQString & )), this, TQT_SLOT(slotDefaultValueChanged(const TQString &))); - connect( KIntNumInput1, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT( slotOffsetChanged(int))); + connect( CheckBox1, TQ_SIGNAL(toggled ( bool )),this,TQ_SLOT(slotPersonalizeChanged(bool))); + connect( combo1, TQ_SIGNAL(activated ( const TQString & )), this, TQ_SLOT(slotDefaultValueChanged(const TQString &))); + connect( combo1, TQ_SIGNAL(textChanged ( const TQString & )), this, TQ_SLOT(slotDefaultValueChanged(const TQString &))); + connect( KIntNumInput1, TQ_SIGNAL(valueChanged(int)), this, TQ_SLOT( slotOffsetChanged(int))); slotPersonalizeChanged(false); } |