summaryrefslogtreecommitdiffstats
path: root/parts/grepview/grepviewpart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/grepview/grepviewpart.cpp')
-rw-r--r--parts/grepview/grepviewpart.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/parts/grepview/grepviewpart.cpp b/parts/grepview/grepviewpart.cpp
index 7b1f75d9..6765f87f 100644
--- a/parts/grepview/grepviewpart.cpp
+++ b/parts/grepview/grepviewpart.cpp
@@ -11,9 +11,9 @@
#include "grepviewpart.h"
-#include <qpopupmenu.h>
-#include <qvbox.h>
-#include <qwhatsthis.h>
+#include <tqpopupmenu.h>
+#include <tqvbox.h>
+#include <tqwhatsthis.h>
#include <kdebug.h>
#include <klocale.h>
#include <kaction.h>
@@ -34,24 +34,24 @@ static const KDevPluginInfo data("kdevgrepview");
K_EXPORT_COMPONENT_FACTORY(libkdevgrepview, GrepViewFactory(data))
-GrepViewPart::GrepViewPart( QObject *parent, const char *name, const QStringList & )
+GrepViewPart::GrepViewPart( TQObject *parent, const char *name, const TQStringList & )
: KDevPlugin( &data, parent, name ? name : "GrepViewPart" )
{
setInstance(GrepViewFactory::instance());
setXMLFile("kdevgrepview.rc");
- connect( core(), SIGNAL(stopButtonClicked(KDevPlugin*)),
- this, SLOT(stopButtonClicked(KDevPlugin*)) );
- connect( core(), SIGNAL(projectOpened()), this, SLOT(projectOpened()) );
- connect( core(), SIGNAL(projectClosed()), this, SLOT(projectClosed()) );
- connect( core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)),
- this, SLOT(contextMenu(QPopupMenu *, const Context *)) );
+ connect( core(), TQT_SIGNAL(stopButtonClicked(KDevPlugin*)),
+ this, TQT_SLOT(stopButtonClicked(KDevPlugin*)) );
+ connect( core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(projectOpened()) );
+ connect( core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(projectClosed()) );
+ connect( core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)),
+ this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *)) );
m_widget = new GrepViewWidget(this);
m_widget->setIcon(SmallIcon("grep"));
m_widget->setCaption(i18n("Grep Output"));
- QWhatsThis::add(m_widget, i18n("<b>Find in files</b><p>"
+ TQWhatsThis::add(m_widget, i18n("<b>Find in files</b><p>"
"This window contains the output of a grep "
"command. Clicking on an item in the list "
"will automatically open the corresponding "
@@ -63,7 +63,7 @@ GrepViewPart::GrepViewPart( QObject *parent, const char *name, const QStringList
KAction *action;
action = new KAction(i18n("Find in Fi&les..."), "grep", CTRL+ALT+Key_F,
- this, SLOT(slotGrep()),
+ this, TQT_SLOT(slotGrep()),
actionCollection(), "edit_grep");
action->setToolTip( i18n("Search for expressions over several files") );
action->setWhatsThis( i18n("<b>Find in files</b><p>"
@@ -105,19 +105,19 @@ void GrepViewPart::projectClosed()
}
-void GrepViewPart::contextMenu(QPopupMenu *popup, const Context *context)
+void GrepViewPart::contextMenu(TQPopupMenu *popup, const Context *context)
{
kdDebug(9001) << "context in grepview" << endl;
if (!context->hasType( Context::EditorContext ))
return;
const EditorContext *econtext = static_cast<const EditorContext*>(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("Grep: %1").arg(squeezed),
- this, SLOT(slotContextGrep()) );
+ this, TQT_SLOT(slotContextGrep()) );
popup->setWhatsThis(id, i18n("<b>Grep</b><p>Opens the find in files dialog "
"and sets the pattern to the text under the cursor."));
popup->insertSeparator();
@@ -129,7 +129,7 @@ void GrepViewPart::slotGrep()
{
if ( !m_widget->isRunning() )
{
- QString contextString = KDevEditorUtil::currentSelection( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
+ TQString contextString = KDevEditorUtil::currentSelection( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );
if ( contextString.isEmpty() )
{
contextString = KDevEditorUtil::currentWord( dynamic_cast<KTextEditor::Document*>( partController()->activePart() ) );