summaryrefslogtreecommitdiffstats
path: root/nsplugins/test
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:33:34 +0000
commitc663b6440964f6ac48027143ac9e63298991f9d0 (patch)
tree6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /nsplugins/test
parenta061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff)
downloadtdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz
tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'nsplugins/test')
-rw-r--r--nsplugins/test/testnsplugin.cpp38
-rw-r--r--nsplugins/test/testnsplugin.h14
2 files changed, 26 insertions, 26 deletions
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 <stdio.h>
-#include <qstring.h>
+#include <tqstring.h>
#include <kapplication.h>
#include <kcmdlineargs.h>
#include <dcopclient.h>
@@ -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 <qstring.h>
-#include <qwidget.h>
+#include <tqstring.h>
+#include <tqwidget.h>
#include <kmainwindow.h>
-#include <qlayout.h>
-#include <qptrlist.h>
+#include <tqlayout.h>
+#include <tqptrlist.h>
class NSPluginLoader;
class NSPluginInstance;
@@ -47,9 +47,9 @@ public slots:
protected:
NSPluginLoader *m_loader;
- QPtrList<QWidget> m_plugins;
- QWidget *m_client;
- QBoxLayout *m_layout;
+ TQPtrList<TQWidget> m_plugins;
+ TQWidget *m_client;
+ TQBoxLayout *m_layout;
};