forked from qt-creator/qt-creator
debugger: improve qset dumper manual test
Change-Id: I3868991f22f2dc56b6bd0464f11e7ce7f26efc7a Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -1316,24 +1316,48 @@ namespace application {
|
|||||||
} // namespace application
|
} // namespace application
|
||||||
|
|
||||||
|
|
||||||
|
namespace qset {
|
||||||
|
|
||||||
|
void testQSet1()
|
||||||
|
{
|
||||||
|
QSet<int> s;
|
||||||
|
s.insert(11);
|
||||||
|
s.insert(22);
|
||||||
|
BREAK_HERE;
|
||||||
|
dummyStatement(&s);
|
||||||
|
}
|
||||||
|
|
||||||
|
void testQSet2()
|
||||||
|
{
|
||||||
|
QSet<QString> s;
|
||||||
|
s.insert("11.0");
|
||||||
|
s.insert("22.0");
|
||||||
|
BREAK_HERE;
|
||||||
|
dummyStatement(&s);
|
||||||
|
}
|
||||||
|
|
||||||
|
void testQSet3()
|
||||||
|
{
|
||||||
|
QObject ob;
|
||||||
|
QSet<QPointer<QObject> > s;
|
||||||
|
QPointer<QObject> ptr(&ob);
|
||||||
|
s.insert(ptr);
|
||||||
|
s.insert(ptr);
|
||||||
|
s.insert(ptr);
|
||||||
|
BREAK_HERE;
|
||||||
|
dummyStatement(&ptr, &s);
|
||||||
|
}
|
||||||
|
|
||||||
void testQSet()
|
void testQSet()
|
||||||
{
|
{
|
||||||
QSet<int> hgg0;
|
testQSet1();
|
||||||
hgg0.insert(11);
|
testQSet2();
|
||||||
hgg0.insert(22);
|
testQSet3();
|
||||||
|
|
||||||
QSet<QString> hgg1;
|
|
||||||
hgg1.insert("22.0");
|
|
||||||
|
|
||||||
QObject ob;
|
|
||||||
QSet<QPointer<QObject> > hash;
|
|
||||||
QPointer<QObject> ptr(&ob);
|
|
||||||
dummyStatement(&ptr);
|
|
||||||
//hash.insert(ptr);
|
|
||||||
//hash.insert(ptr);
|
|
||||||
//hash.insert(ptr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace qset
|
||||||
|
|
||||||
|
|
||||||
#if USE_SHARED_POINTER
|
#if USE_SHARED_POINTER
|
||||||
class EmployeeData : public QSharedData
|
class EmployeeData : public QSharedData
|
||||||
{
|
{
|
||||||
@@ -3815,7 +3839,7 @@ int main(int argc, char *argv[])
|
|||||||
testQMultiMap();
|
testQMultiMap();
|
||||||
qstring::testQString();
|
qstring::testQString();
|
||||||
testQUrl();
|
testQUrl();
|
||||||
testQSet();
|
qset::testQSet();
|
||||||
qsharedpointer::testQSharedPointer();
|
qsharedpointer::testQSharedPointer();
|
||||||
qstringlist::testQStringList();
|
qstringlist::testQStringList();
|
||||||
testQScriptValue(argc, argv);
|
testQScriptValue(argc, argv);
|
||||||
|
Reference in New Issue
Block a user