diff options
Diffstat (limited to 'sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml')
-rw-r--r-- | sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml | 290 |
1 files changed, 172 insertions, 118 deletions
diff --git a/sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml b/sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml index 08e729f19..feb2dc11b 100644 --- a/sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml +++ b/sources/pyside6/PySide6/QtGui/typesystem_gui_common.xml @@ -42,32 +42,6 @@ <function signature="qPixelFormatYuv(QPixelFormat::YUVLayout,uchar,QPixelFormat::AlphaUsage,QPixelFormat::AlphaPosition,QPixelFormat::AlphaPremultiplied,QPixelFormat::TypeInterpretation,QPixelFormat::ByteOrder)"/> <function signature="qt_set_sequence_auto_mnemonic(bool)"/> - <rejection class="*" function-name="qobject_interface_iid<QStyleFactoryInterface*>"/> - <rejection class="*" function-name="qobject_interface_iid<QAccessibleFactoryInterface*>"/> - <rejection class="*" function-name="qobject_interface_iid<QInputContextFactoryInterface*>"/> - <rejection class="*" function-name="qobject_interface_iid<QGraphicsItem*>"/> - <rejection class="*" function-name="qobject_interface_iid<QGraphicsLayout*>"/> - <rejection class="*" function-name="qobject_interface_iid<QAccessibleBridgeFactoryInterface*>"/> - <rejection class="*" function-name="qobject_interface_iid<QImageIOHandlerFactoryInterface*>"/> - <rejection class="*" function-name="qobject_interface_iid<QAccessibleInterface*>"/> - <rejection class="*" function-name="qobject_interface_iid<QTextObjectInterface*>"/> - <rejection class="*" function-name="qobject_interface_iid<QGraphicsLayoutItem*>"/> - <rejection class="*" function-name="qobject_interface_iid<QIconEngineFactoryInterface*>"/> - <rejection class="*" function-name="qobject_interface_iid<QPictureFormatInterface*>"/> - - <rejection class="*" function-name="qobject_cast<QGraphicsLayout*>"/> - <rejection class="*" function-name="qobject_cast<QGraphicsItem*>"/> - <rejection class="*" function-name="qobject_cast<QGraphicsLayoutItem*>"/> - <rejection class="*" function-name="qobject_cast<QGraphicsLayoutItem*>"/> - - <rejection class="*" function-name="qGenericMatrixFromMatrix4x4"/> - <rejection class="*" function-name="qDrawBorderPixmap"/> - <rejection class="*" function-name="qDrawPixmaps"/> - <rejection class="*" function-name="qGenericMatrixToMatrix4x4"/> - - <rejection class="*" function-name="d_func"/> - <rejection class="*" field-name="d_ptr"/> - <rejection class="*" field-name="d"/> <rejection class="^QOpenGL.*$" argument-type="^const GLboolean ?\*$"/> <rejection class="^QOpenGL.*$" argument-type="^GLchar\*$"/> <rejection class="^QOpenGL.*$" argument-type="^(const )?GLchar ?\*(const)?\*$"/> @@ -86,8 +60,6 @@ <rejection class="^QOpenGL.*$" argument-type="^(const )?QVector.D ?\*$"/> <rejection class="^QOpenGL.*$" argument-type="^(const )?void ?\*\*$"/> - <rejection class="QDrawBorderPixmap"/> - <!-- Event classes have a lot of non-documented protected fields, those fields are removed from PySide because they are Qt implementation details, @@ -95,19 +67,12 @@ --> <rejection class="^Q.*Event$" field-name="^m_.*$"/> - <rejection class="QEventPoint" field-name="^m_.*$"/> - <rejection class="QAbstractTextDocumentLayout::PaintContext" field-name="selections"/> - <rejection class="QBrush" function-name="cleanUp"/> <rejection class="QFont" enum-name="ResolveProperties"/> - <rejection class="QMotifStyle" field-name="focus"/> - <rejection class="QPictureIO" function-name="defineIOHandler"/> <rejection class="QPolygon" function-name="putPoints"/> <rejection class="QPolygon" function-name="setPoints"/> <rejection class="QPolygon" function-name="setPoint"/> - <rejection class="QPolygon" function-name="points"/> <rejection class="QPolygon" function-name="point"/> - <rejection class="QActionGroup" function-name="selected"/> <rejection class="QPaintEngine" function-name="fix_neg_rect"/> <inject-code class="native" position="beginning" file="../glue/qtgui.cpp" @@ -157,21 +122,31 @@ <object-type name="QAccessibleEditableTextInterface"/> <object-type name="QAccessibleInterface"/> <object-type name="QAccessibleObject" qt-register-metatype="base"/> + <object-type name="QAccessibleSelectionInterface" since="6.7"/> <object-type name="QAccessibleTableCellInterface"/> <object-type name="QAccessibleTextInterface"/> <object-type name="QAccessibleValueInterface"/> - <object-type name="QAccessibleEvent" copyable="false" polymorphic-id-expression="%1->type() == QAccessible::InvalidEvent"/> - <object-type name="QAccessibleStateChangeEvent" copyable="false" polymorphic-id-expression="%1->type() == QAccessible::StateChanged"/> - <object-type name="QAccessibleTableModelChangeEvent" copyable="false" polymorphic-id-expression="%1->type() == QAccessible::TableModelChanged"> + <object-type name="QAccessibleEvent" + polymorphic-id-expression="%B->type() == QAccessible::InvalidEvent"/> + <object-type name="QAccessibleStateChangeEvent" + polymorphic-id-expression="%B->type() == QAccessible::StateChanged"/> + <object-type name="QAccessibleTableModelChangeEvent" + polymorphic-id-expression="%B->type() == QAccessible::TableModelChanged"> <enum-type name="ModelChangeType"/> </object-type> - <object-type name="QAccessibleTextCursorEvent" copyable="false" polymorphic-id-expression="%1->type() == QAccessible::TextCaretMoved"/> - <object-type name="QAccessibleTextInsertEvent" copyable="false" polymorphic-id-expression="%1->type() == QAccessible::TextInserted"/> - <object-type name="QAccessibleTextRemoveEvent" copyable="false" polymorphic-id-expression="%1->type() == QAccessible::TextRemoved"/> - <object-type name="QAccessibleTextSelectionEvent" copyable="false" polymorphic-id-expression="%1->type() == QAccessible::TextSelectionChanged"/> - <object-type name="QAccessibleTextUpdateEvent" copyable="false" polymorphic-id-expression="%1->type() == QAccessible::TextUpdated"/> - <object-type name="QAccessibleValueChangeEvent" copyable="false" polymorphic-id-expression="%1->type() == QAccessible::ValueChanged"/> + <object-type name="QAccessibleTextCursorEvent" + polymorphic-id-expression="%B->type() == QAccessible::TextCaretMoved"/> + <object-type name="QAccessibleTextInsertEvent" + polymorphic-id-expression="%B->type() == QAccessible::TextInserted"/> + <object-type name="QAccessibleTextRemoveEvent" + polymorphic-id-expression="%B->type() == QAccessible::TextRemoved"/> + <object-type name="QAccessibleTextSelectionEvent" + polymorphic-id-expression="%B->type() == QAccessible::TextSelectionChanged"/> + <object-type name="QAccessibleTextUpdateEvent" + polymorphic-id-expression="%B->type() == QAccessible::TextUpdated"/> + <object-type name="QAccessibleValueChangeEvent" + polymorphic-id-expression="%B->type() == QAccessible::ValueChanged"/> <object-type name="QAction"> <enum-type name="ActionEvent"/> @@ -261,7 +236,7 @@ <modify-argument index="1"> <remove-argument/> </modify-argument> - <modify-argument index="return"> + <modify-argument index="return" pyi-type="Tuple[PySide6.QtGui.QTransform, bool]"> <replace-type modified-type="PyTuple"/> </modify-argument> <inject-code class="target" position="beginning"> @@ -515,6 +490,7 @@ <value-type name="QIcon" > <enum-type name="Mode"/> <enum-type name="State"/> + <enum-type name="ThemeIcon" since="6.7"/> <modify-function signature="QIcon(QIconEngine*)"> <modify-argument index="1"> <no-null-pointer/> @@ -635,9 +611,9 @@ </modify-function> </value-type> - <value-type name="QConicalGradient" polymorphic-id-expression="%1->type() == QGradient::ConicalGradient"/> + <value-type name="QConicalGradient" polymorphic-id-expression="%B->type() == QGradient::ConicalGradient"/> <value-type name="QFontInfo"/> - <value-type name="QRadialGradient" polymorphic-id-expression="%1->type() == QGradient::RadialGradient"/> + <value-type name="QRadialGradient" polymorphic-id-expression="%B->type() == QGradient::RadialGradient"/> <value-type name="QFont" > <enum-type name="Capitalization"/> <enum-type name="SpacingType"/> @@ -650,6 +626,7 @@ <extra-includes> <include file-name="QStringList" location="global"/> </extra-includes> + <value-type name="Tag" since="6.7"/> <!-- PYSIDE-1685: QFont(QString) should be checked first, else it will be interpreted as sequence --> <modify-function signature="QFont(const QString&,int,int, bool)" overload-number="0"/> <modify-function signature="QFont(const QStringList &,int,int, bool)" overload-number="1"/> @@ -705,7 +682,7 @@ </inject-code> </modify-function> - <modify-function signature="QImage(const QString&, const char *)"> + <modify-function signature="QImage(const QString&, const char *)" allow-thread="yes"> <modify-argument index="1"><replace-type modified-type="PyPathLike"/></modify-argument> <inject-code class="target" position="beginning" file="../glue/qtcore.cpp" snippet="qfile-path-1"/> </modify-function> @@ -1129,14 +1106,14 @@ <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" snippet="qfontmetrics-size"/> </modify-function> </value-type> - <value-type name="QGradient" polymorphic-id-expression="%1->type() == QGradient::NoGradient"> + <value-type name="QGradient" polymorphic-id-expression="%B->type() == QGradient::NoGradient"> <enum-type name="CoordinateMode"/> <enum-type name="InterpolationMode"/> <enum-type name="Preset"/> <enum-type name="Spread"/> <enum-type name="Type"/> </value-type> - <value-type name="QLinearGradient" polymorphic-id-expression="%1->type() == QGradient::LinearGradient"/> + <value-type name="QLinearGradient" polymorphic-id-expression="%B->type() == QGradient::LinearGradient"/> <object-type name="QPaintDevice"> <enum-type name="PaintDeviceMetric"/> </object-type> @@ -1282,9 +1259,6 @@ <define-ownership class="target" owner="target"/> </modify-argument> </modify-function> - - <!-- ??? --> - <modify-function signature="operator<(QStandardItem)const" remove="all"/> </object-type> <object-type name="QSyntaxHighlighter"> <modify-function signature="setCurrentBlockUserData(QTextBlockUserData*)"> @@ -1293,7 +1267,7 @@ </modify-argument> </modify-function> <modify-function signature="setDocument(QTextDocument*)"> - <modify-argument index="1"> + <modify-argument index="1" pyi-type="Optional[PySide6.QtGui.QTextDocument]"> <parent index="this" action="add"/> </modify-argument> </modify-function> @@ -1340,37 +1314,38 @@ </modify-function> </object-type> - <object-type name="QActionEvent" polymorphic-id-expression="%1->type() == QEvent::ActionAdded || %1->type() == QEvent::ActionRemoved || %1->type() == QEvent::ActionChanged"/> - <object-type name="QCloseEvent" polymorphic-id-expression="%1->type() == QEvent::Close"/> - <object-type name="QContextMenuEvent" polymorphic-id-expression="%1->type() == QEvent::ContextMenu"> + <object-type name="QActionEvent" + polymorphic-id-expression="%B->type() == QEvent::ActionAdded || %B->type() == QEvent::ActionRemoved || %B->type() == QEvent::ActionChanged"/> + <object-type name="QCloseEvent" polymorphic-id-expression="%B->type() == QEvent::Close"/> + <object-type name="QContextMenuEvent" polymorphic-id-expression="%B->type() == QEvent::ContextMenu"> <enum-type name="Reason"/> </object-type> <value-type name="QEventPoint"> <enum-type name="State"/> </value-type> - <object-type name="QDragEnterEvent" polymorphic-id-expression="%1->type() == QEvent::DragEnter"> + <object-type name="QDragEnterEvent" polymorphic-id-expression="%B->type() == QEvent::DragEnter"> <add-function signature="__repr__" return-type="PyObject"> <inject-code class="target" position="beginning"> <insert-template name="repr_qdebug_gui"/> </inject-code> </add-function> </object-type> - <object-type name="QDragLeaveEvent" polymorphic-id-expression="%1->type() == QEvent::DragLeave"> + <object-type name="QDragLeaveEvent" polymorphic-id-expression="%B->type() == QEvent::DragLeave"> <add-function signature="__repr__" return-type="PyObject"> <inject-code class="target" position="beginning"> <insert-template name="repr_qdebug_gui"/> </inject-code> </add-function> </object-type> - <object-type name="QDragMoveEvent" polymorphic-id-expression="%1->type() == QEvent::DragMove"> + <object-type name="QDragMoveEvent" polymorphic-id-expression="%B->type() == QEvent::DragMove"> <add-function signature="__repr__" return-type="PyObject"> <inject-code class="target" position="beginning"> <insert-template name="repr_qdebug_gui"/> </inject-code> </add-function> </object-type> - <object-type name="QDropEvent" polymorphic-id-expression="%1->type() == QEvent::Drop"> + <object-type name="QDropEvent" polymorphic-id-expression="%B->type() == QEvent::Drop"> <modify-function signature="source()const"> <modify-argument index="return"> <define-ownership class="target" owner="default"/> @@ -1382,22 +1357,29 @@ </inject-code> </add-function> </object-type> - <object-type name="QEnterEvent" copyable="false" polymorphic-id-expression="%1->type() == QEvent::Enter"/> - <object-type name="QExposeEvent" polymorphic-id-expression="%1->type() == QEvent::Expose"/> - <object-type name="QFileOpenEvent" polymorphic-id-expression="%1->type() == QEvent::FileOpen"/> - <object-type name="QFocusEvent" polymorphic-id-expression="%1->type() == QEvent::FocusIn || %1->type() == QEvent::FocusOut"> + <object-type name="QChildWindowEvent" since="6.7" + polymorphic-id-expression="%B->type() == QEvent::ChildWindowAdded || %B->type() == QEvent::ChildWindowRemoved"/> + <object-type name="QEnterEvent" + polymorphic-id-expression="%B->type() == QEvent::Enter"/> + <object-type name="QExposeEvent" polymorphic-id-expression="%B->type() == QEvent::Expose"/> + <object-type name="QFileOpenEvent" polymorphic-id-expression="%B->type() == QEvent::FileOpen"/> + <object-type name="QFocusEvent" + polymorphic-id-expression="%B->type() == QEvent::FocusIn || %B->type() == QEvent::FocusOut"> <add-function signature="__repr__" return-type="PyObject"> <inject-code class="target" position="beginning"> <insert-template name="repr_qdebug_gui"/> </inject-code> </add-function> </object-type> - <object-type name="QHelpEvent" copyable="false" polymorphic-id-expression="%1->type() == QEvent::ToolTip || %1->type() == QEvent::WhatsThis"/> - <object-type name="QHideEvent" copyable="false" polymorphic-id-expression="%1->type() == QEvent::Hide"/> - <object-type name="QHoverEvent" copyable="false" polymorphic-id-expression="%1->type() == QEvent::HoverEnter || %1->type() == QEvent::HoverLeave || %1->type() == QEvent::HoverMove"/> - <object-type name="QIconDragEvent" copyable="false" polymorphic-id-expression="%1->type() == QEvent::IconDrag"/> + <object-type name="QHelpEvent" + polymorphic-id-expression="%B->type() == QEvent::ToolTip || %B->type() == QEvent::WhatsThis"/> + <object-type name="QHideEvent" polymorphic-id-expression="%B->type() == QEvent::Hide"/> + <object-type name="QHoverEvent" + polymorphic-id-expression="%B->type() == QEvent::HoverEnter || %B->type() == QEvent::HoverLeave || %B->type() == QEvent::HoverMove"/> + <object-type name="QIconDragEvent" polymorphic-id-expression="%B->type() == QEvent::IconDrag"/> - <object-type name="QInputMethodEvent" copyable="no" polymorphic-id-expression="%1->type() == QEvent::InputMethod"> + <object-type name="QInputMethodEvent" + polymorphic-id-expression="%B->type() == QEvent::InputMethod"> <!-- only declare this if ndef QT_NO_INPUTMETHOD --> <enum-type name="AttributeType"/> <value-type name="Attribute"> @@ -1410,60 +1392,68 @@ </add-function> <!-- endif ndef QT_NO_INPUTMETHOD --> </object-type> - <object-type name="QInputMethodQueryEvent" copyable="false" polymorphic-id-expression="%1->type() == QEvent::InputMethodQuery"/> + <object-type name="QInputMethodQueryEvent" + polymorphic-id-expression="%B->type() == QEvent::InputMethodQuery"/> - <object-type name="QMoveEvent" copyable = "false" polymorphic-id-expression="%1->type() == QEvent::Move"> + <object-type name="QMoveEvent" polymorphic-id-expression="%B->type() == QEvent::Move"> <add-function signature="__repr__" return-type="PyObject"> <inject-code class="target" position="beginning"> <insert-template name="repr_qdebug_gui"/> </inject-code> </add-function> </object-type> - <object-type name="QNativeGestureEvent" copyable="false" polymorphic-id-expression="%1->type() == QEvent::NativeGesture"/> - <object-type name="QPlatformSurfaceEvent" copyable="false" - polymorphic-id-expression="%1->type() == QEvent::PlatformSurface"> + <object-type name="QNativeGestureEvent" + polymorphic-id-expression="%B->type() == QEvent::NativeGesture"/> + <object-type name="QPlatformSurfaceEvent" + polymorphic-id-expression="%B->type() == QEvent::PlatformSurface"> <enum-type name="SurfaceEventType"/> </object-type> - <object-type name="QResizeEvent" copyable = "false" polymorphic-id-expression="%1->type() == QEvent::Resize"> + <object-type name="QResizeEvent" polymorphic-id-expression="%B->type() == QEvent::Resize"> <add-function signature="__repr__" return-type="PyObject"> <inject-code class="target" position="beginning"> <insert-template name="repr_qdebug_gui"/> </inject-code> </add-function> </object-type> - <object-type name="QShortcutEvent" copyable = "false" polymorphic-id-expression="%1->type() == QEvent::Shortcut"> + <object-type name="QShortcutEvent" + polymorphic-id-expression="%B->type() == QEvent::Shortcut"> </object-type> - <object-type name="QShowEvent" copyable= "false" polymorphic-id-expression="%1->type() == QEvent::Show"/> - <object-type name="QSinglePointEvent" copyable="false"/> - <object-type name="QStatusTipEvent" copyable= "false" polymorphic-id-expression="%1->type() == QEvent::StatusTip"/> - <object-type name="QTabletEvent" copyable= "false" polymorphic-id-expression="%1->type() == QEvent::TabletMove || %1->type() == QEvent::TabletPress || %1->type() == QEvent::TabletRelease"> + <object-type name="QShowEvent" + polymorphic-id-expression="%B->type() == QEvent::Show"/> + <object-type name="QSinglePointEvent"/> + <object-type name="QStatusTipEvent" + polymorphic-id-expression="%B->type() == QEvent::StatusTip"/> + <object-type name="QTabletEvent" + polymorphic-id-expression="%B->type() == QEvent::TabletMove || %B->type() == QEvent::TabletPress || %B->type() == QEvent::TabletRelease"> <add-function signature="__repr__" return-type="PyObject"> <inject-code class="target" position="beginning"> <insert-template name="repr_qdebug_gui"/> </inject-code> </add-function> </object-type> - <object-type name="QToolBarChangeEvent" polymorphic-id-expression="%1->type() == QEvent::ToolBarChange"/> - <object-type name="QWhatsThisClickedEvent" copyable="false" polymorphic-id-expression="%1->type() == QEvent::WhatsThisClicked"/> - <object-type name="QWheelEvent" copyable= "false" polymorphic-id-expression="%1->type() == QEvent::Wheel"> + <object-type name="QToolBarChangeEvent" + polymorphic-id-expression="%B->type() == QEvent::ToolBarChange"/> + <object-type name="QWhatsThisClickedEvent" + polymorphic-id-expression="%B->type() == QEvent::WhatsThisClicked"/> + <object-type name="QWheelEvent" polymorphic-id-expression="%B->type() == QEvent::Wheel"> <add-function signature="__repr__" return-type="PyObject"> <inject-code class="target" position="beginning"> <insert-template name="repr_qdebug_gui"/> </inject-code> </add-function> </object-type> - <!-- Qt5.5: suppress this nameless enum --> - <suppress-warning text="enum 'QWheelEvent::DefaultDeltasPerStep' does not have a type entry or is not an enum"/> - <object-type name="QWindowStateChangeEvent" copyable="false" polymorphic-id-expression="%1->type() == QEvent::WindowStateChange"> + <object-type name="QWindowStateChangeEvent" + polymorphic-id-expression="%B->type() == QEvent::WindowStateChange"> <add-function signature="__repr__" return-type="PyObject"> <inject-code class="target" position="beginning"> <insert-template name="repr_qdebug_gui"/> </inject-code> </add-function> </object-type> - <object-type name="QInputEvent" copyable="false"/> - <object-type name="QKeyEvent" copyable= "false" polymorphic-id-expression="%1->type() == QEvent::KeyPress || %1->type() == QEvent::KeyRelease || %1->type() == QEvent::ShortcutOverride"> + <object-type name="QInputEvent"/> + <object-type name="QKeyEvent" + polymorphic-id-expression="%B->type() == QEvent::KeyPress || %B->type() == QEvent::KeyRelease || %B->type() == QEvent::ShortcutOverride"> <add-function signature="operator!=(QKeySequence::StandardKey)"> <inject-code class="target" file="../glue/qtgui.cpp" snippet="qkeyevent-operatornotequal"/> </add-function> @@ -1473,8 +1463,8 @@ </inject-code> </add-function> </object-type> - <object-type name="QMouseEvent" copyable= "false" - polymorphic-id-expression="%1->type() == QEvent::MouseButtonDblClick || %1->type() == QEvent::MouseButtonPress || %1->type() == QEvent::MouseButtonRelease || %1->type() == QEvent::MouseMove"> + <object-type name="QMouseEvent" + polymorphic-id-expression="%B->type() == QEvent::MouseButtonDblClick || %B->type() == QEvent::MouseButtonPress || %B->type() == QEvent::MouseButtonRelease || %B->type() == QEvent::MouseMove"> <modify-function signature="globalPos() const" deprecated="yes"/> <modify-function signature="localPos() const" deprecated="yes"/> <modify-function signature="pos() const" deprecated="yes"/> @@ -1490,8 +1480,8 @@ </inject-code> </add-function> </object-type> - <object-type name="QPaintEvent" copyable= "false" polymorphic-id-expression="%1->type() == QEvent::Paint"/> - <object-type name="QScrollEvent" copyable="false" polymorphic-id-expression="%1->type() == QEvent::Scroll"> + <object-type name="QPaintEvent" polymorphic-id-expression="%B->type() == QEvent::Paint"/> + <object-type name="QScrollEvent" polymorphic-id-expression="%B->type() == QEvent::Scroll"> <enum-type name="ScrollState"/> </object-type> <object-type name="QPointerEvent" copyable= "false"> @@ -1501,7 +1491,8 @@ </inject-code> </add-function> </object-type> - <object-type name="QScrollPrepareEvent" copyable="false" polymorphic-id-expression="%1->type() == QEvent::ScrollPrepare"/> + <object-type name="QScrollPrepareEvent" + polymorphic-id-expression="%B->type() == QEvent::ScrollPrepare"/> <object-type name="QTextFrame" > <extra-includes> @@ -1615,7 +1606,7 @@ </add-function> </object-type> - <object-type name="QStandardItemModel" polymorphic-id-expression="qobject_cast<QStandardItemModel*>(%1)"> + <object-type name="QStandardItemModel" polymorphic-id-expression="qobject_cast<QStandardItemModel*>(%B)"> <extra-includes> <include file-name="QStringList" location="global"/> <include file-name="QSize" location="global"/> @@ -1759,6 +1750,18 @@ <include file-name="QPixmap" location="global"/> </extra-includes> <enum-type name="Mode"/> + <modify-function signature="setPixmap(const QPixmap&, QClipboard::Mode)"> + <modify-argument index="1" pyi-type="PySide6.QtGui.QPixmap"/> + </modify-function> + <add-function signature="setPixmap(PyPathLike@path@)"> + <inject-code file="../glue/qtgui.cpp" snippet="qclipboard-setpixmap"/> + </add-function> + <modify-function signature="setImage(const QImage&, QClipboard::Mode)"> + <modify-argument index="1" pyi-type="PySide6.QtGui.QImage"/> + </modify-function> + <add-function signature="setImage(PyPathLike@path@)"> + <inject-code file="../glue/qtgui.cpp" snippet="qclipboard-setimage"/> + </add-function> <modify-function signature="setMimeData(QMimeData*,QClipboard::Mode)" allow-thread="yes"> <modify-argument index="1"> <!-- TODO: maybe this is not the best solution --> @@ -1766,7 +1769,7 @@ </modify-argument> </modify-function> <modify-function signature="text(QString&,QClipboard::Mode)const"> - <modify-argument index="return"> + <modify-argument index="return" pyi-type="Tuple[str, PySide6.QtGui.QClipboard.Mode]"> <replace-type modified-type="(retval, subtype)"/> </modify-argument> <inject-code class="target" position="end" file="../glue/qtgui.cpp" snippet="qclipboard-text"/> @@ -1787,6 +1790,7 @@ <include file-name="QTextOption" location="global"/> </extra-includes> <enum-type name="CursorMode"/> + <enum-type name="GlyphRunRetrievalFlag" flags="GlyphRunRetrievalFlags" since="6.5"/> <value-type name="FormatRange"> <include file-name="QTextLayout" location="global"/> </value-type> @@ -1963,6 +1967,9 @@ <inject-code class="target" position="beginning"> <insert-template name="fix_args,QRectF*"/> </inject-code> + <inject-documentation format="target" mode="prepend"> + The function returns the bounding rectangle enclosing the whole text. + </inject-documentation> </modify-function> <modify-function signature="drawText(QRect,int,QString,QRect*)"> <modify-argument index="4"> @@ -1975,6 +1982,9 @@ <inject-code class="target" position="beginning"> <insert-template name="fix_args,QRect*"/> </inject-code> + <inject-documentation format="target" mode="prepend"> + The function returns the bounding rectangle enclosing the whole text. + </inject-documentation> </modify-function> <modify-function signature="drawText(int,int,int,int,int,QString,QRect*)"> <modify-argument index="7"> @@ -1984,6 +1994,9 @@ <inject-code class="target" position="beginning"> <insert-template name="fix_args,QRect*"/> </inject-code> + <inject-documentation format="target" mode="prepend"> + The function returns the bounding rectangle enclosing the whole text. + </inject-documentation> </modify-function> <add-function signature="__enter__()" return-type="QPainter"> <inject-code file="../glue/qtgui.cpp" snippet="qpainter-enter"/> @@ -2363,7 +2376,7 @@ <modify-argument index="1"> <remove-argument/> </modify-argument> - <modify-argument index="return"> + <modify-argument index="return" pyi-type="Tuple[PySide6.QtGui.QMatrix4x4, bool]"> <replace-type modified-type="PyTuple"/> </modify-argument> <inject-code class="target" position="beginning"> @@ -2403,10 +2416,27 @@ </inject-code> </add-function> - <!-- Qt5.5: XXX support the output variables! For now, I just suppressed the new methods. --> - <modify-function signature="getAxisAndAngle(float*,float*,float*,float*)const"/> - <modify-function signature="getAxisAndAngle(QVector3D*,float*)const"/> - <modify-function signature="getEulerAngles(float*,float*,float*)const"/> + <!-- There can be only one return type. --> + <modify-function signature="getAxisAndAngle(float*,float*,float*,float*)const" remove="all"/> + <modify-function signature="getAxisAndAngle(QVector3D*,float*)const"> + <modify-argument index="return" pyi-type="Tuple[PySide6.QtGui.QVector3D, float]"> + <replace-type modified-type="(QVector3D, float)"/> + </modify-argument> + <modify-argument index="1"><remove-argument/></modify-argument> + <modify-argument index="2"><remove-argument/></modify-argument> + <inject-code class="target" position="beginning" + file="../glue/qtgui.cpp" snippet="qquaternion-getaxisandangle-vector3d-float"/> + </modify-function> + <modify-function signature="getEulerAngles(float*,float*,float*)const"> + <modify-argument index="return" pyi-type="Tuple[float, float, float]"> + <replace-type modified-type="(float, float, float)"/> + </modify-argument> + <modify-argument index="1"><remove-argument/></modify-argument> + <modify-argument index="2"><remove-argument/></modify-argument> + <modify-argument index="3"><remove-argument/></modify-argument> + <inject-code class="target" position="beginning" + file="../glue/qtgui.cpp" snippet="qquaternion-geteulerangles"/> + </modify-function> </value-type> <object-type name="QTouchEvent" since="4.6"> @@ -2515,18 +2545,6 @@ </add-function> </value-type> - <suppress-warning text="template baseclass 'QListSpecialMethods<T>' of 'QList' is not known"/> - <suppress-warning text="template baseclass 'QGenericMatrix<float>' of '*' is not known"/> - - <!-- Qt5: note: the unnamed enum cannot be rejected by - <rejection class="QMatrix4x4" enum-name="enum_1"/> - Instead, we have to suppress the warning. Why that? - - Compare also the note at the beginning of typesystem_widgets_common.xml . - This seems to be a related problem with unnamed structures in shiboken. - --> - <suppress-warning text="enum 'QMatrix4x4::enum_1' is specified in typesystem, but not declared"/> - <object-type name="QSessionManager"> <extra-includes> </extra-includes> @@ -2534,9 +2552,6 @@ <!-- ### --> </object-type> - <!-- This enum is present on QtCore --> - <suppress-warning text="enum 'QCoreApplication::ApplicationFlags' is specified in typesystem, but not declared"/> - <!-- Qt5: here the new QWindow stuff and what it pulls in --> <object-type name="QBackingStore"/> <object-type name="QSurface"> @@ -2558,7 +2573,7 @@ </extra-includes> </primitive-type> - <object-type name="QWindow" delete-in-main-thread="true"> + <object-type name="QWindow" delete-in-main-thread="true" polymorphic-base="true"> <enum-type name="AncestorMode"/> <enum-type name="Visibility"/> <modify-function signature="raise()" rename="raise_"/> @@ -2618,6 +2633,13 @@ <add-function signature="exec_()" return-type="int"> <inject-code file="../glue/qtgui.cpp" snippet="qguiapplication-exec"/> </add-function> + <add-function signature="nativeInterface()const" return-type="PyObject"> + <modify-argument index="return"> <!-- Suppress return value heuristics --> + <define-ownership class="target" owner="default"/> + </modify-argument> + <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" + snippet="qguiapplication-nativeInterface"/> + </add-function> <modify-function signature="setOverrideCursor(const QCursor&)"> <modify-argument index="return" pyi-type="PyObject"> <replace-type modified-type="QtGuiHelper::QOverrideCursorGuard*"/> @@ -2627,6 +2649,31 @@ </modify-function> </object-type> + <namespace-type name="QNativeInterface" private="yes" since="6.7"> + <object-type name="QX11Application" private="yes" disable-wrapper="yes" + force-abstract="yes"> + <configuration condition="QT_CONFIG(xcb)"/> + <modify-function signature="display()const"> + <modify-argument index="return"> + <replace-type modified-type="int"/> + </modify-argument> + <inject-code class="target" position="end" file="../glue/qtgui.cpp" + snippet="qx11application-resource-ptr"/> + </modify-function> + <modify-function signature="connection()const"> + <modify-argument index="return"> + <replace-type modified-type="int"/> + </modify-argument> + <inject-code class="target" position="end" file="../glue/qtgui.cpp" + snippet="qx11application-resource-ptr"/> + </modify-function> + </object-type> + <object-type name="QWindowsScreen" private="yes" disable-wrapper="yes" + force-abstract="yes"> + <configuration condition="#ifdef Q_OS_WIN"/> + </object-type> + </namespace-type> + <object-type name="QOpenGLContext"> <enum-type name="OpenGLModuleType"/> </object-type> @@ -3074,6 +3121,13 @@ </modify-argument> <inject-code file="../glue/qtgui.cpp" snippet="qscreen-grabWindow"/> </modify-function> + <add-function signature="nativeInterface()const" return-type="PyObject"> + <modify-argument index="return"> <!-- Suppress return value heuristics --> + <define-ownership class="target" owner="default"/> + </modify-argument> + <inject-code class="target" position="beginning" file="../glue/qtgui.cpp" + snippet="qscreen-nativeInterface"/> + </add-function> </object-type> <object-type name="QStyleHints"/> @@ -3114,7 +3168,7 @@ <namespace-type name="QtGuiHelper" visible="no"> <object-type name="QOverrideCursorGuard" copyable="no"> - <add-function signature="__enter__()" return-type="QOverrideCursorGuard"> + <add-function signature="__enter__()" return-type="QtGuiHelper::QOverrideCursorGuard"> <inject-code file="../glue/qtcore.cpp" snippet="default-enter"/> </add-function> <add-function signature="__exit__(PyObject*,PyObject*,PyObject*)"> |