Debugger: Dumper fix.

- If NSX and NSY have quotes for the QT_NAMESPACE case, they need them
  for the non-namespace case too.
- Dumper autotest: Replace hard-coded namespace with compile-time
  dynamic one.
This commit is contained in:
ck
2009-10-14 12:59:39 +02:00
parent f3132c13e0
commit 4ead5b7202
3 changed files with 5 additions and 5 deletions

View File

@@ -100,8 +100,8 @@
#ifdef QT_BOOTSTRAPPED
# define NS ""
# define NSX ""
# define NSY ""
# define NSX "'"
# define NSY "'"
#else

View File

@@ -56,8 +56,8 @@
# define NSY "'"
#else
# define NS ""
# define NSX ""
# define NSY ""
# define NSX "'"
# define NSY "'"
#endif
#if defined(QT_BEGIN_NAMESPACE)

View File

@@ -2243,7 +2243,7 @@ void tst_Debugger::dumpQVariant_QStringList()
{
QVariant v = QStringList() << "Hi";
testDumper("value='(QStringList) ',type='$T',numchild='1',"
"children=[{name='value',exp='(*('myns::QStringList'*)%)',"
"children=[{name='value',exp='(*('"NS"QStringList'*)%)',"
"type='QStringList',numchild='1'}]"
<< QByteArray::number(quintptr(&v)),
&v, NS"QVariant", true);