mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-25 18:30:53 +00:00
GUI Editor should no longer crash on Linux
This commit is contained in:
parent
ea08136fdc
commit
78691c50da
2 changed files with 15 additions and 4 deletions
|
@ -14,7 +14,6 @@
|
||||||
// You should have received a copy of the GNU Affero General Public License
|
// You should have received a copy of the GNU Affero General Public License
|
||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
#include "nel3d_widget.h"
|
#include "nel3d_widget.h"
|
||||||
#include "nel/3d/u_driver.h"
|
#include "nel/3d/u_driver.h"
|
||||||
#include "nel/3d/text_context.h"
|
#include "nel/3d/text_context.h"
|
||||||
|
@ -29,7 +28,7 @@
|
||||||
#include <QResizeEvent>
|
#include <QResizeEvent>
|
||||||
|
|
||||||
Nel3DWidget::Nel3DWidget( QWidget *parent ) :
|
Nel3DWidget::Nel3DWidget( QWidget *parent ) :
|
||||||
QWidget( parent )
|
NEL3DWIDGET( parent )
|
||||||
{
|
{
|
||||||
driver = NULL;
|
driver = NULL;
|
||||||
textContext = NULL;
|
textContext = NULL;
|
||||||
|
|
|
@ -18,10 +18,22 @@
|
||||||
#ifndef NEL3D_WIDGET_H
|
#ifndef NEL3D_WIDGET_H
|
||||||
#define NEL3D_WIDGET_H
|
#define NEL3D_WIDGET_H
|
||||||
|
|
||||||
#include <QWidget>
|
|
||||||
#include "nel/misc/types_nl.h"
|
#include "nel/misc/types_nl.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#ifdef NEL3DWIDGET
|
||||||
|
#undef NEL3DWIDGET
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef NL_OS_WINDOWS
|
||||||
|
#include <QWidget>
|
||||||
|
#define NEL3DWIDGET QWidget
|
||||||
|
#else
|
||||||
|
#include <QGLWidget>
|
||||||
|
#define NEL3DWIDGET QGLWidget
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#include "../core_global.h"
|
#include "../core_global.h"
|
||||||
|
|
||||||
namespace NL3D
|
namespace NL3D
|
||||||
|
@ -31,7 +43,7 @@ namespace NL3D
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Nel 3D interface to Qt
|
/// Nel 3D interface to Qt
|
||||||
class CORE_EXPORT Nel3DWidget : public QWidget
|
class CORE_EXPORT Nel3DWidget : public QGLWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in a new issue