forked from qt-creator/qt-creator
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:
@@ -100,8 +100,8 @@
|
||||
#ifdef QT_BOOTSTRAPPED
|
||||
|
||||
# define NS ""
|
||||
# define NSX ""
|
||||
# define NSY ""
|
||||
# define NSX "'"
|
||||
# define NSY "'"
|
||||
|
||||
#else
|
||||
|
||||
|
@@ -56,8 +56,8 @@
|
||||
# define NSY "'"
|
||||
#else
|
||||
# define NS ""
|
||||
# define NSX ""
|
||||
# define NSY ""
|
||||
# define NSX "'"
|
||||
# define NSY "'"
|
||||
#endif
|
||||
|
||||
#if defined(QT_BEGIN_NAMESPACE)
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user