mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 12:23:37 -05:00
039513e2cf
MAP65 still has a private version number as set in map65/main.c, but the SCS revision automatically tracks the git SHA.
33 lines
734 B
C++
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 ();
|
|
}
|