8 void DPtrTest::simpleDP()
10 QCOMPARE(ClassWithDptr().num(),0);
11 ClassWithDptr o1;o1.setNum(1);
13 ClassWithDptr o2;o2.setNum(2);
25 void DPtrTest::sharedDP()
27 QCOMPARE(ClassWithSDptr().num(),0);
28 ClassWithSDptr o1;o1.setNum(1);
30 ClassWithSDptr o2;o2.setNum(2);
31 ClassWithSDptr o3(o1);
51 void DPtrTest::noncopyDP()
54 QCOMPARE(np.toString(),(QString)"QObject");