tst_QDateTimeEdit: skip parameters on EditorDateEdit declaration
Its single parameter is a pointer that defaults null, so don't bother passing nullptr, much less 0, as it. Change-Id: Iec68bf388d848c020359001699c971e12266a335 Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
parent
95a74de486
commit
ad61d2860b
@ -406,7 +406,7 @@ void tst_QDateTimeEdit::initTestCase()
|
||||
qWarning("Running under locale %s/%s -- this test may generate failures due to language differences",
|
||||
qPrintable(QLocale::languageToString(system.language())),
|
||||
qPrintable(QLocale::territoryToString(system.territory())));
|
||||
testWidget = new EditorDateEdit(nullptr);
|
||||
testWidget = new EditorDateEdit;
|
||||
testFocusWidget = new QWidget(nullptr);
|
||||
testFocusWidget->resize(200, 100);
|
||||
testFocusWidget->show();
|
||||
@ -3365,7 +3365,7 @@ void tst_QDateTimeEdit::wheelEvent()
|
||||
QFETCH(QDate, startDate);
|
||||
QFETCH(DateList, expectedDates);
|
||||
|
||||
EditorDateEdit edit(0);
|
||||
EditorDateEdit edit;
|
||||
edit.setDate(startDate);
|
||||
edit.setCurrentSection(section);
|
||||
|
||||
@ -4424,7 +4424,7 @@ void tst_QDateTimeEdit::stepModifierButtons()
|
||||
|
||||
testWidget->hide();
|
||||
|
||||
EditorDateEdit edit(0);
|
||||
EditorDateEdit edit;
|
||||
edit.setTime(startTime);
|
||||
edit.show();
|
||||
QVERIFY(QTest::qWaitForWindowActive(&edit));
|
||||
@ -4518,7 +4518,7 @@ void tst_QDateTimeEdit::stepModifierPressAndHold()
|
||||
|
||||
testWidget->hide();
|
||||
|
||||
EditorDateEdit edit(0);
|
||||
EditorDateEdit edit;
|
||||
edit.setDate(startDate);
|
||||
|
||||
QScopedPointer<StepModifierStyle, QScopedPointerDeleteLater> stepModifierStyle(
|
||||
|
Loading…
x
Reference in New Issue
Block a user