#warn(" EXP: %s" % exp)
return exp
+qqNs = None
+
def qtNamespace():
+ if not qqNs is None:
+ return qqNs
try:
+ global qqNs
str = catchCliOutput("ptype QString::Null")[0]
# The result looks like:
# "type = const struct myns::QString::Null {"
# "}"
pos1 = str.find("struct") + 7
pos2 = str.find("QString::Null")
- return str[pos1:pos2]
+ qqNs = str[pos1:pos2]
+ return qqNs
except:
return ""
# This is a cache of the namespace of the currently used Qt version.
# FIXME: This is not available on 'bbsetup' time, only at 'bb' time.
-qqNs = ""
# This is a cache of typenames->bool saying whether we are QObject
# derived.
pass
qqFormats[name] = formats
result = "dumpers=["
- qqNs = qtNamespace()
+ #qqNs = qtNamespace() # This is too early
for key, value in qqFormats.items():
result += '{type="%s",formats="%s"},' % (key, value)
- result += '],namespace="%s"' % qqNs
+ result += ']'
+ #result += ',namespace="%s"' % qqNs
result += ',hasInferiorThreadList="%s"' % int(hasInferiorThreadList())
return result
options = []
varList = []
watchers = ""
- resultVarName = ""
+ resultVarName = ""
for arg in args.split(' '):
pos = arg.find(":") + 1
if arg.startswith("options:"):
self.passExceptions = "pe" in options
self.autoDerefPointers = "autoderef" in options
self.partialUpdate = "partial" in options
- #self.ns = qqNs
self.ns = qtNamespace()
- try:
- self.alienSource = catchCliOutput("info source")[0][-3:-1]==".d"
- except:
- self.alienSource = False
+ self.alienSource = False
+ #try:
+ # self.alienSource = catchCliOutput("info source")[0][-3:-1]==".d"
+ #except:
+ # self.alienSource = False
#warn("NAMESPACE: '%s'" % self.ns)
#warn("VARIABLES: %s" % varList)