diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
commit | 7346aee26bf190a7e70333c40fab4caca847cd27 (patch) | |
tree | 4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /kate/openheader | |
parent | 23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff) | |
download | tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/openheader')
-rw-r--r-- | kate/openheader/plugin_kateopenheader.cpp | 20 | ||||
-rw-r--r-- | kate/openheader/plugin_kateopenheader.h | 8 |
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 |