mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
LibGUI: Convert custom widgets and subclasses to ObjectPtr
This commit is contained in:
parent
15a66dc8ab
commit
defafd72bc
Notes:
sideshowbarker
2024-07-19 12:00:58 +09:00
Author: https://github.com/awesomekling
Commit: defafd72bc
30 changed files with 57 additions and 47 deletions
|
@ -9,7 +9,7 @@ int main(int argc, char** argv)
|
|||
window->set_title("Text Editor");
|
||||
window->set_rect(20, 200, 640, 400);
|
||||
|
||||
auto* text_widget = new TextEditorWidget();
|
||||
auto text_widget = TextEditorWidget::construct();
|
||||
window->set_main_widget(text_widget);
|
||||
|
||||
window->on_close_request = [&]() -> GWindow::CloseRequestDecision {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue