on xenial help sign in
Also load testability library if QT_LOAD_TESTABILITY is set
commit6e60748cff6863f4c064571c6a83b99d3f61e623 authorMichael Terry <michael.terry@canonical.com> dateFri 27 Sep 2013, 10:09 (13 years ago) parentf72075f
1 file changed+1−1
main.cpp+1−1
main.cpp+1−1
@@ -113,7 +113,7 @@ int startShell(int argc, const char** argv, void* server)
113113
114114 // The testability driver is only loaded by QApplication but not by QGuiApplication.
115115 // However, QApplication depends on QWidget which would add some unneeded overhead => Let's load the testability driver on our own.
116− if (args.contains(QLatin1String("-testability"))) {
116+ if (args.contains(QLatin1String("-testability")) || getenv("QT_LOAD_TESTABILITY")) {
117117 QLibrary testLib(QLatin1String("qttestability"));
118118 if (testLib.load()) {
119119 typedef void (*TasInitialize)(void);