Adds initial intermediate qt6 porting state
This commit is contained in:
11247 files changed
+1891537
No files matched your search
@@ -0,0 +1,36 @@
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <QApplication>
|
||||
#include "nglloggerhandler.h"
|
||||
|
||||
#ifndef NGLAPPLICATION_EXPORT
|
||||
# ifdef BUILD_STATIC_LIBRARIES
|
||||
# define NGLAPPLICATION_EXPORT
|
||||
# else
|
||||
# ifdef MAKE_NGLAPPLICATION_LIB
|
||||
# define NGLAPPLICATION_EXPORT Q_DECL_EXPORT
|
||||
# else
|
||||
# define NGLAPPLICATION_EXPORT Q_DECL_IMPORT
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
namespace NGL
|
||||
{
|
||||
class INGLLogger;
|
||||
}
|
||||
|
||||
class NGLAPPLICATION_EXPORT NGLApplication : public QApplication, public NGL::LoggerHandler
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
NGLApplication(int &argc, char **argv);
|
||||
|
||||
protected:
|
||||
bool notify(QObject *o, QEvent *e) override;
|
||||
};
|
||||
|
||||
#define nglApp static_cast<NGLApplication*>(NGLApplication::instance())
|
||||
Reference in new issue
Block a user