mirror of
https://github.com/august-alt/gpui.git
synced 2025-01-20 22:03:47 +03:00
test: update preferences dialog test
This commit is contained in:
parent
2362bc4c87
commit
d7cbc01ed0
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user