summaryrefslogtreecommitdiffstats
path: root/kate/openheader
diff options
context:
space:
mode:
Diffstat (limited to 'kate/openheader')
-rw-r--r--kate/openheader/plugin_kateopenheader.cpp20
-rw-r--r--kate/openheader/plugin_kateopenheader.h8
2 files changed, 14 insertions, 14 deletions
diff --git a/kate/openheader/plugin_kateopenheader.cpp b/kate/openheader/plugin_kateopenheader.cpp
index f404022..61cd592 100644
--- a/kate/openheader/plugin_kateopenheader.cpp
+++ b/kate/openheader/plugin_kateopenheader.cpp
@@ -18,7 +18,7 @@
#include "plugin_kateopenheader.h"
#include "plugin_kateopenheader.moc"
-#include <qfileinfo.h>
+#include <tqfileinfo.h>
#include <kgenericfactory.h>
#include <kaction.h>
#include <klocale.h>
@@ -36,7 +36,7 @@ class PluginView : public KXMLGUIClient
K_EXPORT_COMPONENT_FACTORY( kateopenheaderplugin, KGenericFactory<PluginKateOpenHeader>( "kateopenheader" ) )
-PluginKateOpenHeader::PluginKateOpenHeader( QObject* parent, const char* name, const QStringList& )
+PluginKateOpenHeader::PluginKateOpenHeader( TQObject* parent, const char* name, const TQStringList& )
: Kate::Plugin ( (Kate::Application *)parent, name )
{
}
@@ -51,7 +51,7 @@ void PluginKateOpenHeader::addView(Kate::MainWindow *win)
PluginView *view = new PluginView ();
(void) new KAction( i18n("Open .h/.cpp/.c"), Key_F12,
- this, SLOT( slotOpenHeader() ),
+ this, TQT_SLOT( slotOpenHeader() ),
view->actionCollection(), "file_openheader" );
view->setInstance (new KInstance("kate"));
@@ -85,11 +85,11 @@ void PluginKateOpenHeader::slotOpenHeader ()
KURL url=kv->document()->url();
if ((!url.isValid()) || (url.isEmpty())) return;
- QFileInfo info( url.path() );
- QString extension = info.extension().lower();
+ TQFileInfo info( url.path() );
+ TQString extension = info.extension().lower();
- QStringList headers( QStringList() << "h" << "H" << "hh" << "hpp" );
- QStringList sources( QStringList() << "c" << "cpp" << "cc" << "cp" << "cxx" );
+ TQStringList headers( TQStringList() << "h" << "H" << "hh" << "hpp" );
+ TQStringList sources( TQStringList() << "c" << "cpp" << "cc" << "cp" << "cxx" );
if( sources.find( extension ) != sources.end() ) {
tryOpen( url, headers );
@@ -98,15 +98,15 @@ void PluginKateOpenHeader::slotOpenHeader ()
}
}
-void PluginKateOpenHeader::tryOpen( const KURL& url, const QStringList& extensions )
+void PluginKateOpenHeader::tryOpen( const KURL& url, const TQStringList& extensions )
{
if (!application()->activeMainWindow())
return;
kdDebug() << "Trying to open " << url.prettyURL() << " with extensions " << extensions.join(" ") << endl;
- QString basename = QFileInfo( url.path() ).baseName();
+ TQString basename = TQFileInfo( url.path() ).baseName();
KURL newURL( url );
- for( QStringList::ConstIterator it = extensions.begin(); it != extensions.end(); ++it ) {
+ for( TQStringList::ConstIterator it = extensions.begin(); it != extensions.end(); ++it ) {
newURL.setFileName( basename + "." + *it );
if( KIO::NetAccess::exists( newURL ) )
application()->activeMainWindow()->viewManager()->openURL( newURL );
diff --git a/kate/openheader/plugin_kateopenheader.h b/kate/openheader/plugin_kateopenheader.h
index 61b6058..b198a9f 100644
--- a/kate/openheader/plugin_kateopenheader.h
+++ b/kate/openheader/plugin_kateopenheader.h
@@ -18,7 +18,7 @@
#ifndef _PLUGIN_KANT_HEADER_H
#define _PLUGIN_KANT_HEADER_H
-#include <qstring.h>
+#include <tqstring.h>
#include <kate/plugin.h>
#include <kate/application.h>
@@ -33,7 +33,7 @@ class PluginKateOpenHeader : public Kate::Plugin, Kate::PluginViewInterface
Q_OBJECT
public:
- PluginKateOpenHeader( QObject* parent = 0, const char* name = 0, const QStringList& = QStringList() );
+ PluginKateOpenHeader( TQObject* parent = 0, const char* name = 0, const TQStringList& = TQStringList() );
virtual ~PluginKateOpenHeader();
void addView (Kate::MainWindow *win);
@@ -41,10 +41,10 @@ class PluginKateOpenHeader : public Kate::Plugin, Kate::PluginViewInterface
public slots:
void slotOpenHeader ();
- void tryOpen( const KURL& url, const QStringList& extensions );
+ void tryOpen( const KURL& url, const TQStringList& extensions );
private:
- QPtrList<class PluginView> m_views;
+ TQPtrList<class PluginView> m_views;
};
#endif // _PLUGIN_KANT_OPENHEADER_H