Changeset View
Changeset View
Standalone View
Standalone View
tests/auto/contextmanagertest.cpp
Context not available. | |||||
64 | manager.selectionModel()->setCurrentIndex(dirModel.index(1, 0), QItemSelectionModel::Select); | 64 | manager.selectionModel()->setCurrentIndex(dirModel.index(1, 0), QItemSelectionModel::Select); | ||
---|---|---|---|---|---|
65 | 65 | | |||
66 | // Remove "b", `manager` should select "c" | 66 | // Remove "b", `manager` should select "c" | ||
67 | sandBox.remove('b'); | 67 | sandBox.remove("b"); | ||
68 | dirModel.dirLister()->updateDirectory(dirUrl); | 68 | dirModel.dirLister()->updateDirectory(dirUrl); | ||
69 | while (dirModel.rowCount() == 3) { | 69 | while (dirModel.rowCount() == 3) { | ||
70 | QTest::qWait(100); | 70 | QTest::qWait(100); | ||
Context not available. | |||||
75 | QCOMPARE(currentIndex.data(Qt::DisplayRole).toString(), QStringLiteral("c")); | 75 | QCOMPARE(currentIndex.data(Qt::DisplayRole).toString(), QStringLiteral("c")); | ||
76 | 76 | | |||
77 | // Remove "c", `manager` should select "a" | 77 | // Remove "c", `manager` should select "a" | ||
78 | sandBox.remove('c'); | 78 | sandBox.remove("c"); | ||
79 | dirModel.dirLister()->updateDirectory(dirUrl); | 79 | dirModel.dirLister()->updateDirectory(dirUrl); | ||
80 | while (dirModel.rowCount() == 2) { | 80 | while (dirModel.rowCount() == 2) { | ||
81 | QTest::qWait(100); | 81 | QTest::qWait(100); | ||
Context not available. |