mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
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:
parent
f2a10bda32
commit
f66cac3417
Notes:
github-actions[bot]
2025-06-10 22:12:05 +00:00
Author: https://github.com/trflynn89
Commit: f66cac3417
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5051
Reviewed-by: https://github.com/tcl3 ✅
3 changed files with 8 additions and 9 deletions
|
@ -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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue