summaryrefslogtreecommitdiffstats
path: root/kate/openheader/plugin_kateopenheader.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
commit7346aee26bf190a7e70333c40fab4caca847cd27 (patch)
tree4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /kate/openheader/plugin_kateopenheader.cpp
parent23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff)
downloadtdeaddons-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/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 );