diff options
author | Petri Kiiskinen <ext-petri.ak.kiiskinen@nokia.com> | 2009-09-29 09:06:40 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-09-29 09:07:27 (GMT) |
commit | d2459611fd3650d8c80a3ccafd9ec3d58457a888 (patch) | |
tree | 7b154874c33075fe54c1cf9619b24e9f500b84a0 /src/corelib/kernel | |
parent | 777c02085e0f30d0dceb57a9ac96a44999b4a028 (diff) | |
download | Qt-d2459611fd3650d8c80a3ccafd9ec3d58457a888.zip Qt-d2459611fd3650d8c80a3ccafd9ec3d58457a888.tar.gz Qt-d2459611fd3650d8c80a3ccafd9ec3d58457a888.tar.bz2 |
Add the -testability option to Qt applications.
If this option is given, Qt will load a plugin called "qttestability"
and run an initialisation function from it. This allows one to just
install the plugin in a non-debug device in order to enable testing.
Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
Diffstat (limited to 'src/corelib/kernel')
-rw-r--r-- | src/corelib/kernel/qcoreapplication.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index 61b9ee7..8a55bad 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -2067,7 +2067,8 @@ QStringList QCoreApplication::arguments() ; else if (l1arg == "-style" || l1arg == "-session" || - l1arg == "-graphicssystem") + l1arg == "-graphicssystem" || + l1arg == "-testability") ++a; else stripped += arg; |