From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- parts/replace/replace_part.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'parts/replace/replace_part.cpp') diff --git a/parts/replace/replace_part.cpp b/parts/replace/replace_part.cpp index 6e1312ed..7a64cac8 100644 --- a/parts/replace/replace_part.cpp +++ b/parts/replace/replace_part.cpp @@ -10,7 +10,7 @@ ***************************************************************************/ #include "replace_part.h" -#include +#include #include #include @@ -29,7 +29,7 @@ static const KDevPluginInfo data("kdevreplace"); typedef KDevGenericFactory ReplaceFactory; K_EXPORT_COMPONENT_FACTORY(libkdevreplace, ReplaceFactory(data)) -ReplacePart::ReplacePart(QObject *parent, const char *name, const QStringList& ) +ReplacePart::ReplacePart(TQObject *parent, const char *name, const TQStringList& ) : KDevPlugin( &data, parent, name ? name : "ReplacePart" ) { setInstance(ReplaceFactory::instance()); @@ -39,7 +39,7 @@ ReplacePart::ReplacePart(QObject *parent, const char *name, const QStringList& ) m_widget->setIcon( SmallIcon("filefind") ); m_widget->setCaption(i18n("Replace")); - QWhatsThis::add + TQWhatsThis::add (m_widget, i18n("Replace

" "This window shows a preview of a string replace " "operation. Uncheck a line to exclude that replacement. " @@ -53,7 +53,7 @@ ReplacePart::ReplacePart(QObject *parent, const char *name, const QStringList& ) mainWindow()->setViewAvailable( m_widget, false ); action = new KAction(i18n("Find-Select-Replace..."), 0, - CTRL+SHIFT+Key_R, this, SLOT(slotReplace()), actionCollection(), "edit_replace_across"); + CTRL+SHIFT+Key_R, this, TQT_SLOT(slotReplace()), actionCollection(), "edit_replace_across"); action->setToolTip( i18n("Project wide string replacement") ); action->setWhatsThis( i18n("Find-Select-Replace

" "Opens the project wide string replacement dialog. There you " @@ -62,9 +62,9 @@ ReplacePart::ReplacePart(QObject *parent, const char *name, const QStringList& ) "you specify. Matches will be displayed in the Replace window, you " "can replace them with the specified string, exclude them from replace operation or cancel the whole replace.") ); - connect( core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)), this, SLOT(contextMenu(QPopupMenu *, const Context *)) ); - connect( core(), SIGNAL(projectOpened()), this, SLOT(enableAction())); - connect( core(), SIGNAL(projectClosed()), this, SLOT(disableAction())); + connect( core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)), this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)) ); + connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(enableAction())); + connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(disableAction())); } void ReplacePart::enableAction() @@ -89,18 +89,18 @@ void ReplacePart::slotReplace() m_widget->showDialog(); } -void ReplacePart::contextMenu(QPopupMenu *popup, const Context *context) +void ReplacePart::contextMenu(TQPopupMenu *popup, const Context *context) { if (!context->hasType( Context::EditorContext )) return; const EditorContext *econtext = static_cast(context); - QString ident = econtext->currentWord(); + TQString ident = econtext->currentWord(); if (!ident.isEmpty()) { m_popupstr = ident; - QString squeezed = KStringHandler::csqueeze(ident, 30); + TQString squeezed = KStringHandler::csqueeze(ident, 30); int id = popup->insertItem( i18n("Replace Project Wide: %1").arg(squeezed), - this, SLOT(slotReplace()) ); + this, TQT_SLOT(slotReplace()) ); popup->setWhatsThis(id, i18n("Replace Project Wide

Opens the find in files dialog " "and sets the pattern to the text under the cursor.")); popup->insertSeparator(); -- cgit v1.2.1