summaryrefslogtreecommitdiff
path: root/src/fqterm/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fqterm/main.cpp')
-rw-r--r--src/fqterm/main.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/fqterm/main.cpp b/src/fqterm/main.cpp
index c397870..8efa99c 100644
--- a/src/fqterm/main.cpp
+++ b/src/fqterm/main.cpp
@@ -68,12 +68,10 @@
#endif
#include <QApplication>
-#include <QTranslator>
#include <QFontDatabase>
#include <QTextCodec>
#include "fqterm.h"
-#include "fqterm_app.h"
#include "fqterm_frame.h"
#include "fqterm_path.h"
#include "fqterm_trace.h"
@@ -84,7 +82,7 @@
int main(int argc, char **argv) {
- FQTerm::FQTermApplication a(argc, argv);
+ QApplication a(argc, argv);
// Set trace categories and level.
FQTerm::setMaxTraceLevel(1);
for (int i = 1; i < argc; ++i) {
@@ -124,8 +122,5 @@ int main(int argc, char **argv) {
mw->setWindowTitle("FQTerm " + QString(FQTERM_VERSION_STRING));
mw->setWindowIcon(QPixmap(getPath(RESOURCE) + "pic/fqterm.png"));
mw->show();
- a.setQuitOnLastWindowClosed(false);
- FQ_VERIFY(a.connect(mw, SIGNAL(destroyed(QObject*)), &a, SLOT(mainWindowDestroyed(QObject*)), Qt::QueuedConnection));
- FQ_VERIFY(a.connect(&a, SIGNAL(saveData()), mw, SLOT(saveSetting())));
return a.exec();
}