@@ -98,16 +98,13 @@ Load the testability driver");
99 resolveIconTheme();
99 resolveIconTheme();
101− std::auto_ptr<ApplicationArguments> appArgs;
101+ ApplicationArguments qmlArgs;
102 if (parser.isSet(windowGeometryOption) &&
102 if (parser.isSet(windowGeometryOption) &&
103− parser.value(windowGeometryOption).split('x').size() == 2) {
103+ parser.value(windowGeometryOption).split('x').size() == 2)
104− QStringList geom =
104+ {
105− parser.value(windowGeometryOption).split('x');
105+ QStringList geom = parser.value(windowGeometryOption).split('x');
106− appArgs.reset(new ApplicationArguments(geom.at(0).toInt(), geom.at(1).toInt()));
106+ qmlArgs.setSize(geom.at(0).toInt(), geom.at(1).toInt());
108− appArgs.reset(new ApplicationArguments());
110− ApplicationArguments& qmlArgs = *appArgs;
112 // The testability driver is only loaded by QApplication but not by QGuiApplication.
109 // The testability driver is only loaded by QApplication but not by QGuiApplication.
113 // However, QApplication depends on QWidget which would add some unneeded overhead => Let's load the testability driver on our own.
110 // However, QApplication depends on QWidget which would add some unneeded overhead => Let's load the testability driver on our own.