Commit aa5cdd7c authored by Albert Astals Cid's avatar Albert Astals Cid

Better use of kttsd, thanks Gary for the patch

BUG: 98316

svn path=/trunk/kdegraphics/kpdf/; revision=385022
parent 46c06b88
......@@ -1000,8 +1000,16 @@ void PageView::contentsMouseReleaseEvent( QMouseEvent * e )
QDataStream arg( data, IO_WriteOnly );
arg << selectedText;
arg << QString();
QCString replyType;
QByteArray replyData;
// ..and send it to KTTSD
client->send( "kttsd", "KSpeech", "sayMessage(QString,QString)", data );
if (client->call( "kttsd", "KSpeech", "setText(QString,QString)", data, replyType, replyData, true ))
QByteArray data2;
QDataStream arg2(data2, IO_WriteOnly);
arg2 << 0;
client->send("kttsd", "KSpeech", "startText(uint)", data2 );
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment