tests/auto/qvariant/tst_qvariant.cpp
changeset 19 fcece45ef507
parent 18 2f34d5167611
child 30 5dc02b23752f
equal deleted inserted replaced
18:2f34d5167611 19:fcece45ef507
  1966         hash2.insert( "X", 1 );
  1966         hash2.insert( "X", 1 );
  1967         hash2.insert( "Y", 1 );
  1967         hash2.insert( "Y", 1 );
  1968 
  1968 
  1969         QTest::newRow("HashSecondLarger") << QVariant(hash1) << QVariant(hash2) << false;
  1969         QTest::newRow("HashSecondLarger") << QVariant(hash1) << QVariant(hash2) << false;
  1970     }
  1970     }
       
  1971 
       
  1972     QTest::newRow( "UserType" ) << QVariant(QVariant::UserType) << QVariant(QVariant::UserType) << true;
       
  1973     QVariant mUserType(QVariant::UserType);
       
  1974     QTest::newRow( "Shared UserType" ) << mUserType << mUserType << true;
  1971 }
  1975 }
  1972 
  1976 
  1973 void tst_QVariant::operator_eq_eq()
  1977 void tst_QVariant::operator_eq_eq()
  1974 {
  1978 {
  1975     QFETCH( QVariant, left );
  1979     QFETCH( QVariant, left );