diff options
author | David Schulz <david.schulz@digia.com> | 2012-12-05 10:14:13 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-12-05 11:35:16 +0100 |
commit | 2568f8ab2482873cdb11312bf4a29ee1e57a0205 (patch) | |
tree | f90266add5058e99a403c10a0cc57625b2e0e37b /src/corelib/kernel/qtranslator.cpp | |
parent | d7afbdc2d2b6a7eaa02651887b9dc3408f6d4539 (diff) |
QtBase: Doc: Replacing link with snippet in QTranslator.
Because the linguist examples are moved to qttools module, a link
to the hellotr example broke.
Change-Id: I2aeefc143578618396f5be38ed1d52afdd1f7436
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Diffstat (limited to 'src/corelib/kernel/qtranslator.cpp')
-rw-r--r-- | src/corelib/kernel/qtranslator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/kernel/qtranslator.cpp b/src/corelib/kernel/qtranslator.cpp index f934202cf6..58e4f202d5 100644 --- a/src/corelib/kernel/qtranslator.cpp +++ b/src/corelib/kernel/qtranslator.cpp @@ -343,10 +343,10 @@ public: The most common use of QTranslator is to: load a translation file, install it using QCoreApplication::installTranslator(), and use - it via QObject::tr(). Here's the \c main() function from the - \l{linguist/hellotr}{Hello tr()} example: + it via QObject::tr(). Here's an example \c main() function using the + QTranslator: - \snippet linguist/hellotr/main.cpp 2 + \snippet hellotrmain.cpp 0 Note that the translator must be created \e before the application's widgets. |