Adds initial intermediate qt6 porting state
This commit is contained in:
11247 files changed
+1891537
No files matched your search
@@ -0,0 +1,31 @@
|
||||
|
||||
|
||||
|
||||
#include "nglapplication.h"
|
||||
#include "ngl_signal_handler.inc"
|
||||
|
||||
|
||||
NGLApplication::NGLApplication(int &argc, char **argv)
|
||||
: QApplication(argc, argv)
|
||||
{
|
||||
|
||||
signal(SIGTERM, &signalHandler);
|
||||
#ifdef Q_OS_WIN
|
||||
installNativeEventFilter(new MyEventFilter);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
bool NGLApplication::notify(QObject *o, QEvent *e)
|
||||
{
|
||||
bool bRet = false;
|
||||
try
|
||||
{
|
||||
bRet = QApplication::notify(o, e);
|
||||
}
|
||||
catch (const std::exception &e)
|
||||
{
|
||||
fprintf(stderr, "exception %s\n", e.what());
|
||||
}
|
||||
return bRet;
|
||||
}
|
||||
Reference in new issue
Block a user