Merge pull request #95 from mappu/miqt-more-libraries

Draft: Add bindings for Qt5Svg, Qt6Svg, Qt5Script, Qt5Webkit
This commit is contained in:
mappu 2024-11-27 08:11:50 +13:00 committed by GitHub
commit eb23d0e1fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
374 changed files with 44127 additions and 460 deletions

3
.gitignore vendored
View File

@ -33,6 +33,9 @@ examples/libraries/extras-scintillaedit/extras-scintillaedit
examples/libraries/qt-multimedia/qt-multimedia examples/libraries/qt-multimedia/qt-multimedia
examples/libraries/qt-network/qt-network examples/libraries/qt-network/qt-network
examples/libraries/qt-printsupport/qt-printsupport examples/libraries/qt-printsupport/qt-printsupport
examples/libraries/qt-script/qt-script
examples/libraries/qt-svg/qt-svg
examples/libraries/qt-webkit/qt-webkit
examples/libraries/qt6-multimedia/qt6-multimedia examples/libraries/qt6-multimedia/qt6-multimedia
examples/libraries/restricted-extras-qscintilla/restricted-extras-qscintilla examples/libraries/restricted-extras-qscintilla/restricted-extras-qscintilla

View File

@ -34,6 +34,14 @@ func InsertTypedefs(qt6 bool) {
KnownTypedefs["QFileDevice::Permissions"] = lookupResultTypedef{pp, CppTypedef{"QFile::Permissions", parseSingleTypeString("QFlags<QFileDevice::Permission>")}} KnownTypedefs["QFileDevice::Permissions"] = lookupResultTypedef{pp, CppTypedef{"QFile::Permissions", parseSingleTypeString("QFlags<QFileDevice::Permission>")}}
KnownTypedefs["QIODevice::OpenMode"] = lookupResultTypedef{pp, CppTypedef{"QIODevice::OpenMode", parseSingleTypeString("QIODeviceBase::OpenMode")}} KnownTypedefs["QIODevice::OpenMode"] = lookupResultTypedef{pp, CppTypedef{"QIODevice::OpenMode", parseSingleTypeString("QIODeviceBase::OpenMode")}}
// Qt 5 WebKit - use of an empty enum (should be possible to support?)
KnownEnums["QWebPluginFactory::Extension"] = lookupResultEnum{"qt/webkit", CppEnum{
EnumName: "QWebPluginFactory::Extension",
UnderlyingType: CppParameter{
ParameterType: "int",
},
}}
if qt6 { if qt6 {
// Qt 6 QVariant helper types - needs investigation // Qt 6 QVariant helper types - needs investigation
KnownTypedefs["QVariantHash"] = lookupResultTypedef{"qt6", CppTypedef{"QVariantHash", parseSingleTypeString("QHash<QString,QVariant>")}} KnownTypedefs["QVariantHash"] = lookupResultTypedef{"qt6", CppTypedef{"QVariantHash", parseSingleTypeString("QHash<QString,QVariant>")}}
@ -231,6 +239,14 @@ func AllowVirtualForClass(className string) bool {
return false return false
} }
// Qt 5 QWebkit: undefined reference to typeinfo
if className == "QWebNotificationPresenter" {
return false
}
if className == "QWebHapticFeedbackPlayer" {
return false
}
return true return true
} }
@ -492,6 +508,8 @@ func AllowType(p CppParameter, isReturnType bool) error {
"QPostEventList", // Qt QCoreApplication: private headers required "QPostEventList", // Qt QCoreApplication: private headers required
"QMetaCallEvent", // .. "QMetaCallEvent", // ..
"QPostEvent", // .. "QPostEvent", // ..
"QWebFrameAdapter", // Qt 5 Webkit: Used by e.g. qwebframe.h but never defined anywhere
"QWebPageAdapter", // ...
"____last____": "____last____":
return ErrTooComplex return ErrTooComplex
} }

View File

@ -62,6 +62,18 @@ func ProcessLibraries(clangBin, outDir, extraLibsDir string) {
ClangMatchSameHeaderDefinitionOnly, ClangMatchSameHeaderDefinitionOnly,
) )
generate(
"qt/svg",
[]string{
"/usr/include/x86_64-linux-gnu/qt5/QtSvg",
},
AllowAllHeaders,
clangBin,
pkgConfigCflags("Qt5Svg"),
outDir,
ClangMatchSameHeaderDefinitionOnly,
)
generate( generate(
"qt/network", "qt/network",
[]string{ []string{
@ -90,6 +102,33 @@ func ProcessLibraries(clangBin, outDir, extraLibsDir string) {
ClangMatchSameHeaderDefinitionOnly, ClangMatchSameHeaderDefinitionOnly,
) )
generate(
"qt/script",
[]string{
"/usr/include/x86_64-linux-gnu/qt5/QtScript",
},
AllowAllHeaders,
clangBin,
pkgConfigCflags("Qt5Script"),
outDir,
ClangMatchSameHeaderDefinitionOnly,
)
// Qt 5 QWebkit: depends on Qt5PrintSupport but only at runtime, not at
// codegen time
generate(
"qt/webkit",
[]string{
"/usr/include/x86_64-linux-gnu/qt5/QtWebKit",
"/usr/include/x86_64-linux-gnu/qt5/QtWebKitWidgets",
},
AllowAllHeaders,
clangBin,
pkgConfigCflags("Qt5WebKitWidgets"),
outDir,
ClangMatchSameHeaderDefinitionOnly,
)
// Depends on QtCore/Gui/Widgets, QPrintSupport // Depends on QtCore/Gui/Widgets, QPrintSupport
generate( generate(
"qt-restricted-extras/qscintilla", "qt-restricted-extras/qscintilla",
@ -173,6 +212,20 @@ func ProcessLibraries(clangBin, outDir, extraLibsDir string) {
ClangMatchSameHeaderDefinitionOnly, ClangMatchSameHeaderDefinitionOnly,
) )
// Qt 6 SVG
generate(
"qt6/svg",
[]string{
"/usr/include/x86_64-linux-gnu/qt6/QtSvg",
"/usr/include/x86_64-linux-gnu/qt6/QtSvgWidgets",
},
AllowAllHeaders,
clangBin,
"--std=c++17 "+pkgConfigCflags("Qt6SvgWidgets"),
outDir,
ClangMatchSameHeaderDefinitionOnly,
)
// Qt 6 QtNetwork // Qt 6 QtNetwork
generate( generate(
"qt6/network", "qt6/network",

View File

@ -299,7 +299,8 @@ func emitCABI2CppForwarding(p CppParameter, indent string) (preamble string, for
p.ParameterType == "qulonglong" || p.ParameterType == "qulonglong" ||
p.GetQtCppType().ParameterType == "qintptr" || p.GetQtCppType().ParameterType == "qintptr" ||
p.GetQtCppType().ParameterType == "qsizetype" || // Qt 6 qversionnumber.h: invalid static_cast from type ptrdiff_t* {aka long int*} to type qsizetype* {aka long long int*} p.GetQtCppType().ParameterType == "qsizetype" || // Qt 6 qversionnumber.h: invalid static_cast from type ptrdiff_t* {aka long int*} to type qsizetype* {aka long long int*}
p.ParameterType == "qint8" { p.ParameterType == "qint8" ||
(p.IsFlagType() && p.ByRef) {
// QDataStream::operator>>() by reference (qint64) // QDataStream::operator>>() by reference (qint64)
// QLockFile::getLockInfo() by pointer // QLockFile::getLockInfo() by pointer
// QTextStream::operator>>() by reference (qlonglong + qulonglong) // QTextStream::operator>>() by reference (qlonglong + qulonglong)
@ -556,24 +557,28 @@ func getReferencedTypes(src *CppParsedHeader) []string {
foundTypes := map[string]struct{}{} foundTypes := map[string]struct{}{}
maybeAddType := func(p CppParameter) { var maybeAddType func(p CppParameter)
maybeAddType = func(p CppParameter) {
if p.QtClassType() { if p.QtClassType() {
foundTypes[p.ParameterType] = struct{}{} foundTypes[p.ParameterType] = struct{}{}
} }
if t, ok := p.QListOf(); ok { if t, ok := p.QListOf(); ok {
foundTypes["QList"] = struct{}{} // FIXME or QVector? foundTypes["QList"] = struct{}{} // FIXME or QVector?
if t.QtClassType() { maybeAddType(t)
foundTypes[t.ParameterType] = struct{}{}
}
} }
if kType, vType, ok := p.QMapOf(); ok { if kType, vType, ok := p.QMapOf(); ok {
foundTypes["QMap"] = struct{}{} // FIXME or QHash? foundTypes["QMap"] = struct{}{} // FIXME or QHash?
if kType.QtClassType() { maybeAddType(kType)
foundTypes[kType.ParameterType] = struct{}{} maybeAddType(vType)
} }
if vType.QtClassType() { if kType, vType, ok := p.QPairOf(); ok {
foundTypes[vType.ParameterType] = struct{}{} foundTypes["QPair"] = struct{}{}
} maybeAddType(kType)
maybeAddType(vType)
}
if t, ok := p.QSetOf(); ok {
foundTypes["QSet"] = struct{}{}
maybeAddType(t)
} }
} }
@ -639,7 +644,7 @@ func cabiClassName(className string) string {
func cabiPreventStructDeclaration(className string) bool { func cabiPreventStructDeclaration(className string) bool {
switch className { switch className {
case "QList", "QString", "QSet", "QMap", "QHash": case "QList", "QString", "QSet", "QMap", "QHash", "QPair", "QVector", "QByteArray":
return true // These types are reprojected return true // These types are reprojected
default: default:
return false return false

View File

@ -5,8 +5,12 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
golang-go \ golang-go \
qtbase5-dev \ qtbase5-dev \
qtmultimedia5-dev \ qtmultimedia5-dev \
qtscript5-dev \
libqt5svg5-dev \
libqt5webkit5-dev \
qt6-base-dev \ qt6-base-dev \
qt6-multimedia-dev \ qt6-multimedia-dev \
qt6-svg-dev \
libqscintilla2-qt5-dev \ libqscintilla2-qt5-dev \
libqscintilla2-qt6-dev \ libqscintilla2-qt6-dev \
clang \ clang \

View File

@ -0,0 +1,23 @@
package main
import (
"fmt"
"os"
"github.com/mappu/miqt/qt"
"github.com/mappu/miqt/qt/script"
)
func main() {
qt.NewQApplication(os.Args)
inputProgram := "1 + 2"
eng := script.NewQScriptEngine()
result := eng.Evaluate(inputProgram)
fmt.Printf("%s = %1.f\n", inputProgram, result.ToNumber())
// qt.QApplication_Exec()
}

View File

@ -0,0 +1,18 @@
package main
import (
"os"
"github.com/mappu/miqt/qt"
"github.com/mappu/miqt/qt/svg"
)
func main() {
qt.NewQApplication(os.Args)
w := svg.NewQSvgWidget3("../../../doc/logo.svg")
w.Show()
qt.QApplication_Exec()
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@ -0,0 +1,19 @@
package main
import (
"os"
"github.com/mappu/miqt/qt"
"github.com/mappu/miqt/qt/webkit"
)
func main() {
qt.NewQApplication(os.Args)
w := webkit.NewQWebView2()
w.Load(qt.NewQUrl3("https://www.github.com/mappu/miqt"))
w.Show()
qt.QApplication_Exec()
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View File

@ -18,6 +18,7 @@
#include <QObject> #include <QObject>
#include <QPaintDevice> #include <QPaintDevice>
#include <QPaintEvent> #include <QPaintEvent>
#include <QPair>
#include <QRect> #include <QRect>
#include <QResizeEvent> #include <QResizeEvent>
#include <QSize> #include <QSize>

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAbstractScrollArea; class QAbstractScrollArea;
class QByteArray;
class QChildEvent; class QChildEvent;
class QContextMenuEvent; class QContextMenuEvent;
class QDragEnterEvent; class QDragEnterEvent;
@ -213,7 +212,6 @@ class ScintillaEdit;
class ScintillaEditBase; class ScintillaEditBase;
#else #else
typedef struct QAbstractScrollArea QAbstractScrollArea; typedef struct QAbstractScrollArea QAbstractScrollArea;
typedef struct QByteArray QByteArray;
typedef struct QChildEvent QChildEvent; typedef struct QChildEvent QChildEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDragEnterEvent QDragEnterEvent; typedef struct QDragEnterEvent QDragEnterEvent;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAbstractScrollArea; class QAbstractScrollArea;
class QByteArray;
class QColor; class QColor;
class QContextMenuEvent; class QContextMenuEvent;
class QDragEnterEvent; class QDragEnterEvent;
@ -53,7 +52,6 @@ class QsciStyle;
class QsciStyledText; class QsciStyledText;
#else #else
typedef struct QAbstractScrollArea QAbstractScrollArea; typedef struct QAbstractScrollArea QAbstractScrollArea;
typedef struct QByteArray QByteArray;
typedef struct QColor QColor; typedef struct QColor QColor;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDragEnterEvent QDragEnterEvent; typedef struct QDragEnterEvent QDragEnterEvent;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAbstractScrollArea; class QAbstractScrollArea;
class QByteArray;
class QColor; class QColor;
class QContextMenuEvent; class QContextMenuEvent;
class QDragEnterEvent; class QDragEnterEvent;
@ -48,7 +47,6 @@ class QWidget;
class QsciScintillaBase; class QsciScintillaBase;
#else #else
typedef struct QAbstractScrollArea QAbstractScrollArea; typedef struct QAbstractScrollArea QAbstractScrollArea;
typedef struct QByteArray QByteArray;
typedef struct QColor QColor; typedef struct QColor QColor;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDragEnterEvent QDragEnterEvent; typedef struct QDragEnterEvent QDragEnterEvent;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAbstractScrollArea; class QAbstractScrollArea;
class QByteArray;
class QColor; class QColor;
class QContextMenuEvent; class QContextMenuEvent;
class QDragEnterEvent; class QDragEnterEvent;
@ -53,7 +52,6 @@ class QsciStyle;
class QsciStyledText; class QsciStyledText;
#else #else
typedef struct QAbstractScrollArea QAbstractScrollArea; typedef struct QAbstractScrollArea QAbstractScrollArea;
typedef struct QByteArray QByteArray;
typedef struct QColor QColor; typedef struct QColor QColor;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDragEnterEvent QDragEnterEvent; typedef struct QDragEnterEvent QDragEnterEvent;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAbstractScrollArea; class QAbstractScrollArea;
class QByteArray;
class QColor; class QColor;
class QContextMenuEvent; class QContextMenuEvent;
class QDragEnterEvent; class QDragEnterEvent;
@ -48,7 +47,6 @@ class QWidget;
class QsciScintillaBase; class QsciScintillaBase;
#else #else
typedef struct QAbstractScrollArea QAbstractScrollArea; typedef struct QAbstractScrollArea QAbstractScrollArea;
typedef struct QByteArray QByteArray;
typedef struct QColor QColor; typedef struct QColor QColor;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDragEnterEvent QDragEnterEvent; typedef struct QDragEnterEvent QDragEnterEvent;

View File

@ -6,6 +6,7 @@
#include <QJsonObject> #include <QJsonObject>
#include <QList> #include <QList>
#include <QMap> #include <QMap>
#include <QPair>
#include <QString> #include <QString>
#include <QByteArray> #include <QByteArray>
#include <cstring> #include <cstring>

View File

@ -15,12 +15,10 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QCborError; class QCborError;
class QCborStreamReader; class QCborStreamReader;
class QIODevice; class QIODevice;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QCborError QCborError; typedef struct QCborError QCborError;
typedef struct QCborStreamReader QCborStreamReader; typedef struct QCborStreamReader QCborStreamReader;
typedef struct QIODevice QIODevice; typedef struct QIODevice QIODevice;

View File

@ -15,11 +15,9 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QCborStreamWriter; class QCborStreamWriter;
class QIODevice; class QIODevice;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QCborStreamWriter QCborStreamWriter; typedef struct QCborStreamWriter QCborStreamWriter;
typedef struct QIODevice QIODevice; typedef struct QIODevice QIODevice;
#endif #endif

View File

@ -15,7 +15,6 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QCborArray; class QCborArray;
class QCborMap; class QCborMap;
class QCborParserError; class QCborParserError;
@ -30,7 +29,6 @@ class QUrl;
class QUuid; class QUuid;
class QVariant; class QVariant;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QCborArray QCborArray; typedef struct QCborArray QCborArray;
typedef struct QCborMap QCborMap; typedef struct QCborMap QCborMap;
typedef struct QCborParserError QCborParserError; typedef struct QCborParserError QCborParserError;

View File

@ -18,7 +18,6 @@ extern "C" {
class QAbstractButton; class QAbstractButton;
class QActionEvent; class QActionEvent;
class QButtonGroup; class QButtonGroup;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
class QDragEnterEvent; class QDragEnterEvent;
@ -53,7 +52,6 @@ class QWidget;
typedef struct QAbstractButton QAbstractButton; typedef struct QAbstractButton QAbstractButton;
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QButtonGroup QButtonGroup; typedef struct QButtonGroup QButtonGroup;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDragEnterEvent QDragEnterEvent; typedef struct QDragEnterEvent QDragEnterEvent;

View File

@ -22,7 +22,6 @@ typedef QAbstractEventDispatcher::TimerInfo QAbstractEventDispatcher__TimerInfo;
class QAbstractEventDispatcher__TimerInfo; class QAbstractEventDispatcher__TimerInfo;
#endif #endif
class QAbstractNativeEventFilter; class QAbstractNativeEventFilter;
class QByteArray;
class QMetaObject; class QMetaObject;
class QObject; class QObject;
class QSocketNotifier; class QSocketNotifier;
@ -31,7 +30,6 @@ class QThread;
typedef struct QAbstractEventDispatcher QAbstractEventDispatcher; typedef struct QAbstractEventDispatcher QAbstractEventDispatcher;
typedef struct QAbstractEventDispatcher__TimerInfo QAbstractEventDispatcher__TimerInfo; typedef struct QAbstractEventDispatcher__TimerInfo QAbstractEventDispatcher__TimerInfo;
typedef struct QAbstractNativeEventFilter QAbstractNativeEventFilter; typedef struct QAbstractNativeEventFilter QAbstractNativeEventFilter;
typedef struct QByteArray QByteArray;
typedef struct QMetaObject QMetaObject; typedef struct QMetaObject QMetaObject;
typedef struct QObject QObject; typedef struct QObject QObject;
typedef struct QSocketNotifier QSocketNotifier; typedef struct QSocketNotifier QSocketNotifier;

View File

@ -18,7 +18,6 @@ extern "C" {
class QAbstractItemModel; class QAbstractItemModel;
class QAbstractListModel; class QAbstractListModel;
class QAbstractTableModel; class QAbstractTableModel;
class QByteArray;
class QChildEvent; class QChildEvent;
class QEvent; class QEvent;
class QMetaMethod; class QMetaMethod;
@ -34,7 +33,6 @@ class QVariant;
typedef struct QAbstractItemModel QAbstractItemModel; typedef struct QAbstractItemModel QAbstractItemModel;
typedef struct QAbstractListModel QAbstractListModel; typedef struct QAbstractListModel QAbstractListModel;
typedef struct QAbstractTableModel QAbstractTableModel; typedef struct QAbstractTableModel QAbstractTableModel;
typedef struct QByteArray QByteArray;
typedef struct QChildEvent QChildEvent; typedef struct QChildEvent QChildEvent;
typedef struct QEvent QEvent; typedef struct QEvent QEvent;
typedef struct QMetaMethod QMetaMethod; typedef struct QMetaMethod QMetaMethod;

View File

@ -16,10 +16,8 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAbstractNativeEventFilter; class QAbstractNativeEventFilter;
class QByteArray;
#else #else
typedef struct QAbstractNativeEventFilter QAbstractNativeEventFilter; typedef struct QAbstractNativeEventFilter QAbstractNativeEventFilter;
typedef struct QByteArray QByteArray;
#endif #endif
void QAbstractNativeEventFilter_new(QAbstractNativeEventFilter** outptr_QAbstractNativeEventFilter); void QAbstractNativeEventFilter_new(QAbstractNativeEventFilter** outptr_QAbstractNativeEventFilter);

View File

@ -17,7 +17,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAbstractItemModel; class QAbstractItemModel;
class QAbstractProxyModel; class QAbstractProxyModel;
class QByteArray;
class QItemSelection; class QItemSelection;
class QMetaObject; class QMetaObject;
class QMimeData; class QMimeData;
@ -28,7 +27,6 @@ class QVariant;
#else #else
typedef struct QAbstractItemModel QAbstractItemModel; typedef struct QAbstractItemModel QAbstractItemModel;
typedef struct QAbstractProxyModel QAbstractProxyModel; typedef struct QAbstractProxyModel QAbstractProxyModel;
typedef struct QByteArray QByteArray;
typedef struct QItemSelection QItemSelection; typedef struct QItemSelection QItemSelection;
typedef struct QMetaObject QMetaObject; typedef struct QMetaObject QMetaObject;
typedef struct QMimeData QMimeData; typedef struct QMimeData QMimeData;

View File

@ -17,7 +17,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAbstractSlider; class QAbstractSlider;
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
class QDragEnterEvent; class QDragEnterEvent;
@ -49,7 +48,6 @@ class QWidget;
#else #else
typedef struct QAbstractSlider QAbstractSlider; typedef struct QAbstractSlider QAbstractSlider;
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDragEnterEvent QDragEnterEvent; typedef struct QDragEnterEvent QDragEnterEvent;

View File

@ -17,7 +17,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAbstractSpinBox; class QAbstractSpinBox;
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
class QDragEnterEvent; class QDragEnterEvent;
@ -49,7 +48,6 @@ class QWidget;
#else #else
typedef struct QAbstractSpinBox QAbstractSpinBox; typedef struct QAbstractSpinBox QAbstractSpinBox;
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDragEnterEvent QDragEnterEvent; typedef struct QDragEnterEvent QDragEnterEvent;

View File

@ -21,6 +21,7 @@
#include <QColor> #include <QColor>
#include <QList> #include <QList>
#include <QObject> #include <QObject>
#include <QPair>
#include <QPoint> #include <QPoint>
#include <QRect> #include <QRect>
#include <QSize> #include <QSize>

View File

@ -5,6 +5,7 @@
#include <QAccessibleWidget> #include <QAccessibleWidget>
#include <QColor> #include <QColor>
#include <QList> #include <QList>
#include <QPair>
#include <QRect> #include <QRect>
#include <QString> #include <QString>
#include <QByteArray> #include <QByteArray>

View File

@ -8,6 +8,7 @@
#include <QLinearGradient> #include <QLinearGradient>
#include <QList> #include <QList>
#include <QMatrix> #include <QMatrix>
#include <QPair>
#include <QPixmap> #include <QPixmap>
#include <QPointF> #include <QPointF>
#include <QRadialGradient> #include <QRadialGradient>

View File

@ -16,14 +16,12 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QBuffer; class QBuffer;
class QByteArray;
class QIODevice; class QIODevice;
class QMetaMethod; class QMetaMethod;
class QMetaObject; class QMetaObject;
class QObject; class QObject;
#else #else
typedef struct QBuffer QBuffer; typedef struct QBuffer QBuffer;
typedef struct QByteArray QByteArray;
typedef struct QIODevice QIODevice; typedef struct QIODevice QIODevice;
typedef struct QMetaMethod QMetaMethod; typedef struct QMetaMethod QMetaMethod;
typedef struct QMetaObject QMetaObject; typedef struct QMetaObject QMetaObject;

View File

@ -15,11 +15,9 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QByteArrayMatcher; class QByteArrayMatcher;
class QStaticByteArrayMatcherBase; class QStaticByteArrayMatcherBase;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QByteArrayMatcher QByteArrayMatcher; typedef struct QByteArrayMatcher QByteArrayMatcher;
typedef struct QStaticByteArrayMatcherBase QStaticByteArrayMatcherBase; typedef struct QStaticByteArrayMatcherBase QStaticByteArrayMatcherBase;
#endif #endif

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QActionEvent; class QActionEvent;
class QByteArray;
class QCalendar; class QCalendar;
class QCalendarWidget; class QCalendarWidget;
class QCloseEvent; class QCloseEvent;
@ -51,7 +50,6 @@ class QWheelEvent;
class QWidget; class QWidget;
#else #else
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCalendar QCalendar; typedef struct QCalendar QCalendar;
typedef struct QCalendarWidget QCalendarWidget; typedef struct QCalendarWidget QCalendarWidget;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;

View File

@ -15,12 +15,10 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QColorSpace; class QColorSpace;
class QColorTransform; class QColorTransform;
class QPointF; class QPointF;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QColorSpace QColorSpace; typedef struct QColorSpace QColorSpace;
typedef struct QColorTransform QColorTransform; typedef struct QColorTransform QColorTransform;
typedef struct QPointF QPointF; typedef struct QPointF QPointF;

View File

@ -19,7 +19,6 @@ class QAbstractItemDelegate;
class QAbstractItemModel; class QAbstractItemModel;
class QAbstractItemView; class QAbstractItemView;
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QComboBox; class QComboBox;
class QCompleter; class QCompleter;
@ -58,7 +57,6 @@ typedef struct QAbstractItemDelegate QAbstractItemDelegate;
typedef struct QAbstractItemModel QAbstractItemModel; typedef struct QAbstractItemModel QAbstractItemModel;
typedef struct QAbstractItemView QAbstractItemView; typedef struct QAbstractItemView QAbstractItemView;
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QComboBox QComboBox; typedef struct QComboBox QComboBox;
typedef struct QCompleter QCompleter; typedef struct QCompleter QCompleter;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAbstractItemModel; class QAbstractItemModel;
class QByteArray;
class QConcatenateTablesProxyModel; class QConcatenateTablesProxyModel;
class QMetaObject; class QMetaObject;
class QMimeData; class QMimeData;
@ -26,7 +25,6 @@ class QSize;
class QVariant; class QVariant;
#else #else
typedef struct QAbstractItemModel QAbstractItemModel; typedef struct QAbstractItemModel QAbstractItemModel;
typedef struct QByteArray QByteArray;
typedef struct QConcatenateTablesProxyModel QConcatenateTablesProxyModel; typedef struct QConcatenateTablesProxyModel QConcatenateTablesProxyModel;
typedef struct QMetaObject QMetaObject; typedef struct QMetaObject QMetaObject;
typedef struct QMimeData QMimeData; typedef struct QMimeData QMimeData;

View File

@ -15,14 +15,12 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QChildEvent; class QChildEvent;
class QDynamicPropertyChangeEvent; class QDynamicPropertyChangeEvent;
class QEvent; class QEvent;
class QObject; class QObject;
class QTimerEvent; class QTimerEvent;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QChildEvent QChildEvent; typedef struct QChildEvent QChildEvent;
typedef struct QDynamicPropertyChangeEvent QDynamicPropertyChangeEvent; typedef struct QDynamicPropertyChangeEvent QDynamicPropertyChangeEvent;
typedef struct QEvent QEvent; typedef struct QEvent QEvent;

View File

@ -15,11 +15,9 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QCryptographicHash; class QCryptographicHash;
class QIODevice; class QIODevice;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QCryptographicHash QCryptographicHash; typedef struct QCryptographicHash QCryptographicHash;
typedef struct QIODevice QIODevice; typedef struct QIODevice QIODevice;
#endif #endif

View File

@ -15,11 +15,9 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QDataStream; class QDataStream;
class QIODevice; class QIODevice;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QDataStream QDataStream; typedef struct QDataStream QDataStream;
typedef struct QIODevice QIODevice; typedef struct QIODevice QIODevice;
#endif #endif

View File

@ -17,7 +17,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAbstractItemDelegate; class QAbstractItemDelegate;
class QAbstractItemModel; class QAbstractItemModel;
class QByteArray;
class QChildEvent; class QChildEvent;
class QDataWidgetMapper; class QDataWidgetMapper;
class QEvent; class QEvent;
@ -30,7 +29,6 @@ class QWidget;
#else #else
typedef struct QAbstractItemDelegate QAbstractItemDelegate; typedef struct QAbstractItemDelegate QAbstractItemDelegate;
typedef struct QAbstractItemModel QAbstractItemModel; typedef struct QAbstractItemModel QAbstractItemModel;
typedef struct QByteArray QByteArray;
typedef struct QChildEvent QChildEvent; typedef struct QChildEvent QChildEvent;
typedef struct QDataWidgetMapper QDataWidgetMapper; typedef struct QDataWidgetMapper QDataWidgetMapper;
typedef struct QEvent QEvent; typedef struct QEvent QEvent;

View File

@ -15,14 +15,12 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QChar; class QChar;
class QDebug; class QDebug;
class QDebugStateSaver; class QDebugStateSaver;
class QIODevice; class QIODevice;
class QNoDebug; class QNoDebug;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QChar QChar; typedef struct QChar QChar;
typedef struct QDebug QDebug; typedef struct QDebug QDebug;
typedef struct QDebugStateSaver QDebugStateSaver; typedef struct QDebugStateSaver QDebugStateSaver;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
class QDesktopWidget; class QDesktopWidget;
@ -48,7 +47,6 @@ class QWheelEvent;
class QWidget; class QWidget;
#else #else
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDesktopWidget QDesktopWidget; typedef struct QDesktopWidget QDesktopWidget;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
class QDialog; class QDialog;
@ -47,7 +46,6 @@ class QWheelEvent;
class QWidget; class QWidget;
#else #else
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDialog QDialog; typedef struct QDialog QDialog;

View File

@ -17,7 +17,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAbstractButton; class QAbstractButton;
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
class QDialogButtonBox; class QDialogButtonBox;
@ -50,7 +49,6 @@ class QWidget;
#else #else
typedef struct QAbstractButton QAbstractButton; typedef struct QAbstractButton QAbstractButton;
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDialogButtonBox QDialogButtonBox; typedef struct QDialogButtonBox QDialogButtonBox;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAbstractItemModel; class QAbstractItemModel;
class QByteArray;
class QDirModel; class QDirModel;
class QFileIconProvider; class QFileIconProvider;
class QFileInfo; class QFileInfo;
@ -29,7 +28,6 @@ class QSize;
class QVariant; class QVariant;
#else #else
typedef struct QAbstractItemModel QAbstractItemModel; typedef struct QAbstractItemModel QAbstractItemModel;
typedef struct QByteArray QByteArray;
typedef struct QDirModel QDirModel; typedef struct QDirModel QDirModel;
typedef struct QFileIconProvider QFileIconProvider; typedef struct QFileIconProvider QFileIconProvider;
typedef struct QFileInfo QFileInfo; typedef struct QFileInfo QFileInfo;

View File

@ -17,7 +17,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAction; class QAction;
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
class QDockWidget; class QDockWidget;
@ -49,7 +48,6 @@ class QWidget;
#else #else
typedef struct QAction QAction; typedef struct QAction QAction;
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDockWidget QDockWidget; typedef struct QDockWidget QDockWidget;

View File

@ -15,14 +15,12 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QFile; class QFile;
class QFileDevice; class QFileDevice;
class QIODevice; class QIODevice;
class QMetaObject; class QMetaObject;
class QObject; class QObject;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QFile QFile; typedef struct QFile QFile;
typedef struct QFileDevice QFileDevice; typedef struct QFileDevice QFileDevice;
typedef struct QIODevice QIODevice; typedef struct QIODevice QIODevice;

View File

@ -17,7 +17,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAbstractItemDelegate; class QAbstractItemDelegate;
class QAbstractProxyModel; class QAbstractProxyModel;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
class QDialog; class QDialog;
@ -37,7 +36,6 @@ class QWidget;
#else #else
typedef struct QAbstractItemDelegate QAbstractItemDelegate; typedef struct QAbstractItemDelegate QAbstractItemDelegate;
typedef struct QAbstractProxyModel QAbstractProxyModel; typedef struct QAbstractProxyModel QAbstractProxyModel;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDialog QDialog; typedef struct QDialog QDialog;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAbstractItemModel; class QAbstractItemModel;
class QByteArray;
class QDateTime; class QDateTime;
class QDir; class QDir;
class QEvent; class QEvent;
@ -33,7 +32,6 @@ class QTimerEvent;
class QVariant; class QVariant;
#else #else
typedef struct QAbstractItemModel QAbstractItemModel; typedef struct QAbstractItemModel QAbstractItemModel;
typedef struct QByteArray QByteArray;
typedef struct QDateTime QDateTime; typedef struct QDateTime QDateTime;
typedef struct QDir QDir; typedef struct QDir QDir;
typedef struct QEvent QEvent; typedef struct QEvent QEvent;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
class QDragEnterEvent; class QDragEnterEvent;
@ -47,7 +46,6 @@ class QWheelEvent;
class QWidget; class QWidget;
#else #else
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDragEnterEvent QDragEnterEvent; typedef struct QDragEnterEvent QDragEnterEvent;

View File

@ -15,12 +15,10 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QFont; class QFont;
class QFontDatabase; class QFontDatabase;
class QFontInfo; class QFontInfo;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QFont QFont; typedef struct QFont QFont;
typedef struct QFontDatabase QFontDatabase; typedef struct QFontDatabase QFontDatabase;
typedef struct QFontInfo QFontInfo; typedef struct QFontInfo QFontInfo;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
class QDragEnterEvent; class QDragEnterEvent;
@ -48,7 +47,6 @@ class QWheelEvent;
class QWidget; class QWidget;
#else #else
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDragEnterEvent QDragEnterEvent; typedef struct QDragEnterEvent QDragEnterEvent;

View File

@ -7,6 +7,7 @@
#include <QMetaMethod> #include <QMetaMethod>
#include <QMetaObject> #include <QMetaObject>
#include <QObject> #include <QObject>
#include <QPair>
#include <QPointF> #include <QPointF>
#include <QString> #include <QString>
#include <QByteArray> #include <QByteArray>

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QActionEvent; class QActionEvent;
class QByteArray;
class QChildEvent; class QChildEvent;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
@ -48,7 +47,6 @@ class QWheelEvent;
class QWidget; class QWidget;
#else #else
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QChildEvent QChildEvent; typedef struct QChildEvent QChildEvent;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;

View File

@ -18,7 +18,6 @@ extern "C" {
class QAbstractItemModel; class QAbstractItemModel;
class QAbstractItemView; class QAbstractItemView;
class QAbstractScrollArea; class QAbstractScrollArea;
class QByteArray;
class QDragEnterEvent; class QDragEnterEvent;
class QDragLeaveEvent; class QDragLeaveEvent;
class QDragMoveEvent; class QDragMoveEvent;
@ -51,7 +50,6 @@ class QWidget;
typedef struct QAbstractItemModel QAbstractItemModel; typedef struct QAbstractItemModel QAbstractItemModel;
typedef struct QAbstractItemView QAbstractItemView; typedef struct QAbstractItemView QAbstractItemView;
typedef struct QAbstractScrollArea QAbstractScrollArea; typedef struct QAbstractScrollArea QAbstractScrollArea;
typedef struct QByteArray QByteArray;
typedef struct QDragEnterEvent QDragEnterEvent; typedef struct QDragEnterEvent QDragEnterEvent;
typedef struct QDragLeaveEvent QDragLeaveEvent; typedef struct QDragLeaveEvent QDragLeaveEvent;
typedef struct QDragMoveEvent QDragMoveEvent; typedef struct QDragMoveEvent QDragMoveEvent;

View File

@ -15,7 +15,6 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QColor; class QColor;
class QColorSpace; class QColorSpace;
class QColorTransform; class QColorTransform;
@ -31,7 +30,6 @@ class QRect;
class QSize; class QSize;
class QTransform; class QTransform;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QColor QColor; typedef struct QColor QColor;
typedef struct QColorSpace QColorSpace; typedef struct QColorSpace QColorSpace;
typedef struct QColorTransform QColorTransform; typedef struct QColorTransform QColorTransform;

View File

@ -15,7 +15,6 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QChildEvent; class QChildEvent;
class QEvent; class QEvent;
class QIODevice; class QIODevice;
@ -29,7 +28,6 @@ class QRect;
class QTimerEvent; class QTimerEvent;
class QVariant; class QVariant;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QChildEvent QChildEvent; typedef struct QChildEvent QChildEvent;
typedef struct QEvent QEvent; typedef struct QEvent QEvent;
typedef struct QIODevice QIODevice; typedef struct QIODevice QIODevice;

View File

@ -15,7 +15,6 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QColor; class QColor;
class QIODevice; class QIODevice;
class QImage; class QImage;
@ -23,7 +22,6 @@ class QImageReader;
class QRect; class QRect;
class QSize; class QSize;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QColor QColor; typedef struct QColor QColor;
typedef struct QIODevice QIODevice; typedef struct QIODevice QIODevice;
typedef struct QImage QImage; typedef struct QImage QImage;

View File

@ -15,12 +15,10 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QIODevice; class QIODevice;
class QImage; class QImage;
class QImageWriter; class QImageWriter;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QIODevice QIODevice; typedef struct QIODevice QIODevice;
typedef struct QImage QImage; typedef struct QImage QImage;
typedef struct QImageWriter QImageWriter; typedef struct QImageWriter QImageWriter;

View File

@ -15,7 +15,6 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QChildEvent; class QChildEvent;
class QEvent; class QEvent;
class QIODevice; class QIODevice;
@ -24,7 +23,6 @@ class QMetaObject;
class QObject; class QObject;
class QTimerEvent; class QTimerEvent;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QChildEvent QChildEvent; typedef struct QChildEvent QChildEvent;
typedef struct QEvent QEvent; typedef struct QEvent QEvent;
typedef struct QIODevice QIODevice; typedef struct QIODevice QIODevice;

View File

@ -15,12 +15,10 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QItemEditorCreatorBase; class QItemEditorCreatorBase;
class QItemEditorFactory; class QItemEditorFactory;
class QWidget; class QWidget;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QItemEditorCreatorBase QItemEditorCreatorBase; typedef struct QItemEditorCreatorBase QItemEditorCreatorBase;
typedef struct QItemEditorFactory QItemEditorFactory; typedef struct QItemEditorFactory QItemEditorFactory;
typedef struct QWidget QWidget; typedef struct QWidget QWidget;

View File

@ -15,7 +15,6 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QJsonArray; class QJsonArray;
class QJsonDocument; class QJsonDocument;
class QJsonObject; class QJsonObject;
@ -23,7 +22,6 @@ class QJsonParseError;
class QJsonValue; class QJsonValue;
class QVariant; class QVariant;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QJsonArray QJsonArray; typedef struct QJsonArray QJsonArray;
typedef struct QJsonDocument QJsonDocument; typedef struct QJsonDocument QJsonDocument;
typedef struct QJsonObject QJsonObject; typedef struct QJsonObject QJsonObject;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
class QDragEnterEvent; class QDragEnterEvent;
@ -49,7 +48,6 @@ class QWheelEvent;
class QWidget; class QWidget;
#else #else
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDragEnterEvent QDragEnterEvent; typedef struct QDragEnterEvent QDragEnterEvent;

View File

@ -17,7 +17,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAction; class QAction;
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QCompleter; class QCompleter;
class QContextMenuEvent; class QContextMenuEvent;
@ -54,7 +53,6 @@ class QWidget;
#else #else
typedef struct QAction QAction; typedef struct QAction QAction;
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QCompleter QCompleter; typedef struct QCompleter QCompleter;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
class QDockWidget; class QDockWidget;
@ -52,7 +51,6 @@ class QWheelEvent;
class QWidget; class QWidget;
#else #else
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDockWidget QDockWidget; typedef struct QDockWidget QDockWidget;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QActionEvent; class QActionEvent;
class QByteArray;
class QChildEvent; class QChildEvent;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
@ -51,7 +50,6 @@ class QWheelEvent;
class QWidget; class QWidget;
#else #else
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QChildEvent QChildEvent; typedef struct QChildEvent QChildEvent;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;

View File

@ -17,7 +17,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAction; class QAction;
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
class QDragEnterEvent; class QDragEnterEvent;
@ -52,7 +51,6 @@ class QWidget;
#else #else
typedef struct QAction QAction; typedef struct QAction QAction;
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDragEnterEvent QDragEnterEvent; typedef struct QDragEnterEvent QDragEnterEvent;

View File

@ -17,7 +17,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAction; class QAction;
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
class QDragEnterEvent; class QDragEnterEvent;
@ -53,7 +52,6 @@ class QWidget;
#else #else
typedef struct QAction QAction; typedef struct QAction QAction;
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDragEnterEvent QDragEnterEvent; typedef struct QDragEnterEvent QDragEnterEvent;

View File

@ -15,11 +15,9 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QIODevice; class QIODevice;
class QMessageAuthenticationCode; class QMessageAuthenticationCode;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QIODevice QIODevice; typedef struct QIODevice QIODevice;
typedef struct QMessageAuthenticationCode QMessageAuthenticationCode; typedef struct QMessageAuthenticationCode QMessageAuthenticationCode;
#endif #endif

View File

@ -15,7 +15,6 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QGenericArgument; class QGenericArgument;
class QGenericReturnArgument; class QGenericReturnArgument;
class QMetaClassInfo; class QMetaClassInfo;
@ -26,7 +25,6 @@ class QMetaProperty;
class QObject; class QObject;
class QVariant; class QVariant;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QGenericArgument QGenericArgument; typedef struct QGenericArgument QGenericArgument;
typedef struct QGenericReturnArgument QGenericReturnArgument; typedef struct QGenericReturnArgument QGenericReturnArgument;
typedef struct QMetaClassInfo QMetaClassInfo; typedef struct QMetaClassInfo QMetaClassInfo;

View File

@ -15,13 +15,11 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QDataStream; class QDataStream;
class QDebug; class QDebug;
class QMetaObject; class QMetaObject;
class QMetaType; class QMetaType;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QDataStream QDataStream; typedef struct QDataStream QDataStream;
typedef struct QDebug QDebug; typedef struct QDebug QDebug;
typedef struct QMetaObject QMetaObject; typedef struct QMetaObject QMetaObject;

View File

@ -15,7 +15,6 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QChildEvent; class QChildEvent;
class QEvent; class QEvent;
class QMetaMethod; class QMetaMethod;
@ -26,7 +25,6 @@ class QTimerEvent;
class QUrl; class QUrl;
class QVariant; class QVariant;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QChildEvent QChildEvent; typedef struct QChildEvent QChildEvent;
typedef struct QEvent QEvent; typedef struct QEvent QEvent;
typedef struct QMetaMethod QMetaMethod; typedef struct QMetaMethod QMetaMethod;

View File

@ -15,14 +15,12 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QFileInfo; class QFileInfo;
class QIODevice; class QIODevice;
class QMimeDatabase; class QMimeDatabase;
class QMimeType; class QMimeType;
class QUrl; class QUrl;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QFileInfo QFileInfo; typedef struct QFileInfo QFileInfo;
typedef struct QIODevice QIODevice; typedef struct QIODevice QIODevice;
typedef struct QMimeDatabase QMimeDatabase; typedef struct QMimeDatabase QMimeDatabase;

View File

@ -15,7 +15,6 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QChildEvent; class QChildEvent;
class QColor; class QColor;
class QEvent; class QEvent;
@ -30,7 +29,6 @@ class QRect;
class QSize; class QSize;
class QTimerEvent; class QTimerEvent;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QChildEvent QChildEvent; typedef struct QChildEvent QChildEvent;
typedef struct QColor QColor; typedef struct QColor QColor;
typedef struct QEvent QEvent; typedef struct QEvent QEvent;

View File

@ -15,7 +15,6 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QChildEvent; class QChildEvent;
class QEvent; class QEvent;
class QMetaMethod; class QMetaMethod;
@ -33,7 +32,6 @@ class QThread;
class QTimerEvent; class QTimerEvent;
class QVariant; class QVariant;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QChildEvent QChildEvent; typedef struct QChildEvent QChildEvent;
typedef struct QEvent QEvent; typedef struct QEvent QEvent;
typedef struct QMetaMethod QMetaMethod; typedef struct QMetaMethod QMetaMethod;

View File

@ -15,7 +15,6 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QGenericArgument; class QGenericArgument;
class QGenericReturnArgument; class QGenericReturnArgument;
class QMetaClassInfo; class QMetaClassInfo;
@ -35,7 +34,6 @@ class QMetaObject__SuperData;
class QMetaProperty; class QMetaProperty;
class QObject; class QObject;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QGenericArgument QGenericArgument; typedef struct QGenericArgument QGenericArgument;
typedef struct QGenericReturnArgument QGenericReturnArgument; typedef struct QGenericReturnArgument QGenericReturnArgument;
typedef struct QMetaClassInfo QMetaClassInfo; typedef struct QMetaClassInfo QMetaClassInfo;

View File

@ -15,7 +15,6 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QChildEvent; class QChildEvent;
class QEvent; class QEvent;
class QIODevice; class QIODevice;
@ -34,7 +33,6 @@ class QPdfWriter;
class QSizeF; class QSizeF;
class QTimerEvent; class QTimerEvent;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QChildEvent QChildEvent; typedef struct QChildEvent QChildEvent;
typedef struct QEvent QEvent; typedef struct QEvent QEvent;
typedef struct QIODevice QIODevice; typedef struct QIODevice QIODevice;

View File

@ -15,7 +15,6 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QIODevice; class QIODevice;
class QPaintDevice; class QPaintDevice;
class QPaintEngine; class QPaintEngine;
@ -25,7 +24,6 @@ class QPictureIO;
class QPoint; class QPoint;
class QRect; class QRect;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QIODevice QIODevice; typedef struct QIODevice QIODevice;
typedef struct QPaintDevice QPaintDevice; typedef struct QPaintDevice QPaintDevice;
typedef struct QPaintEngine QPaintEngine; typedef struct QPaintEngine QPaintEngine;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QBitmap; class QBitmap;
class QByteArray;
class QColor; class QColor;
class QIODevice; class QIODevice;
class QImage; class QImage;
@ -34,7 +33,6 @@ class QSize;
class QTransform; class QTransform;
#else #else
typedef struct QBitmap QBitmap; typedef struct QBitmap QBitmap;
typedef struct QByteArray QByteArray;
typedef struct QColor QColor; typedef struct QColor QColor;
typedef struct QIODevice QIODevice; typedef struct QIODevice QIODevice;
typedef struct QImage QImage; typedef struct QImage QImage;

View File

@ -15,14 +15,12 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QIODevice; class QIODevice;
class QMetaObject; class QMetaObject;
class QObject; class QObject;
class QProcess; class QProcess;
class QProcessEnvironment; class QProcessEnvironment;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QIODevice QIODevice; typedef struct QIODevice QIODevice;
typedef struct QMetaObject QMetaObject; typedef struct QMetaObject QMetaObject;
typedef struct QObject QObject; typedef struct QObject QObject;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
class QDragEnterEvent; class QDragEnterEvent;
@ -47,7 +46,6 @@ class QWheelEvent;
class QWidget; class QWidget;
#else #else
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDragEnterEvent QDragEnterEvent; typedef struct QDragEnterEvent QDragEnterEvent;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAbstractAnimation; class QAbstractAnimation;
class QByteArray;
class QEvent; class QEvent;
class QMetaObject; class QMetaObject;
class QObject; class QObject;
@ -25,7 +24,6 @@ class QVariant;
class QVariantAnimation; class QVariantAnimation;
#else #else
typedef struct QAbstractAnimation QAbstractAnimation; typedef struct QAbstractAnimation QAbstractAnimation;
typedef struct QByteArray QByteArray;
typedef struct QEvent QEvent; typedef struct QEvent QEvent;
typedef struct QMetaObject QMetaObject; typedef struct QMetaObject QMetaObject;
typedef struct QObject QObject; typedef struct QObject QObject;

View File

@ -15,7 +15,6 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QChar; class QChar;
class QFont; class QFont;
class QImage; class QImage;
@ -25,7 +24,6 @@ class QRawFont;
class QRectF; class QRectF;
class QTransform; class QTransform;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QChar QChar; typedef struct QChar QChar;
typedef struct QFont QFont; typedef struct QFont QFont;
typedef struct QImage QImage; typedef struct QImage QImage;

View File

@ -15,12 +15,10 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QDateTime; class QDateTime;
class QLocale; class QLocale;
class QResource; class QResource;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QDateTime QDateTime; typedef struct QDateTime QDateTime;
typedef struct QLocale QLocale; typedef struct QLocale QLocale;
typedef struct QResource QResource; typedef struct QResource QResource;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
class QDragEnterEvent; class QDragEnterEvent;
@ -48,7 +47,6 @@ class QWheelEvent;
class QWidget; class QWidget;
#else #else
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDragEnterEvent QDragEnterEvent; typedef struct QDragEnterEvent QDragEnterEvent;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAbstractTransition; class QAbstractTransition;
class QByteArray;
class QEvent; class QEvent;
class QMetaObject; class QMetaObject;
class QObject; class QObject;
@ -24,7 +23,6 @@ class QSignalTransition;
class QState; class QState;
#else #else
typedef struct QAbstractTransition QAbstractTransition; typedef struct QAbstractTransition QAbstractTransition;
typedef struct QByteArray QByteArray;
typedef struct QEvent QEvent; typedef struct QEvent QEvent;
typedef struct QMetaObject QMetaObject; typedef struct QMetaObject QMetaObject;
typedef struct QObject QObject; typedef struct QObject QObject;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
class QDragEnterEvent; class QDragEnterEvent;
@ -47,7 +46,6 @@ class QWheelEvent;
class QWidget; class QWidget;
#else #else
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDragEnterEvent QDragEnterEvent; typedef struct QDragEnterEvent QDragEnterEvent;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QColor; class QColor;
class QContextMenuEvent; class QContextMenuEvent;
@ -50,7 +49,6 @@ class QWheelEvent;
class QWidget; class QWidget;
#else #else
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QColor QColor; typedef struct QColor QColor;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QActionEvent; class QActionEvent;
class QByteArray;
class QChildEvent; class QChildEvent;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
@ -50,7 +49,6 @@ class QWheelEvent;
class QWidget; class QWidget;
#else #else
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QChildEvent QChildEvent; typedef struct QChildEvent QChildEvent;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;

View File

@ -17,7 +17,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAbstractItemModel; class QAbstractItemModel;
class QBrush; class QBrush;
class QByteArray;
class QDataStream; class QDataStream;
class QFont; class QFont;
class QIcon; class QIcon;
@ -32,7 +31,6 @@ class QVariant;
#else #else
typedef struct QAbstractItemModel QAbstractItemModel; typedef struct QAbstractItemModel QAbstractItemModel;
typedef struct QBrush QBrush; typedef struct QBrush QBrush;
typedef struct QByteArray QByteArray;
typedef struct QDataStream QDataStream; typedef struct QDataStream QDataStream;
typedef struct QFont QFont; typedef struct QFont QFont;
typedef struct QIcon QIcon; typedef struct QIcon QIcon;

View File

@ -4,6 +4,7 @@
#include <QList> #include <QList>
#include <QMetaObject> #include <QMetaObject>
#include <QObject> #include <QObject>
#include <QSet>
#include <QState> #include <QState>
#include <QStateMachine> #include <QStateMachine>
#define WORKAROUND_INNER_CLASS_DEFINITION_QStateMachine__SignalEvent #define WORKAROUND_INNER_CLASS_DEFINITION_QStateMachine__SignalEvent

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
class QDragEnterEvent; class QDragEnterEvent;
@ -47,7 +46,6 @@ class QWheelEvent;
class QWidget; class QWidget;
#else #else
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDragEnterEvent QDragEnterEvent; typedef struct QDragEnterEvent QDragEnterEvent;

View File

@ -15,11 +15,9 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QDir; class QDir;
class QStorageInfo; class QStorageInfo;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QDir QDir; typedef struct QDir QDir;
typedef struct QStorageInfo QStorageInfo; typedef struct QStorageInfo QStorageInfo;
#endif #endif

View File

@ -15,11 +15,9 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QChar; class QChar;
class QStringView; class QStringView;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QChar QChar; typedef struct QChar QChar;
typedef struct QStringView QStringView; typedef struct QStringView QStringView;
#endif #endif

View File

@ -1,3 +1,4 @@
#include <QPair>
#include <QSurfaceFormat> #include <QSurfaceFormat>
#include <qsurfaceformat.h> #include <qsurfaceformat.h>
#include "gen_qsurfaceformat.h" #include "gen_qsurfaceformat.h"

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QColor; class QColor;
class QContextMenuEvent; class QContextMenuEvent;
@ -51,7 +50,6 @@ class QWheelEvent;
class QWidget; class QWidget;
#else #else
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QColor QColor; typedef struct QColor QColor;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;

View File

@ -16,7 +16,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QActionEvent; class QActionEvent;
class QByteArray;
class QCloseEvent; class QCloseEvent;
class QContextMenuEvent; class QContextMenuEvent;
class QDragEnterEvent; class QDragEnterEvent;
@ -49,7 +48,6 @@ class QWheelEvent;
class QWidget; class QWidget;
#else #else
typedef struct QActionEvent QActionEvent; typedef struct QActionEvent QActionEvent;
typedef struct QByteArray QByteArray;
typedef struct QCloseEvent QCloseEvent; typedef struct QCloseEvent QCloseEvent;
typedef struct QContextMenuEvent QContextMenuEvent; typedef struct QContextMenuEvent QContextMenuEvent;
typedef struct QDragEnterEvent QDragEnterEvent; typedef struct QDragEnterEvent QDragEnterEvent;

View File

@ -15,7 +15,6 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QChar; class QChar;
class QTextCodec; class QTextCodec;
#if defined(WORKAROUND_INNER_CLASS_DEFINITION_QTextCodec__ConverterState) #if defined(WORKAROUND_INNER_CLASS_DEFINITION_QTextCodec__ConverterState)
@ -26,7 +25,6 @@ class QTextCodec__ConverterState;
class QTextDecoder; class QTextDecoder;
class QTextEncoder; class QTextEncoder;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QChar QChar; typedef struct QChar QChar;
typedef struct QTextCodec QTextCodec; typedef struct QTextCodec QTextCodec;
typedef struct QTextCodec__ConverterState QTextCodec__ConverterState; typedef struct QTextCodec__ConverterState QTextCodec__ConverterState;

View File

@ -17,7 +17,6 @@ extern "C" {
#ifdef __cplusplus #ifdef __cplusplus
class QAbstractTextDocumentLayout; class QAbstractTextDocumentLayout;
class QAbstractUndoItem; class QAbstractUndoItem;
class QByteArray;
class QChar; class QChar;
class QChildEvent; class QChildEvent;
class QEvent; class QEvent;
@ -44,7 +43,6 @@ class QVariant;
#else #else
typedef struct QAbstractTextDocumentLayout QAbstractTextDocumentLayout; typedef struct QAbstractTextDocumentLayout QAbstractTextDocumentLayout;
typedef struct QAbstractUndoItem QAbstractUndoItem; typedef struct QAbstractUndoItem QAbstractUndoItem;
typedef struct QByteArray QByteArray;
typedef struct QChar QChar; typedef struct QChar QChar;
typedef struct QChildEvent QChildEvent; typedef struct QChildEvent QChildEvent;
typedef struct QEvent QEvent; typedef struct QEvent QEvent;

View File

@ -15,12 +15,10 @@ extern "C" {
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
class QByteArray;
class QTextCursor; class QTextCursor;
class QTextDocument; class QTextDocument;
class QTextDocumentFragment; class QTextDocumentFragment;
#else #else
typedef struct QByteArray QByteArray;
typedef struct QTextCursor QTextCursor; typedef struct QTextCursor QTextCursor;
typedef struct QTextDocument QTextDocument; typedef struct QTextDocument QTextDocument;
typedef struct QTextDocumentFragment QTextDocumentFragment; typedef struct QTextDocumentFragment QTextDocumentFragment;

Some files were not shown because too many files have changed in this diff Show More