QDate.setYMD is deprecated, use setDate instead

This commit is contained in:
Àlex Fiestas 2014-09-23 19:44:31 +02:00
parent 0c0cfb711d
commit ced3fb5060

View file

@ -34,7 +34,7 @@ void NetworkPackageTests::initTestCase()
void NetworkPackageTests::dummyTest()
{
QDate date;
date.setYMD( 1967, 3, 11 );
date.setDate( 1967, 3, 11 );
QVERIFY( date.isValid() );
QCOMPARE( date.month(), 3 );
QCOMPARE( QDate::longMonthName(date.month()), QString("March") );