summaryrefslogtreecommitdiffstats
path: root/kate/kpybrowser/pybrowse_part.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kate/kpybrowser/pybrowse_part.cpp')
-rw-r--r--kate/kpybrowser/pybrowse_part.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kate/kpybrowser/pybrowse_part.cpp b/kate/kpybrowser/pybrowse_part.cpp
index d8b7551..4b8490c 100644
--- a/kate/kpybrowser/pybrowse_part.cpp
+++ b/kate/kpybrowser/pybrowse_part.cpp
@@ -25,7 +25,7 @@
#include <klocale.h>
#include <kstandarddirs.h>
#include <kmessagebox.h>
-#include <qimage.h>
+#include <tqimage.h>
#include <kdockwidget.h>
K_EXPORT_COMPONENT_FACTORY( katepybrowseplugin, KGenericFactory<KatePluginPyBrowse>( "katepybrowse" ) )
@@ -34,7 +34,7 @@ PluginViewPyBrowse::PluginViewPyBrowse (Kate::MainWindow *w)
: win (w)
{
(void) new KAction ( i18n("Update Python Browser"), 0, this,
- SLOT( slotUpdatePyBrowser() ), actionCollection(),
+ TQT_SLOT( slotUpdatePyBrowser() ), actionCollection(),
"python_update_pybrowse" );
//set up the menus
@@ -43,8 +43,8 @@ PluginViewPyBrowse::PluginViewPyBrowse (Kate::MainWindow *w)
win->guiFactory()->addClient(this);
//create a python head pixmap for the tab
- QPixmap *py_pixmap = new QPixmap(pybrowse_xpm);
- QImage py_image = py_pixmap->convertToImage().smoothScale(20, 20);
+ TQPixmap *py_pixmap = new TQPixmap(pybrowse_xpm);
+ TQImage py_image = py_pixmap->convertToImage().smoothScale(20, 20);
py_pixmap->convertFromImage(py_image);
//create the browser and put it into a dockwidget using kate's tool view manager
@@ -53,7 +53,7 @@ PluginViewPyBrowse::PluginViewPyBrowse (Kate::MainWindow *w)
my_dock = tool_view_manager->createToolView("kate_plugin_kpybrowser", Kate::ToolViewManager::Left, (*py_pixmap), i18n("Python Browser"));
kpybrowser = new KPyBrowser(my_dock, "kpybrowser");
- connect(kpybrowser, SIGNAL(selected(QString, int)), this, SLOT(slotSelected(QString, int)));
+ connect(kpybrowser, TQT_SIGNAL(selected(TQString, int)), this, TQT_SLOT(slotSelected(TQString, int)));
}
PluginViewPyBrowse::~PluginViewPyBrowse ()
@@ -63,7 +63,7 @@ PluginViewPyBrowse::~PluginViewPyBrowse ()
}
-void PluginViewPyBrowse::slotSelected(QString name, int line)
+void PluginViewPyBrowse::slotSelected(TQString name, int line)
{
//TO DO - deal with setting the active view to be the file that has this class
//if multiple files are open.
@@ -74,7 +74,7 @@ void PluginViewPyBrowse::slotSelected(QString name, int line)
Kate::View *view = win->viewManager()->activeView();
Kate::Document *doc = view->getDoc();
- QString docline = doc->textLine(line);
+ TQString docline = doc->textLine(line);
int numlines = doc->numLines();
int done = 0, apiline = -1, forward_line = line,backward_line = line-1;
while (!done)
@@ -121,7 +121,7 @@ void PluginViewPyBrowse::slotUpdatePyBrowser()
Kate::View *view = viewManager->activeView();
if (view == NULL)
return;
- QString pytext(view->getDoc()->text());
+ TQString pytext(view->getDoc()->text());
kpybrowser->parseText(pytext);
}
@@ -130,7 +130,7 @@ void PluginViewPyBrowse::slotShowPyBrowser()
//TO DO implement this later so that you can turn the browser off and on
}
-KatePluginPyBrowse::KatePluginPyBrowse( QObject* parent, const char* name, const QStringList& )
+KatePluginPyBrowse::KatePluginPyBrowse( TQObject* parent, const char* name, const TQStringList& )
: Kate::Plugin ( (Kate::Application *)parent, name )
{
}