From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- .../visualboyadvance/visualboyadvance_part.cpp | 32 +++++++++++----------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'embedded/visualboyadvance/visualboyadvance_part.cpp') diff --git a/embedded/visualboyadvance/visualboyadvance_part.cpp b/embedded/visualboyadvance/visualboyadvance_part.cpp index ad434b43..da7acb88 100644 --- a/embedded/visualboyadvance/visualboyadvance_part.cpp +++ b/embedded/visualboyadvance/visualboyadvance_part.cpp @@ -1,7 +1,7 @@ #include "visualboyadvance_part.h" -#include -#include +#include +#include #include #include @@ -23,7 +23,7 @@ typedef KDevGenericFactory VisualBoyAdvanceFactory; static const KDevPluginInfo data("kdevvisualboyadvance"); K_EXPORT_COMPONENT_FACTORY( libkdevvisualboyadvance, VisualBoyAdvanceFactory( data ) ) -VisualBoyAdvancePart::VisualBoyAdvancePart(QObject *parent, const char *name, const QStringList &) +VisualBoyAdvancePart::VisualBoyAdvancePart(TQObject *parent, const char *name, const TQStringList &) : KDevPlugin(&data, parent, name){ setInstance(VisualBoyAdvanceFactory::instance()); @@ -31,11 +31,11 @@ VisualBoyAdvancePart::VisualBoyAdvancePart(QObject *parent, const char *name, co KAction *action; action = new KAction( i18n("Execute Program"), "exec", Key_F9, - this, SLOT(slotExecute()), + this, TQT_SLOT(slotExecute()), actionCollection(), "build_execute" ); - connect( core(), SIGNAL(projectConfigWidget(KDialogBase*)), - this, SLOT(projectConfigWidget(KDialogBase*)) ); + connect( core(), TQT_SIGNAL(projectConfigWidget(KDialogBase*)), + this, TQT_SLOT(projectConfigWidget(KDialogBase*)) ); } @@ -45,17 +45,17 @@ VisualBoyAdvancePart::~VisualBoyAdvancePart() } void VisualBoyAdvancePart::slotExecute(){ KDevProject* prj = project(); - QDomDocument &doc = *projectDom(); - QString binary = DomUtil::readEntry(doc, "/kdevvisualadvance/binary"); - QString emulator = DomUtil::readEntry(doc, "/kdevvisualadvance/emulator"); - QString graphicFilter = DomUtil::readEntry(doc, "/kdevvisualadvance/graphicFilter"); - QString scaling = DomUtil::readEntry(doc, "/kdevvisualadvance/scaling"); - QString addOptions = DomUtil::readEntry(doc, "/kdevvisualadvance/addOptions"); + TQDomDocument &doc = *projectDom(); + TQString binary = DomUtil::readEntry(doc, "/kdevvisualadvance/binary"); + TQString emulator = DomUtil::readEntry(doc, "/kdevvisualadvance/emulator"); + TQString graphicFilter = DomUtil::readEntry(doc, "/kdevvisualadvance/graphicFilter"); + TQString scaling = DomUtil::readEntry(doc, "/kdevvisualadvance/scaling"); + TQString addOptions = DomUtil::readEntry(doc, "/kdevvisualadvance/addOptions"); bool terminal = DomUtil::readBoolEntry(doc, "/kdevvisualadvance/terminal"); bool fullscreen = DomUtil::readBoolEntry(doc, "/kdevvisualadvance/fullscreen"); if(emulator.isNull()) emulator = "VisualBoyAdvance"; - QString program = emulator + " " + graphicFilter +" " + scaling + " " + addOptions +" "; + TQString program = emulator + " " + graphicFilter +" " + scaling + " " + addOptions +" "; if(fullscreen){ program += "-F "; } @@ -63,14 +63,14 @@ void VisualBoyAdvancePart::slotExecute(){ program += prj->projectDirectory() + "/" + binary; if (KDevAppFrontend *appFrontend = extension("KDevelop/AppFrontend")) - appFrontend->startAppCommand(QString::QString(), program, terminal); + appFrontend->startAppCommand(TQString::TQString(), program, terminal); } void VisualBoyAdvancePart::projectConfigWidget(KDialogBase *dlg){ - QVBox *vbox; + TQVBox *vbox; vbox = dlg->addVBoxPage(i18n("Run Options"), i18n("Run Options"), BarIcon( "make", KIcon::SizeMedium )); VBAConfigWidget* w = new VBAConfigWidget(this,vbox); - connect( dlg, SIGNAL(okClicked()), w, SLOT(accept()) ); + connect( dlg, TQT_SIGNAL(okClicked()), w, TQT_SLOT(accept()) ); } -- cgit v1.2.3