WSJT-X/map65/main.cpp
Bill Somerville 74bd3c1d0c
Changes to integrate into WSJT-X build system
A  separate install  of the  portaudio  library is  now required,  see
"doc/building on MS Windows.txt" for a suitable recipe.

The map65  code base  is still  MS Windows specific  in some  areas so
don't expect successful builds on Linux or macOS yet.
2021-04-10 12:29:34 +01:00

29 lines
563 B
C++

#ifdef QT5
#include <QtWidgets>
#else
#include <QtGui>
#endif
#include <QApplication>
#include "mainwindow.h"
static QtMessageHandler default_message_handler;
void my_message_handler (QtMsgType type, QMessageLogContext const& context, QString const& msg)
{
// Handle the messages!
// Call the default handler.
(*default_message_handler) (type, context, msg);
}
int main(int argc, char *argv[])
{
default_message_handler = qInstallMessageHandler (my_message_handler);
QApplication a {argc, argv};
MainWindow w;
w.show ();
return a.exec ();
}