From 7346aee26bf190a7e70333c40fab4caca847cd27 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:22:56 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kate/openheader/plugin_kateopenheader.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'kate/openheader/plugin_kateopenheader.cpp') 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 +#include #include #include #include @@ -36,7 +36,7 @@ class PluginView : public KXMLGUIClient K_EXPORT_COMPONENT_FACTORY( kateopenheaderplugin, KGenericFactory( "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 ); -- cgit v1.2.1