LibWebView+UI: Define concrete Application::the accessor automatically

This avoids assuming that the Qt Application is a QApplication, which
will not be the case in an upcoming commit.
This commit is contained in:
Timothy Flynn 2025-06-10 14:50:23 -04:00 committed by Tim Ledbetter
commit f66cac3417
Notes: github-actions[bot] 2025-06-10 22:12:05 +00:00
3 changed files with 8 additions and 9 deletions

View file

@ -164,4 +164,9 @@ public: \
return WebView::Application::create<ApplicationType>(arguments); \
} \
\
static ApplicationType& the() \
{ \
return static_cast<ApplicationType&>(WebView::Application::the()); \
} \
\
ApplicationType(Badge<WebView::Application>, Main::Arguments&);