mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 19:45:08 +00:00
Fix a bunch of compiler warnings. Not all, but a lot.
This commit is contained in:
parent
15fb917f28
commit
901b7d5d91
10 changed files with 29 additions and 191 deletions
|
@ -18,7 +18,6 @@
|
|||
#include <LibGUI/GApplication.h>
|
||||
#include <signal.h>
|
||||
|
||||
static GWindow* make_font_test_window();
|
||||
static GWindow* make_launcher_window();
|
||||
|
||||
void handle_sigchld(int)
|
||||
|
@ -35,11 +34,6 @@ int main(int argc, char** argv)
|
|||
|
||||
signal(SIGCHLD, handle_sigchld);
|
||||
|
||||
#if 0
|
||||
auto* font_test_window = make_font_test_window();
|
||||
font_test_window->show();
|
||||
#endif
|
||||
|
||||
auto* launcher_window = make_launcher_window();
|
||||
launcher_window->set_should_exit_app_on_close(true);
|
||||
launcher_window->show();
|
||||
|
@ -47,35 +41,6 @@ int main(int argc, char** argv)
|
|||
return app.exec();
|
||||
}
|
||||
|
||||
GWindow* make_font_test_window()
|
||||
{
|
||||
auto* window = new GWindow;
|
||||
window->set_title("Font test");
|
||||
window->set_rect({ 480, 100, 300, 80 });
|
||||
|
||||
auto* widget = new GWidget;
|
||||
window->set_main_widget(widget);
|
||||
widget->set_relative_rect({ 0, 0, 300, 80 });
|
||||
|
||||
auto* l1 = new GLabel(widget);
|
||||
l1->set_relative_rect({ 0, 0, 300, 20 });
|
||||
l1->set_text("0123456789");
|
||||
|
||||
auto* l2 = new GLabel(widget);
|
||||
l2->set_relative_rect({ 0, 20, 300, 20 });
|
||||
l2->set_text("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
|
||||
|
||||
auto* l3 = new GLabel(widget);
|
||||
l3->set_relative_rect({ 0, 40, 300, 20 });
|
||||
l3->set_text("abcdefghijklmnopqrstuvwxyz");
|
||||
|
||||
auto* l4 = new GLabel(widget);
|
||||
l4->set_relative_rect({ 0, 60, 300, 20 });
|
||||
l4->set_text("!\"#$%&'()*+,-./:;<=>?@[\\]^_{|}~");
|
||||
|
||||
return window;
|
||||
}
|
||||
|
||||
GWindow* make_launcher_window()
|
||||
{
|
||||
auto* window = new GWindow;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue