tests/auto/moc/tst_moc.cpp
changeset 30 5dc02b23752f
parent 19 fcece45ef507
child 33 3e2da88830cd
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
  1300     QCOMPARE(o.value(), 32);
  1300     QCOMPARE(o.value(), 32);
  1301     o.setProperty("value2", 82);
  1301     o.setProperty("value2", 82);
  1302     QCOMPARE(o.value2(), 82);
  1302     QCOMPARE(o.value2(), 82);
  1303 }
  1303 }
  1304 
  1304 
       
  1305 class QTBUG7421_ReturnConstTemplate: public QObject
       
  1306 { Q_OBJECT
       
  1307 public slots:
       
  1308         const QList<int> returnConstTemplate1() { return QList<int>(); }
       
  1309         QList<int> const returnConstTemplate2() { return QList<int>(); }
       
  1310         const int returnConstInt() { return 0; }
       
  1311         const QString returnConstString(const QString s) { return s; }
       
  1312         QString const returnConstString2( QString const s) { return s; }
       
  1313 };
       
  1314 
       
  1315 class QTBUG9354_constInName: public QObject
       
  1316 { Q_OBJECT
       
  1317 public slots:
       
  1318     void slotChooseScientificConst0(struct science_constant const &) {};
       
  1319     void foo(struct science_const const &) {};
       
  1320     void foo(struct constconst const &) {};
       
  1321     void foo(struct constconst *) {};
       
  1322     void foo(struct const_ *) {};
       
  1323 };
       
  1324 
  1305 QTEST_APPLESS_MAIN(tst_Moc)
  1325 QTEST_APPLESS_MAIN(tst_Moc)
  1306 #include "tst_moc.moc"
  1326 #include "tst_moc.moc"
  1307 
  1327 
  1308 
  1328 
  1309 
  1329