новые иконки в OpenBoard
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.
 
 
 
 
 
 
OpenBoard/tools/CrashReportViewer/main.cpp

38 lines
689 B

/*
* main.cpp
*
* Created on: Feb 10, 2009
* Author: julienbachmann
*/
#include <QtGui>
#include "CrashWindow.h"
#include "client/mac/handler/exception_handler.h"
class CRVApplication : public QApplication
{
public:
CRVApplication(int &argc, char **argv) : QApplication(argc, argv) {}
bool event(QEvent *e)
{
if (e->type() == QEvent::FileOpen)
{
window.setDumpFilePath(static_cast<QFileOpenEvent*>(e)->file());
return true;
}
return QApplication::event(e);
}
CrashWindow window;
};
int main(int argc, char *argv[])
{
CRVApplication app(argc, argv);
app.window.show();
app.exec();
}