summaryrefslogtreecommitdiffstats
path: root/tests/auto/qkeysequence/tst_qkeysequence.cpp
diff options
context:
space:
mode:
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-09-16 14:00:19 (GMT)
committerKim Motoyoshi Kalland <kim.kalland@nokia.com>2009-09-16 14:40:24 (GMT)
commit59dbb1b7e737713fc650c25a20967ec26cc3ff3d (patch)
tree76c94fc0063a26381c9f35844367e5633eeecce5 /tests/auto/qkeysequence/tst_qkeysequence.cpp
parent93df7f3b8e0e29ee7ed75a5f54222f26387cc793 (diff)
downloadQt-59dbb1b7e737713fc650c25a20967ec26cc3ff3d.zip
Qt-59dbb1b7e737713fc650c25a20967ec26cc3ff3d.tar.gz
Qt-59dbb1b7e737713fc650c25a20967ec26cc3ff3d.tar.bz2
Fixed the qkeysequence::translated autotest.
The test failed because it tried to open a .qm file which didn't exist in Qt's translations directory. Fixed by running lrelease on the .ts file and copying the resulting .qm into the test directory. Reviewed-by: Trond
Diffstat (limited to 'tests/auto/qkeysequence/tst_qkeysequence.cpp')
-rw-r--r--tests/auto/qkeysequence/tst_qkeysequence.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qkeysequence/tst_qkeysequence.cpp b/tests/auto/qkeysequence/tst_qkeysequence.cpp
index 9da0671..868f843 100644
--- a/tests/auto/qkeysequence/tst_qkeysequence.cpp
+++ b/tests/auto/qkeysequence/tst_qkeysequence.cpp
@@ -166,9 +166,9 @@ tst_QKeySequence::~tst_QKeySequence()
void tst_QKeySequence::initTestCase()
{
ourTranslator = new QTranslator(this);
- ourTranslator->load(QLatin1String("keys_de"), ".");
+ ourTranslator->load(":/keys_de");
qtTranslator = new QTranslator(this);
- qtTranslator->load(QLatin1String("qt_de"), QLibraryInfo::location(QLibraryInfo::TranslationsPath));
+ qtTranslator->load(":/qt_de");
}
void tst_QKeySequence::operatorQString_data()