Continues migration with DDS, Common
This commit is contained in:
1 parent
9b15cee841
commit
fa48db111e
668 files changed
+111841
-2
No files matched your search
@@ -0,0 +1,39 @@
|
||||
|
||||
|
||||
|
||||
#include "lts_picture_editing.h"
|
||||
#include <QApplication>
|
||||
#include <iostream>
|
||||
|
||||
static void qtMsgHandler(QtMsgType type, const QMessageLogContext &, const QString &msg)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case QtDebugMsg:
|
||||
std::cout << "DEBUG: " << qPrintable(msg) << std::endl;
|
||||
break;
|
||||
case QtInfoMsg:
|
||||
std::cout << "INFO: " << qPrintable(msg) << std::endl;
|
||||
break;
|
||||
case QtWarningMsg:
|
||||
std::cout << "WARN: " << qPrintable(msg) << std::endl;
|
||||
break;
|
||||
case QtCriticalMsg:
|
||||
std::cerr << "ERROR: " << qPrintable(msg) << std::endl;
|
||||
break;
|
||||
case QtFatalMsg:
|
||||
std::cerr << "FATAL: " << qPrintable(msg) << std::endl;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication a(argc, argv);
|
||||
qInstallMessageHandler(&qtMsgHandler);
|
||||
LtsPictureEditing w;
|
||||
w.show();
|
||||
|
||||
return a.exec();
|
||||
}
|
||||
Reference in new issue
Block a user