test: update preferences dialog test

This commit is contained in:
august-alt 2021-09-09 16:46:03 +04:00
parent 2362bc4c87
commit d7cbc01ed0

View File

@ -47,12 +47,12 @@ void PreferencesDialogTest::show()
auto selectionModel = std::make_unique<QItemSelectionModel>(model.get());
auto widget = new gpui::ShortcutsWidget(*model, *selectionModel);
selectionModel->setCurrentIndex(model->item(0, 12)->index(),
QItemSelectionModel::Select | QItemSelectionModel::Rows);
auto preferencesDialog = std::make_unique<gpui::PreferencesDialog>(widget);
auto preferencesDialog = std::make_unique<gpui::PreferencesDialog>(widget, *model, *selectionModel);
preferencesDialog->show();
selectionModel->setCurrentIndex(model->item(0, 0)->index(),
QItemSelectionModel::Select | QItemSelectionModel::Rows);
QTest::qWait(10000);
}