blob: c2e2af0c5eb0af90987ae9e3231b3133804232f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#
# Patch managed by http://www.holgerschurig.de/patcher.html
#
--- src/top.cpp~gcc3
+++ src/top.cpp
@@ -18,6 +18,7 @@
//static char rcsid[] = "$Id: top.cpp,v 1.1 2002/10/06 04:17:00 bjj Rel $";
#include "top.h"
+#include <qapplication.h>
#include <qmenubar.h>
#include <qpopupmenu.h>
#include <qframe.h>
@@ -90,7 +91,7 @@
}
-Top::Top(QWidget *parent = 0, const char *name = 0, WFlags f = WType_TopLevel)
+Top::Top(QWidget *parent, const char *name, WFlags f)
: QMainWindow(parent, name, f)
{
setCaption("Instrument Trainer");
@@ -172,7 +173,7 @@
void
Top::Exit()
{
- exit(0);
+ qApp->quit();
}
void
|