You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
583 B
31 lines
583 B
11 years ago
|
/**
|
||
|
* @file main.cpp
|
||
|
* @brief Main file.
|
||
|
* @author Micha? Policht
|
||
|
*/
|
||
|
|
||
|
#include <QApplication>
|
||
|
#include "MainWindow.h"
|
||
|
#include "MessageWindow.h"
|
||
|
|
||
|
|
||
|
int main(int argc, char *argv[])
|
||
|
{
|
||
|
QApplication app(argc, argv);
|
||
|
//! [0]
|
||
|
#if QT_VERSION < QT_VERSION_CHECK(5,0,0)
|
||
|
//redirect debug messages to the MessageWindow dialog
|
||
|
qInstallMsgHandler(MessageWindow::AppendMsgWrapper);
|
||
|
#else
|
||
|
qInstallMessageHandler(MessageWindow::AppendMsgWrapper);
|
||
|
#endif
|
||
|
//! [0]
|
||
|
|
||
|
MainWindow mainWindow;
|
||
|
mainWindow.show();
|
||
|
|
||
|
return app.exec();
|
||
|
}
|
||
|
|
||
|
|