main.cpp 647 B

1234567891011121314151617181920212223
  1. #include "DisplayProperties.h"
  2. #include <LibDraw/PNGLoader.h>
  3. #include <LibGUI/GApplication.h>
  4. #include <LibGUI/GBoxLayout.h>
  5. #include <LibGUI/GWidget.h>
  6. #include <LibGUI/GWindow.h>
  7. int main(int argc, char** argv)
  8. {
  9. GApplication app(argc, argv);
  10. DisplayPropertiesWidget instance;
  11. auto window = GWindow::construct();
  12. window->set_title("Display Properties");
  13. window->move_to(100,100);
  14. window->resize(400, 448);
  15. window->set_resizable(false);
  16. window->set_main_widget(instance.root_widget());
  17. window->set_icon(load_png("/res/icons/16x16/app-display-properties.png"));
  18. window->show();
  19. return app.exec();
  20. }