on xenial help sign in
Also load testability library if QT_LOAD_TESTABILITY is set
6e60748Michael Terry
main.cpp+1−1
@@ -113,7 +113,7 @@ int startShell(int argc, const char** argv, void* server)
113
113
114 // The testability driver is only loaded by QApplication but not by QGuiApplication.
114 // The testability driver is only loaded by QApplication but not by QGuiApplication.
115 // However, QApplication depends on QWidget which would add some unneeded overhead => Let's load the testability driver on our own.
115 // 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")) {
117 QLibrary testLib(QLatin1String("qttestability"));
117 QLibrary testLib(QLatin1String("qttestability"));
118 if (testLib.load()) {
118 if (testLib.load()) {
119 typedef void (*TasInitialize)(void);
119 typedef void (*TasInitialize)(void);