forked from qt-creator/qt-creator
fix QSet custom dumper for namespaced Qt
This commit is contained in:
@@ -1869,8 +1869,8 @@ static void qDumpQSet(QDumper &d)
|
||||
d.beginHash();
|
||||
P(d, "name", "[" << i << "]");
|
||||
P(d, "type", d.innertype);
|
||||
P(d, "exp", "(('QHashNode<" << d.innertype
|
||||
<< ",QHashDummyValue>'*)"
|
||||
P(d, "exp", "(('"NS"QHashNode<" << d.innertype
|
||||
<< ","NS"QHashDummyValue>'*)"
|
||||
<< static_cast<const void*>(node) << ")->key"
|
||||
);
|
||||
d.endHash();
|
||||
|
||||
@@ -351,6 +351,23 @@ void testPlugin()
|
||||
}
|
||||
}
|
||||
|
||||
void testSet()
|
||||
{
|
||||
QSet<int> hgg0;
|
||||
hgg0.insert(11);
|
||||
hgg0.insert(22);
|
||||
|
||||
QSet<QString> hgg1;
|
||||
hgg1.insert("22.0");
|
||||
|
||||
QObject ob;
|
||||
QSet<QPointer<QObject> > hash;
|
||||
QPointer<QObject> ptr(&ob);
|
||||
//hash.insert(ptr);
|
||||
//hash.insert(ptr);
|
||||
//hash.insert(ptr);
|
||||
}
|
||||
|
||||
void stringRefTest(const QString &refstring)
|
||||
{
|
||||
Q_UNUSED(refstring);
|
||||
@@ -759,6 +776,7 @@ int main(int argc, char *argv[])
|
||||
testImage();
|
||||
testMap();
|
||||
testString();
|
||||
testSet();
|
||||
testStringList();
|
||||
testStruct();
|
||||
//testThreads();
|
||||
|
||||
Reference in New Issue
Block a user