mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 21:58:38 -05:00
74bd3c1d0c
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.
29 lines
563 B
C++
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 ();
|
|
}
|