mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:48:11 +00:00
Port all apps to GApplication.
This commit is contained in:
parent
9483b39227
commit
3351f1ccc1
10 changed files with 48 additions and 106 deletions
|
@ -1,10 +1,12 @@
|
|||
#include "FontEditor.h"
|
||||
#include <LibGUI/GEventLoop.h>
|
||||
#include <LibGUI/GApplication.h>
|
||||
#include <LibGUI/GWindow.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
GApplication app(argc, argv);
|
||||
|
||||
RetainPtr<Font> edited_font;
|
||||
String path;
|
||||
|
||||
|
@ -22,7 +24,6 @@ int main(int argc, char** argv)
|
|||
else
|
||||
edited_font = Font::default_font().clone();
|
||||
|
||||
GEventLoop loop;
|
||||
auto* window = new GWindow;
|
||||
window->set_title("FontEditor");
|
||||
window->set_rect({ 50, 50, 420, 200 });
|
||||
|
@ -31,5 +32,5 @@ int main(int argc, char** argv)
|
|||
window->set_main_widget(font_editor);
|
||||
window->set_should_exit_app_on_close(true);
|
||||
window->show();
|
||||
return loop.exec();
|
||||
return app.exec();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue