14.7: Canvas Only, Toggle Fullscreen on F and Escape

This commit is contained in:
ZacharyZhang-NY committed 2026-10-11 05:38:35 -04:00
1 parent 56f444b1ad
commit e1207281a4
19 files changed
+416 -16

No files matched your search

+2 -2
View File
@@ -49,9 +49,9 @@ void CommandPaletteWindowTests::ctrlFOpensItOverTheWindowAndAgainCloses()
Shown shown;
QAction &search = shown.action("searchCommands");
QVERIFY(search.text() == "Search Commands…" && search.isEnabled());
// First in View, a separator after it.
// First in View; Toggle Fullscreen, then a separator.
const QList<QAction *> view = qobject_cast<QMenu *>(search.parent())->actions();
QVERIFY(view[0] == &search && view[1]->isSeparator());
QVERIFY(view[0] == &search && view[1] == &shown.action("toggleFullscreen") && view[2]->isSeparator());
const QPoint centred = shown.window.frameGeometry().center() - QPoint(230, 145);
shown.open();
QCOMPARE(shown.panel()->size(), QSize(460, 290));