summaryrefslogtreecommitdiffstats
path: root/kate/openheader/plugin_kateopenheader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kate/openheader/plugin_kateopenheader.cpp')
-rw-r--r--kate/openheader/plugin_kateopenheader.cpp20
1 files changed, 10 insertions, 10 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 );