Commit f626168c authored by hjk's avatar hjk Committed by hjk

debugger: more robust Qt 4 vs Qt 5 detection in dumper

Change-Id: I2a1eb5181e614899f3cd80e0eaec5be9a3e93c77
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 6ae50657
......@@ -587,8 +587,11 @@ def qtMajorVersion():
return qqMajorVersion
try:
# -- Result is returned as character, need to subtract '0'
qqMajorVersion = int(parseAndEvaluate(qtNamespace() + "qVersion()[0]")) - 48
return qqMajorVersion
v = int(parseAndEvaluate("*(char*)qVersion()"))
if v >= 51:
qqMajorVersion = v - 48
return qqMajorVersion
return 0
except:
return 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment