mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
TextEditor: Show window icon
This commit is contained in:
parent
7a53096e8d
commit
9724d540b6
Notes:
sideshowbarker
2024-07-19 13:11:56 +09:00
Author: https://github.com/RyanGrieb
Commit: 9724d540b6
Pull-request: https://github.com/SerenityOS/serenity/pull/329
1 changed files with 1 additions and 2 deletions
|
@ -6,10 +6,8 @@ int main(int argc, char** argv)
|
||||||
|
|
||||||
auto* window = new GWindow;
|
auto* window = new GWindow;
|
||||||
window->set_title("Text Editor");
|
window->set_title("Text Editor");
|
||||||
|
|
||||||
window->set_rect(20, 200, 640, 400);
|
window->set_rect(20, 200, 640, 400);
|
||||||
window->set_should_exit_event_loop_on_close(true);
|
window->set_should_exit_event_loop_on_close(true);
|
||||||
window->set_icon_path("/res/icons/TextEditor16.png");
|
|
||||||
|
|
||||||
auto* text_widget = new TextEditorWidget();
|
auto* text_widget = new TextEditorWidget();
|
||||||
window->set_main_widget(text_widget);
|
window->set_main_widget(text_widget);
|
||||||
|
@ -18,6 +16,7 @@ int main(int argc, char** argv)
|
||||||
text_widget->open_sesame(argv[1]);
|
text_widget->open_sesame(argv[1]);
|
||||||
|
|
||||||
window->show();
|
window->show();
|
||||||
|
window->set_icon_path("/res/icons/TextEditor16.png");
|
||||||
|
|
||||||
return app.exec();
|
return app.exec();
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue