Changeset View
Changeset View
Standalone View
Standalone View
tests/units/widgets/editorviewtest.cpp
Show First 20 Lines • Show All 297 Lines • ▼ Show 20 Line(s) | 284 | { | |||
---|---|---|---|---|---|
298 | auto startDateEdit = editor.findChild<KPIM::KDateEdit*>(QStringLiteral("startDateEdit")); | 298 | auto startDateEdit = editor.findChild<KPIM::KDateEdit*>(QStringLiteral("startDateEdit")); | ||
299 | auto dueDateEdit = editor.findChild<KPIM::KDateEdit*>(QStringLiteral("dueDateEdit")); | 299 | auto dueDateEdit = editor.findChild<KPIM::KDateEdit*>(QStringLiteral("dueDateEdit")); | ||
300 | auto recurrenceCombo = editor.findChild<QComboBox*>(QStringLiteral("recurrenceCombo")); | 300 | auto recurrenceCombo = editor.findChild<QComboBox*>(QStringLiteral("recurrenceCombo")); | ||
301 | auto doneButton = editor.findChild<QAbstractButton*>(QStringLiteral("doneButton")); | 301 | auto doneButton = editor.findChild<QAbstractButton*>(QStringLiteral("doneButton")); | ||
302 | editor.setModel(&model); | 302 | editor.setModel(&model); | ||
303 | 303 | | |||
304 | // WHEN | 304 | // WHEN | ||
305 | editor.show(); | 305 | editor.show(); | ||
306 | QVERIFY(QTest::qWaitForWindowShown(&editor)); | 306 | QVERIFY(QTest::qWaitForWindowExposed(&editor)); | ||
307 | editor.activateWindow(); | 307 | editor.activateWindow(); | ||
308 | textEdit->setFocus(); | 308 | textEdit->setFocus(); | ||
309 | model.setTitle("New title"); | 309 | model.setTitle("New title"); | ||
310 | model.setText("New text"); | 310 | model.setText("New text"); | ||
311 | startDateEdit->setFocus(); | 311 | startDateEdit->setFocus(); | ||
312 | model.setStartDate(QDate::currentDate().addDays(1)); | 312 | model.setStartDate(QDate::currentDate().addDays(1)); | ||
313 | dueDateEdit->setFocus(); | 313 | dueDateEdit->setFocus(); | ||
314 | model.setDueDate(QDate::currentDate().addDays(3)); | 314 | model.setDueDate(QDate::currentDate().addDays(3)); | ||
▲ Show 20 Lines • Show All 332 Lines • Show Last 20 Lines |