forked from qt-creator/qt-creator
Debugger: Make QLocale dumper test pass
Still requires an inferior call. Change-Id: I98000f0236ec09094e7792f8d6fa3e156f324fcb Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -761,18 +761,21 @@ def qdump__QLocale(d, value):
|
||||
# QLocale data array from variable in qlocale.cpp.
|
||||
# Default is 368 in Qt 4.8, 438 in Qt 5.0.1, the last one
|
||||
# being 'System'.
|
||||
global qqLocalesCount
|
||||
if qqLocalesCount is None:
|
||||
try:
|
||||
qqLocalesCount = int(value(d.ns + 'locale_data_size'))
|
||||
except:
|
||||
qqLocalesCount = 438
|
||||
try:
|
||||
index = int(value["p"]["index"])
|
||||
except:
|
||||
index = int(value["d"]["d"]["m_index"])
|
||||
check(index >= 0)
|
||||
check(index <= qqLocalesCount)
|
||||
#global qqLocalesCount
|
||||
#if qqLocalesCount is None:
|
||||
# #try:
|
||||
# qqLocalesCount = int(value(d.ns + 'locale_data_size'))
|
||||
# #except:
|
||||
# qqLocalesCount = 438
|
||||
#try:
|
||||
# index = int(value["p"]["index"])
|
||||
#except:
|
||||
# try:
|
||||
# index = int(value["d"]["d"]["m_index"])
|
||||
# except:
|
||||
# index = int(value["d"]["d"]["m_data"]...)
|
||||
#check(index >= 0)
|
||||
#check(index <= qqLocalesCount)
|
||||
d.putStringValue(call(value, "name"))
|
||||
d.putNumChild(0)
|
||||
return
|
||||
|
Reference in New Issue
Block a user