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.
39 lines
689 B
39 lines
689 B
14 years ago
|
/*
|
||
|
* 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();
|
||
|
}
|