27 #include <QApplication>
30 #include <QTranslator>
37 #if defined (HAVE_SYS_IOCTL_H)
38 #include <sys/ioctl.h>
96 if (strncmp (msg,
"QFileSystemWatcher: skipping native engine",42) != 0)
97 std::cerr <<
"Debug: " << msg << std::endl;
101 std::cerr <<
"Warning: " << msg << std::endl;
105 std::cerr <<
"Critical: " << msg << std::endl;
109 std::cerr <<
"Fatal: " << msg << std::endl;
129 QApplication application (argc, argv);
130 QTranslator gui_tr, qt_tr, qsci_tr;
133 QTextCodec::setCodecForCStrings (QTextCodec::codecForName (
"UTF-8"));
139 application.installTranslator (&qt_tr);
140 application.installTranslator (&qsci_tr);
141 application.installTranslator (&gui_tr);
145 if (welcomeWizard.exec () == QDialog::Rejected)
155 application.installTranslator (&qt_tr);
156 application.installTranslator (&qsci_tr);
157 application.installTranslator (&gui_tr);
163 #if ! defined (__WIN32__) || defined (__CYGWIN__)
192 return application.exec ();
196 QApplication application (argc, argv);
200 application.setQuitOnLastWindowClosed (
false);
202 main_thread.start ();
204 return application.exec ();