QDate.setYMD is deprecated, use setDate instead
This commit is contained in:
parent
0c0cfb711d
commit
ced3fb5060
1 changed files with 1 additions and 1 deletions
|
@ -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") );
|
||||
|
|
Loading…
Reference in a new issue