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 --- konqueror/kttsplugin/khtmlkttsd.cpp | 44 ++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'konqueror/kttsplugin/khtmlkttsd.cpp') diff --git a/konqueror/kttsplugin/khtmlkttsd.cpp b/konqueror/kttsplugin/khtmlkttsd.cpp index cda947223..e832bd27a 100644 --- a/konqueror/kttsplugin/khtmlkttsd.cpp +++ b/konqueror/kttsplugin/khtmlkttsd.cpp @@ -22,18 +22,18 @@ #include #include #include -#include +#include #include -#include -#include +#include +#include #include -#include +#include #include #include #include -KHTMLPluginKTTSD::KHTMLPluginKTTSD( QObject* parent, const char* name, const QStringList& ) +KHTMLPluginKTTSD::KHTMLPluginKTTSD( TQObject* parent, const char* name, const TQStringList& ) : Plugin( parent, name ) { // If KTTSD is not installed, hide action. @@ -42,7 +42,7 @@ KHTMLPluginKTTSD::KHTMLPluginKTTSD( QObject* parent, const char* name, const QSt { (void) new KAction( i18n("&Speak Text"), "kttsd", 0, - this, SLOT(slotReadOut()), + this, TQT_SLOT(slotReadOut()), actionCollection(), "tools_kttsd" ); } else @@ -57,7 +57,7 @@ void KHTMLPluginKTTSD::slotReadOut() { // The parent is assumed to be a KHTMLPart if ( !parent()->inherits("KHTMLPart") ) - QMessageBox::warning( 0, i18n( "Cannot Read source" ), + TQMessageBox::warning( 0, i18n( "Cannot Read source" ), i18n( "You cannot read anything except web pages with\n" "this plugin, sorry." )); else @@ -66,34 +66,34 @@ void KHTMLPluginKTTSD::slotReadOut() DCOPClient *client = kapp->dcopClient(); if (!client->isApplicationRegistered("kttsd")) { - QString error; - if (kapp->startServiceByDesktopName("kttsd", QStringList(), &error)) - QMessageBox::warning(0, i18n( "Starting KTTSD Failed"), error ); + TQString error; + if (kapp->startServiceByDesktopName("kttsd", TQStringList(), &error)) + TQMessageBox::warning(0, i18n( "Starting KTTSD Failed"), error ); } // Find out if KTTSD supports xhtml (rich speak). - QByteArray data; - QBuffer dataBuf(data); - QDataStream arg; + TQByteArray data; + TQBuffer dataBuf(data); + TQDataStream arg; dataBuf.open(IO_WriteOnly); arg.setDevice(&dataBuf); arg << "" << KSpeech::mtHtml; - QCString replyType; - QByteArray replyData; + TQCString replyType; + TQByteArray replyData; bool supportsXhtml = false; - if ( !client->call("kttsd", "KSpeech", "supportsMarkup(QString,uint)", + if ( !client->call("kttsd", "KSpeech", "supportsMarkup(TQString,uint)", data, replyType, replyData, true) ) - QMessageBox::warning( 0, i18n( "DCOP Call Failed" ), + TQMessageBox::warning( 0, i18n( "DCOP Call Failed" ), i18n( "The DCOP call supportsMarkup failed." )); else { - QDataStream reply(replyData, IO_ReadOnly); + TQDataStream reply(replyData, IO_ReadOnly); reply >> supportsXhtml; } KHTMLPart *part = (KHTMLPart *) parent(); - QString query; + TQString query; if (supportsXhtml) { kdDebug() << "KTTS claims to support rich speak (XHTML to SSML)." << endl; @@ -120,15 +120,15 @@ void KHTMLPluginKTTSD::slotReadOut() dataBuf.at(0); // reset data arg << query << ""; - if ( !client->call("kttsd", "KSpeech", "setText(QString,QString)", + if ( !client->call("kttsd", "KSpeech", "setText(TQString,TQString)", data, replyType, replyData, true) ) - QMessageBox::warning( 0, i18n( "DCOP Call Failed" ), + TQMessageBox::warning( 0, i18n( "DCOP Call Failed" ), i18n( "The DCOP call setText failed." )); dataBuf.at(0); arg << 0; if ( !client->call("kttsd", "KSpeech", "startText(uint)", data, replyType, replyData, true) ) - QMessageBox::warning( 0, i18n( "DCOP Call Failed" ), + TQMessageBox::warning( 0, i18n( "DCOP Call Failed" ), i18n( "The DCOP call startText failed." )); } } -- cgit v1.2.1