mirror of
https://github.com/thp/pyotherside.git
synced 2025-01-17 23:22:53 +08:00
Use python.h wrapping to allow embedding as-is in any Qt-based project
This commit is contained in:
parent
7f0ff4687b
commit
4c2bc52fa0
@ -17,7 +17,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
**/
|
||||
|
||||
#include "Python.h"
|
||||
#include "python_wrap.h"
|
||||
|
||||
class EnsureGILState {
|
||||
public:
|
||||
|
@ -19,7 +19,7 @@
|
||||
#ifndef PYOTHERSIDE_PYGLAREA_H
|
||||
#define PYOTHERSIDE_PYGLAREA_H
|
||||
|
||||
#include "Python.h"
|
||||
#include "python_wrap.h"
|
||||
|
||||
#include <QString>
|
||||
#include <QVariant>
|
||||
|
@ -19,7 +19,7 @@
|
||||
#ifndef PYOTHERSIDE_PYGLRENDERER_H
|
||||
#define PYOTHERSIDE_PYGLRENDERER_H
|
||||
|
||||
#include "Python.h"
|
||||
#include "python_wrap.h"
|
||||
|
||||
#include <QVariant>
|
||||
#include <QString>
|
||||
|
@ -22,7 +22,7 @@
|
||||
#include "converter.h"
|
||||
#include "pyqobject.h"
|
||||
|
||||
#include "Python.h"
|
||||
#include "python_wrap.h"
|
||||
#include "datetime.h"
|
||||
#include <QDebug>
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
#ifndef PYOTHERSIDE_PYOBJECT_REF_H
|
||||
#define PYOTHERSIDE_PYOBJECT_REF_H
|
||||
|
||||
#include "Python.h"
|
||||
#include "python_wrap.h"
|
||||
|
||||
#include <QMetaType>
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
#ifndef PYOTHERSIDE_PYQOBJECT_H
|
||||
#define PYOTHERSIDE_PYQOBJECT_H
|
||||
|
||||
#include "Python.h"
|
||||
#include "python_wrap.h"
|
||||
|
||||
#include "qobject_ref.h"
|
||||
|
||||
|
6
src/python_wrap.h
Normal file
6
src/python_wrap.h
Normal file
@ -0,0 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#pragma push_macro("slots")
|
||||
#undef slots
|
||||
#include "Python.h"
|
||||
#pragma pop_macro("slots")
|
@ -19,7 +19,7 @@
|
||||
#ifndef PYOTHERSIDE_QPYTHON_H
|
||||
#define PYOTHERSIDE_QPYTHON_H
|
||||
|
||||
#include "Python.h"
|
||||
#include "python_wrap.h"
|
||||
|
||||
#include <QVariant>
|
||||
#include <QObject>
|
||||
|
@ -19,7 +19,7 @@
|
||||
#ifndef PYOTHERSIDE_QPYTHON_PRIV_H
|
||||
#define PYOTHERSIDE_QPYTHON_PRIV_H
|
||||
|
||||
#include "Python.h"
|
||||
#include "python_wrap.h"
|
||||
|
||||
#include "pyobject_ref.h"
|
||||
#include "pyqobject.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user