QTfrontend/HWApplication.cpp
changeset 9163 67334acaaac7
parent 8803 b3f37e7f9ff4
child 9393 094a176dd623
equal deleted inserted replaced
9161:b2f02b083374 9163:67334acaaac7
    21 #include <QEvent>
    21 #include <QEvent>
    22 
    22 
    23 #include "hwform.h"
    23 #include "hwform.h"
    24 #include "MessageDialog.h"
    24 #include "MessageDialog.h"
    25 
    25 
    26 #if !defined(Q_WS_WIN)
    26 #if !defined(Q_OS_WIN)
    27 #include "signal.h"
    27 #include "signal.h"
    28 #endif
    28 #endif
    29 
    29 
    30 #if !defined(Q_WS_WIN)
    30 #if !defined(Q_OS_WIN)
    31 void terminateFrontend(int signal)
    31 void terminateFrontend(int signal)
    32 {
    32 {
    33     Q_UNUSED(signal);
    33     Q_UNUSED(signal);
    34     QCoreApplication::exit(0);
    34     QCoreApplication::exit(0);
    35 }
    35 }
    36 #endif
    36 #endif
    37 
    37 
    38 HWApplication::HWApplication(int &argc, char **argv) :
    38 HWApplication::HWApplication(int &argc, char **argv) :
    39     QApplication(argc, argv)
    39     QApplication(argc, argv)
    40 {
    40 {
    41 #if !defined(Q_WS_WIN)
    41 #if !defined(Q_OS_WIN)
    42     signal(SIGINT, &terminateFrontend);
    42     signal(SIGINT, &terminateFrontend);
    43 #endif
    43 #endif
    44 #if 0
    44 #if 0
    45     qDebug("%s called with", argv[0]);
    45     qDebug("%s called with", argv[0]);
    46     for (int i = 1; i < argc; i++)
    46     for (int i = 1; i < argc; i++)