summaryrefslogtreecommitdiffstats
path: root/examples/help
diff options
context:
space:
mode:
authorck <qt-info@nokia.com>2009-11-11 13:35:17 (GMT)
committerck <qt-info@nokia.com>2009-11-11 14:20:18 (GMT)
commit96592943598151ea3f64364eab3475904931ca16 (patch)
tree41488c1b2c49915c355212c2d5dd138e5dbe025a /examples/help
parent7af4abab649d1ea4f9c8289a58b9d479237bd815 (diff)
downloadQt-96592943598151ea3f64364eab3475904931ca16.zip
Qt-96592943598151ea3f64364eab3475904931ca16.tar.gz
Qt-96592943598151ea3f64364eab3475904931ca16.tar.bz2
Assistant: Update documentation for remote commands.
- Assistant understands a newline character as well as '\0' to mark the end of a remote command. Since the former is considerably less complicated to do and to explain, the documentation now uses that approach. - The related examples have been updated accordingly. - The qdoc file now uses the encoding it promises in the header. Reviewed-by: kh1 Reviewed-by: David Boddie
Diffstat (limited to 'examples/help')
-rw-r--r--examples/help/remotecontrol/remotecontrol.cpp2
-rw-r--r--examples/help/simpletextviewer/assistant.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/help/remotecontrol/remotecontrol.cpp b/examples/help/remotecontrol/remotecontrol.cpp
index adb92d0..9dc166e 100644
--- a/examples/help/remotecontrol/remotecontrol.cpp
+++ b/examples/help/remotecontrol/remotecontrol.cpp
@@ -123,7 +123,7 @@ void RemoteControl::sendCommand(const QString &cmd)
{
if (process->state() != QProcess::Running)
return;
- process->write(cmd.toLocal8Bit() + '\0');
+ process->write(cmd.toLocal8Bit() + '\n');
}
void RemoteControl::on_indexButton_clicked()
diff --git a/examples/help/simpletextviewer/assistant.cpp b/examples/help/simpletextviewer/assistant.cpp
index ab20f3e..2807365 100644
--- a/examples/help/simpletextviewer/assistant.cpp
+++ b/examples/help/simpletextviewer/assistant.cpp
@@ -73,7 +73,7 @@ void Assistant::showDocumentation(const QString &page)
QByteArray ba("SetSource ");
ba.append("qthelp://com.trolltech.examples.simpletextviewer/doc/");
- proc->write(ba + page.toLocal8Bit() + '\0');
+ proc->write(ba + page.toLocal8Bit() + '\n');
}
//! [1]