summaryrefslogtreecommitdiffstats
path: root/kate/plugins
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-12 11:17:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-15 11:09:32 +0900
commit7f03918f8df7479b0e1a88288066201a301e87bf (patch)
treeef42e0c7ecbd6d292ca5aa7f3aeca141dd65cdb1 /kate/plugins
parentccaaecf59c0e607be633c45ad3b7bb1ef29e981f (diff)
downloadtdelibs-7f03918f8df7479b0e1a88288066201a301e87bf.tar.gz
tdelibs-7f03918f8df7479b0e1a88288066201a301e87bf.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit ba3b5b77e1a430dc7197df20872ba46ce2fb6fa7)
Diffstat (limited to 'kate/plugins')
-rw-r--r--kate/plugins/autobookmarker/autobookmarker.cpp14
-rw-r--r--kate/plugins/insertfile/insertfileplugin.cpp4
-rw-r--r--kate/plugins/isearch/ISearchPlugin.cpp40
-rw-r--r--kate/plugins/kdatatool/kate_kdatatool.cpp8
-rw-r--r--kate/plugins/wordcompletion/docwordcompletion.cpp26
5 files changed, 46 insertions, 46 deletions
diff --git a/kate/plugins/autobookmarker/autobookmarker.cpp b/kate/plugins/autobookmarker/autobookmarker.cpp
index 24d4a122c..06d7c12d2 100644
--- a/kate/plugins/autobookmarker/autobookmarker.cpp
+++ b/kate/plugins/autobookmarker/autobookmarker.cpp
@@ -66,7 +66,7 @@ AutoBookmarker::AutoBookmarker( TQObject *parent,
KTextEditor::ConfigInterfaceExtension()
{
if ( parent )
- connect( parent, TQT_SIGNAL( completed() ), this, TQT_SLOT( slotCompleted() ) );
+ connect( parent, TQ_SIGNAL( completed() ), this, TQ_SLOT( slotCompleted() ) );
}
void AutoBookmarker::addView(KTextEditor::View */*view*/)
@@ -292,7 +292,7 @@ AutoBookmarkerEntEditor::AutoBookmarkerEntEditor( TQWidget *parent, AutoBookmark
TQWhatsThis::add( lePattern, i18n(
"<p>A regular expression. Matching lines will be bookmarked.</p>" ) );
- connect( lePattern, TQT_SIGNAL(textChanged ( const TQString & ) ),this, TQT_SLOT( slotPatternChanged( const TQString& ) ) );
+ connect( lePattern, TQ_SIGNAL(textChanged ( const TQString & ) ),this, TQ_SLOT( slotPatternChanged( const TQString& ) ) );
cbCS = new TQCheckBox( i18n("Case &sensitive"), w );
lo->addMultiCellWidget( cbCS, 1, 1, 0, 2 );
@@ -334,7 +334,7 @@ AutoBookmarkerEntEditor::AutoBookmarkerEntEditor( TQWidget *parent, AutoBookmark
TQToolButton *btnMTW = new TQToolButton(w);
lo->addWidget( btnMTW, 4, 2 );
btnMTW->setIconSet(TQIconSet(SmallIcon("wizard")));
- connect(btnMTW, TQT_SIGNAL(clicked()), this, TQT_SLOT(showMTDlg()));
+ connect(btnMTW, TQ_SIGNAL(clicked()), this, TQ_SLOT(showMTDlg()));
TQWhatsThis::add( btnMTW, i18n(
"<p>Click this button to display a checkable list of mimetypes available "
"on your system. When used, the file masks entry above will be filled in "
@@ -419,10 +419,10 @@ AutoBookmarkerConfigPage::AutoBookmarkerConfigPage( TQWidget *parent, const char
lo1->addStretch( 1 );
- connect( btnNew, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNew()) );
- connect( btnDel, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDel()) );
- connect( btnEdit, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEdit()) );
- connect( lvPatterns, TQT_SIGNAL(doubleClicked(TQListViewItem *)), this, TQT_SLOT(slotEdit()) );
+ connect( btnNew, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotNew()) );
+ connect( btnDel, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotDel()) );
+ connect( btnEdit, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotEdit()) );
+ connect( lvPatterns, TQ_SIGNAL(doubleClicked(TQListViewItem *)), this, TQ_SLOT(slotEdit()) );
m_ents = new ABEntityList();
m_ents->setAutoDelete( true );
diff --git a/kate/plugins/insertfile/insertfileplugin.cpp b/kate/plugins/insertfile/insertfileplugin.cpp
index e2e3d354a..ed6cd3c6f 100644
--- a/kate/plugins/insertfile/insertfileplugin.cpp
+++ b/kate/plugins/insertfile/insertfileplugin.cpp
@@ -76,7 +76,7 @@ InsertFilePluginView::InsertFilePluginView( KTextEditor::View *view, const char
view->insertChildClient( this );
setInstance( KGenericFactory<InsertFilePlugin>::instance() );
_job = 0;
- (void) new TDEAction( i18n("Insert File..."), 0, this, TQT_SLOT(slotInsertFile()), actionCollection(), "tools_insert_file" );
+ (void) new TDEAction( i18n("Insert File..."), 0, this, TQ_SLOT(slotInsertFile()), actionCollection(), "tools_insert_file" );
setXMLFile( "tdetexteditor_insertfileui.rc" );
}
@@ -104,7 +104,7 @@ void InsertFilePluginView::slotInsertFile()
KURL destURL;
destURL.setPath( _tmpfile );
_job = TDEIO::file_copy( _file, destURL, 0600, true, false, true );
- connect( _job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotFinished ( TDEIO::Job * ) ) );
+ connect( _job, TQ_SIGNAL( result( TDEIO::Job * ) ), this, TQ_SLOT( slotFinished ( TDEIO::Job * ) ) );
}
}
diff --git a/kate/plugins/isearch/ISearchPlugin.cpp b/kate/plugins/isearch/ISearchPlugin.cpp
index a7982f63c..306fcf596 100644
--- a/kate/plugins/isearch/ISearchPlugin.cpp
+++ b/kate/plugins/isearch/ISearchPlugin.cpp
@@ -66,11 +66,11 @@ ISearchPluginView::ISearchPluginView( KTextEditor::View *view )
m_searchForwardAction = new TDEAction(
i18n("Search Incrementally"), CTRL+ALT+Key_F,
- this, TQT_SLOT(slotSearchForwardAction()),
+ this, TQ_SLOT(slotSearchForwardAction()),
actionCollection(), "edit_isearch" );
m_searchBackwardAction = new TDEAction(
i18n("Search Incrementally Backwards"), CTRL+ALT+SHIFT+Key_F,
- this, TQT_SLOT(slotSearchBackwardAction()),
+ this, TQ_SLOT(slotSearchBackwardAction()),
actionCollection(), "edit_isearch_reverse" );
m_label = new TQLabel( i18n("I-Search:"), 0L, "tde toolbar widget" );
@@ -84,12 +84,12 @@ ISearchPluginView::ISearchPluginView( KTextEditor::View *view )
m_combo->setDuplicatesEnabled( false );
m_combo->setMaximumWidth( 300 );
m_combo->lineEdit()->installEventFilter( this );
- connect( m_combo, TQT_SIGNAL(textChanged(const TQString&)),
- this, TQT_SLOT(slotTextChanged(const TQString&)) );
- connect( m_combo, TQT_SIGNAL(returnPressed(const TQString&)),
- this, TQT_SLOT(slotReturnPressed(const TQString&)) );
- connect( m_combo, TQT_SIGNAL(aboutToShowContextMenu(TQPopupMenu*)),
- this, TQT_SLOT(slotAddContextMenuItems(TQPopupMenu*)) );
+ connect( m_combo, TQ_SIGNAL(textChanged(const TQString&)),
+ this, TQ_SLOT(slotTextChanged(const TQString&)) );
+ connect( m_combo, TQ_SIGNAL(returnPressed(const TQString&)),
+ this, TQ_SLOT(slotReturnPressed(const TQString&)) );
+ connect( m_combo, TQ_SIGNAL(aboutToShowContextMenu(TQPopupMenu*)),
+ this, TQ_SLOT(slotAddContextMenuItems(TQPopupMenu*)) );
m_comboAction = new KWidgetAction(
m_combo,
i18n("Search"), 0, 0, 0,
@@ -106,8 +106,8 @@ ISearchPluginView::ISearchPluginView( KTextEditor::View *view )
i18n("Case Sensitive"), TDEShortcut(),
actionCollection(), "isearch_case_sensitive" );
action->setShortcutConfigurable( false );
- connect( action, TQT_SIGNAL(toggled(bool)),
- this, TQT_SLOT(setCaseSensitive(bool)) );
+ connect( action, TQ_SIGNAL(toggled(bool)),
+ this, TQ_SLOT(setCaseSensitive(bool)) );
action->setChecked( m_caseSensitive );
optionMenu->insert( action );
@@ -115,8 +115,8 @@ ISearchPluginView::ISearchPluginView( KTextEditor::View *view )
i18n("From Beginning"), TDEShortcut(),
actionCollection(), "isearch_from_beginning" );
action->setShortcutConfigurable( false );
- connect( action, TQT_SIGNAL(toggled(bool)),
- this, TQT_SLOT(setFromBeginning(bool)) );
+ connect( action, TQ_SIGNAL(toggled(bool)),
+ this, TQ_SLOT(setFromBeginning(bool)) );
action->setChecked( m_fromBeginning );
optionMenu->insert( action );
@@ -124,8 +124,8 @@ ISearchPluginView::ISearchPluginView( KTextEditor::View *view )
i18n("Regular Expression"), TDEShortcut(),
actionCollection(), "isearch_reg_exp" );
action->setShortcutConfigurable( false );
- connect( action, TQT_SIGNAL(toggled(bool)),
- this, TQT_SLOT(setRegExp(bool)) );
+ connect( action, TQ_SIGNAL(toggled(bool)),
+ this, TQ_SLOT(setRegExp(bool)) );
action->setChecked( m_regExp );
optionMenu->insert( action );
@@ -134,8 +134,8 @@ ISearchPluginView::ISearchPluginView( KTextEditor::View *view )
// action = new TDEToggleAction(
// i18n("Auto-Wrap Search"), TDEShortcut(),
// actionCollection(), "isearch_auto_wrap" );
-// connect( action, TQT_SIGNAL(toggled(bool)),
-// this, TQT_SLOT(setAutoWrap(bool)) );
+// connect( action, TQ_SIGNAL(toggled(bool)),
+// this, TQ_SLOT(setAutoWrap(bool)) );
// action->setChecked( m_autoWrap );
// optionMenu->insert( action );
@@ -410,13 +410,13 @@ void ISearchPluginView::slotAddContextMenuItems( TQPopupMenu *menu )
if( menu ) {
menu->insertSeparator();
menu->insertItem( i18n("Case Sensitive"), this,
- TQT_SLOT(setCaseSensitive(bool)));
+ TQ_SLOT(setCaseSensitive(bool)));
menu->insertItem( i18n("From Beginning"), this,
- TQT_SLOT(setFromBeginning(bool)));
+ TQ_SLOT(setFromBeginning(bool)));
menu->insertItem( i18n("Regular Expression"), this,
- TQT_SLOT(setRegExp(bool)));
+ TQ_SLOT(setRegExp(bool)));
//menu->insertItem( i18n("Auto-Wrap Search"), this,
- // TQT_SLOT(setAutoWrap(bool)));
+ // TQ_SLOT(setAutoWrap(bool)));
}
}
diff --git a/kate/plugins/kdatatool/kate_kdatatool.cpp b/kate/plugins/kdatatool/kate_kdatatool.cpp
index 607ba33a4..00edb8ced 100644
--- a/kate/plugins/kdatatool/kate_kdatatool.cpp
+++ b/kate/plugins/kdatatool/kate_kdatatool.cpp
@@ -76,7 +76,7 @@ KDataToolPluginView::KDataToolPluginView( KTextEditor::View *view )
setInstance( KGenericFactory<KDataToolPlugin>::instance() );
m_menu = new TDEActionMenu(i18n("Data Tools"), actionCollection(), "popup_dataTool");
- connect(m_menu->popupMenu(), TQT_SIGNAL(aboutToShow()), this, TQT_SLOT(aboutToShow()));
+ connect(m_menu->popupMenu(), TQ_SIGNAL(aboutToShow()), this, TQ_SLOT(aboutToShow()));
setXMLFile("tdetexteditor_kdatatoolui.rc");
m_view = view;
@@ -151,7 +151,7 @@ void KDataToolPluginView::aboutToShow()
m_singleWord_line = line;
} else {
m_notAvailable = new TDEAction(i18n("(not available)"), TQString::null, 0, this,
- TQT_SLOT(slotNotAvailable()), actionCollection(),"dt_n_av");
+ TQ_SLOT(slotNotAvailable()), actionCollection(),"dt_n_av");
m_menu->insert(m_notAvailable);
return;
}
@@ -165,7 +165,7 @@ void KDataToolPluginView::aboutToShow()
tools += KDataToolInfo::query( "TQString", "application/x-singleword", inst );
m_actionList = KDataToolAction::dataToolActionList( tools, this,
- TQT_SLOT( slotToolActivated( const KDataToolInfo &, const TQString & ) ) );
+ TQ_SLOT( slotToolActivated( const KDataToolInfo &, const TQString & ) ) );
for ( ac = m_actionList.first(); ac; ac = m_actionList.next() ) {
m_menu->insert(ac);
@@ -173,7 +173,7 @@ void KDataToolPluginView::aboutToShow()
if( m_actionList.isEmpty() ) {
m_notAvailable = new TDEAction(i18n("(not available)"), TQString::null, 0, this,
- TQT_SLOT(slotNotAvailable()), actionCollection(),"dt_n_av");
+ TQ_SLOT(slotNotAvailable()), actionCollection(),"dt_n_av");
m_menu->insert(m_notAvailable);
}
}
diff --git a/kate/plugins/wordcompletion/docwordcompletion.cpp b/kate/plugins/wordcompletion/docwordcompletion.cpp
index 793f9820c..83933bfce 100644
--- a/kate/plugins/wordcompletion/docwordcompletion.cpp
+++ b/kate/plugins/wordcompletion/docwordcompletion.cpp
@@ -146,15 +146,15 @@ DocWordCompletionPluginView::DocWordCompletionPluginView( uint treshold, bool au
setInstance( KGenericFactory<DocWordCompletionPlugin>::instance() );
(void) new TDEAction( i18n("Reuse Word Above"), CTRL+Key_8, this,
- TQT_SLOT(completeBackwards()), actionCollection(), "doccomplete_bw" );
+ TQ_SLOT(completeBackwards()), actionCollection(), "doccomplete_bw" );
(void) new TDEAction( i18n("Reuse Word Below"), CTRL+Key_9, this,
- TQT_SLOT(completeForwards()), actionCollection(), "doccomplete_fw" );
+ TQ_SLOT(completeForwards()), actionCollection(), "doccomplete_fw" );
(void) new TDEAction( i18n("Pop Up Completion List"), 0, this,
- TQT_SLOT(popupCompletionList()), actionCollection(), "doccomplete_pu" );
+ TQ_SLOT(popupCompletionList()), actionCollection(), "doccomplete_pu" );
(void) new TDEAction( i18n("Shell Completion"), 0, this,
- TQT_SLOT(shellComplete()), actionCollection(), "doccomplete_sh" );
+ TQ_SLOT(shellComplete()), actionCollection(), "doccomplete_sh" );
d->autopopup = new TDEToggleAction( i18n("Automatic Completion Popup"), 0, this,
- TQT_SLOT(toggleAutoPopup()), actionCollection(), "enable_autopopup" );
+ TQ_SLOT(toggleAutoPopup()), actionCollection(), "enable_autopopup" );
d->autopopup->setChecked( autopopup );
toggleAutoPopup();
@@ -168,8 +168,8 @@ DocWordCompletionPluginView::DocWordCompletionPluginView( uint treshold, bool au
if ( ! e.isEmpty() )
d->autopopup->setEnabled( e == "true" );
- connect( view->document(), TQT_SIGNAL(variableChanged(const TQString &, const TQString &)),
- this, TQT_SLOT(slotVariableChanged(const TQString &, const TQString &)) );
+ connect( view->document(), TQ_SIGNAL(variableChanged(const TQString &, const TQString &)),
+ this, TQ_SLOT(slotVariableChanged(const TQString &, const TQString &)) );
}
}
@@ -203,15 +203,15 @@ void DocWordCompletionPluginView::popupCompletionList( TQString w )
void DocWordCompletionPluginView::toggleAutoPopup()
{
if ( d->autopopup->isChecked() ) {
- if ( ! connect( m_view->document(), TQT_SIGNAL(charactersInteractivelyInserted(int ,int ,const TQString&)),
- this, TQT_SLOT(autoPopupCompletionList()) ))
+ if ( ! connect( m_view->document(), TQ_SIGNAL(charactersInteractivelyInserted(int ,int ,const TQString&)),
+ this, TQ_SLOT(autoPopupCompletionList()) ))
{
- connect( m_view->document(), TQT_SIGNAL(textChanged()), this, TQT_SLOT(autoPopupCompletionList()) );
+ connect( m_view->document(), TQ_SIGNAL(textChanged()), this, TQ_SLOT(autoPopupCompletionList()) );
}
} else {
- disconnect( m_view->document(), TQT_SIGNAL(textChanged()), this, TQT_SLOT(autoPopupCompletionList()) );
- disconnect( m_view->document(), TQT_SIGNAL(charactersInteractivelyInserted(int ,int ,const TQString&)),
- this, TQT_SLOT(autoPopupCompletionList()) );
+ disconnect( m_view->document(), TQ_SIGNAL(textChanged()), this, TQ_SLOT(autoPopupCompletionList()) );
+ disconnect( m_view->document(), TQ_SIGNAL(charactersInteractivelyInserted(int ,int ,const TQString&)),
+ this, TQ_SLOT(autoPopupCompletionList()) );
}
}