summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-12-12 15:55:42 +1000
committerQt by Nokia <qt-info@nokia.com>2011-12-12 08:50:55 +0100
commitc07b840739d28366004242971d1f4ab7ae1546f3 (patch)
tree073731a29c5ed74035880b1b18ea234fa8644189 /src
parent949aaf9a2ae2d7d012550a2da26fbaa2ef40f288 (diff)
Remove -keyevent-verbose option for autotests.
This option does nothing -- the only function that checks if the option has been set is never called. This appears to have been the case ever since testlib was imported into the Qt repository in October 2005. Change-Id: I837aa957e2d8bd47c3d1c551f1b94d4374daa25e Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/testlib/qtestcase.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/testlib/qtestcase.cpp b/src/testlib/qtestcase.cpp
index a626d3d28d..608b2ca2ea 100644
--- a/src/testlib/qtestcase.cpp
+++ b/src/testlib/qtestcase.cpp
@@ -975,7 +975,6 @@ namespace QTest
static int keyDelay = -1;
static int mouseDelay = -1;
static int eventDelay = -1;
- static int keyVerbose = -1;
#if defined(Q_OS_UNIX)
static bool noCrashHandler = false;
#endif
@@ -1008,14 +1007,6 @@ static void invokeMethod(QObject *obj, const char *methodName)
}
}
-bool Q_TESTLIB_EXPORT defaultKeyVerbose()
-{
- if (keyVerbose == -1) {
- keyVerbose = qgetenv("QTEST_KEYEVENT_VERBOSE").isEmpty() ? 0 : 1;
- }
- return keyVerbose == 1;
-}
-
int defaultEventDelay()
{
if (eventDelay == -1) {
@@ -1197,7 +1188,6 @@ Q_TESTLIB_EXPORT void qtest_qParseArgs(int argc, char *argv[], bool qml)
" -eventdelay ms : Set default delay for mouse and keyboard simulation to ms milliseconds\n"
" -keydelay ms : Set default delay for keyboard simulation to ms milliseconds\n"
" -mousedelay ms : Set default delay for mouse simulation to ms milliseconds\n"
- " -keyevent-verbose : Turn on verbose messages for keyboard simulation\n"
" -maxwarnings n : Sets the maximum amount of messages to output.\n"
" 0 means unlimited, default: 2000\n"
#if defined(Q_OS_UNIX)
@@ -1331,8 +1321,6 @@ Q_TESTLIB_EXPORT void qtest_qParseArgs(int argc, char *argv[], bool qml)
} else if (strcmp(argv[i], "-nocrashhandler") == 0) {
QTest::noCrashHandler = true;
#endif
- } else if (strcmp(argv[i], "-keyevent-verbose") == 0) {
- QTest::keyVerbose = 1;
#ifdef QTESTLIB_USE_VALGRIND
} else if (strcmp(argv[i], "-callgrind") == 0) {
if (QBenchmarkValgrindUtils::haveValgrind())