forked from qt-creator/qt-creator
Squish: Update Qt Quick hooking stuff...
...to differentiate between Qt Quick 1 and Qt Quick 2 when using no additional function on the subprocess. Change-Id: Ia345a1503128be0c5b81a010c438009bf41d93b5 Reviewed-by: Robert Loehning <robert.loehning@digia.com>
This commit is contained in:
@@ -136,13 +136,16 @@ class SubprocessType:
|
||||
USER_DEFINED=3
|
||||
|
||||
@staticmethod
|
||||
def getWindowType(subprocessType):
|
||||
def getWindowType(subprocessType, qtQuickVersion=1):
|
||||
if subprocessType == SubprocessType.QT_WIDGET:
|
||||
return "QMainWindow"
|
||||
if subprocessType == SubprocessType.QT_QUICK_APPLICATION:
|
||||
return "QmlApplicationViewer"
|
||||
return "QtQuick%dApplicationViewer" % qtQuickVersion
|
||||
if subprocessType == SubprocessType.QT_QUICK_UI:
|
||||
return "QDeclarativeViewer"
|
||||
if qtQuickVersion == 1:
|
||||
return "QDeclarativeViewer"
|
||||
else:
|
||||
return "QQuickView"
|
||||
if subprocessType == SubprocessType.USER_DEFINED:
|
||||
return "user-defined"
|
||||
test.fatal("Could not determine the WindowType for SubprocessType %s" % subprocessType)
|
||||
|
Reference in New Issue
Block a user