main.cpp 557 B

12345678910111213141516171819202122
  1. #include "DebuggerForm.h"
  2. #include "Settings.h"
  3. #include <QApplication>
  4. #include <QIcon>
  5. int main(int argc, char** argv)
  6. {
  7. QApplication app(argc, argv);
  8. // Don't set the icon on OS X, because it will replace the high-res version
  9. // with a lower resolution one, even though openMSX-debugger-logo-256.png is 256x256.
  10. #ifndef __APPLE__
  11. app.setWindowIcon(QIcon(":icons/openMSX-debugger-logo-256.png"));
  12. #endif
  13. // restore main settings
  14. app.setFont(Settings::get().font(Settings::APP_FONT));
  15. DebuggerForm debugger;
  16. debugger.show();
  17. return app.exec();
  18. }