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

+6
View File
@@ -15,9 +15,13 @@ public:
ContentView *content() const { return m_content; }
ProjectTabStrip *tabs() const { return m_tabs; }
// Canvas Only: the window fills the screen, bars away.
void toggleCanvasOnly();
protected:
void closeEvent(QCloseEvent *event) override;
// Escape leaves fullscreen once nothing is left to cancel.
bool eventFilter(QObject *watched, QEvent *event) override;
private:
void synchronize();
@@ -35,5 +39,7 @@ private:
ContentView *m_content = nullptr;
// Held until its editor goes, as Swift's views hold sessions.
std::shared_ptr<ProjectTab> m_shownTab;
// The window's state before Canvas Only, to put back.
std::optional<Qt::WindowStates> m_beforeCanvasOnly;
QMetaObject::Connection m_sessionWatch;
};