Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
@@ -0,0 +1,45 @@
|
||||
/**
|
||||
* @RDE_HEADER@
|
||||
* Crop pictures
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Raphael Becker
|
||||
*/
|
||||
|
||||
#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