WSJT-X/map65/main.cpp
Bill Somerville 039513e2cf
Use WSJT-X revision utilities to label the MAP65 revision
MAP65 still has  a private version number as set  in map65/main.c, but
the SCS revision automatically tracks the git SHA.
2021-04-30 22:51:09 +01:00

33 lines
734 B
C++

#ifdef QT5
#include <QtWidgets>
#else
#include <QtGui>
#endif
#include <QApplication>
#include "revision_utils.hpp"
#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};
// Override programs executable basename as application name.
a.setApplicationName ("MAP65");
a.setApplicationVersion ("3.0.0-devel");
MainWindow w;
w.show ();
return a.exec ();
}