Diff of /gui/oprof_start_main.cpp [ecfbcc] .. [74abfb]  Maximize  Restore

  Switch to unified view

a/gui/oprof_start_main.cpp b/gui/oprof_start_main.cpp
...
...
8
 * @author Philippe Elie
8
 * @author Philippe Elie
9
 * @author John Levon
9
 * @author John Levon
10
 */
10
 */
11
11
12
#include <qapplication.h>
12
#include <qapplication.h>
13
#include <stdlib.h>
14
#include <exception>
15
#include <iostream>
13
16
14
#include "oprof_start.h"
17
#include "oprof_start.h"
15
18
19
using namespace std;
16
int main(int argc, char* argv[])
20
int main(int argc, char* argv[])
17
{
21
{
18
    QApplication a(argc, argv);
22
    QApplication a(argc, argv);
23
  oprof_start* dlg;
19
24
25
  try {
20
    oprof_start* dlg = new oprof_start();
26
      dlg = new oprof_start();
27
  } catch (exception e) {
28
      cerr << "Initialization error: " << e.what() << endl;
29
      exit(EXIT_FAILURE);
30
  }
21
31
22
    a.setMainWidget(dlg);
32
    a.setMainWidget(dlg);
23
33
24
    dlg->show();
34
    dlg->show();
25
35