blob: 878146ee3abfa95803d268373448b7690c0a339e (
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$";
#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
|