diff --git a/tests/units/domain/tasktest.cpp b/tests/units/domain/tasktest.cpp --- a/tests/units/domain/tasktest.cpp +++ b/tests/units/domain/tasktest.cpp @@ -182,7 +182,7 @@ QSignalSpy spy(&t, &Task::startDateChanged); t.setStartDate(QDate(2014, 1, 13)); QCOMPARE(spy.count(), 1); - QCOMPARE(spy.first().first().toDateTime(), QDateTime(QDate(2014, 1, 13))); + QCOMPARE(spy.first().first().toDate(), QDate(2014, 1, 13)); } void shouldNotNotifyIdenticalStartDateChanges() @@ -200,7 +200,7 @@ QSignalSpy spy(&t, &Task::dueDateChanged); t.setDueDate(QDate(2014, 1, 13)); QCOMPARE(spy.count(), 1); - QCOMPARE(spy.first().first().toDateTime(), QDateTime(QDate(2014, 1, 13))); + QCOMPARE(spy.first().first().toDate(), QDate(2014, 1, 13)); } void shouldNotNotifyIdenticalDueDateChanges() diff --git a/tests/units/widgets/applicationcomponentstest.cpp b/tests/units/widgets/applicationcomponentstest.cpp --- a/tests/units/widgets/applicationcomponentstest.cpp +++ b/tests/units/widgets/applicationcomponentstest.cpp @@ -225,9 +225,9 @@ else if (name == "done") emit doneChanged(value.toBool()); else if (name == "startDate") - emit startDateChanged(value.toDateTime()); + emit startDateChanged(value.toDate()); else if (name == "dueDate") - emit dueDateChanged(value.toDateTime()); + emit dueDateChanged(value.toDate()); else if (name == "hasTaskProperties") emit hasTaskPropertiesChanged(value.toBool()); else @@ -238,16 +238,16 @@ void setTitle(const QString &title) { setPropertyAndSignal("title", title); } void setText(const QString &text) { setPropertyAndSignal("text", text); } void setDone(bool done) { setPropertyAndSignal("done", done); } - void setStartDate(const QDateTime &start) { setPropertyAndSignal("startDate", start); } - void setDueDate(const QDateTime &due) { setPropertyAndSignal("dueDate", due); } + void setStartDate(const QDate &start) { setPropertyAndSignal("startDate", start); } + void setDueDate(const QDate &due) { setPropertyAndSignal("dueDate", due); } signals: void hasTaskPropertiesChanged(bool hasTaskProperties); void textChanged(const QString &text); void titleChanged(const QString &title); void doneChanged(bool done); - void startDateChanged(const QDateTime &date); - void dueDateChanged(const QDateTime &due); + void startDateChanged(const QDate &date); + void dueDateChanged(const QDate &due); }; class QuickSelectDialogStub : public Widgets::QuickSelectDialogInterface