From 5966329c62ce0f1a1b901b4b64988d6ba917bd43 Mon Sep 17 00:00:00 2001 From: Christian Tismer Date: Tue, 21 Jul 2015 03:39:55 +0200 Subject: make QtWidgets compile. Actually, two methods from QGraphicsScene stuff don't compile (see cmake file). This looks like a shiboken bug, but it is not clear why this ever worked. Anyway, I consider pyside2 far enough to start the debugging phase. --- PySide/QtWidgets/CMakeLists.txt | 17 ++- PySide/QtWidgets/curr_errors.txt | 43 +++--- PySide/QtWidgets/typesystem_widgets_common.xml | 178 ++++++------------------- 3 files changed, 75 insertions(+), 163 deletions(-) diff --git a/PySide/QtWidgets/CMakeLists.txt b/PySide/QtWidgets/CMakeLists.txt index 1811e2b69..611c6b578 100644 --- a/PySide/QtWidgets/CMakeLists.txt +++ b/PySide/QtWidgets/CMakeLists.txt @@ -4,6 +4,7 @@ project(QtWidgets) set(QtWidgets_OPTIONAL_SRC ) set(QtWidgets_DROPPED_ENTRIES ) ## gone check_qt_class(Qt5Widgets QAbstractPageSetupDialog QtWidgets_OPTIONAL_SRC QtWidgets_DROPPED_ENTRIES) +## actually, all the printer stuff is in QtPrintSupport, maybe support it? check_qt_class(Qt5Widgets QAbstractPrintDialog QtWidgets_OPTIONAL_SRC QtWidgets_DROPPED_ENTRIES) check_qt_class(Qt5Widgets QGtkStyle QtWidgets_OPTIONAL_SRC QtWidgets_DROPPED_ENTRIES) check_qt_class(Qt5Widgets QPageSetupDialog QtWidgets_OPTIONAL_SRC QtWidgets_DROPPED_ENTRIES) @@ -34,7 +35,7 @@ ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qbuttongroup_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qcalendarwidget_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qcheckbox_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qcolordialog_wrapper.cpp -### Symbol not found: __ZN11QColumnView16staticMetaObjectE${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qcolumnview_wrapper.cpp +${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qcolumnview_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qcombobox_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qcommandlinkbutton_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qcommonstyle_wrapper.cpp @@ -85,7 +86,9 @@ ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qgraphicsproxywidget_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qgraphicsrectitem_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qgraphicsrotation_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qgraphicsscale_wrapper.cpp -### no member named 'children' in 'QGraphicsItemGroup' ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qgraphicsscene_wrapper.cpp +### cannot initialize a parameter of type 'QGraphicsItem **' with an +### lvalue of type '::QGraphicsItem *' ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qgraphicsscene_wrapper.cpp +### how could this ever work in Qt4? ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qgraphicsscenecontextmenuevent_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qgraphicsscenedragdropevent_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qgraphicssceneevent_wrapper.cpp @@ -97,8 +100,10 @@ ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qgraphicssceneresizeevent_wrapper.c ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qgraphicsscenewheelevent_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qgraphicssimpletextitem_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qgraphicstextitem_wrapper.cpp -### allocating an object of abstract class type '::QGraphicsTransformWrapper' ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qgraphicstransform_wrapper.cpp -${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qgraphicsview_wrapper.cpp +${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qgraphicstransform_wrapper.cpp +### cannot initialize a parameter of type 'QGraphicsItem **' with an +### lvalue of type '::QGraphicsItem *' ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qgraphicsview_wrapper.cpp +### how could this ever work in Qt4? ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qgraphicswidget_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qgridlayout_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qgroupbox_wrapper.cpp @@ -117,12 +122,12 @@ ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qlineedit_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qlistview_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qlistwidget_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qlistwidgetitem_wrapper.cpp -### Symbol not found: __ZN11QMainWindow16staticMetaObjectE${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qmainwindow_wrapper.cpp +${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qmainwindow_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qmdiarea_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qmdisubwindow_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qmenu_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qmenubar_wrapper.cpp -### Symbol not found: __ZN11QMessageBox16staticMetaObjectE${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qmessagebox_wrapper.cpp +${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qmessagebox_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qmouseeventtransition_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qpangesture_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PySide/QtWidgets/qpinchgesture_wrapper.cpp diff --git a/PySide/QtWidgets/curr_errors.txt b/PySide/QtWidgets/curr_errors.txt index 10a200c3e..13ccc19c4 100644 --- a/PySide/QtWidgets/curr_errors.txt +++ b/PySide/QtWidgets/curr_errors.txt @@ -1,4 +1,18 @@ -Generating class model... [OK] +Generating class model... [WARNING] + enum 'QGraphicsItem::UserType' does not have a type entry or is not an enum + enum 'QGraphicsWidget::Type' does not have a type entry or is not an enum + enum 'QGraphicsProxyWidget::Type' does not have a type entry or is not an enum + enum 'QGraphicsEllipseItem::Type' does not have a type entry or is not an enum + enum 'QGraphicsPixmapItem::Type' does not have a type entry or is not an enum + enum 'QGraphicsSimpleTextItem::Type' does not have a type entry or is not an enum + enum 'QGraphicsTextItem::Type' does not have a type entry or is not an enum + enum 'QGraphicsItemGroup::Type' does not have a type entry or is not an enum + enum 'QGraphicsRectItem::Type' does not have a type entry or is not an enum + enum 'QGraphicsLineItem::Type' does not have a type entry or is not an enum + enum 'QGraphicsPathItem::Type' does not have a type entry or is not an enum + enum 'QGraphicsPolygonItem::Type' does not have a type entry or is not an enum + + Generating enum model... [OK] Generating namespace model... [OK] Resolving typedefs... [OK] @@ -6,28 +20,11 @@ Fixing class inheritance... [OK] Detecting inconsistencies in class model... [OK] [OK] - signature 'layoutSpacingImplementation(QSizePolicy::ControlType,QSizePolicy::ControlType,Qt::Orientation,const QStyleOption*,const QWidget*)const' for function modification in 'QStyle' not found. Possible candidates: - signature 'addButton(QAbstractButton*)' for function modification in 'QButtonGroup' not found. Possible candidates: addButton(QAbstractButton*,int) in QButtonGroup - signature 'getColor(QColor,QWidget*)' for function modification in 'QColorDialog' not found. Possible candidates: getColor(QColor,QWidget*,QString,QFlags) in QColorDialog - There's no user provided way (conversion rule, argument removal, custom code, etc) to handle the primitive argument type 'QString *' in function 'QFileDialog::getOpenFileUrl(QWidget * parent, const QString & caption, const QUrl & dir, const QString & filter, QString * selectedFilter, QFlags options, const QStringList & supportedSchemes)'. - signature 'overrideCursor()' for function modification in 'QApplication' not found. Possible candidates: overrideCursor() in QGuiApplication - signature 'addToolbar(Qt::ToolBarArea,QToolBar*)' for function modification in 'QMainWindow' not found. Possible candidates: - There's no user provided way (conversion rule, argument removal, custom code, etc) to handle the primitive argument type 'bool *' in function 'QInputDialog::getItem(QWidget * parent, const QString & title, const QString & label, const QStringList & items, int current, bool editable, bool * ok, QFlags flags, QFlags inputMethodHints)'. - signature 'indexOfTopLevelItem(QTreeWidgetItem*)' for function modification in 'QTreeWidget' not found. Possible candidates: indexOfTopLevelItem(QTreeWidgetItem*)const in QTreeWidget - signature 'children()const' for function modification in 'QGraphicsItem' not found. Possible candidates: - signature 'setHeaderVisible(bool)' for function modification in 'QCalendarWidget' not found. Possible candidates: - There's no user provided way (conversion rule, argument removal, custom code, etc) to handle the primitive argument type 'bool *' in function 'QInputDialog::getMultiLineText(QWidget * parent, const QString & title, const QString & label, const QString & text, bool * ok, QFlags flags, QFlags inputMethodHints)'. - signature 'getItem(QWidget*,QString,QString,QStringList,int,bool,bool*,QFlags)' for function modification in 'QInputDialog' not found. Possible candidates: getItem(QWidget*,QString,QString,QStringList,int,bool,bool*,QFlags,QFlags) in QInputDialog - signature 'addToolbar(QString)' for function modification in 'QMainWindow' not found. Possible candidates: - signature 'getText(QWidget*,QString,QString,QLineEdit::EchoMode,QString,bool*,QFlags)' for function modification in 'QInputDialog' not found. Possible candidates: getText(QWidget*,QString,QString,QLineEdit::EchoMode,QString,bool*,QFlags,QFlags) in QInputDialog - signature 'winId()const' for function modification in 'QWidget' not found. Possible candidates: - There's no user provided way (conversion rule, argument removal, custom code, etc) to handle the primitive argument type 'long *' in function 'QWidget::nativeEvent(const QByteArray & eventType, void * message, long * result)'. - signature 'setInputContext(QInputContext*)' for function modification in 'QWidget' not found. Possible candidates: - signature 'clipboard()' for function modification in 'QApplication' not found. Possible candidates: clipboard() in QGuiApplication - signature 'addToolbar(QToolBar*)' for function modification in 'QMainWindow' not found. Possible candidates: - There's no user provided way (conversion rule, argument removal, custom code, etc) to handle the primitive argument type 'bool *' in function 'QInputDialog::getText(QWidget * parent, const QString & title, const QString & label, QLineEdit::EchoMode echo, const QString & text, bool * ok, QFlags flags, QFlags inputMethodHints)'. - There's no user provided way (conversion rule, argument removal, custom code, etc) to handle the primitive argument type 'QString *' in function 'QFileDialog::getOpenFileUrls(QWidget * parent, const QString & caption, const QUrl & dir, const QString & filter, QString * selectedFilter, QFlags options, const QStringList & supportedSchemes)'. There's no user provided way (conversion rule, argument removal, custom code, etc) to handle the primitive argument type 'QString *' in function 'QFileDialog::getSaveFileUrl(QWidget * parent, const QString & caption, const QUrl & dir, const QString & filter, QString * selectedFilter, QFlags options, const QStringList & supportedSchemes)'. + There's no user provided way (conversion rule, argument removal, custom code, etc) to handle the primitive argument type 'QString *' in function 'QFileDialog::getOpenFileUrls(QWidget * parent, const QString & caption, const QUrl & dir, const QString & filter, QString * selectedFilter, QFlags options, const QStringList & supportedSchemes)'. + There's no user provided way (conversion rule, argument removal, custom code, etc) to handle the primitive argument type 'bool *' in function 'QInputDialog::getMultiLineText(QWidget * parent, const QString & title, const QString & label, const QString & text, bool * ok, QFlags flags, QFlags inputMethodHints)'. + There's no user provided way (conversion rule, argument removal, custom code, etc) to handle the primitive argument type 'bool *' in function 'QColorDialog::getRgba(unsigned int rgba, bool * ok, QWidget * parent)'. + There's no user provided way (conversion rule, argument removal, custom code, etc) to handle the primitive argument type 'QString *' in function 'QFileDialog::getOpenFileUrl(QWidget * parent, const QString & caption, const QUrl & dir, const QString & filter, QString * selectedFilter, QFlags options, const QStringList & supportedSchemes)'. -Done, 22 warnings (1047 known issues) +Done, 17 warnings (1048 known issues) diff --git a/PySide/QtWidgets/typesystem_widgets_common.xml b/PySide/QtWidgets/typesystem_widgets_common.xml index 6460b65c9..64a9b9bb3 100644 --- a/PySide/QtWidgets/typesystem_widgets_common.xml +++ b/PySide/QtWidgets/typesystem_widgets_common.xml @@ -31,8 +31,6 @@ - - @@ -214,6 +212,7 @@ + @@ -260,8 +259,6 @@ - - @@ -359,13 +356,6 @@ - - - - - - - @@ -421,12 +411,6 @@ - - - - - - @@ -452,8 +436,6 @@ - - @@ -488,13 +470,6 @@ - - - - - - - @@ -585,7 +560,9 @@ + + @@ -602,15 +579,28 @@ - - - + + + + + + + + + + - - - + + + + + + + + + @@ -744,17 +734,17 @@ - + - + - + @@ -1034,8 +1024,6 @@ - - @@ -1090,8 +1078,6 @@ - - @@ -1227,7 +1213,7 @@ - + @@ -1267,9 +1253,6 @@ - - - @@ -1366,10 +1349,6 @@ - - - - @@ -1553,7 +1532,7 @@ - + @@ -1613,7 +1592,7 @@ - + @@ -1622,7 +1601,7 @@ - + @@ -1641,6 +1620,7 @@ + @@ -1648,9 +1628,8 @@ - + - @@ -1665,7 +1644,7 @@ QGraphicsItem* parentItem = %1->parentItem(); Shiboken::AutoDecRef parent(%CONVERTTOPYTHON[QGraphicsItem*](parentItem)); - foreach (QGraphicsItem* item, %1->children()) + foreach (QGraphicsItem* item, %1->childItems()) Shiboken::Object::setParent(parent, %CONVERTTOPYTHON[QGraphicsItem*](item)); %BEGIN_ALLOW_THREADS %CPPSELF.%FUNCTION_NAME(%1); @@ -1733,7 +1712,7 @@ - + @@ -1838,6 +1817,7 @@ + @@ -1845,9 +1825,6 @@ - - - @@ -1856,8 +1833,8 @@ - - + + @@ -1906,8 +1883,6 @@ } - - @@ -1917,8 +1892,6 @@ - - @@ -1930,12 +1903,6 @@ - - - - - - @@ -1971,14 +1938,9 @@ - - - - - - + @@ -2105,12 +2067,6 @@ - - - - - - @@ -2128,12 +2084,6 @@ - - - - - - @@ -2143,6 +2093,9 @@ + + + @@ -2340,11 +2293,7 @@ - - - - - + @@ -2390,19 +2339,6 @@ - - - Returns the window system identifier of the widget. - - Portable in principle, but if you use it you are probably about to do something non-portable. Be careful. - - If a widget is non-native (alien) and winId() is invoked on it, that widget will be provided a native handle. - - On X11 the type returned is long, on other platforms it's void pointer casted to a Python long long. - - This value may change at run-time. An event with type PySide.QtCore.QEvent.WinIdChange will be sent to the widget following a change in window system identifier. - - @@ -2730,10 +2666,6 @@ - - - - @@ -2888,12 +2820,6 @@ - - - - - - @@ -3044,12 +2970,6 @@ - - - - - - @@ -3126,21 +3046,11 @@ - - - - - - - - - - @@ -3162,6 +3072,7 @@ + @@ -3431,6 +3342,7 @@ + @@ -3458,6 +3370,7 @@ + @@ -3504,9 +3417,6 @@ - - - -- cgit v1.2.3