summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeir Vattekar <geir.vattekar@nokia.com>2011-03-07 13:21:35 (GMT)
committerGeir Vattekar <geir.vattekar@nokia.com>2011-03-07 13:21:35 (GMT)
commit31f3040b2e4ce4570e381ec410f921918205e3db (patch)
tree7f751d964ad7e76941400f556e749f289dc45ed5
parentfed0493f37b82dd9ebb8a9358d96f19c161afb99 (diff)
downloadQt-31f3040b2e4ce4570e381ec410f921918205e3db.zip
Qt-31f3040b2e4ce4570e381ec410f921918205e3db.tar.gz
Qt-31f3040b2e4ce4570e381ec410f921918205e3db.tar.bz2
Doc: Work on QTranslator::load()
Reviewed-by: David Boddie
-rw-r--r--src/corelib/kernel/qtranslator.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/corelib/kernel/qtranslator.cpp b/src/corelib/kernel/qtranslator.cpp
index d72c1ab..73a32c4 100644
--- a/src/corelib/kernel/qtranslator.cpp
+++ b/src/corelib/kernel/qtranslator.cpp
@@ -354,10 +354,15 @@ QTranslator::~QTranslator()
}
/*!
- Loads \a filename + \a suffix (".qm" if the \a suffix is
- not specified), which may be an absolute file name or relative
- to \a directory. Returns true if the translation is successfully
- loaded; otherwise returns false.
+
+ Loads \a filename + \a suffix (".qm" if the \a suffix is not
+ specified), which may be an absolute file name or relative to \a
+ directory. Returns true if the translation is successfully loaded;
+ otherwise returns false.
+
+ If \a directory is not specified, the directory of the
+ application's executable is used (i.e., as
+ \l{QCoreApplication::}{applicationDirPath()}).
The previous contents of this translator object are discarded.