From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- nsplugins/test/testnsplugin.cpp | 38 +++++++++++++++++++------------------- nsplugins/test/testnsplugin.h | 14 +++++++------- 2 files changed, 26 insertions(+), 26 deletions(-) (limited to 'nsplugins/test') diff --git a/nsplugins/test/testnsplugin.cpp b/nsplugins/test/testnsplugin.cpp index 561b4d02d..0d9eadf29 100644 --- a/nsplugins/test/testnsplugin.cpp +++ b/nsplugins/test/testnsplugin.cpp @@ -20,7 +20,7 @@ */ #include -#include +#include #include #include #include @@ -38,15 +38,15 @@ TestNSPlugin::TestNSPlugin() m_loader = NSPluginLoader::instance(); // client area - m_client = new QWidget( this, "m_client" ); + m_client = new TQWidget( this, "m_client" ); setCentralWidget( m_client ); m_client->show(); - m_layout = new QHBoxLayout( m_client ); + m_layout = new TQHBoxLayout( m_client ); // file menu - KStdAction::openNew( this, SLOT(newView()), actionCollection()); - KStdAction::close( this, SLOT(closeView()), actionCollection()); - KStdAction::quit( kapp, SLOT(quit()), actionCollection()); + KStdAction::openNew( this, TQT_SLOT(newView()), actionCollection()); + KStdAction::close( this, TQT_SLOT(closeView()), actionCollection()); + KStdAction::quit( kapp, TQT_SLOT(quit()), actionCollection()); createGUI( "testnspluginui.rc" ); } @@ -62,34 +62,34 @@ TestNSPlugin::~TestNSPlugin() void TestNSPlugin::newView() { - QStringList _argn, _argv; + TQStringList _argn, _argv; - //QString src = "file:/home/sschimanski/kimble_themovie.swf"; - //QString src = "file:/home/sschimanski/in_ani.swf"; - //QString src = "http://homepages.tig.com.au/~dkl/swf/promo.swf"; - //QString mime = "application/x-shockwave-flash"; + //TQString src = "file:/home/sschimanski/kimble_themovie.swf"; + //TQString src = "file:/home/sschimanski/in_ani.swf"; + //TQString src = "http://homepages.tig.com.au/~dkl/swf/promo.swf"; + //TQString mime = "application/x-shockwave-flash"; _argn << "name" << "controls" << "console"; _argv << "audio" << "ControlPanel" << "Clip1"; - QString src = "http://welt.is-kunden.de:554/ramgen/welt/avmedia/realaudio/0701lw177135.rm"; -// QString src = "nothing"; - QString mime = "audio/x-pn-realaudio-plugin"; + TQString src = "http://welt.is-kunden.de:554/ramgen/welt/avmedia/realaudio/0701lw177135.rm"; +// TQString src = "nothing"; + TQString mime = "audio/x-pn-realaudio-plugin"; _argn << "SRC" << "TYPE" << "WIDTH" << "HEIGHT"; _argv << src << mime << "400" << "100"; - QWidget *win = m_loader->newInstance( m_client, src, mime, 1, _argn, _argv, "appid", "callbackid" ); + TQWidget *win = m_loader->newInstance( m_client, src, mime, 1, _argn, _argv, "appid", "callbackid" ); /* _argn << "TYPE" << "WIDTH" << "HEIGHT" << "java_docbase" << "CODE"; _argv << "application/x-java-applet" << "450" << "350" << "file:///none" << "sun/plugin/panel/ControlPanelApplet.class"; - QWidget *win = loader->NewInstance(0, "", "application/x-java-applet", 1, _argn, _argv); + TQWidget *win = loader->NewInstance(0, "", "application/x-java-applet", 1, _argn, _argv); */ if ( win ) { m_plugins.append( win ); - connect( win, SIGNAL(destroyed(NSPluginInstance *)), - this, SLOT(viewDestroyed(NSPluginInstance *)) ); + connect( win, TQT_SIGNAL(destroyed(NSPluginInstance *)), + this, TQT_SLOT(viewDestroyed(NSPluginInstance *)) ); m_layout->addWidget( win ); win->show(); } else @@ -101,7 +101,7 @@ void TestNSPlugin::newView() void TestNSPlugin::closeView() { kdDebug() << "closeView" << endl; - QWidget *win = m_plugins.last(); + TQWidget *win = m_plugins.last(); if ( win ) { m_plugins.remove( win ); diff --git a/nsplugins/test/testnsplugin.h b/nsplugins/test/testnsplugin.h index ac123c175..949de2986 100644 --- a/nsplugins/test/testnsplugin.h +++ b/nsplugins/test/testnsplugin.h @@ -23,11 +23,11 @@ #ifndef __TESTNSPLUGIN_H__ #define __TESTNSPLUGIN_H__ -#include -#include +#include +#include #include -#include -#include +#include +#include class NSPluginLoader; class NSPluginInstance; @@ -47,9 +47,9 @@ public slots: protected: NSPluginLoader *m_loader; - QPtrList m_plugins; - QWidget *m_client; - QBoxLayout *m_layout; + TQPtrList m_plugins; + TQWidget *m_client; + TQBoxLayout *m_layout; }; -- cgit v1.2.1