diff options
author | David Boddie <dboddie@trolltech.com> | 2009-11-02 14:27:59 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2009-11-02 14:31:27 (GMT) |
commit | c55c08b38dd902765f476f62369378813c8e804f (patch) | |
tree | e107d51e4b5d5e6ccb74687940deabe6a3cb862c /doc/src/snippets | |
parent | aec81c8e3ec7f2144f2b653e2fa23b0dd732b0d1 (diff) | |
download | Qt-c55c08b38dd902765f476f62369378813c8e804f.zip Qt-c55c08b38dd902765f476f62369378813c8e804f.tar.gz Qt-c55c08b38dd902765f476f62369378813c8e804f.tar.bz2 |
Doc: i18n overhaul for QObject::tr() and the Qt Linguist manual.
Reviewed-by: Trust Me
Diffstat (limited to 'doc/src/snippets')
-rw-r--r-- | doc/src/snippets/code/doc_src_i18n.qdoc | 2 | ||||
-rw-r--r-- | doc/src/snippets/code/src_corelib_kernel_qobject.cpp | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/doc/src/snippets/code/doc_src_i18n.qdoc b/doc/src/snippets/code/doc_src_i18n.qdoc index eca2868..80faabc 100644 --- a/doc/src/snippets/code/doc_src_i18n.qdoc +++ b/doc/src/snippets/code/doc_src_i18n.qdoc @@ -184,7 +184,7 @@ void Clock::setTime(const QTime &time) //! [12] -void QWidget::changeEvent(QEvent *event) +void MyWidget::changeEvent(QEvent *event) { if (e->type() == QEvent::LanguageChange) { titleLabel->setText(tr("Document Title")); diff --git a/doc/src/snippets/code/src_corelib_kernel_qobject.cpp b/doc/src/snippets/code/src_corelib_kernel_qobject.cpp index 4c64374..88d8025 100644 --- a/doc/src/snippets/code/src_corelib_kernel_qobject.cpp +++ b/doc/src/snippets/code/src_corelib_kernel_qobject.cpp @@ -235,9 +235,8 @@ MyWindow::MyWindow() { QLabel *senderLabel = new QLabel(tr("Name:")); QLabel *recipientLabel = new QLabel(tr("Name:", "recipient")); - ... -} //! [17] +} //! [18] |