From 9a4fb2eb72040aeadf6124ec1cad083859ac0787 Mon Sep 17 00:00:00 2001
From: Cristian Maureira-Fredes
Date: Wed, 24 Mar 2021 22:33:35 +0100
Subject: doc: enable snippets translate tool
Create snippets directories in case they don't exist.
Add "-q" option as the examples directory to keep the "--quiet"
option from the build.
Something to consider with this patch:
Removing all the previous old snippets, which include not only 'cpp'
files, but also '.h', '.qdoc', '.qrc', '.png', and '.qml', which might
be used in the snippets, but will need to be updated in the generation
tool, to not translate, and copy them over.
Pick-to: 6.0
Change-Id: Icbef9e1c93a12b90dbcfa990ef055ca6f8868407
Reviewed-by: Friedemann Kleint
---
sources/pyside6/doc/CMakeLists.txt | 18 +
.../src/snippets/accessibilityslidersnippet.cpp | 271 -----------
.../codesnippets/doc/src/snippets/alphachannel.cpp | 64 ---
.../codesnippets/doc/src/snippets/audio/main.cpp | 104 -----
.../doc/src/snippets/brushstyles/qt-logo.png | Bin 15518 -> 0 bytes
.../doc/src/snippets/brushstyles/renderarea.h | 71 ---
.../doc/src/snippets/brushstyles/stylewidget.h | 108 -----
.../doc/src/snippets/clipboard/clipwindow.h | 82 ----
.../doc/src/snippets/clipboard/clipwindow.py | 105 -----
.../doc/src/snippets/code/doc_src_qnamespace.qdoc | 67 ---
.../doc/src/snippets/code/doc_src_qtcore.py | 53 ---
.../doc/src/snippets/code/doc_src_qtnetwork.py | 53 ---
.../doc/src/snippets/code/doc_src_qtopengl.py | 53 ---
.../src/snippets/code/doc_src_qtprintsupport.py | 53 ---
.../doc/src/snippets/code/doc_src_qtqml.py | 53 ---
.../doc/src/snippets/code/doc_src_qtquick.py | 53 ---
.../doc/src/snippets/code/doc_src_qtsql.py | 52 ---
.../doc/src/snippets/code/doc_src_qttest.py | 53 ---
.../doc/src/snippets/code/doc_src_qtwidgets.py | 53 ---
.../doc/src/snippets/code/doc_src_qtxml.py | 53 ---
.../code/src.gui.text.qtextdocumentwriter.cpp | 55 ---
.../snippets/code/src.qdbus.qdbuspendingcall.cpp | 74 ---
.../snippets/code/src.qdbus.qdbuspendingreply.cpp | 73 ---
.../code/src.scripttools.qscriptenginedebugger.cpp | 59 ---
.../code/src_corelib_codecs_qtextcodec.cpp | 82 ----
.../code/src_corelib_codecs_qtextcodecplugin.cpp | 62 ---
.../code/src_corelib_concurrent_qfuture.cpp | 74 ---
.../src_corelib_concurrent_qfuturesynchronizer.cpp | 63 ---
.../code/src_corelib_concurrent_qfuturewatcher.cpp | 60 ---
...rc_corelib_concurrent_qtconcurrentexception.cpp | 85 ----
.../src_corelib_concurrent_qtconcurrentfilter.cpp | 181 -------
.../src_corelib_concurrent_qtconcurrentmap.cpp | 194 --------
.../src_corelib_concurrent_qtconcurrentrun.cpp | 110 -----
.../code/src_corelib_concurrent_qthreadpool.cpp | 59 ---
.../code/src_corelib_io_qabstractfileengine.cpp | 112 -----
.../snippets/code/src_corelib_io_qdatastream.cpp | 135 ------
.../doc/src/snippets/code/src_corelib_io_qdir.cpp | 179 -------
.../snippets/code/src_corelib_io_qdiriterator.cpp | 62 ---
.../doc/src/snippets/code/src_corelib_io_qfile.cpp | 82 ----
.../src/snippets/code/src_corelib_io_qfileinfo.cpp | 148 ------
.../src/snippets/code/src_corelib_io_qiodevice.cpp | 98 ----
.../src/snippets/code/src_corelib_io_qprocess.cpp | 132 ------
.../src/snippets/code/src_corelib_io_qsettings.cpp | 327 -------------
.../code/src_corelib_io_qtemporaryfile.cpp | 62 ---
.../snippets/code/src_corelib_io_qtextstream.cpp | 140 ------
.../doc/src/snippets/code/src_corelib_io_qurl.cpp | 96 ----
...src_corelib_kernel_qabstracteventdispatcher.cpp | 3 -
.../code/src_corelib_kernel_qabstractitemmodel.cpp | 98 ----
.../code/src_corelib_kernel_qcoreapplication.cpp | 128 -----
.../code/src_corelib_kernel_qmetaobject.cpp | 132 ------
.../snippets/code/src_corelib_kernel_qmetatype.cpp | 119 -----
.../snippets/code/src_corelib_kernel_qmimedata.cpp | 107 -----
.../snippets/code/src_corelib_kernel_qobject.py | 374 ---------------
.../code/src_corelib_kernel_qsystemsemaphore.cpp | 71 ---
.../snippets/code/src_corelib_kernel_qtimer.cpp | 60 ---
.../snippets/code/src_corelib_plugin_qlibrary.cpp | 94 ----
.../src/snippets/code/src_corelib_plugin_quuid.cpp | 54 ---
.../src_corelib_statemachine_qstatemachine.cpp | 65 ---
.../snippets/code/src_corelib_thread_qatomic.cpp | 108 -----
.../snippets/code/src_corelib_thread_qmutex.cpp | 165 -------
.../code/src_corelib_thread_qmutexpool.cpp | 62 ---
.../code/src_corelib_thread_qreadwritelock.cpp | 111 -----
.../code/src_corelib_thread_qsemaphore.cpp | 83 ----
.../snippets/code/src_corelib_thread_qthread.cpp | 59 ---
.../src_corelib_thread_qwaitcondition_unix.cpp | 95 ----
.../snippets/code/src_corelib_tools_qbitarray.cpp | 239 ----------
.../snippets/code/src_corelib_tools_qbytearray.cpp | 402 ----------------
.../snippets/code/src_corelib_tools_qdatetime.cpp | 156 -------
.../src/snippets/code/src_corelib_tools_qhash.cpp | 309 ------------
.../code/src_corelib_tools_qlinkedlist.cpp | 214 ---------
.../snippets/code/src_corelib_tools_qlistdata.cpp | 277 -----------
.../snippets/code/src_corelib_tools_qlocale.cpp | 101 ----
.../src/snippets/code/src_corelib_tools_qmap.cpp | 323 -------------
.../src/snippets/code/src_corelib_tools_qpoint.cpp | 161 -------
.../src/snippets/code/src_corelib_tools_qqueue.cpp | 58 ---
.../src/snippets/code/src_corelib_tools_qrect.cpp | 60 ---
.../snippets/code/src_corelib_tools_qregexp.cpp | 225 ---------
.../src/snippets/code/src_corelib_tools_qsize.cpp | 146 ------
.../snippets/code/src_corelib_tools_qstring.cpp | 95 ----
.../snippets/code/src_corelib_tools_qtimeline.cpp | 65 ---
.../snippets/code/src_corelib_tools_qvector.cpp | 193 --------
.../snippets/code/src_corelib_xml_qxmlstream.cpp | 77 ---
.../code/src_gui_accessible_qaccessible.cpp | 57 ---
.../code/src_gui_dialogs_qabstractprintdialog.cpp | 55 ---
.../snippets/code/src_gui_dialogs_qfiledialog.cpp | 136 ------
.../snippets/code/src_gui_dialogs_qfontdialog.cpp | 90 ----
.../src/snippets/code/src_gui_dialogs_qwizard.cpp | 81 ----
.../code/src_gui_effects_qgraphicseffect.cpp | 87 ----
.../src_gui_graphicsview_qgraphicsgridlayout.cpp | 63 ---
.../code/src_gui_graphicsview_qgraphicsitem.cpp | 249 ----------
.../src_gui_graphicsview_qgraphicslinearlayout.cpp | 63 ---
.../src_gui_graphicsview_qgraphicsproxywidget.cpp | 96 ----
.../code/src_gui_graphicsview_qgraphicsscene.cpp | 125 -----
.../src_gui_graphicsview_qgraphicssceneevent.cpp | 55 ---
.../code/src_gui_graphicsview_qgraphicsview.cpp | 136 ------
.../code/src_gui_graphicsview_qgraphicswidget.cpp | 75 ---
.../src/snippets/code/src_gui_image_qbitmap.cpp | 54 ---
.../doc/src/snippets/code/src_gui_image_qicon.cpp | 82 ----
.../doc/src/snippets/code/src_gui_image_qimage.cpp | 86 ----
.../snippets/code/src_gui_image_qimagereader.cpp | 75 ---
.../snippets/code/src_gui_image_qimagewriter.cpp | 69 ---
.../doc/src/snippets/code/src_gui_image_qmovie.cpp | 63 ---
.../src/snippets/code/src_gui_image_qpixmap.cpp | 68 ---
.../snippets/code/src_gui_image_qpixmapcache.cpp | 66 ---
.../snippets/code/src_gui_image_qpixmapfilter.cpp | 72 ---
.../code/src_gui_itemviews_qabstractitemview.cpp | 67 ---
.../code/src_gui_itemviews_qdatawidgetmapper.cpp | 73 ---
.../code/src_gui_itemviews_qitemeditorfactory.cpp | 73 ---
.../code/src_gui_itemviews_qitemselectionmodel.cpp | 60 ---
.../code/src_gui_itemviews_qstandarditemmodel.cpp | 86 ----
.../code/src_gui_itemviews_qtablewidget.cpp | 55 ---
.../code/src_gui_itemviews_qtreewidget.cpp | 58 ---
.../src/snippets/code/src_gui_kernel_qaction.cpp | 59 ---
.../snippets/code/src_gui_kernel_qapplication.cpp | 167 -------
.../code/src_gui_kernel_qapplication_x11.cpp | 55 ---
.../snippets/code/src_gui_kernel_qclipboard.cpp | 63 ---
.../src/snippets/code/src_gui_kernel_qevent.cpp | 61 ---
.../snippets/code/src_gui_kernel_qformlayout.cpp | 86 ----
.../snippets/code/src_gui_kernel_qkeysequence.cpp | 69 ---
.../src/snippets/code/src_gui_kernel_qlayout.cpp | 75 ---
.../snippets/code/src_gui_kernel_qlayoutitem.cpp | 58 ---
.../src/snippets/code/src_gui_kernel_qshortcut.cpp | 65 ---
.../snippets/code/src_gui_kernel_qshortcutmap.cpp | 3 -
.../src/snippets/code/src_gui_kernel_qsound.cpp | 59 ---
.../src/snippets/code/src_gui_kernel_qwidget.cpp | 150 ------
.../src/snippets/code/src_gui_painting_qbrush.cpp | 61 ---
.../src/snippets/code/src_gui_painting_qcolor.cpp | 59 ---
.../snippets/code/src_gui_painting_qdrawutil.cpp | 108 -----
.../src/snippets/code/src_gui_painting_qmatrix.cpp | 72 ---
.../snippets/code/src_gui_painting_qpainter.cpp | 261 -----------
.../code/src_gui_painting_qpainterpath.cpp | 160 -------
.../src/snippets/code/src_gui_painting_qpen.cpp | 85 ----
.../src/snippets/code/src_gui_painting_qregion.cpp | 63 ---
.../code/src_gui_painting_qregion_unix.cpp | 68 ---
.../snippets/code/src_gui_painting_qtransform.cpp | 88 ----
.../src/snippets/code/src_gui_styles_qstyle.cpp | 58 ---
.../snippets/code/src_gui_styles_qstyleoption.cpp | 57 ---
.../doc/src/snippets/code/src_gui_text_qfont.cpp | 77 ---
.../snippets/code/src_gui_text_qfontmetrics.cpp | 64 ---
.../code/src_gui_text_qsyntaxhighlighter.cpp | 124 -----
.../src/snippets/code/src_gui_text_qtextcursor.cpp | 90 ----
.../src/snippets/code/src_gui_text_qtextlayout.cpp | 73 ---
.../src/snippets/code/src_gui_util_qcompleter.cpp | 74 ---
.../code/src_gui_util_qdesktopservices.cpp | 65 ---
.../src/snippets/code/src_gui_util_qundostack.cpp | 120 -----
.../src/snippets/code/src_gui_util_qvalidator.cpp | 155 ------
.../code/src_gui_widgets_qabstractbutton.cpp | 69 ---
.../code/src_gui_widgets_qabstractspinbox.cpp | 58 ---
.../code/src_gui_widgets_qcalendarwidget.cpp | 83 ----
.../snippets/code/src_gui_widgets_qcheckbox.cpp | 3 -
.../code/src_gui_widgets_qdatetimeedit.cpp | 89 ----
.../snippets/code/src_gui_widgets_qdockwidget.cpp | 57 ---
.../src/snippets/code/src_gui_widgets_qframe.cpp | 58 ---
.../snippets/code/src_gui_widgets_qgroupbox.cpp | 3 -
.../src/snippets/code/src_gui_widgets_qlabel.cpp | 74 ---
.../snippets/code/src_gui_widgets_qlineedit.cpp | 57 ---
.../snippets/code/src_gui_widgets_qmainwindow.cpp | 65 ---
.../src/snippets/code/src_gui_widgets_qmenu.cpp | 87 ----
.../src/snippets/code/src_gui_widgets_qmenubar.cpp | 58 ---
.../code/src_gui_widgets_qplaintextedit.cpp | 64 ---
.../snippets/code/src_gui_widgets_qpushbutton.cpp | 3 -
.../snippets/code/src_gui_widgets_qradiobutton.cpp | 3 -
.../snippets/code/src_gui_widgets_qrubberband.cpp | 67 ---
.../snippets/code/src_gui_widgets_qscrollarea.cpp | 59 ---
.../src/snippets/code/src_gui_widgets_qspinbox.cpp | 90 ----
.../code/src_gui_widgets_qsplashscreen.cpp | 65 ---
.../snippets/code/src_gui_widgets_qsplitter.cpp | 57 ---
.../snippets/code/src_gui_widgets_qstatusbar.cpp | 3 -
.../snippets/code/src_gui_widgets_qtextbrowser.cpp | 54 ---
.../snippets/code/src_gui_widgets_qtextedit.cpp | 69 ---
.../snippets/code/src_gui_widgets_qworkspace.cpp | 57 ---
.../src/snippets/code/src_network_access_qftp.cpp | 109 -----
.../src/snippets/code/src_network_access_qhttp.cpp | 132 ------
.../src_network_access_qnetworkaccessmanager.cpp | 86 ----
.../code/src_network_access_qnetworkdiskcache.cpp | 74 ---
.../code/src_network_access_qnetworkrequest.cpp | 3 -
.../src_network_bearer_qnetworkconfigmanager.cpp | 58 ---
.../code/src_network_kernel_qhostaddress.cpp | 57 ---
.../snippets/code/src_network_kernel_qhostinfo.cpp | 92 ----
.../code/src_network_kernel_qnetworkproxy.cpp | 64 ---
.../code/src_network_socket_qabstractsocket.cpp | 78 ----
.../code/src_network_socket_qlocalsocket_unix.cpp | 62 ---
.../src_network_socket_qnativesocketengine.cpp | 71 ---
.../code/src_network_socket_qtcpserver.cpp | 3 -
.../code/src_network_socket_qudpsocket.cpp | 67 ---
.../code/src_network_ssl_qsslcertificate.cpp | 54 ---
.../code/src_network_ssl_qsslconfiguration.cpp | 55 ---
.../snippets/code/src_network_ssl_qsslsocket.cpp | 100 ----
.../doc/src/snippets/code/src_opengl_qgl.cpp | 168 -------
.../src/snippets/code/src_opengl_qglcolormap.cpp | 74 ---
.../snippets/code/src_opengl_qglpixelbuffer.cpp | 69 ---
.../snippets/code/src_opengl_qglshaderprogram.cpp | 103 ----
.../src/snippets/code/src_qtestlib_qtestcase.cpp | 237 ----------
.../src/snippets/code/src_script_qscriptable.cpp | 69 ---
.../src/snippets/code/src_script_qscriptclass.cpp | 59 ---
.../snippets/code/src_script_qscriptcontext.cpp | 73 ---
.../src/snippets/code/src_script_qscriptengine.cpp | 320 -------------
.../code/src_script_qscriptengineagent.cpp | 62 ---
.../src/snippets/code/src_script_qscriptvalue.cpp | 91 ----
.../code/src_script_qscriptvalueiterator.cpp | 78 ----
.../snippets/code/src_sql_kernel_qsqldriver.cpp | 73 ---
.../src/snippets/code/src_sql_kernel_qsqlerror.cpp | 56 ---
.../src/snippets/code/src_sql_kernel_qsqlindex.cpp | 55 ---
.../src/snippets/code/src_sql_kernel_qsqlquery.cpp | 88 ----
.../snippets/code/src_sql_kernel_qsqlresult.cpp | 88 ----
.../code/src_sql_models_qsqlquerymodel.cpp | 62 ---
.../doc/src/snippets/code/src_xml_dom_qdom.cpp | 230 ---------
.../doc/src/snippets/code/src_xml_sax_qxml.cpp | 3 -
.../src_xmlpatterns_api_qabstracturiresolver.cpp | 3 -
...xmlpatterns_api_qabstractxmlforwarditerator.cpp | 3 -
.../src_xmlpatterns_api_qabstractxmlnodemodel.cpp | 72 ---
.../src_xmlpatterns_api_qabstractxmlreceiver.cpp | 57 ---
.../src_xmlpatterns_api_qsimplexmlnodemodel.cpp | 69 ---
.../code/src_xmlpatterns_api_qxmlformatter.cpp | 58 ---
.../snippets/code/src_xmlpatterns_api_qxmlname.cpp | 58 ---
.../code/src_xmlpatterns_api_qxmlquery.cpp | 202 --------
.../code/src_xmlpatterns_api_qxmlresultitems.cpp | 66 ---
.../code/src_xmlpatterns_api_qxmlserializer.cpp | 57 ---
...tools_assistant_compat_lib_qassistantclient.cpp | 75 ---
..._src_lib_extension_default_extensionfactory.cpp | 85 ----
.../tools_designer_src_lib_extension_extension.cpp | 65 ---
...esigner_src_lib_extension_qextensionmanager.cpp | 67 ---
...ols_designer_src_lib_sdk_abstractformeditor.cpp | 61 ---
...ools_designer_src_lib_sdk_abstractformwindow.py | 74 ---
...signer_src_lib_sdk_abstractformwindowcursor.cpp | 58 ---
...igner_src_lib_sdk_abstractformwindowmanager.cpp | 61 ---
...esigner_src_lib_sdk_abstractobjectinspector.cpp | 61 ---
..._designer_src_lib_sdk_abstractpropertyeditor.py | 71 ---
...ools_designer_src_lib_sdk_abstractwidgetbox.cpp | 80 ----
..._designer_src_lib_uilib_abstractformbuilder.cpp | 67 ---
.../tools_designer_src_lib_uilib_formbuilder.cpp | 76 ---
...tools_patternist_qapplicationargumentparser.cpp | 55 ---
...ls_shared_qtgradienteditor_qtgradientdialog.cpp | 94 ----
..._shared_qtpropertybrowser_qtpropertybrowser.cpp | 97 ----
..._shared_qtpropertybrowser_qtvariantproperty.cpp | 66 ---
...ools_shared_qttoolbardialog_qttoolbardialog.cpp | 62 ---
.../doc/src/snippets/console/dbus_pingpong.txt | 3 -
.../doc/src/snippets/customstyle/customstyle.h | 69 ---
.../snippets/designer/autoconnection/imagedialog.h | 69 ---
.../designer/autoconnection/imagedialog.ui | 389 ---------------
.../snippets/designer/imagedialog/imagedialog.ui | 389 ---------------
.../designer/multipleinheritance/imagedialog.h | 64 ---
.../designer/multipleinheritance/imagedialog.ui | 389 ---------------
.../designer/noautoconnection/imagedialog.h | 69 ---
.../designer/noautoconnection/imagedialog.ui | 389 ---------------
.../designer/singleinheritance/imagedialog.h | 67 ---
.../designer/singleinheritance/imagedialog.ui | 389 ---------------
.../doc/src/snippets/dialogs/dialogs.py | 123 -----
.../doc/src/snippets/doc_src_qtcharts.py | 43 --
.../codesnippets/doc/src/snippets/doc_src_qtgui.py | 53 ---
.../doc/src/snippets/doc_src_qtmultimedia.py | 53 ---
.../doc/src/snippets/doc_src_qtxmlpatterns.py | 54 ---
.../snippets/dockwidgets/Resources/modules.html | 28 --
.../src/snippets/dockwidgets/Resources/qtcore.html | 122 -----
.../src/snippets/dockwidgets/Resources/qtgui.html | 276 -----------
.../snippets/dockwidgets/Resources/qtnetwork.html | 35 --
.../snippets/dockwidgets/Resources/qtopengl.html | 27 --
.../src/snippets/dockwidgets/Resources/qtsql.html | 39 --
.../src/snippets/dockwidgets/Resources/qtxml.html | 53 ---
.../src/snippets/dockwidgets/Resources/titles.txt | 7 -
.../doc/src/snippets/dockwidgets/dockwidgets.qrc | 12 -
.../doc/src/snippets/dockwidgets/mainwindow.h | 80 ----
.../doc/src/snippets/draganddrop/dragwidget.h | 89 ----
.../doc/src/snippets/draganddrop/mainwindow.h | 81 ----
.../doc/src/snippets/dragging/images.qrc | 5 -
.../doc/src/snippets/dragging/images/file.png | Bin 313 -> 0 bytes
.../doc/src/snippets/dragging/mainwindow.cpp | 72 ---
.../doc/src/snippets/dragging/mainwindow.h | 81 ----
.../doc/src/snippets/dropactions/window.h | 81 ----
.../doc/codesnippets/doc/src/snippets/droparea.cpp | 147 ------
.../doc/src/snippets/dropevents/window.py | 65 ---
.../doc/src/snippets/droprectangle/window.h | 81 ----
.../doc/src/snippets/eventfilters/filterobject.h | 69 ---
.../snippets/explicitlysharedemployee/employee.h | 84 ----
.../doc/src/snippets/i18n-non-qt-class/myclass.h | 69 ---
.../doc/src/snippets/i18n-non-qt-class/myclass.ts | 12 -
.../src/snippets/i18n-non-qt-class/resources.qrc | 6 -
.../translations/i18n-non-qt-class_en.ts | 12 -
.../translations/i18n-non-qt-class_fr.ts | 13 -
.../codesnippets/doc/src/snippets/image/image.cpp | 69 ---
.../doc/src/snippets/image/supportedformat.cpp | 56 ---
.../doc/src/snippets/inherited-slot/button.h | 69 ---
.../doc/src/snippets/itemselection/model.h | 84 ----
.../doc/src/snippets/layouts/layouts.cpp | 126 -----
.../doc/src/snippets/mainwindowsnippet.cpp | 58 ---
.../doc/src/snippets/matrix/matrix.cpp | 112 -----
.../doc/src/snippets/mdiareasnippets.cpp | 66 ---
.../codesnippets/doc/src/snippets/moc/myclass1.h | 75 ---
.../codesnippets/doc/src/snippets/moc/myclass2.h | 76 ---
.../codesnippets/doc/src/snippets/moc/myclass3.h | 69 ---
.../doc/src/snippets/modelview-subclasses/model.h | 80 ----
.../doc/src/snippets/modelview-subclasses/view.h | 100 ----
.../doc/src/snippets/modelview-subclasses/window.h | 78 ----
.../codesnippets/doc/src/snippets/myscrollarea.cpp | 112 -----
.../doc/src/snippets/network/tcpwait.cpp | 71 ---
.../doc/codesnippets/doc/src/snippets/ntfsp.cpp | 60 ---
.../doc/src/snippets/patternist/anyHTMLElement.xq | 1 -
.../src/snippets/patternist/anyXLinkAttribute.xq | 2 -
.../doc/src/snippets/patternist/bracesIncluded.xq | 1 -
.../snippets/patternist/bracesIncludedResult.xml | 1 -
.../doc/src/snippets/patternist/bracesOmitted.xq | 1 -
.../snippets/patternist/bracesOmittedResult.xml | 2 -
.../snippets/patternist/computedTreeFragment.xq | 14 -
.../doc/src/snippets/patternist/copyAttribute.xq | 9 -
.../doc/src/snippets/patternist/copyID.xq | 3 -
.../src/snippets/patternist/directTreeFragment.xq | 7 -
.../doc/src/snippets/patternist/doc.txt | 35 --
.../doc/src/snippets/patternist/docPlainHTML.xq | 1 -
.../doc/src/snippets/patternist/docPlainHTML2.xq | 1 -
.../src/snippets/patternist/embedDataInXHTML.xq | 10 -
.../src/snippets/patternist/embedDataInXHTML2.xq | 10 -
.../doc/src/snippets/patternist/emptyParagraphs.xq | 1 -
.../src/snippets/patternist/escapeCurlyBraces.xq | 4 -
.../snippets/patternist/escapeStringLiterals.xml | 2 -
.../snippets/patternist/escapeStringLiterals.xq | 7 -
.../patternist/expressionInsideAttribute.xq | 2 -
.../doc/src/snippets/patternist/filterOnPath.xq | 2 -
.../doc/src/snippets/patternist/filterOnStep.xq | 2 -
.../doc/src/snippets/patternist/firstParagraph.xq | 1 -
.../src/snippets/patternist/fnStringOnAttribute.xq | 9 -
.../doc/src/snippets/patternist/forClause.xq | 3 -
.../doc/src/snippets/patternist/forClause2.xq | 3 -
.../doc/src/snippets/patternist/forClauseOnFeed.xq | 6 -
.../doc/src/snippets/patternist/indented.xml | 5 -
.../src/snippets/patternist/introAcneRemover.xq | 8 -
.../doc/src/snippets/patternist/introExample2.xq | 5 -
.../src/snippets/patternist/introFileHierarchy.xml | 14 -
.../doc/src/snippets/patternist/introNavigateFS.xq | 12 -
.../src/snippets/patternist/introductionExample.xq | 3 -
.../src/snippets/patternist/invalidLetOrderBy.xq | 3 -
.../doc/src/snippets/patternist/items.xq | 5 -
.../doc/src/snippets/patternist/letOrderBy.xq | 4 -
.../snippets/patternist/literalsAndOperators.xq | 2 -
.../doc/src/snippets/patternist/mobeyDick.xml | 4 -
.../src/snippets/patternist/nextLastParagraph.xq | 1 -
.../patternist/nodeConstructorsAreExpressions.xq | 4 -
.../snippets/patternist/nodeConstructorsInPaths.xq | 1 -
.../snippets/patternist/nodeTestChildElement.xq | 1 -
.../doc/src/snippets/patternist/notIndented.xml | 1 -
.../snippets/patternist/oneElementConstructor.xq | 1 -
.../patternist/paragraphsExceptTheFiveFirst.xq | 1 -
.../snippets/patternist/paragraphsWithTables.xq | 1 -
.../doc/src/snippets/patternist/pathAB.xq | 1 -
.../src/snippets/patternist/pathsAllParagraphs.xq | 1 -
.../doc/src/snippets/patternist/simpleHTML.xq | 1 -
.../doc/src/snippets/patternist/simpleXHTML.xq | 2 -
.../src/snippets/patternist/svgDocumentElement.xml | 1 -
.../src/snippets/patternist/tablesInParagraphs.xq | 1 -
.../doc/src/snippets/patternist/twoSVGElements.xq | 5 -
.../doc/src/snippets/patternist/xmlStylesheet.xq | 1 -
.../doc/src/snippets/patternist/xsBooleanTrue.xq | 1 -
.../snippets/patternist/xsvgDocumentElement.xml | 1 -
.../src/snippets/persistentindexes/mainwindow.h | 80 ----
.../doc/src/snippets/persistentindexes/model.h | 81 ----
.../doc/src/snippets/picture/picture.cpp | 121 -----
.../doc/src/snippets/plaintextlayout/window.h | 71 ---
.../doc/src/snippets/polygon/polygon.cpp | 96 ----
.../doc/src/snippets/porting4-dropevents/window.h | 82 ----
.../doc/src/snippets/printing-qprinter/errors.cpp | 68 ---
.../doc/src/snippets/printing-qprinter/object.h | 62 ---
.../doc/src/snippets/qabstractsliderisnippet.cpp | 519 ---------------------
.../doc/src/snippets/qdir-listfiles/main.cpp | 64 ---
.../doc/src/snippets/qdir-namefilters/main.cpp | 68 ---
.../doc/src/snippets/qfontdatabase/main.cpp | 74 ---
.../doc/src/snippets/qlineargradient/paintwidget.h | 69 ---
.../doc/src/snippets/qlistview-dnd/mainwindow.h | 71 ---
.../doc/src/snippets/qlistview-dnd/model.h | 73 ---
.../doc/src/snippets/qlistview-using/mainwindow.h | 82 ----
.../doc/src/snippets/qlistview-using/model.h | 82 ----
.../doc/src/snippets/qlistwidget-dnd/mainwindow.h | 72 ---
.../src/snippets/qlistwidget-using/mainwindow.h | 82 ----
.../doc/src/snippets/qmacnativewidget/main.mm | 144 ------
.../codesnippets/doc/src/snippets/qmake/delegate.h | 50 --
.../codesnippets/doc/src/snippets/qmake/main.cpp | 50 --
.../codesnippets/doc/src/snippets/qmake/model.cpp | 50 --
.../codesnippets/doc/src/snippets/qmake/model.h | 50 --
.../doc/src/snippets/qmake/paintwidget_unix.cpp | 54 ---
.../doc/codesnippets/doc/src/snippets/qmake/view.h | 50 --
.../src/snippets/qmetaobject-invokable/window.h | 68 ---
.../doc/src/snippets/qquickview-ex.cpp | 67 ---
.../doc/src/snippets/qsignalmapper/buttonwidget.h | 70 ---
.../doc/src/snippets/qsignalmapper/mainwindow.h | 69 ---
.../qsortfilterproxymodel-details/main.cpp | 79 ----
.../doc/src/snippets/qsplashscreen/main.cpp | 66 ---
.../doc/src/snippets/qsplashscreen/mainwindow.h | 64 ---
.../src/snippets/qsplashscreen/qsplashscreen.qrc | 5 -
.../doc/src/snippets/qsplashscreen/splash.png | Bin 27926 -> 0 bytes
.../doc/src/snippets/qstackedlayout/main.py | 87 ----
.../doc/src/snippets/qstackedwidget/main.py | 77 ---
.../doc/src/snippets/qstatustipevent/main.cpp | 74 ---
.../doc/src/snippets/qstyleoption/main.cpp | 105 -----
.../doc/src/snippets/qsvgwidget/qsvgwidget.qrc | 5 -
.../doc/src/snippets/qsvgwidget/spheres.svg | 79 ----
.../doc/src/snippets/qsvgwidget/sunflower.svg | 188 --------
.../src/snippets/qtablewidget-dnd/Images/cubed.png | Bin 437 -> 0 bytes
.../snippets/qtablewidget-dnd/Images/squared.png | Bin 440 -> 0 bytes
.../doc/src/snippets/qtablewidget-dnd/images.qrc | 6 -
.../doc/src/snippets/qtablewidget-dnd/mainwindow.h | 78 ----
.../snippets/qtablewidget-resizing/mainwindow.h | 77 ---
.../snippets/qtablewidget-using/Images/cubed.png | Bin 437 -> 0 bytes
.../snippets/qtablewidget-using/Images/squared.png | Bin 440 -> 0 bytes
.../doc/src/snippets/qtablewidget-using/images.qrc | 6 -
.../src/snippets/qtablewidget-using/mainwindow.h | 80 ----
.../codesnippets/doc/src/snippets/qtcast/qtcast.h | 64 ---
.../doc/src/snippets/qtreeview-dnd/dragdropmodel.h | 72 ---
.../doc/src/snippets/qtreeview-dnd/mainwindow.h | 71 ---
.../doc/src/snippets/qtreeview-dnd/treeitem.h | 81 ----
.../doc/src/snippets/qtreeview-dnd/treemodel.h | 89 ----
.../src/snippets/qtreewidget-using/mainwindow.cpp | 111 -----
.../src/snippets/qtreewidget-using/mainwindow.h | 87 ----
.../qtreewidgetitemiterator-using/mainwindow.cpp | 59 ---
.../qtreewidgetitemiterator-using/mainwindow.h | 87 ----
.../qtscript/registeringobjects/myobject.h | 67 ---
.../src/snippets/qtscript/scriptedslot/object.js | 18 -
.../qtscript/scriptedslot/scriptedslot.qrc | 5 -
.../src/snippets/quiloader/doc_src_qtuiloader.py | 53 ---
.../doc/src/snippets/quiloader/myform.ui | 130 ------
.../doc/src/snippets/quiloader/mywidget.h | 62 ---
.../doc/src/snippets/quiloader/mywidget.qrc | 5 -
.../doc/src/snippets/qx11embedwidget/embedwidget.h | 75 ---
.../doc/src/snippets/qxmlquery/bindingExample.py | 59 ---
.../doc/src/snippets/qxmlschemavalidator/main.cpp | 112 -----
.../doc/src/snippets/reading-selections/model.h | 84 ----
.../doc/src/snippets/reading-selections/window.h | 77 ---
.../doc/src/snippets/separations/finalwidget.h | 87 ----
.../doc/src/snippets/separations/screenwidget.h | 96 ----
.../doc/src/snippets/separations/viewer.h | 99 ----
.../doc/src/snippets/shareddirmodel/main.cpp | 90 ----
.../doc/src/snippets/sharedemployee/employee.h | 104 -----
.../doc/src/snippets/sharedtablemodel/model.h | 84 ----
.../doc/src/snippets/signalmapper/accountsfile.txt | 1 -
.../doc/src/snippets/signalmapper/filereader.h | 78 ----
.../doc/src/snippets/signalmapper/reportfile.txt | 2 -
.../doc/src/snippets/signalmapper/taxfile.txt | 1 -
.../doc/src/snippets/signalsandslots/lcdnumber.h | 98 ----
.../src/snippets/signalsandslots/signalsandslots.h | 99 ----
.../doc/src/snippets/simpleparse/handler.h | 77 ---
.../doc/src/snippets/splitter/splitter.cpp | 76 ---
.../doc/src/snippets/splitterhandle/splitter.h | 61 ---
.../doc/src/snippets/sqldatabase/sqldatabase.py | 489 -------------------
.../doc/src/snippets/stringlistmodel/model.cpp | 170 -------
.../doc/src/snippets/stringlistmodel/model.h | 82 ----
.../doc/src/snippets/styles/styles.cpp | 80 ----
.../src/snippets/stylesheet/common-mistakes.cpp | 62 ---
.../src/snippets/textblock-fragments/mainwindow.h | 75 ---
.../src/snippets/textblock-fragments/xmlwriter.h | 74 ---
.../src/snippets/textdocument-blocks/mainwindow.h | 75 ---
.../src/snippets/textdocument-blocks/xmlwriter.h | 71 ---
.../doc/src/snippets/textdocument-css/main.cpp | 58 ---
.../src/snippets/textdocument-frames/mainwindow.h | 74 ---
.../src/snippets/textdocument-frames/xmlwriter.h | 74 ---
.../src/snippets/textdocument-imagedrop/textedit.h | 66 ---
.../snippets/textdocument-imageformat/images.qrc | 6 -
.../textdocument-imageformat/images/advert.png | Bin 16291 -> 0 bytes
.../textdocument-imageformat/images/newimage.png | Bin 5490 -> 0 bytes
.../src/snippets/textdocument-images/images.qrc | 5 -
.../snippets/textdocument-images/images/advert.png | Bin 16291 -> 0 bytes
.../snippets/textdocument-listitems/mainwindow.h | 85 ----
.../src/snippets/textdocument-lists/mainwindow.h | 89 ----
.../snippets/textdocument-printing/mainwindow.h | 82 ----
.../snippets/textdocument-selections/mainwindow.h | 89 ----
.../snippets/textdocument-tables/mainwindow.cpp | 125 -----
.../src/snippets/textdocument-tables/mainwindow.h | 75 ---
.../src/snippets/textdocument-tables/xmlwriter.h | 74 ---
.../src/snippets/textdocument-texttable/main.cpp | 56 ---
.../doc/src/snippets/threads/threads.h | 61 ---
.../doc/src/snippets/timers/timers.cpp | 88 ----
.../doc/src/snippets/transform/main.cpp | 110 -----
.../uitools/calculatorform/calculatorform.ui | 303 ------------
.../doc/src/snippets/updating-selections/model.h | 84 ----
.../doc/src/snippets/updating-selections/window.h | 77 ---
.../doc/src/snippets/whatsthis/whatsthis.cpp | 57 ---
.../doc/src/snippets/widget-mask/mask.qrc | 5 -
.../doc/src/snippets/widget-mask/tux.png | Bin 12191 -> 0 bytes
.../doc/src/snippets/widgetdelegate.cpp | 72 ---
.../doc/src/snippets/widgets-tutorial/template.py | 66 ---
.../doc/src/snippets/xml/rsslisting/handler.h | 84 ----
.../doc/src/snippets/xml/rsslisting/rsslisting.h | 96 ----
.../codesnippets/examples/dbus/example-client.py | 100 ----
.../codesnippets/examples/dbus/example-server.py | 119 -----
.../declarative/cppextensions/plugins/plugin.cpp | 68 ---
.../declarative/cppextensions/plugins/plugins.qml | 62 ---
.../examples/dialogs/classwizard/classwizard.py | 254 ----------
.../examples/dialogs/classwizard/classwizard.qrc | 11 -
.../dialogs/classwizard/images/background.png | Bin 22578 -> 0 bytes
.../examples/dialogs/classwizard/images/banner.png | Bin 3947 -> 0 bytes
.../examples/dialogs/classwizard/images/logo1.png | Bin 1619 -> 0 bytes
.../examples/dialogs/classwizard/images/logo2.png | Bin 1619 -> 0 bytes
.../examples/dialogs/classwizard/images/logo3.png | Bin 1619 -> 0 bytes
.../dialogs/classwizard/images/watermark1.png | Bin 14516 -> 0 bytes
.../dialogs/classwizard/images/watermark2.png | Bin 14912 -> 0 bytes
.../examples/dialogs/extension/finddialog.py | 119 -----
.../examples/dialogs/licensewizard/images/logo.png | Bin 1810 -> 0 bytes
.../dialogs/licensewizard/images/watermark.png | Bin 34998 -> 0 bytes
.../examples/dialogs/licensewizard/licensewizard.h | 173 -------
.../dialogs/licensewizard/licensewizard.qrc | 6 -
.../examples/dialogs/standarddialogs/dialog.cpp | 80 ----
.../examples/dialogs/tabdialog/tabdialog.cpp | 193 --------
.../graphicsview/simpleanchorlayout/main.cpp | 72 ---
.../imageprovider/imageprovider-example.qml | 59 ---
.../examples/imageprovider/imageprovider.cpp | 83 ----
.../mysortfilterproxymodel.cpp | 109 -----
.../examples/itemviews/pixelator/pixeldelegate.cpp | 103 ----
.../examples/mainwindows/application/mainwindow.h | 113 -----
.../examples/mainwindows/application/mainwindow.py | 357 --------------
.../examples/mainwindows/dockwidgets/mainwindow.py | 253 ----------
.../examples/mainwindows/mainwindow.py | 366 ---------------
.../examples/mainwindows/mdi/mainwindow.py | 361 --------------
.../examples/mainwindows/menus/mainwindow.py | 366 ---------------
.../examples/mainwindows/sdi/mainwindow.cpp | 60 ---
.../examples/quick/plugins/plugins.qml | 61 ---
.../relationaltablemodel/relationaltablemodel.cpp | 120 -----
.../examples/richtext/textobject/svgtextobject.h | 79 ----
.../examples/widgets/groupbox/window.cpp | 187 --------
.../examples/widgets/icons/iconsizespinbox.cpp | 72 ---
.../examples/widgets/spinboxes/window.py | 247 ----------
.../examples/xml/streambookmarks/xbelreader.h | 90 ----
.../doc/codesnippets/snippets/customstyle/main.cpp | 61 ---
518 files changed, 18 insertions(+), 40945 deletions(-)
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/accessibilityslidersnippet.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/alphachannel.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/audio/main.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/brushstyles/qt-logo.png
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/brushstyles/renderarea.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/brushstyles/stylewidget.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/clipboard/clipwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/clipboard/clipwindow.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qnamespace.qdoc
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtcore.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtnetwork.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtopengl.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtprintsupport.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtqml.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtquick.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtsql.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qttest.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtwidgets.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtxml.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src.gui.text.qtextdocumentwriter.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src.qdbus.qdbuspendingcall.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src.qdbus.qdbuspendingreply.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src.scripttools.qscriptenginedebugger.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_codecs_qtextcodec.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_codecs_qtextcodecplugin.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qfuture.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qfuturesynchronizer.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qfuturewatcher.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qtconcurrentexception.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qtconcurrentfilter.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qtconcurrentmap.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qtconcurrentrun.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qthreadpool.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qabstractfileengine.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qdatastream.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qdir.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qdiriterator.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qfile.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qfileinfo.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qiodevice.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qprocess.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qsettings.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qtemporaryfile.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qtextstream.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qurl.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qabstracteventdispatcher.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qabstractitemmodel.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qcoreapplication.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qmetaobject.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qmetatype.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qmimedata.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qobject.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qsystemsemaphore.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qtimer.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_plugin_qlibrary.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_plugin_quuid.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_statemachine_qstatemachine.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_thread_qatomic.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_thread_qmutex.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_thread_qmutexpool.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_thread_qreadwritelock.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_thread_qsemaphore.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_thread_qthread.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_thread_qwaitcondition_unix.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_tools_qbitarray.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_tools_qbytearray.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_tools_qdatetime.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_tools_qhash.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_tools_qlinkedlist.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_tools_qlistdata.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_tools_qlocale.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_tools_qmap.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_tools_qpoint.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_tools_qqueue.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_tools_qrect.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_tools_qregexp.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_tools_qsize.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_tools_qstring.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_tools_qtimeline.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_tools_qvector.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_xml_qxmlstream.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_accessible_qaccessible.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_dialogs_qabstractprintdialog.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_dialogs_qfiledialog.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_dialogs_qfontdialog.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_dialogs_qwizard.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_effects_qgraphicseffect.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_graphicsview_qgraphicsgridlayout.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_graphicsview_qgraphicsitem.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_graphicsview_qgraphicslinearlayout.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_graphicsview_qgraphicsproxywidget.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_graphicsview_qgraphicsscene.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_graphicsview_qgraphicssceneevent.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_graphicsview_qgraphicsview.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_graphicsview_qgraphicswidget.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_image_qbitmap.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_image_qicon.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_image_qimage.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_image_qimagereader.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_image_qimagewriter.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_image_qmovie.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_image_qpixmap.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_image_qpixmapcache.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_image_qpixmapfilter.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_itemviews_qabstractitemview.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_itemviews_qdatawidgetmapper.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_itemviews_qitemeditorfactory.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_itemviews_qitemselectionmodel.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_itemviews_qstandarditemmodel.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_itemviews_qtablewidget.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_itemviews_qtreewidget.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_kernel_qaction.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_kernel_qapplication.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_kernel_qapplication_x11.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_kernel_qclipboard.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_kernel_qevent.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_kernel_qformlayout.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_kernel_qkeysequence.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_kernel_qlayout.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_kernel_qlayoutitem.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_kernel_qshortcut.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_kernel_qshortcutmap.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_kernel_qsound.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_kernel_qwidget.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_painting_qbrush.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_painting_qcolor.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_painting_qdrawutil.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_painting_qmatrix.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_painting_qpainter.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_painting_qpainterpath.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_painting_qpen.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_painting_qregion.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_painting_qregion_unix.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_painting_qtransform.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_styles_qstyle.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_styles_qstyleoption.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_text_qfont.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_text_qfontmetrics.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_text_qsyntaxhighlighter.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_text_qtextcursor.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_text_qtextlayout.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_util_qcompleter.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_util_qdesktopservices.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_util_qundostack.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_util_qvalidator.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qabstractbutton.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qabstractspinbox.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qcalendarwidget.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qcheckbox.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qdatetimeedit.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qdockwidget.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qframe.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qgroupbox.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qlabel.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qlineedit.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qmainwindow.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qmenu.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qmenubar.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qplaintextedit.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qpushbutton.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qradiobutton.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qrubberband.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qscrollarea.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qspinbox.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qsplashscreen.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qsplitter.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qstatusbar.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qtextbrowser.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qtextedit.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_gui_widgets_qworkspace.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_network_access_qftp.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_network_access_qhttp.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_network_access_qnetworkaccessmanager.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_network_access_qnetworkdiskcache.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_network_access_qnetworkrequest.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_network_bearer_qnetworkconfigmanager.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_network_kernel_qhostaddress.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_network_kernel_qhostinfo.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_network_kernel_qnetworkproxy.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_network_socket_qabstractsocket.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_network_socket_qlocalsocket_unix.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_network_socket_qnativesocketengine.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_network_socket_qtcpserver.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_network_socket_qudpsocket.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_network_ssl_qsslcertificate.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_network_ssl_qsslconfiguration.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_network_ssl_qsslsocket.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_opengl_qgl.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_opengl_qglcolormap.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_opengl_qglpixelbuffer.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_opengl_qglshaderprogram.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_qtestlib_qtestcase.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_script_qscriptable.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_script_qscriptclass.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_script_qscriptcontext.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_script_qscriptengine.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_script_qscriptengineagent.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_script_qscriptvalue.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_script_qscriptvalueiterator.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_sql_kernel_qsqldriver.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_sql_kernel_qsqlerror.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_sql_kernel_qsqlindex.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_sql_kernel_qsqlquery.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_sql_kernel_qsqlresult.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_sql_models_qsqlquerymodel.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_xml_dom_qdom.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_xml_sax_qxml.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_xmlpatterns_api_qabstracturiresolver.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_xmlpatterns_api_qabstractxmlforwarditerator.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_xmlpatterns_api_qabstractxmlnodemodel.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_xmlpatterns_api_qabstractxmlreceiver.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_xmlpatterns_api_qsimplexmlnodemodel.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_xmlpatterns_api_qxmlformatter.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_xmlpatterns_api_qxmlname.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_xmlpatterns_api_qxmlquery.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_xmlpatterns_api_qxmlresultitems.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_xmlpatterns_api_qxmlserializer.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/tools_assistant_compat_lib_qassistantclient.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/tools_designer_src_lib_extension_default_extensionfactory.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/tools_designer_src_lib_extension_extension.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/tools_designer_src_lib_extension_qextensionmanager.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/tools_designer_src_lib_sdk_abstractformeditor.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/tools_designer_src_lib_sdk_abstractformwindow.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/tools_designer_src_lib_sdk_abstractformwindowcursor.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/tools_designer_src_lib_sdk_abstractformwindowmanager.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/tools_designer_src_lib_sdk_abstractobjectinspector.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/tools_designer_src_lib_sdk_abstractpropertyeditor.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/tools_designer_src_lib_sdk_abstractwidgetbox.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/tools_designer_src_lib_uilib_abstractformbuilder.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/tools_designer_src_lib_uilib_formbuilder.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/tools_patternist_qapplicationargumentparser.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/tools_shared_qtgradienteditor_qtgradientdialog.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/tools_shared_qtpropertybrowser_qtpropertybrowser.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/tools_shared_qtpropertybrowser_qtvariantproperty.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/code/tools_shared_qttoolbardialog_qttoolbardialog.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/console/dbus_pingpong.txt
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/customstyle/customstyle.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/designer/autoconnection/imagedialog.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/designer/autoconnection/imagedialog.ui
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/designer/imagedialog/imagedialog.ui
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/designer/multipleinheritance/imagedialog.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/designer/multipleinheritance/imagedialog.ui
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/designer/noautoconnection/imagedialog.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/designer/noautoconnection/imagedialog.ui
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/designer/singleinheritance/imagedialog.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/designer/singleinheritance/imagedialog.ui
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/dialogs/dialogs.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/doc_src_qtcharts.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/doc_src_qtgui.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/doc_src_qtmultimedia.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/doc_src_qtxmlpatterns.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/dockwidgets/Resources/modules.html
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/dockwidgets/Resources/qtcore.html
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/dockwidgets/Resources/qtgui.html
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/dockwidgets/Resources/qtnetwork.html
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/dockwidgets/Resources/qtopengl.html
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/dockwidgets/Resources/qtsql.html
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/dockwidgets/Resources/qtxml.html
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/dockwidgets/Resources/titles.txt
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/dockwidgets/dockwidgets.qrc
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/dockwidgets/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/draganddrop/dragwidget.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/draganddrop/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/dragging/images.qrc
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/dragging/images/file.png
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/dragging/mainwindow.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/dragging/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/dropactions/window.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/droparea.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/dropevents/window.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/droprectangle/window.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/eventfilters/filterobject.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/explicitlysharedemployee/employee.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/myclass.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/myclass.ts
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/resources.qrc
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/translations/i18n-non-qt-class_en.ts
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/translations/i18n-non-qt-class_fr.ts
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/image/image.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/image/supportedformat.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/inherited-slot/button.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/itemselection/model.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/layouts/layouts.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/mainwindowsnippet.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/matrix/matrix.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/mdiareasnippets.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/moc/myclass1.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/moc/myclass2.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/moc/myclass3.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/modelview-subclasses/model.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/modelview-subclasses/view.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/modelview-subclasses/window.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/myscrollarea.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/network/tcpwait.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/ntfsp.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/anyHTMLElement.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/anyXLinkAttribute.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/bracesIncluded.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/bracesIncludedResult.xml
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/bracesOmitted.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/bracesOmittedResult.xml
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/computedTreeFragment.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/copyAttribute.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/copyID.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/directTreeFragment.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/doc.txt
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/docPlainHTML.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/docPlainHTML2.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/embedDataInXHTML.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/embedDataInXHTML2.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/emptyParagraphs.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/escapeCurlyBraces.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/escapeStringLiterals.xml
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/escapeStringLiterals.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/expressionInsideAttribute.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/filterOnPath.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/filterOnStep.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/firstParagraph.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/fnStringOnAttribute.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/forClause.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/forClause2.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/forClauseOnFeed.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/indented.xml
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/introAcneRemover.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/introExample2.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/introFileHierarchy.xml
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/introNavigateFS.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/introductionExample.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/invalidLetOrderBy.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/items.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/letOrderBy.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/literalsAndOperators.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/mobeyDick.xml
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/nextLastParagraph.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/nodeConstructorsAreExpressions.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/nodeConstructorsInPaths.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/nodeTestChildElement.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/notIndented.xml
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/oneElementConstructor.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/paragraphsExceptTheFiveFirst.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/paragraphsWithTables.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/pathAB.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/pathsAllParagraphs.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/simpleHTML.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/simpleXHTML.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/svgDocumentElement.xml
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/tablesInParagraphs.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/twoSVGElements.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/xmlStylesheet.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/xsBooleanTrue.xq
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/xsvgDocumentElement.xml
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/persistentindexes/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/persistentindexes/model.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/picture/picture.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/plaintextlayout/window.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/polygon/polygon.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/porting4-dropevents/window.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/printing-qprinter/errors.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/printing-qprinter/object.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qabstractsliderisnippet.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qdir-listfiles/main.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qdir-namefilters/main.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qfontdatabase/main.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qlineargradient/paintwidget.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qlistview-dnd/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qlistview-dnd/model.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qlistview-using/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qlistview-using/model.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qlistwidget-dnd/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qlistwidget-using/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qmacnativewidget/main.mm
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qmake/delegate.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qmake/main.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qmake/model.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qmake/model.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qmake/paintwidget_unix.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qmake/view.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qmetaobject-invokable/window.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qquickview-ex.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qsignalmapper/buttonwidget.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qsignalmapper/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qsortfilterproxymodel-details/main.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qsplashscreen/main.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qsplashscreen/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qsplashscreen/qsplashscreen.qrc
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qsplashscreen/splash.png
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qstackedlayout/main.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qstackedwidget/main.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qstatustipevent/main.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qstyleoption/main.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qsvgwidget/qsvgwidget.qrc
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qsvgwidget/spheres.svg
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qsvgwidget/sunflower.svg
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtablewidget-dnd/Images/cubed.png
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtablewidget-dnd/Images/squared.png
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtablewidget-dnd/images.qrc
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtablewidget-dnd/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtablewidget-resizing/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtablewidget-using/Images/cubed.png
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtablewidget-using/Images/squared.png
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtablewidget-using/images.qrc
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtablewidget-using/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtcast/qtcast.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtreeview-dnd/dragdropmodel.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtreeview-dnd/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtreeview-dnd/treeitem.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtreeview-dnd/treemodel.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtreewidget-using/mainwindow.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtreewidget-using/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtreewidgetitemiterator-using/mainwindow.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtreewidgetitemiterator-using/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtscript/registeringobjects/myobject.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtscript/scriptedslot/object.js
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qtscript/scriptedslot/scriptedslot.qrc
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/quiloader/doc_src_qtuiloader.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/quiloader/myform.ui
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/quiloader/mywidget.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/quiloader/mywidget.qrc
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qx11embedwidget/embedwidget.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qxmlquery/bindingExample.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/qxmlschemavalidator/main.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/reading-selections/model.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/reading-selections/window.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/separations/finalwidget.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/separations/screenwidget.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/separations/viewer.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/shareddirmodel/main.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/sharedemployee/employee.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/sharedtablemodel/model.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/signalmapper/accountsfile.txt
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/signalmapper/filereader.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/signalmapper/reportfile.txt
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/signalmapper/taxfile.txt
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/signalsandslots/lcdnumber.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/signalsandslots/signalsandslots.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/simpleparse/handler.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/splitter/splitter.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/splitterhandle/splitter.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/sqldatabase/sqldatabase.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/stringlistmodel/model.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/stringlistmodel/model.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/styles/styles.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/stylesheet/common-mistakes.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textblock-fragments/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textblock-fragments/xmlwriter.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textdocument-blocks/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textdocument-blocks/xmlwriter.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textdocument-css/main.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textdocument-frames/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textdocument-frames/xmlwriter.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textdocument-imagedrop/textedit.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textdocument-imageformat/images.qrc
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textdocument-imageformat/images/advert.png
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textdocument-imageformat/images/newimage.png
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textdocument-images/images.qrc
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textdocument-images/images/advert.png
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textdocument-listitems/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textdocument-lists/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textdocument-printing/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textdocument-selections/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textdocument-tables/mainwindow.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textdocument-tables/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textdocument-tables/xmlwriter.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/textdocument-texttable/main.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/threads/threads.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/timers/timers.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/transform/main.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/uitools/calculatorform/calculatorform.ui
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/updating-selections/model.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/updating-selections/window.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/whatsthis/whatsthis.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/widget-mask/mask.qrc
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/widget-mask/tux.png
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/widgetdelegate.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/widgets-tutorial/template.py
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/xml/rsslisting/handler.h
delete mode 100644 sources/pyside6/doc/codesnippets/doc/src/snippets/xml/rsslisting/rsslisting.h
delete mode 100644 sources/pyside6/doc/codesnippets/examples/dbus/example-client.py
delete mode 100644 sources/pyside6/doc/codesnippets/examples/dbus/example-server.py
delete mode 100644 sources/pyside6/doc/codesnippets/examples/declarative/cppextensions/plugins/plugin.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/examples/declarative/cppextensions/plugins/plugins.qml
delete mode 100644 sources/pyside6/doc/codesnippets/examples/dialogs/classwizard/classwizard.py
delete mode 100644 sources/pyside6/doc/codesnippets/examples/dialogs/classwizard/classwizard.qrc
delete mode 100644 sources/pyside6/doc/codesnippets/examples/dialogs/classwizard/images/background.png
delete mode 100644 sources/pyside6/doc/codesnippets/examples/dialogs/classwizard/images/banner.png
delete mode 100644 sources/pyside6/doc/codesnippets/examples/dialogs/classwizard/images/logo1.png
delete mode 100644 sources/pyside6/doc/codesnippets/examples/dialogs/classwizard/images/logo2.png
delete mode 100644 sources/pyside6/doc/codesnippets/examples/dialogs/classwizard/images/logo3.png
delete mode 100644 sources/pyside6/doc/codesnippets/examples/dialogs/classwizard/images/watermark1.png
delete mode 100644 sources/pyside6/doc/codesnippets/examples/dialogs/classwizard/images/watermark2.png
delete mode 100644 sources/pyside6/doc/codesnippets/examples/dialogs/extension/finddialog.py
delete mode 100644 sources/pyside6/doc/codesnippets/examples/dialogs/licensewizard/images/logo.png
delete mode 100644 sources/pyside6/doc/codesnippets/examples/dialogs/licensewizard/images/watermark.png
delete mode 100644 sources/pyside6/doc/codesnippets/examples/dialogs/licensewizard/licensewizard.h
delete mode 100644 sources/pyside6/doc/codesnippets/examples/dialogs/licensewizard/licensewizard.qrc
delete mode 100644 sources/pyside6/doc/codesnippets/examples/dialogs/standarddialogs/dialog.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/examples/dialogs/tabdialog/tabdialog.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/examples/graphicsview/simpleanchorlayout/main.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/examples/imageprovider/imageprovider-example.qml
delete mode 100644 sources/pyside6/doc/codesnippets/examples/imageprovider/imageprovider.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/examples/itemviews/customsortfiltermodel/mysortfilterproxymodel.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/examples/itemviews/pixelator/pixeldelegate.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/examples/mainwindows/application/mainwindow.h
delete mode 100644 sources/pyside6/doc/codesnippets/examples/mainwindows/application/mainwindow.py
delete mode 100644 sources/pyside6/doc/codesnippets/examples/mainwindows/dockwidgets/mainwindow.py
delete mode 100644 sources/pyside6/doc/codesnippets/examples/mainwindows/mainwindow.py
delete mode 100644 sources/pyside6/doc/codesnippets/examples/mainwindows/mdi/mainwindow.py
delete mode 100644 sources/pyside6/doc/codesnippets/examples/mainwindows/menus/mainwindow.py
delete mode 100644 sources/pyside6/doc/codesnippets/examples/mainwindows/sdi/mainwindow.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/examples/quick/plugins/plugins.qml
delete mode 100644 sources/pyside6/doc/codesnippets/examples/relationaltablemodel/relationaltablemodel.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/examples/richtext/textobject/svgtextobject.h
delete mode 100644 sources/pyside6/doc/codesnippets/examples/widgets/groupbox/window.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/examples/widgets/icons/iconsizespinbox.cpp
delete mode 100644 sources/pyside6/doc/codesnippets/examples/widgets/spinboxes/window.py
delete mode 100644 sources/pyside6/doc/codesnippets/examples/xml/streambookmarks/xbelreader.h
delete mode 100644 sources/pyside6/doc/codesnippets/snippets/customstyle/main.cpp
(limited to 'sources')
diff --git a/sources/pyside6/doc/CMakeLists.txt b/sources/pyside6/doc/CMakeLists.txt
index 2d1116871..af750bcd0 100644
--- a/sources/pyside6/doc/CMakeLists.txt
+++ b/sources/pyside6/doc/CMakeLists.txt
@@ -23,6 +23,24 @@ if (NOT FULLDOCSBUILD)
set(PYTHON_EXECUTABLE ${Python_EXECUTABLE})
endif()
+if (FULLDOCSBUILD)
+ # Fetch and transform the snippets from Qt
+ message(STATUS "Fetching and converting snippets")
+ if ("${QT_SRC_DIR}" STREQUAL "")
+ message(FATAL_ERROR "There is no value set on QT_SRC_DIR, the snippet conversion will fail")
+ endif()
+ set(PYSIDE_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/../../../")
+ if (QUIET_BUILD)
+ set(SNIPPETS_QUIET_OPTION "-q")
+ endif()
+ set(SNIPPETS_TOOL "${CMAKE_CURRENT_SOURCE_DIR}/../../../tools/snippets_translate/main.py")
+ # Note QT_SRC_DIR points to 'qtbase',
+ # so we use the general SRC directory to copy all the other snippets
+ execute_process(COMMAND ${PYTHON_EXECUTABLE} ${SNIPPETS_TOOL}
+ --qt ${QT_SRC_DIR}/.. --pyside ${PYSIDE_ROOT} -w ${SNIPPETS_QUIET_OPTION}
+ WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
+endif()
+
# Generate example gallery
message(STATUS "Generating example gallery")
if (QUIET_BUILD)
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/accessibilityslidersnippet.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/accessibilityslidersnippet.cpp
deleted file mode 100644
index 6c479cd3f..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/accessibilityslidersnippet.cpp
+++ /dev/null
@@ -1,271 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-
-//! [0]
-QAccessibleSlider::QAccessibleSlider(QWidget *w)
-: QAccessibleAbstractSlider(w)
-{
- Q_ASSERT(slider());
- addControllingSignal(QLatin1String("valueChanged(int)"));
-}
-//! [0]
-
-QSlider *QAccessibleSlider::slider() const
-{
- return qobject_cast(object());
-}
-
-//! [1]
-QRect QAccessibleSlider::rect(int child) const
-{
-//! [1]
- QRect rect;
- if (!slider()->isVisible())
- return rect;
- const QStyleOptionSlider option = qt_qsliderStyleOption(slider());
- QRect srect = slider()->style()->subControlRect(QStyle::CC_Slider, &option,
- QStyle::SC_SliderHandle, slider());
-
-//! [2]
- switch (child) {
- case PageLeft:
- if (slider()->orientation() == Qt::Vertical)
- rect = QRect(0, 0, slider()->width(), srect.y());
- else
- rect = QRect(0, 0, srect.x(), slider()->height());
- break;
- case Position:
- rect = srect;
- break;
- case PageRight:
- if (slider()->orientation() == Qt::Vertical)
- rect = QRect(0, srect.y() + srect.height(), slider()->width(), slider()->height()- srect.y() - srect.height());
- else
- rect = QRect(srect.x() + srect.width(), 0, slider()->width() - srect.x() - srect.width(), slider()->height());
- break;
- default:
- return QAccessibleAbstractSlider::rect(child);
- }
-//! [2] //! [3]
-
- QPoint tp = slider()->mapToGlobal(QPoint(0,0));
- return QRect(tp.x() + rect.x(), tp.y() + rect.y(), rect.width(), rect.height());
-}
-//! [3]
-
-int QAccessibleSlider::childCount() const
-{
- if (!slider()->isVisible())
- return 0;
- return PageRight;
-}
-
-//! [4]
-QString QAccessibleSlider::text(Text t, int child) const
-{
- if (!slider()->isVisible())
- return QString();
- switch (t) {
- case Value:
- if (!child || child == 2)
- return QString::number(slider()->value());
- return QString();
- case Name:
- switch (child) {
- case PageLeft:
- return slider()->orientation() == Qt::Horizontal ?
- QSlider::tr("Page left") : QSlider::tr("Page up");
- case Position:
- return QSlider::tr("Position");
- case PageRight:
- return slider()->orientation() == Qt::Horizontal ?
- QSlider::tr("Page right") : QSlider::tr("Page down");
- }
- break;
- default:
- break;
- }
- return QAccessibleAbstractSlider::text(t, child);
-}
-//! [4]
-
-//! [5]
-QAccessible::Role QAccessibleSlider::role(int child) const
-{
- switch (child) {
- case PageLeft:
- case PageRight:
- return PushButton;
- case Position:
- return Indicator;
- default:
- return Slider;
- }
-}
-//! [5]
-
-//! [6]
-QAccessible::State QAccessibleSlider::state(int child) const
-{
- const State parentState = QAccessibleAbstractSlider::state(0);
-//! [6]
-
- if (child == 0)
- return parentState;
-
- // Inherit the Invisible state from parent.
- State state = parentState & QAccessible::Invisible;
-
- // Disable left/right if we are at the minimum/maximum.
- const QSlider * const slider = QAccessibleSlider::slider();
-//! [7]
- switch (child) {
- case PageLeft:
- if (slider->value() <= slider->minimum())
- state |= Unavailable;
- break;
- case PageRight:
- if (slider->value() >= slider->maximum())
- state |= Unavailable;
- break;
- case Position:
- default:
- break;
- }
-
- return state;
-}
-//! [7]
-
-int QAccessibleSlider::defaultAction(int child) const
-{
- switch (child) {
- case SliderSelf:
- return SetFocus;
- case PageLeft:
- return Press;
- case PageRight:
- return Press;
- }
-
- return 0;
-}
-
-// Name, Description, Value, Help, Accelerator
-static const char * const actionTexts[][5] =
-{
- {"Press", "Decreases the value of the slider", "", "", "Ctrl+L"},
- {"Press", "Increaces the value of the slider", "", "", "Ctrl+R"}
-};
-
-QString QAccessibleSlider::actionText(int action, Text text, int child) const
-{
- if (action != Press || child < 1 || child > 2)
- return QAccessibleAbstractSlider::actionText(action, text, child);
-
- return actionTexts[child - 1][t];
-}
-
-bool QAccessibleSlider::doAction(int action, int child)
-{
- if (action != Press || child < 1 || child > 2)
- return false;
-
- if (child == PageLeft)
- slider()->setValue(slider()->value() - slider()->pageStep());
- else
- slider()->setValue(slider()->value() + slider()->pageStep());
-}
-
-QAccessibleAbstractSlider::QAccessibleAbstractSlider(QWidget *w, Role r)
- : QAccessibleWidgetEx(w, r)
-{
- Q_ASSERT(qobject_cast(w));
-}
-
-QVariant QAccessibleAbstractSlider::invokeMethodEx(Method method, int child, const QVariantList ¶ms)
-{
- switch (method) {
- case ListSupportedMethods: {
- QSet set;
- set << ListSupportedMethods;
- return qVariantFromValue(set | qvariant_cast >(
- QAccessibleWidgetEx::invokeMethodEx(method, child, params)));
- }
- default:
- return QAccessibleWidgetEx::invokeMethodEx(method, child, params);
- }
-}
-
-QVariant QAccessibleAbstractSlider::currentValue()
-{
- return abstractSlider()->value();
-}
-
-void QAccessibleAbstractSlider::setCurrentValue(const QVariant &value)
-{
- abstractSlider()->setValue(value.toInt());
-}
-
-QVariant QAccessibleAbstractSlider::maximumValue()
-{
- return abstractSlider()->maximum();
-}
-
-QVariant QAccessibleAbstractSlider::minimumValue()
-{
- return abstractSlider()->minimum();
-}
-
-QAbstractSlider *QAccessibleAbstractSlider::abstractSlider() const
-{
- return static_cast(object());
-}
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/alphachannel.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/alphachannel.cpp
deleted file mode 100644
index 78c2c54db..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/alphachannel.cpp
+++ /dev/null
@@ -1,64 +0,0 @@
-############################################################################
-##
-## Copyright (C) 2016 The Qt Company Ltd.
-## Contact: https://www.qt.io/licensing/
-##
-## This file is part of the examples of Qt for Python.
-##
-## $QT_BEGIN_LICENSE:BSD$
-## Commercial License Usage
-## Licensees holding valid commercial Qt licenses may use this file in
-## accordance with the commercial license agreement provided with the
-## Software or, alternatively, in accordance with the terms contained in
-## a written agreement between you and The Qt Company. For licensing terms
-## and conditions see https://www.qt.io/terms-conditions. For further
-## information use the contact form at https://www.qt.io/contact-us.
-##
-## BSD License Usage
-## Alternatively, you may use this file under the terms of the BSD license
-## as follows:
-##
-## "Redistribution and use in source and binary forms, with or without
-## modification, are permitted provided that the following conditions are
-## met:
-## * Redistributions of source code must retain the above copyright
-## notice, this list of conditions and the following disclaimer.
-## * Redistributions in binary form must reproduce the above copyright
-## notice, this list of conditions and the following disclaimer in
-## the documentation and/or other materials provided with the
-## distribution.
-## * Neither the name of The Qt Company Ltd nor the names of its
-## contributors may be used to endorse or promote products derived
-## from this software without specific prior written permission.
-##
-##
-## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-##
-## $QT_END_LICENSE$
-##
-############################################################################
-
-//! [0]
- pixmap = QPixmap(100, 100)
- pixmap.fill(Qt.transparent)
-
- gradient = QRadialGradient(50, 50, 50, 50, 50)
- gradient.setColorAt(0, QColor.fromRgbF(1, 0, 0, 1))
- gradient.setColorAt(1, QColor.fromRgbF(0, 0, 0, 0))
- painter = QPainter(pixmap)
- painter.fillRect(0, 0, 100, 100, gradient)
-
- channelImage = pixmap.alphaChannel()
- update()
-//! [0]
-
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/audio/main.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/audio/main.cpp
deleted file mode 100644
index 09d1aa420..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/audio/main.cpp
+++ /dev/null
@@ -1,104 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-class Window2 (QWidget):
-//![0]
- @Slot(QAudio.State)
- def stateChanged(self, newState):
- if newState == QAudio.StopState:
- if self.input.error() != QAudio.NoError:
- # Error handling
-//![0]
-
-class Window (QWidget):
- def __init__(self):
- QWidget.__init__(self)
- self.output = QAudioOutput()
- self.output.stateChanged[QAudio.State].connect(self.stateChanged)
-
- def setupFormat(self):
-//![1]
- format = QAudioFormat()
- format.setFrequency(44100)
-//![1]
- format.setChannels(2)
- format.setSampleSize(16)
- format.setCodec("audio/pcm")
- format.setByteOrder(QAudioFormat.LittleEndian)
-//![2]
- format.setSampleType(QAudioFormat.SignedInt)
-
- info = QAudioDeviceInfo(QAudioDeviceInfo.defaultOutputDevice())
-
- if not info.isFormatSupported(format):
- format = info.nearestFormat(format)
-//![2]
-
-//![3]
- @Slot(QAudio.State)
- def stateChanged(self, newState):
- if newState == QAudio.StopState:
- if self.output.error() != QAudio.NoError:
- # Perform error handling
- else:
- # Normal stop
-//![3]
-
- # Handle
- elif newState == QAudio.ActiveState:
- # Handle active state...
-
-app = QApplication(sys.argv)
-
-window = Window()
-window.show()
-sys.exit(app.exec_())
-
-
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/brushstyles/qt-logo.png b/sources/pyside6/doc/codesnippets/doc/src/snippets/brushstyles/qt-logo.png
deleted file mode 100644
index d609c1e1e..000000000
Binary files a/sources/pyside6/doc/codesnippets/doc/src/snippets/brushstyles/qt-logo.png and /dev/null differ
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/brushstyles/renderarea.h b/sources/pyside6/doc/codesnippets/doc/src/snippets/brushstyles/renderarea.h
deleted file mode 100644
index 82356e2dd..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/brushstyles/renderarea.h
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef RENDERAREA_H
-#define RENDERAREA_H
-
-#include
-
-class RenderArea : public QWidget
-{
- Q_OBJECT
-
-public:
- RenderArea(QBrush *brush, QWidget *parent = 0);
- QSize minimumSizeHint() const;
-
-protected:
- void paintEvent(QPaintEvent *event);
-
-private:
- QBrush *currentBrush;
-};
-
-#endif
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/brushstyles/stylewidget.h b/sources/pyside6/doc/codesnippets/doc/src/snippets/brushstyles/stylewidget.h
deleted file mode 100644
index 57223cbb4..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/brushstyles/stylewidget.h
+++ /dev/null
@@ -1,108 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef STYLEWIDGET_H
-#define STYLEWIDGET_H
-
-#include
-#include
-#include "renderarea.h"
-
-class QLabel;
-
-class StyleWidget : public QWidget
-{
- Q_OBJECT
-
-public:
- StyleWidget(QWidget *parent = 0);
-
-private:
- RenderArea *solid;
- RenderArea *dense1;
- RenderArea *dense2;
- RenderArea *dense3;
- RenderArea *dense4;
- RenderArea *dense5;
- RenderArea *dense6;
- RenderArea *dense7;
- RenderArea *no;
- RenderArea *hor;
- RenderArea *ver;
- RenderArea *cross;
- RenderArea *bdiag;
- RenderArea *fdiag;
- RenderArea *diagCross;
- RenderArea *linear;
- RenderArea *radial;
- RenderArea *conical;
- RenderArea *texture;
-
- QLabel *solidLabel;
- QLabel *dense1Label;
- QLabel *dense2Label;
- QLabel *dense3Label;
- QLabel *dense4Label;
- QLabel *dense5Label;
- QLabel *dense6Label;
- QLabel *dense7Label;
- QLabel *noLabel;
- QLabel *horLabel;
- QLabel *verLabel;
- QLabel *crossLabel;
- QLabel *bdiagLabel;
- QLabel *fdiagLabel;
- QLabel *diagCrossLabel;
- QLabel *linearLabel;
- QLabel *radialLabel;
- QLabel *conicalLabel;
- QLabel *textureLabel;
-};
-#endif
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/clipboard/clipwindow.h b/sources/pyside6/doc/codesnippets/doc/src/snippets/clipboard/clipwindow.h
deleted file mode 100644
index a06b59b20..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/clipboard/clipwindow.h
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef CLIPWINDOW_H
-#define CLIPWINDOW_H
-
-#include
-
-class QClipboard;
-class QComboBox;
-class QLabel;
-class QListWidget;
-class QMimeData;
-class QWidget;
-
-class ClipWindow : public QMainWindow
-{
- Q_OBJECT
-
-public:
- ClipWindow(QWidget *parent = 0);
-
-public slots:
- void updateClipboard();
- void updateData(const QString &format);
-
-private:
- int currentItem;
- QClipboard *clipboard;
- QComboBox *mimeTypeCombo;
- QLabel *dataInfoLabel;
- QListWidget *previousItems;
-};
-
-#endif
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/clipboard/clipwindow.py b/sources/pyside6/doc/codesnippets/doc/src/snippets/clipboard/clipwindow.py
deleted file mode 100644
index e5e156e69..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/clipboard/clipwindow.py
+++ /dev/null
@@ -1,105 +0,0 @@
-############################################################################
-##
-## Copyright (C) 2016 The Qt Company Ltd.
-## Contact: https://www.qt.io/licensing/
-##
-## This file is part of the examples of Qt for Python.
-##
-## $QT_BEGIN_LICENSE:BSD$
-## Commercial License Usage
-## Licensees holding valid commercial Qt licenses may use this file in
-## accordance with the commercial license agreement provided with the
-## Software or, alternatively, in accordance with the terms contained in
-## a written agreement between you and The Qt Company. For licensing terms
-## and conditions see https://www.qt.io/terms-conditions. For further
-## information use the contact form at https://www.qt.io/contact-us.
-##
-## BSD License Usage
-## Alternatively, you may use this file under the terms of the BSD license
-## as follows:
-##
-## "Redistribution and use in source and binary forms, with or without
-## modification, are permitted provided that the following conditions are
-## met:
-## * Redistributions of source code must retain the above copyright
-## notice, this list of conditions and the following disclaimer.
-## * Redistributions in binary form must reproduce the above copyright
-## notice, this list of conditions and the following disclaimer in
-## the documentation and/or other materials provided with the
-## distribution.
-## * Neither the name of The Qt Company Ltd nor the names of its
-## contributors may be used to endorse or promote products derived
-## from this software without specific prior written permission.
-##
-##
-## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-##
-## $QT_END_LICENSE$
-##
-############################################################################
-
-form PySide6.QtGui import *
-
-
-def __init__(self, parent):
- QMainWindow.__init__(self, parent)
- clipboard = QApplication.clipboard()
-
- centralWidget = QWidget(self)
- currentItem = QWidget(centralWidget)
- mimeTypeLabel = QLabel(tr("MIME types:"), currentItem)
- mimeTypeCombo = QComboBox(currentItem)
- dataLabel = QLabel(tr("Data:"), currentItem)
- dataInfoLabel = QLabel("", currentItem)
-
- previousItems = QListWidget(centralWidget)
-
-//! [0]
- clipboard.dataChanged.connect(self.updateClipboard)
-//! [0]
- mimeTypeCombo.activated[str].connect(self.updateData)
-
- currentLayout = QVBoxLayout(currentItem)
- currentLayout.addWidget(mimeTypeLabel)
- currentLayout.addWidget(mimeTypeCombo)
- currentLayout.addWidget(dataLabel)
- currentLayout.addWidget(dataInfoLabel)
- currentLayout.addStretch(1)
-
- mainLayout = QHBoxLayout(centralWidget)
- mainLayout.addWidget(currentItem, 1)
- mainLayout.addWidget(previousItems)
-
- setCentralWidget(centralWidget)
- setWindowTitle(tr("Clipboard"))
-
-//! [1]
-def updateClipboard(self):
- formats = clipboard.mimeData().formats()
- data = clipboard.mimeData().data(format)
-//! [1]
-
- mimeTypeCombo.clear()
- mimeTypeCombo.insertStringList(formats)
-
- size = clipboard.mimeData().data(formats[0]).size()
- Item = QListWidgetItem(previousItems)
- Item.setText(tr("%1 (%2 bytes)").arg(formats[0]).arg(size))
-
- updateData(formats[0])
-//! [2]
-//! [2]
-
-def updateData(self, format)
- data = clipboard.mimeData().data(format)
- dataInfoLabel.setText(tr("%1 bytes").arg(data.size()))
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qnamespace.qdoc b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qnamespace.qdoc
deleted file mode 100644
index b63810f97..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qnamespace.qdoc
+++ /dev/null
@@ -1,67 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-QObject::connect: Cannot queue arguments of type 'MyType'
-//! [0]
-
-
-//! [1]
-# An important event
-ImportantEventPriority = Qt.HighEventPriority
-# A more important event
-MoreImportantEventPriority = ImportantEventPriority + 1
-# A critical event
-CriticalEventPriority = 100 * MoreImportantEventPriority
-# Not that important
-StatusEventPriority = Qt.LowEventPriority
-# These are less important than Status events
-IdleProcessingDoneEventPriority = StatusEventPriority - 1
-//! [1]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtcore.py b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtcore.py
deleted file mode 100644
index a9c70fa93..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtcore.py
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-import PySide6.QtCore
-//! [0]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtnetwork.py b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtnetwork.py
deleted file mode 100644
index d49a623b2..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtnetwork.py
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [1]
-import PySide6.QtNetwork
-//! [1]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtopengl.py b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtopengl.py
deleted file mode 100644
index 37fba2534..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtopengl.py
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-import PySide6.QtOpenGL
-//! [0]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtprintsupport.py b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtprintsupport.py
deleted file mode 100644
index 4426e7628..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtprintsupport.py
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 20188888888 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [1]
-import PySide6.QtPrintSupport
-//! [1]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtqml.py b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtqml.py
deleted file mode 100644
index 0216cab3d..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtqml.py
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-import PySide6.QtQml
-//! [0]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtquick.py b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtquick.py
deleted file mode 100644
index 42801d9d9..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtquick.py
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-import PySide6.QtQuick
-//! [0]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtsql.py b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtsql.py
deleted file mode 100644
index 6ffc52b57..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtsql.py
+++ /dev/null
@@ -1,52 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-//! [0]
-import PySide6.QtSql
-//! [0]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qttest.py b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qttest.py
deleted file mode 100644
index b6efed395..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qttest.py
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-import PySide6.QtTest
-//! [0]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtwidgets.py b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtwidgets.py
deleted file mode 100644
index c4e161e73..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtwidgets.py
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [1]
-import PySide6.QtWidgets
-//! [1]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtxml.py b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtxml.py
deleted file mode 100644
index e2ebf0d74..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/doc_src_qtxml.py
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2018 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-import PySide6.QtXml
-//! [0]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src.gui.text.qtextdocumentwriter.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src.gui.text.qtextdocumentwriter.cpp
deleted file mode 100644
index bfe7b30e3..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src.gui.text.qtextdocumentwriter.cpp
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
- writer = QTextDocumentWriter()
- writer.setFormat("odf") # same as writer.setFormat("ODF");
-//! [0]
-
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src.qdbus.qdbuspendingcall.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src.qdbus.qdbuspendingcall.cpp
deleted file mode 100644
index 549d7a6f8..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src.qdbus.qdbuspendingcall.cpp
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-{
-//! [0]
- QDBusPendingCall async = iface->asyncCall("RemoteMethod", value1, value2);
- QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(async, this);
-
- QObject::connect(watcher, SIGNAL(finished(QDBusPendingCallWatcher*)),
- this, SLOT(callFinishedSlot(QDBusPendingCallWatcher*)));
-//! [0]
-
-}
-
-//! [1]
-void MyClass::callFinishedSlot(QDBusPendingCallWatcher *call)
-{
- QDBusPendingReply reply = *call;
- if (reply.isError()) {
- showError();
- } else {
- QString text = reply.argumentAt<0>();
- QByteArray data = reply.argumentAt<1>();
- showReply(text, data);
- }
-}
-//! [1]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src.qdbus.qdbuspendingreply.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src.qdbus.qdbuspendingreply.cpp
deleted file mode 100644
index 5029d3aca..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src.qdbus.qdbuspendingreply.cpp
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-{
-//! [0]
- QDBusPendingReply reply = interface->asyncCall("RemoteMethod");
- reply.waitForFinished();
- if (reply.isError())
- // call failed. Show an error condition.
- showError(reply.error());
- else
- // use the returned value
- useValue(reply.value());
-//! [0]
-
-//! [2]
- QDBusPendingReply reply = interface->asyncCall("RemoteMethod");
- reply.waitForFinished();
- if (!reply.isError()) {
- if (reply.argumentAt<0>())
- showSuccess(reply.argumentAt<1>());
- else
- showFailure(reply.argumentAt<1>());
- }
-//! [2]
-}
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src.scripttools.qscriptenginedebugger.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src.scripttools.qscriptenginedebugger.cpp
deleted file mode 100644
index 53c4a9efe..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src.scripttools.qscriptenginedebugger.cpp
+++ /dev/null
@@ -1,59 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
- engine = QScriptEngine()
- debugger = QScriptEngineDebugger()
- debugger.attachTo(engine)
-//! [0]
-
-//! [1]
- engine.evaluate("debugger")
-//! [1]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_codecs_qtextcodec.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_codecs_qtextcodec.cpp
deleted file mode 100644
index 7cbfc4e30..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_codecs_qtextcodec.cpp
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-encodedString = QByteArray("...")
-codec = QTextCodec.codecForName("KOI8-R")
-string = codec.toUnicode(encodedString)
-//! [0]
-
-
-//! [1]
-string = u"..."
-codec = QTextCodec.codecForName("KOI8-R")
-encodedString = codec.fromUnicode(string)
-//! [1]
-
-
-//! [2]
-codec = QTextCodec.codecForName("Shift-JIS")
-decoder = codec.makeDecoder()
-
-string = u''
-while new_data_available():
- chunk = get_new_data()
- string += decoder.toUnicode(chunk)
-
-//! [2]
-
-
-//! [3]
-def main():
- app = QApplication([])
- QTextCodec.setCodecForTr(QTextCodec.codecForName("eucKR"))
- ...
-//! [3]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_codecs_qtextcodecplugin.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_codecs_qtextcodecplugin.cpp
deleted file mode 100644
index 3538b6574..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_codecs_qtextcodecplugin.cpp
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-
-def names(self):
- return list = ["IBM01140", "hp15-tw"]
-
-def createForName(name):
- if (name == "IBM01140"):
- return Ibm01140Codec()
- else if (name == "hp15-tw"):
- return Hp15TwCodec()
- return None
-//! [0]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qfuture.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qfuture.cpp
deleted file mode 100644
index 7dcc7052d..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qfuture.cpp
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-QFuture future = ...;
-
-QFuture::const_iterator i;
-for (i = future.constBegin(); i != future.constEnd(); ++i)
- cout << *i << endl;
-//! [0]
-
-
-//! [1]
-QFuture future;
-...
-QFutureIterator i(future);
-while (i.hasNext())
- qDebug() << i.next();
-//! [1]
-
-
-//! [2]
-QFutureIterator i(future);
-i.toBack();
-while (i.hasPrevious())
- qDebug() << i.previous();
-//! [2]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qfuturesynchronizer.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qfuturesynchronizer.cpp
deleted file mode 100644
index 014c5b167..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qfuturesynchronizer.cpp
+++ /dev/null
@@ -1,63 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-void someFunction()
-{
- QFutureSynchronizer synchronizer;
-
- ...
-
- synchronizer.addFuture(QtConcurrent::run(anotherFunction));
- synchronizer.addFuture(QtConcurrent::map(list, mapFunction));
-
- return; // QFutureSynchronizer waits for all futures to finish
-}
-//! [0]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qfuturewatcher.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qfuturewatcher.cpp
deleted file mode 100644
index 9c536b822..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qfuturewatcher.cpp
+++ /dev/null
@@ -1,60 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-// Instantiate the objects and connect to the finished signal.
-MyClass myObject;
-QFutureWatcher watcher;
-connect(&watcher, SIGNAL(finished()), &myObject, SLOT(handleFinished()));
-
-// Start the computation.
-QFuture future = QtConcurrent::run(...);
-watcher.setFuture(future);
-//! [0]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qtconcurrentexception.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qtconcurrentexception.cpp
deleted file mode 100644
index da4254a76..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qtconcurrentexception.cpp
+++ /dev/null
@@ -1,85 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-
-class MyException : public QtConcurrent::Exception
-{
-public:
- void raise() const { throw *this; }
- Exception *clone() const { return new MyException(*this); }
-};
-
-//! [0]
-
-
-//! [1]
-
-try {
- QtConcurrent::blockingMap(list, throwFunction); // throwFunction throws MyException
-} catch (MyException &e) {
- // handle exception
-}
-
-//! [1]
-
-
-//! [2]
-
-void MyException::raise() const { throw *this; }
-
-//! [2]
-
-
-//! [3]
-
-MyException *MyException::clone() const { return new MyException(*this); }
-
-//! [3]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qtconcurrentfilter.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qtconcurrentfilter.cpp
deleted file mode 100644
index a0f6778b6..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qtconcurrentfilter.cpp
+++ /dev/null
@@ -1,181 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-bool function(const T &t);
-//! [0]
-
-
-//! [1]
-bool allLowerCase(const QString &string)
-{
- return string.lowered() == string;
-}
-
-QStringList strings = ...;
-QFuture lowerCaseStrings = QtConcurrent::filtered(strings, allLowerCase);
-//! [1]
-
-
-//! [2]
-QStringList strings = ...;
-QFuture future = QtConcurrent::filter(strings, allLowerCase);
-//! [2]
-
-
-//! [3]
-V function(T &result, const U &intermediate)
-//! [3]
-
-
-//! [4]
-void addToDictionary(QSet &dictionary, const QString &string)
-{
- dictionary.insert(string);
-}
-
-QStringList strings = ...;
-QFuture > dictionary = QtConcurrent::filteredReduced(strings, allLowerCase, addToDictionary);
-//! [4]
-
-
-//! [5]
-QStringList strings = ...;
-QFuture lowerCaseStrings = QtConcurrent::filtered(strings.constBegin(), strings.constEnd(), allLowerCase);
-
-// filter in-place only works on non-const iterators
-QFuture future = QtConcurrent::filter(strings.begin(), strings.end(), allLowerCase);
-
-QFuture > dictionary = QtConcurrent::filteredReduced(strings.constBegin(), strings.constEnd(), allLowerCase, addToDictionary);
-//! [5]
-
-
-//! [6]
-QStringList strings = ...;
-
-// each call blocks until the entire operation is finished
-QStringList lowerCaseStrings = QtConcurrent::blockingFiltered(strings, allLowerCase);
-
-
-QtConcurrent::blockingFilter(strings, allLowerCase);
-
-QSet dictionary = QtConcurrent::blockingFilteredReduced(strings, allLowerCase, addToDictionary);
-//! [6]
-
-
-//! [7]
-// keep only images with an alpha channel
-QList images = ...;
-QFuture alphaImages = QtConcurrent::filter(strings, &QImage::hasAlphaChannel);
-
-// keep only gray scale images
-QList images = ...;
-QFuture grayscaleImages = QtConcurrent::filtered(images, &QImage::isGrayscale);
-
-// create a set of all printable characters
-QList characters = ...;
-QFuture > set = QtConcurrent::filteredReduced(characters, &QChar::isPrint, &QSet::insert);
-//! [7]
-
-
-//! [8]
-// can mix normal functions and member functions with QtConcurrent::filteredReduced()
-
-// create a dictionary of all lower cased strings
-extern bool allLowerCase(const QString &string);
-QStringList strings = ...;
-QFuture > averageWordLength = QtConcurrent::filteredReduced(strings, allLowerCase, QSet::insert);
-
-// create a collage of all gray scale images
-extern void addToCollage(QImage &collage, const QImage &grayscaleImage);
-QList images = ...;
-QFuture collage = QtConcurrent::filteredReduced(images, &QImage::isGrayscale, addToCollage);
-//! [8]
-
-
-//! [9]
-bool QString::contains(const QRegExp ®exp) const;
-//! [9]
-
-
-//! [10]
-boost::bind(&QString::contains, QRegExp("^\\S+$")); // matches strings without whitespace
-//! [10]
-
-
-//! [11]
-bool contains(const QString &string)
-//! [11]
-
-
-//! [12]
-QStringList strings = ...;
-boost::bind(static_cast( &QString::contains ), QRegExp("..." ));
-//! [12]
-
-//! [13]
-struct StartsWith
-{
- StartsWith(const QString &string)
- : m_string(string) { }
-
- typedef bool result_type;
-
- bool operator()(const QString &testString)
- {
- return testString.startsWith(m_string);
- }
-
- QString m_string;
-};
-
-QList strings = ...;
-QFuture fooString = QtConcurrent::filtered(images, StartsWith(QLatin1String("Foo")));
-//! [13]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qtconcurrentmap.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qtconcurrentmap.cpp
deleted file mode 100644
index e61b73613..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qtconcurrentmap.cpp
+++ /dev/null
@@ -1,194 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-U function(const T &t);
-//! [0]
-
-
-//! [1]
-QImage scaled(const QImage &image)
-{
- return image.scaled(100, 100);
-}
-
-QList images = ...;
-QFuture thumbnails = QtConcurrent::mapped(images, scaled);
-//! [1]
-
-
-//! [2]
-U function(T &t);
-//! [2]
-
-
-//! [3]
-void scale(QImage &image)
-{
- image = image.scaled(100, 100);
-}
-
-QList images = ...;
-QFuture future = QtConcurrent::map(images, scale);
-//! [3]
-
-
-//! [4]
-V function(T &result, const U &intermediate)
-//! [4]
-
-
-//! [5]
-void addToCollage(QImage &collage, const QImage &thumbnail)
-{
- QPainter p(&collage);
- static QPoint offset = QPoint(0, 0);
- p.drawImage(offset, thumbnail);
- offset += ...;
-}
-
-QList images = ...;
-QFuture collage = QtConcurrent::mappedReduced(images, scaled, addToCollage);
-//! [5]
-
-
-//! [6]
-QList images = ...;
-
-QFuture thumbnails = QtConcurrent::mapped(images.constBegin(), images.constEnd(), scaled);
-
-// map in-place only works on non-const iterators
-QFuture future = QtConcurrent::map(images.begin(), images.end(), scale);
-
-QFuture collage = QtConcurrent::mappedReduced(images.constBegin(), images.constEnd(), scaled, addToCollage);
-//! [6]
-
-
-//! [7]
-QList images = ...;
-
-// each call blocks until the entire operation is finished
-QList future = QtConcurrent::blockingMapped(images, scaled);
-
-QtConcurrent::blockingMap(images, scale);
-
-QImage collage = QtConcurrent::blockingMappedReduced(images, scaled, addToCollage);
-//! [7]
-
-
-//! [8]
-// squeeze all strings in a QStringList
-QStringList strings = ...;
-QFuture squeezedStrings = QtConcurrent::map(strings, &QString::squeeze);
-
-// swap the rgb values of all pixels on a list of images
-QList images = ...;
-QFuture bgrImages = QtConcurrent::mapped(images, &QImage::rgbSwapped);
-
-// create a set of the lengths of all strings in a list
-QStringList strings = ...;
-QFuture > wordLengths = QtConcurrent::mappedReduced(string, &QString::length, &QSet::insert);
-//! [8]
-
-
-//! [9]
-// can mix normal functions and member functions with QtConcurrent::mappedReduced()
-
-// compute the average length of a list of strings
-extern void computeAverage(int &average, int length);
-QStringList strings = ...;
-QFuture averageWordLength = QtConcurrent::mappedReduced(strings, &QString::length, computeAverage);
-
-// create a set of the color distribution of all images in a list
-extern int colorDistribution(const QImage &string);
-QList images = ...;
-QFuture > totalColorDistribution = QtConcurrent::mappedReduced(images, colorDistribution, QSet::insert);
-//! [9]
-
-
-//! [10]
-QImage QImage::scaledToWidth(int width, Qt::TransformationMode) const;
-//! [10]
-
-
-//! [11]
-boost::bind(&QImage::scaledToWidth, 100, Qt::SmoothTransformation)
-//! [11]
-
-
-//! [12]
-QImage scaledToWith(const QImage &image)
-//! [12]
-
-
-//! [13]
-QList images = ...;
-QFuture thumbnails = QtConcurrent::mapped(images, boost::bind(&QImage::scaledToWidth, 100 Qt::SmoothTransformation));
-//! [13]
-
-//! [14]
-struct Scaled
-{
- Scaled(int size)
- : m_size(size) { }
-
- typedef QImage result_type;
-
- QImage operator()(const QImage &image)
- {
- return image.scaled(m_size, m_size);
- }
-
- int m_size;
-};
-
-QList images = ...;
-QFuture thumbnails = QtConcurrent::mapped(images, Scaled(100));
-//! [14]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qtconcurrentrun.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qtconcurrentrun.cpp
deleted file mode 100644
index 3c55ef77e..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qtconcurrentrun.cpp
+++ /dev/null
@@ -1,110 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-extern void aFunction();
-QFuture future = QtConcurrent::run(aFunction);
-//! [0]
-
-
-//! [1]
-extern void aFunctionWithArguments(int arg1, double arg2, const QString &string);
-
-int integer = ...;
-double floatingPoint = ...;
-QString string = ...;
-
-QFuture future = QtConcurrent::run(aFunctionWithArguments, integer, floatingPoint, string);
-//! [1]
-
-
-//! [2]
-extern QString functionReturningAString();
-QFuture future = QtConcurrent::run(functionReturningAString);
-...
-QString result = future.result();
-//! [2]
-
-
-//! [3]
-extern QString someFunction(const QByteArray &input);
-
-QByteArray bytearray = ...;
-
-QFuture future = QtConcurrent::run(someFunction, bytearray);
-...
-QString result = future.result();
-//! [3]
-
-
-//! [4]
-// call 'QStringList QString::split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const' in a separate thread
-QString string = ...;
-QFuture future = QtConcurrent::run(string, &QString::split, QString(", "), QString::KeepEmptyParts, Qt::CaseSensitive);
-...
-QStringList result = future.result();
-//! [4]
-
-
-//! [5]
-// call 'void QImage::invertPixels(InvertMode mode)' in a separate thread
-QImage image = ...;
-QFuture future = QtConcurrent::run(image, &QImage::invertPixels, QImage::InvertRgba);
-...
-future.waitForFinished();
-// At this point, the pixels in 'image' have been inverted
-//! [5]
-
-
-//! [6]
-void someFunction(int arg1, double arg2);
-QFuture future = QtConcurrent::run(boost::bind(someFunction, 1, 2.0));
-...
-//! [6]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qthreadpool.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qthreadpool.cpp
deleted file mode 100644
index 3492943a0..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_concurrent_qthreadpool.cpp
+++ /dev/null
@@ -1,59 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-class HelloWorldTask(QRunnable):
- def run(self):
- print("Hello world from thread", QThread.currentThread())
-
-hello = HelloWorldTask()
-# QThreadPool takes ownership and deletes 'hello' automatically
-QThreadPool.globalInstance().start(hello)
-//! [0]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qabstractfileengine.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qabstractfileengine.cpp
deleted file mode 100644
index 878259f62..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qabstractfileengine.cpp
+++ /dev/null
@@ -1,112 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-class ZipEngineHandler(QAbstractFileEngineHandler):
- def create(self, fileName):
- # ZipEngineHandler returns a ZipEngine for all .zip files
- if fileName.toLower().endsWith(".zip"):
- return ZipEngine(fileName)
- else
- return None
-
-def main():
- app = QApplication(sys.argv)
-
- engine = ZipEngineHandler()
-
- window = MainWindow()
- window.show()
-
- return app.exec()
-//! [0]
-
-
-//! [1]
-def create(fileName):
- # ZipEngineHandler returns a ZipEngine for all .zip files
- if fileName.lower().endswith(".zip"):
- return ZipEngine(fileName)
- else
- return None
-//! [1]
-
-
-//! [2]
-# @arg filters QDir.Filters
-# @arg filterNames [str, ...]
-# @return QAbstractFileEngineIterator
-def beginEntryList(filters, filterNames):
- return CustomFileEngineIterator(filters, filterNames)
-//! [2]
-
-
-//! [3]
-class CustomIterator(QAbstractFileEngineIterator):
- def __init__(self, nameFilters, filters):
- QAbstractFileEngineIterator.__init__(self, nameFilters, filters)
-
- self.index = 0
- # In a real iterator, these entries are fetched from the
- # file system based on the value of path().
- self.entries << "entry1" << "entry2" << "entry3"
-
- def hasNext(self):
- return self.index < self.entries.size() - 1
-
- def next(self):
- if not self.hasNext():
- return None
- index += 1
- return currentFilePath()
-
- def currentFileName(self):
- return self.entries.at(index)
-//! [3]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qdatastream.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qdatastream.cpp
deleted file mode 100644
index 79e64d4a3..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qdatastream.cpp
+++ /dev/null
@@ -1,135 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-void wrapInFunction()
-{
-
-//! [0]
-file_ = QFile("file.dat")
-file_.open(QIODevice.WriteOnly)
-# we will serialize the data into the file
-out = QDataStream(file_)
-# serialize a string
-out.writeQString("the answer is")
-# serialize an integer
-out.writeInt32(42)
-//! [0]
-
-
-//! [1]
-file_ = QFile("file.dat")
-file_.open(QIODevice.ReadOnly)
-# read the data serialized from the file
-i = QDataStream(file_)
-string = ''
-a = 0
-# extract "the answer is" and 42
-string = i.readQString()
-a = i.readInt32()
-//! [1]
-
-
-//! [2]
-stream.setVersion(QDataStream.Qt_4_0)
-//! [2]
-
-
-//! [3]
-file_ = QFile("file.xxx")
-file_.open(QIODevice.WriteOnly)
-out = QDataStream(file_)
-
-# Write a header with a "magic number" and a version
-out.writeInt32(0xA0B0C0D0)
-out.writeInt32(123)
-
-out.setVersion(QDataStream.Qt_4_0)
-
-// Write the data
-out << lots_of_interesting_data
-//! [3]
-
-
-//! [4]
-file_ = QFile("file.xxx")
-file_.open(QIODevice.ReadOnly)
-i = QDataStream(file_)
-
-// Read and check the header
-magic = i.readInt32()
-if magic != 0xA0B0C0D0:
- return XXX_BAD_FILE_FORMAT
-
-// Read the version
-version = i.readInt32()
-if version < 100:
- return XXX_BAD_FILE_TOO_OLD
-if version > 123:
- return XXX_BAD_FILE_TOO_NEW
-
-if version <= 110:
- in_.setVersion(QDataStream.Qt_3_2)
-else:
- in_.setVersion(QDataStream.Qt_4_0)
-
-// Read the data
-in_ >> lots_of_interesting_data
-if version >= 120:
- in_ >> data_new_in_XXX_version_1_2
-in_ >> other_interesting_data
-//! [4]
-
-
-//! [5]
-out = QDataStream(file_)
-out.setVersion(QDataStream.Qt_4_0)
-//! [5]
-
-}
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qdir.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qdir.cpp
deleted file mode 100644
index 101ebbb44..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qdir.cpp
+++ /dev/null
@@ -1,179 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-void wrapInFunction()
-{
-
-//! [0]
-QDir("/home/user/Documents")
-QDir("C:/Documents and Settings")
-//! [0]
-
-
-//! [1]
-QDir("images/landscape.png")
-//! [1]
-
-
-//! [2]
-QDir("Documents/Letters/Applications").dirName() # "Applications"
-QDir().dirName() # "."
-//! [2]
-
-
-//! [3]
-directory = QDir("Documents/Letters")
-path = directory.filePath("contents.txt")
-absolutePath = directory.absoluteFilePath("contents.txt")
-//! [3]
-
-
-//! [4]
-dir = QDir("example")
-if not dir.exists():
- print("Cannot find the example directory")
-//! [4]
-
-
-//! [5]
-dir = QDir.root() # "/"
-if not dir.cd("tmp"): # "/tmp"
- print("Cannot find the \"/tmp\" directory")
-else:
- file = QFile(dir.filePath("ex1.txt")) # "/tmp/ex1.txt"
- if not file.open(QIODevice.ReadWrite):
- print(f"Cannot create the file {file.name()}")
-//! [5]
-
-
-//! [6]
-bin = "/local/bin" # where /local/bin is a symlink to /usr/bin
-binDir = QDir(bin)
-canonicalBin = binDir.canonicalPath()
-# canonicalBin now equals "/usr/bin"
-
-ls = "/local/bin/ls" # where ls is the executable "ls"
-lsDir = QDir(ls)
-canonicalLs = lsDir.canonicalPath()
-# canonicalLS now equals "/usr/bin/ls".
-//! [6]
-
-
-//! [7]
-dir = QDir("/home/bob")
-
-s = dir.relativeFilePath("images/file.jpg") # s is "images/file.jpg"
-s = dir.relativeFilePath("/home/mary/file.txt") # s is "../mary/file.txt"
-//! [7]
-
-
-//! [8]
-QDir.setSearchPaths("icons", [f"{QDir.homePath()}/images"])
-QDir.setSearchPaths("docs", [":/embeddedDocuments"])
-...
-pixmap = QPixmap("icons:undo.png") # will look for undo.png in QDir::homePath() + "/images"
-file = QFile("docs:design.odf") # will look in the :/embeddedDocuments resource path
-//! [8]
-
-
-//! [9]
-dir = QDir("/tmp/root_link")
-dir = dir.canonicalPath()
-if dir.isRoot():
- print("It is a root link")
-//! [9]
-
-
-//! [10]
-# The current directory is "/usr/local"
-d1 = QDir("/usr/local/bin")
-d2 = QDir("bin")
-if d1 == d2:
- print("They're the same")
-//! [10]
-
-
-//! [11]
-// The current directory is "/usr/local"
-d1 = QDir("/usr/local/bin")
-d1.setFilter(QDir.Executable)
-d2 = QDir("bin")
-if d1 != d2:
- print("They differ")
-//! [11]
-
-
-//! [12]
-C:/Documents and Settings/Username
-//! [12]
-
-
-//! [13]
-Q_INIT_RESOURCE(myapp);
-//! [13]
-
-
-//! [14]
-def initMyResource():
- Q_INIT_RESOURCE(myapp)
-
-class MyNamespace
- ...
-
- def myFunction(self):
- initMyResource()
-//! [14]
-
-
-//! [15]
-Q_CLEANUP_RESOURCE(myapp);
-//! [15]
-
-}
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qdiriterator.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qdiriterator.cpp
deleted file mode 100644
index 3cc4ae63e..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qdiriterator.cpp
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-it = QDirIterator("/etc", QDirIterator.Subdirectories)
-while it.hasNext():
- print(it.next())
-
- # /etc/.
- # /etc/..
- # /etc/X11
- # /etc/X11/fs
- # ...
-
-//! [0]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qfile.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qfile.cpp
deleted file mode 100644
index 1e9d102c8..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qfile.cpp
+++ /dev/null
@@ -1,82 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-file = QFile()
-QDir.setCurrent("/tmp")
-file.setFileName("readme.txt")
-QDir.setCurrent("/home")
-file.open(QIODevice.ReadOnly) # opens "/home/readme.txt" under Unix
-//! [0]
-
-
-//! [1]
-def myEncoderFunc(fileName):
-//! [1]
-
-
-//! [2]
-def myDecoderFunc(localFileName):
-//! [2]
-
-
-//! [3]
-
-def printError(msg):
- file = QFile()
- file.open(sys.stderr.fileno(), QIODevice.WriteOnly)
- file.write(msg, size(msg)) # write to stderr
- file.close()
-//! [3]
-
-
-//! [4]
-CONFIG += console
-//! [4]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qfileinfo.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qfileinfo.cpp
deleted file mode 100644
index 32f9205b9..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qfileinfo.cpp
+++ /dev/null
@@ -1,148 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//![newstuff]
- fi = QFileInfo("c:/temp/foo") => fi.absoluteFilePath() => "C:/temp/foo"
-//![newstuff]
-
-//! [0]
-info1 = QFileInfo("/home/bob/bin/untabify")
-info1.isSymLink() # returns true
-info1.absoluteFilePath() # returns "/home/bob/bin/untabify"
-info1.size() # returns 56201
-info1.symLinkTarget() # returns "/opt/pretty++/bin/untabify"
-
-info2 = QFileInfo(info1.symLinkTarget())
-info1.isSymLink() # returns False
-info1.absoluteFilePath() # returns "/opt/pretty++/bin/untabify"
-info1.size() # returns 56201
-
-//! [0]
-
-
-//! [1]
-info1 = QFileInfo("C:\\Documents and Settings\\Bob\\untabify.lnk")
-info1.isSymLink() # returns True
-info1.absoluteFilePath() # returns "C:/Documents and Settings/Bob/untabify.lnk"
-info1.size() # returns 743
-info1.symLinkTarget() # returns "C:/Pretty++/untabify"
-
-info2 = QFileInfo(info1.symLinkTarget())
-info1.isSymLink() # returns False
-info1.absoluteFilePath() # returns "C:/Pretty++/untabify"
-info1.size() # returns 63942
-//! [1]
-
-
-//! [2]
-absolute = "/local/bin"
-relative = "local/bin"
-absFile = QFileInfo(absolute)
-relFile = QFileInfo(relative)
-
-QDir.setCurrent(QDir.rootPath())
-# absFile and relFile now point to the same file
-
-QDir.setCurrent("/tmp")
-# absFile now points to "/local/bin",
-# while relFile points to "/tmp/local/bin"
-//! [2]
-
-
-//! [3]
-fi = QFileInfo("/tmp/archive.tar.gz")
-name = fi.fileName() # name = "archive.tar.gz"
-//! [3]
-
-
-//! [4]
-fi = QFileInfo("/Applications/Safari.app")
-bundle = fi.bundleName() # name = "Safari"
-//! [4]
-
-
-//! [5]
-fi = QFileInfo("/tmp/archive.tar.gz")
-base = fi.baseName() # base = "archive"
-//! [5]
-
-
-//! [6]
-fi = QFileInfo("/tmp/archive.tar.gz")
-base = fi.completeBaseName() # base = "archive.tar"
-//! [6]
-
-
-//! [7]
-fi = QFileInfo("/tmp/archive.tar.gz")
-ext = fi.completeSuffix() # ext = "tar.gz"
-//! [7]
-
-
-//! [8]
-fi = QFileInfo("/tmp/archive.tar.gz")
-ext = fi.suffix(); # ext = "gz"
-//! [8]
-
-
-//! [9]
-info = QFileInfo(fileName)
-if info.isSymLink():
- fileName = info.symLinkTarget()
-//! [9]
-
-
-//! [10]
-fi = QFileInfo("/tmp/archive.tar.gz")
-if fi.permission(QFileDevice.WriteUser | QFileDevice.ReadGroup):
- print("I can change the file; my group can read the file")
-if fi.permission(QFileDevice.WriteGroup | QFileDevice.WriteOther):
- print("The group or others can change the file")
-//! [10]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qiodevice.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qiodevice.cpp
deleted file mode 100644
index d8f155c38..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qiodevice.cpp
+++ /dev/null
@@ -1,98 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-gzip = QProcess()
-gzip.start("gzip", ["-c"])
-if not gzip.waitForStarted():
- return False
-
-gzip.write("uncompressed data")
-
-compressed = QByteArray()
-while gzip.waitForReadyRead():
- compressed += gzip.readAll()
-//! [0]
-
-
-//! [1]
-def bytesAvailable(self):
- return buffer.size() + QIODevice.bytesAvailable()
-//! [1]
-
-
-//! [2]
-file = QFile("box.txt")
-if file.open(QFile.ReadOnly):
- buf = file.readLine(1024)
- if buf.size():
- # the line is available in buf
-//! [2]
-
-
-//! [3]
-def canReadLine(self):
- return buffer.contains('\n') or QIODevice.canReadLine()
-//! [3]
-
-
-//! [4]
-def isExeFile(file_):
- buf = file_.peek(2)
- if buf.size() == 2:
- return buf[0] == 'M' and buf[1] == 'Z'
- return False
-//! [4]
-
-
-//! [5]
-def isExeFile(file_):
- return file_.peek(2) == "MZ"
-//! [5]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qprocess.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qprocess.cpp
deleted file mode 100644
index a4b74ae97..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qprocess.cpp
+++ /dev/null
@@ -1,132 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-def wrapInFunction():
-
-//! [0]
-builder = QProcess()
-builder.setProcessChannelMode(QProcess.MergedChannels)
-builder.start("make", ["-j2"])
-
-import sys
-if not builder.waitForFinished():
- sys.stderr.write("Make failed:" + builder.errorString())
-else
- sys.stderr.write("Make output:" + builder.readAll())
-//! [0]
-
-
-//! [1]
-more = QProcess()
-more.start("more")
-more.write("Text to display")
-more.closeWriteChannel()
-#QProcess will emit readyRead() once "more" starts printing
-//! [1]
-
-
-//! [2]
-command1 | command2
-//! [2]
-
-
-//! [3]
-process1 = QProcess()
-process2 = QProcess()
-
-process1.setStandardOutputProcess(process2)
-
-process1.start("command1")
-process2.start("command2")
-//! [3]
-
-
-//! [4]
-class SandboxProcess(QProcess):
- def setupChildProcess(self)
- # Drop all privileges in the child process, and enter
- # a chroot jail.
- os.setgroups(0, 0)
- os.chroot("/etc/safe")
- os.chdir("/")
- os.setgid(safeGid)
- os.setuid(safeUid)
- os.umask(0)
-
-//! [4]
-
-
-//! [5]
-process = QProcess()
-process.start("del /s *.txt")
-# same as process.start("del", ["/s", "*.txt"])
-...
-//! [5]
-
-
-//! [6]
-process = QProcess()
-process.start("dir \"My Documents\"")
-//! [6]
-
-
-//! [7]
-process = QProcess()
-process.start("dir \"\"\"My Documents\"\"\"")
-//! [7]
-
-
-//! [8]
-environment = QProcess.systemEnvironment()
-# environment = [PATH=/usr/bin:/usr/local/bin",
-# "USER=greg", "HOME=/home/greg"]
-//! [8]
-
-
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qsettings.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qsettings.cpp
deleted file mode 100644
index 11bb9af48..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qsettings.cpp
+++ /dev/null
@@ -1,327 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-settings = QSettings("MySoft", "Star Runner")
-color = QColor(settings.value("DataPump/bgcolor"))
-//! [0]
-
-
-//! [1]
-settings = QSettings("MySoft", "Star Runner")
-color = palette().background().color()
-settings.setValue("DataPump/bgcolor", color)
-//! [1]
-
-
-//! [2]
-settings = QSettings("/home/petra/misc/myapp.ini",
- QSettings.IniFormat)
-//! [2]
-
-
-//! [3]
-settings = QSettings("/Users/petra/misc/myapp.plist",
- QSettings.NativeFormat)
-//! [3]
-
-
-//! [4]
-settings = QSettings("HKEY_CURRENT_USER\\Software\\Microsoft\\Office",
- QSettings.NativeFormat)
-//! [4]
-
-
-//! [5]
-settings.setValue("11.0/Outlook/Security/DontTrustInstalledFiles", 0)
-//! [5]
-
-
-//! [6]
-settings.setValue("HKEY_CURRENT_USER\\MySoft\\Star Runner\\Galaxy", "Milkyway")
-settings.setValue("HKEY_CURRENT_USER\\MySoft\\Star Runner\\Galaxy\\Sun", "OurStar")
-settings.value("HKEY_CURRENT_USER\\MySoft\\Star Runner\\Galaxy\\Default") # returns "Milkyway"
-//! [6]
-
-
-//! [7]
- organizationName = "grenoullelogique.fr" if sys.platform.startswith('darwin') else "Grenoulle Logique"
- settings = QSettings(organizationName, "Squash")
-//! [7]
-
-
-//! [8]
-pos = @Point(100 100)
-//! [8]
-
-
-//! [9]
-windir = C:\Windows
-//! [9]
-
-
-//! [10]
-settings = QSettings("Moose Tech", "Facturo-Pro")
-//! [10]
-
-
-//! [11]
-settings = QSettings("Moose Soft", "Facturo-Pro")
-//! [11]
-
-
-//! [12]
-QCoreApplication.setOrganizationName("Moose Soft")
-QCoreApplication.setApplicationName("Facturo-Pro")
-settings = QSettings()
-//! [12]
-
-
-//! [13]
-settings.beginGroup("mainwindow")
-settings.setValue("size", win.size())
-settings.setValue("fullScreen", win.isFullScreen())
-settings.endGroup()
-
-settings.beginGroup("outputpanel")
-settings.setValue("visible", panel.isVisible())
-settings.endGroup()
-//! [13]
-
-
-//! [14]
-settings.beginGroup("alpha")
-# settings.group() == "alpha"
-
-settings.beginGroup("beta")
-# settings.group() == "alpha/beta"
-
-settings.endGroup()
-# settings.group() == "alpha"
-
-settings.endGroup()
-# settings.group() == ""
-//! [14]
-
-
-//! [15]
-class Login:
- userName = ''
- password = ''
-
- logins = []
- ...
-
- settings = QSettings()
- size = settings.beginReadArray("logins")
- for i in range(size):
- settings.setArrayIndex(i)
- login = Login()
- login.userName = settings.value("userName")
- login.password = settings.value("password")
- logins.append(login)
-
- settings.endArray()
-//! [15]
-
-
-//! [16]
-class Login:
- userName = ''
- password = ''
-
- logins = []
- ...
-
- settings = QSettings()
- settings.beginWriteArray("logins")
- for i in range(logins.size()):
- settings.setArrayIndex(i)
- settings.setValue("userName", list.at(i).userName)
- settings.setValue("password", list.at(i).password)
-
- settings.endArray()
-//! [16]
-
-
-//! [17]
-settings = QSettings()
-settings.setValue("fridge/color", Qt.white)
-settings.setValue("fridge/size", QSize(32, 96))
-settings.setValue("sofa", True)
-settings.setValue("tv", False)
-
-keys = settings.allKeys();
-# keys: ["fridge/color", "fridge/size", "sofa", "tv"]
-//! [17]
-
-
-//! [18]
-settings.beginGroup("fridge")
-keys = settings.allKeys()
-# keys: ["color", "size"]
-//! [18]
-
-
-//! [19]
-settings = QSettings()
-settings.setValue("fridge/color", Qt.white)
-settings.setValue("fridge/size", QSize(32, 96))
-settings.setValue("sofa", True)
-settings.setValue("tv", False)
-
-keys = settings.childKeys()
-# keys: ["sofa", "tv"]
-//! [19]
-
-
-//! [20]
-settings.beginGroup("fridge")
-keys = settings.childKeys()
-# keys: ["color", "size"]
-//! [20]
-
-
-//! [21]
-settings = QSettings()
-settings.setValue("fridge/color", Qt.white)
-settings.setValue("fridge/size", QSize(32, 96));
-settings.setValue("sofa", True)
-settings.setValue("tv", False)
-
-groups = settings.childGroups()
-# group: ["fridge"]
-//! [21]
-
-
-//! [22]
-settings.beginGroup("fridge")
-groups = settings.childGroups()
-# groups: []
-//! [22]
-
-
-//! [23]
-settings = QSettings()
-settings.setValue("interval", 30)
-settings.value("interval") # returns 30
-
-settings.setValue("interval", 6.55)
-settings.value("interval") # returns 6.55
-//! [23]
-
-
-//! [24]
-settings = QSettings()
-settings.setValue("ape")
-settings.setValue("monkey", 1)
-settings.setValue("monkey/sea", 2)
-settings.setValue("monkey/doe", 4)
-
-settings.remove("monkey")
-keys = settings.allKeys()
-# keys: ["ape"]
-//! [24]
-
-
-//! [25]
-settings = QSettings()
-settings.setValue("ape")
-settings.setValue("monkey", 1)
-settings.setValue("monkey/sea", 2)
-settings.setValue("monkey/doe", 4)
-
-settings.beginGroup("monkey")
-settings.remove("")
-settings.endGroup()
-
-keys = settings.allKeys()
-# keys: ["ape"]
-//! [25]
-
-
-//! [26]
-settings = QSettings()
-settings.setValue("animal/snake", 58)
-settings.value("animal/snake", 1024) # returns 58
-settings.value("animal/zebra", 1024) # returns 1024
-settings.value("animal/zebra") # returns 0
-//! [26]
-
-
-//! [27]
-# @arg device QIODevice
-# @arg map QSettings.SettingsMap
-# @return bool
-def myReadFunc(device, map):
-//! [27]
-
-
-//! [28]
-# @arg device QIODevice
-# @arg map QSettings.SettingsMap
-# @return bool
-def myWriteFunc(device, map)
-//! [28]
-
-
-//! [29]
-# @arg device QIODevice
-# @arg map QSettings.SettingsMap
-# @return bool
-def readXmlFile(device, map):
-def writeXmlFile(device, map):
-
-def main():
- XmlFormat = QSettings::registerFormat("xml", readXmlFile, writeXmlFile)
- settings = QSettings(XmlFormat, QSettings.UserSettings,
- "MySoft", "Star Runner")
- ...
-//! [29]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qtemporaryfile.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qtemporaryfile.cpp
deleted file mode 100644
index 7244c22c8..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qtemporaryfile.cpp
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-{
-//! [0]
- # Within a function/method...
-
- file_ = QTemporaryFile()
- if file_.open():
- # file_.fileName() returns the unique file name
-
- # The QTemporaryFile destructor removes the temporary file
- # as it goes out of scope.
-//! [0]
-}
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qtextstream.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qtextstream.cpp
deleted file mode 100644
index cf67a61fb..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qtextstream.cpp
+++ /dev/null
@@ -1,140 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-data = QFile("output.txt")
-if data.open(QFile.WriteOnly | QFile.Truncate):
- out = QTextStream(&data)
- out << "Result: " << qSetFieldWidth(10) << left << 3.14 << 2.7
- # writes "Result: 3.14 2.7 "
-
-//! [0]
-
-
-//! [1]
-stream = QTextStream(sys.stdin.fileno())
-
-while(True):
- line = stream.readLine()
- if line.isNull():
- break;
-//! [1]
-
-
-//! [2]
-in_ = QTextStream("0x50 0x20")
-firstNumber = 0
-secondNumber = 0
-
-in_ >> firstNumber # firstNumber == 80
-in_ >> dec >> secondNumber # secondNumber == 0
-
-ch = None
-in_ >> ch # ch == 'x'
-//! [2]
-
-
-//! [3]
-def main():
- # read numeric arguments (123, 0x20, 4.5...)
- for i in sys.argv():
- number = None
- QTextStream in_(i)
- in_ >> number
- ...
-//! [3]
-
-
-//! [4]
-str = QString()
-in_ = QTextStream(sys.stdin.fileno())
-in_ >> str
-//! [4]
-
-
-//! [5]
-s = QString()
-out = QTextStream(s)
-out.setFieldWidth(10)
-out.setFieldAlignment(QTextStream::AlignCenter)
-out.setPadChar('-')
-out << "Qt" << "rocks!"
-//! [5]
-
-
-//! [6]
-----Qt------rocks!--
-//! [6]
-
-
-//! [7]
-in_ = QTextStream(file)
-ch1 = QChar()
-ch2 = QChar()
-ch3 = QChar()
-in_ >> ch1 >> ch2 >> ch3;
-//! [7]
-
-
-//! [8]
-out = QTextStream(sys.stdout.fileno())
-out << "Qt rocks!" << endl
-//! [8]
-
-
-//! [9]
-stream << '\n' << flush
-//! [9]
-
-
-//! [10]
-out = QTextStream(file)
-out.setCodec("UTF-8")
-//! [10]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qurl.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qurl.cpp
deleted file mode 100644
index 7c0d70fee..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_io_qurl.cpp
+++ /dev/null
@@ -1,96 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-url = QUrl("http://www.example.com/List of holidays.xml")
-# url.toEncoded() == "http://www.example.com/List%20of%20holidays.xml"
-//! [0]
-
-
-//! [1]
-url = QUrl.fromEncoded("http://qtsoftware.com/List%20of%20holidays.xml")
-//! [1]
-
-
-//! [2]
-def checkUrl(url):
- if !url.isValid():
- print(f"Invalid URL: {url.toString()}")
- return False
-
- return True
-
-//! [2]
-
-
-//! [3]
-ftp = QFtp()
-ftp.connectToHost(url.host(), url.port(21))
-//! [3]
-
-
-//! [4]
-http://www.example.com/cgi-bin/drawgraph.cgi?type-pie/color-green
-//! [4]
-
-
-//! [5]
-baseUrl = QUrl("http://qtsoftware.com/support")
-relativeUrl = QUrl("../products/solutions")
-print(baseUrl.resolved(relativeUrl).toString())
-# prints "http://qtsoftware.com/products/solutions"
-//! [5]
-
-
-//! [6]
-ba = QUrl.toPercentEncoding("{a fishy string?}", "{}", "s")
-print(ba)
-# prints "{a fi%73hy %73tring%3F}"
-//! [6]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qabstracteventdispatcher.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qabstracteventdispatcher.cpp
deleted file mode 100644
index a531f22fc..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qabstracteventdispatcher.cpp
+++ /dev/null
@@ -1,3 +0,0 @@
-//! [0]
-bool myEventFilter(void *message);
-//! [0]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qabstractitemmodel.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qabstractitemmodel.cpp
deleted file mode 100644
index f2a9e8222..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qabstractitemmodel.cpp
+++ /dev/null
@@ -1,98 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-beginInsertRows(parent, 2, 4)
-//! [0]
-
-
-//! [1]
-beginInsertRows(parent, 4, 5)
-//! [1]
-
-
-//! [2]
-beginRemoveRows(parent, 2, 3)
-//! [2]
-
-
-//! [3]
-beginInsertColumns(parent, 4, 6)
-//! [3]
-
-
-//! [4]
-beginInsertColumns(parent, 6, 8)
-//! [4]
-
-
-//! [5]
-beginRemoveColumns(parent, 4, 6)
-//! [5]
-
-
-//! [6]
-beginMoveRows(sourceParent, 2, 4, destinationParent, 2)
-//! [6]
-
-
-//! [7]
-beginMoveRows(sourceParent, 2, 4, destinationParent, 6)
-//! [7]
-
-
-//! [8]
-beginMoveRows(parent, 2, 2, parent, 0)
-//! [8]
-
-
-//! [9]
-beginMoveRows(parent, 2, 2, parent, 4)
-//! [9]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qcoreapplication.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qcoreapplication.cpp
deleted file mode 100644
index 115c76671..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qcoreapplication.cpp
+++ /dev/null
@@ -1,128 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-event = QMouseEvent(QEvent.MouseButtonPress, pos, 0, 0, 0)
-QApplication.sendEvent(mainWindow, event)
-//! [0]
-
-
-//! [1]
-quitButton = QPushButton("Quit")
-quitButton.clicked.connect(app.quit)
-//! [1]
-
-
-//! [2]
-for path in app.libraryPaths():
- do_something(path)
-//! [2]
-
-
-//! [3]
-myEventFilter(message, result)
-//! [3]
-
-
-//! [4]
-def cleanup_stuff():
- # do the cleanup stuff
-
-def init_stuff():
- qAddPostRoutine(cleanup_stuff)
-//! [4]
-
-
-//! [5]
-class MyPrivateInitStuff : public QObject
-{
-public:
- static MyPrivateInitStuff *initStuff(QObject *parent)
- {
- if (!p)
- p = new MyPrivateInitStuff(parent);
- return p;
- }
-
- ~MyPrivateInitStuff()
- {
- // cleanup goes here
- }
-
-private:
- MyPrivateInitStuff(QObject *parent)
- : QObject(parent)
- {
- // initialization goes here
- }
-
- MyPrivateInitStuff *p;
-};
-//! [5]
-
-
-//! [6]
-static inline QString tr(const char *sourceText,
- const char *comment = 0);
-static inline QString trUtf8(const char *sourceText,
- const char *comment = 0);
-//! [6]
-
-
-//! [7]
-class MyMfcView : public CView
-{
- Q_DECLARE_TR_FUNCTIONS(MyMfcView)
-
-public:
- MyMfcView();
- ...
-};
-//! [7]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qmetaobject.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qmetaobject.cpp
deleted file mode 100644
index 79fe7f09f..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qmetaobject.cpp
+++ /dev/null
@@ -1,132 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-void wrapInFunction()
-{
-
-//! [0]
-class MyClass:
-
- Q_CLASSINFO("author", "Sabrina Schweinsteiger")
- Q_CLASSINFO("url", "http://doc.moosesoft.co.uk/1.0/")
-
- ...
-//! [0]
-
-
-//! [1]
-normType = QMetaObject.normalizedType(" int const *")
-# normType is now "const int*"
-//! [1]
-
-
-//! [2]
-QMetaObject.invokeMethod(pushButton, "animateClick",
- Qt.QueuedConnection)
-//! [2]
-
-
-//! [3]
-QMetaObject.invokeMethod: Unable to handle unregistered datatype 'MyType'
-//! [3]
-
-
-//! [4]
-retVal = QString()
-QMetaObject.invokeMethod(obj, "compute", Qt::DirectConnection,
- Q_RETURN_ARG(QString, retVal),
- Q_ARG(QString, "sqrt"),
- Q_ARG(int, 42),
- Q_ARG(double, 9.7));
-//! [4]
-
-
-//! [5]
-class MyClass:
- Q_CLASSINFO("author", "Sabrina Schweinsteiger")
- Q_CLASSINFO("url", "http://doc.moosesoft.co.uk/1.0/")
-//! [5]
-
-
-//! [propertyCount]
-metaObject = obj.metaObject()
-properties = [metaObject.property(i).name() for i in range(metaObject.propertyOffset(), metaObject.propertyCount())]
-//! [propertyCount]
-
-
-//! [methodCount]
-metaObject = obj.metaObject()
-methods = [metaObject.method(i).signature() for i in range(metaObject.methodOffset(), metaObject.methodCount())]
-//! [methodCount]
-
-//! [6]
-methodIndex = pushButton.metaObject().indexOfMethod("animateClick()")
-method = metaObject.method(methodIndex)
-method.invoke(pushButton, Qt.QueuedConnection)
-//! [6]
-
-//! [7]
-QMetaMethod.invoke: Unable to handle unregistered datatype 'MyType'
-//! [7]
-
-//! [8]
-retVal = QString()
-normalizedSignature = QMetaObject.normalizedSignature("compute(QString, int, double)")
-methodIndex = obj.metaObject().indexOfMethod(normalizedSignature)
-method = metaObject.method(methodIndex)
-method.invoke(obj,
- Qt.DirectConnection,
- Q_RETURN_ARG(QString, retVal),
- Q_ARG(QString, "sqrt"),
- Q_ARG(int, 42),
- Q_ARG(double, 9.7));
-//! [8]
-
-}
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qmetatype.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qmetatype.cpp
deleted file mode 100644
index 14f07a139..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qmetatype.cpp
+++ /dev/null
@@ -1,119 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-struct MyStruct
-{
- int i;
- ...
-};
-
-Q_DECLARE_METATYPE(MyStruct)
-//! [0]
-
-
-//! [1]
-namespace MyNamespace
-{
- ...
-}
-
-Q_DECLARE_METATYPE(MyNamespace::MyStruct)
-//! [1]
-
-
-//! [2]
-MyStruct s;
-QVariant var;
-var.setValue(s); // copy s into the variant
-
-...
-
-// retrieve the value
-MyStruct s2 = var.value();
-//! [2]
-
-
-//! [3]
-int id = QMetaType::type("MyClass");
-if (id == 0) {
- void *myClassPtr = QMetaType::construct(id);
- ...
- QMetaType::destroy(id, myClassPtr);
- myClassPtr = 0;
-}
-//! [3]
-
-
-//! [4]
-qRegisterMetaType("MyClass");
-//! [4]
-
-
-//! [5]
-qRegisterMetaTypeStreamOperators("MyClass");
-//! [5]
-
-
-//! [6]
-QDataStream &operator<<(QDataStream &out, const MyClass &myObj);
-QDataStream &operator>>(QDataStream &in, MyClass &myObj);
-//! [6]
-
-
-//! [7]
-int id = qRegisterMetaType();
-//! [7]
-
-
-//! [8]
-int id = qMetaTypeId(); // id is now QMetaType::QString
-id = qMetaTypeId(); // compile error if MyStruct not declared
-//! [8]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qmimedata.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qmimedata.cpp
deleted file mode 100644
index 46c7e31de..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qmimedata.cpp
+++ /dev/null
@@ -1,107 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
-def dragEnterEvent(self, event):
- if event.mimeData().hasUrls():
- event.acceptProposedAction()
-
-def dropEvent(self, event):
- if event->mimeData().hasUrls():
- for url in event.mimeData().urls():
- ...
-//! [0]
-
-
-//! [1]
-csvData = QByteArray(...)
-
-mimeData = QMimeData()
-mimeData.setData("text/csv", csvData)
-//! [1]
-
-
-//! [2]
-def dropEvent(self, event):
- myData = event->mimeData()
- if myData:
- # access myData's data directly (not through QMimeData's API)
-}
-//! [2]
-
-
-//! [3]
-application/x-qt-windows-mime;value=""
-//! [3]
-
-
-//! [4]
-application/x-qt-windows-mime;value="FileGroupDescriptor"
-application/x-qt-windows-mime;value="FileContents"
-//! [4]
-
-
-//! [5]
-if event.mimeData().hasImage():
- image = QImage(event.mimeData().imageData())
- ...
-//! [5]
-
-
-//! [6]
-mimeData.setImageData(QImage("beautifulfjord.png"))
-//! [6]
-
-
-//! [7]
-if event.mimeData().hasColor():
- color = QColor(event.mimeData().colorData())
- ...
-//! [7]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qobject.py b/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qobject.py
deleted file mode 100644
index f14573f7a..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/code/src_corelib_kernel_qobject.py
+++ /dev/null
@@ -1,374 +0,0 @@
-############################################################################
-##
-## Copyright (C) 2016 The Qt Company Ltd.
-## Contact: https://www.qt.io/licensing/
-##
-## This file is part of the documentation of Qt for Python.
-##
-## $QT_BEGIN_LICENSE:BSD$
-## Commercial License Usage
-## Licensees holding valid commercial Qt licenses may use this file in
-## accordance with the commercial license agreement provided with the
-## Software or, alternatively, in accordance with the terms contained in
-## a written agreement between you and The Qt Company. For licensing terms
-## and conditions see https://www.qt.io/terms-conditions. For further
-## information use the contact form at https://www.qt.io/contact-us.
-##
-## BSD License Usage
-## Alternatively, you may use this file under the terms of the BSD license
-## as follows:
-##
-## "Redistribution and use in source and binary forms, with or without
-## modification, are permitted provided that the following conditions are
-## met:
-## * Redistributions of source code must retain the above copyright
-## notice, this list of conditions and the following disclaimer.
-## * Redistributions in binary form must reproduce the above copyright
-## notice, this list of conditions and the following disclaimer in
-## the documentation and/or other materials provided with the
-## distribution.
-## * Neither the name of The Qt Company Ltd nor the names of its
-## contributors may be used to endorse or promote products derived
-## from this software without specific prior written permission.
-##
-##
-## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-##
-## $QT_END_LICENSE$
-##
-############################################################################
-
-//! [0]
-lineEdit = qt_find_obj_child(myWidget, "QLineEdit", "my line edit")
-if lineEdit:
- lineEdit.setText("Default")
-//! [0]
-
-
-//! [1]
-obj = QPushButton()
-obj.metaObject().className() # returns "QPushButton"
-
-QPushButton.staticMetaObject.className() # returns "QPushButton"
-//! [1]
-
-
-//! [2]
-QPushButton.staticMetaObject.className() # returns "QPushButton"
-
-obj = QPushButton()
-obj.metaObject().className() # returns "QPushButton"
-//! [2]
-
-
-//! [3]
-obj = QTimer() # QTimer inherits QObject
-
-timer = obj
-# timer == (QObject *)obj
-
-button = obj
-# button == 0
-//! [3]
-
-
-//! [4]
-timer = QTimer() # QTimer inherits QObject
-timer.inherits("QTimer") # returns true
-timer.inherits("QObject") # returns true
-timer.inherits("QAbstractButton") # returns false
-
-# QLayout inherits QObject and QLayoutItem
-layout = QLayout()
-layout.inherits("QObject") # returns true
-layout.inherits("QLayoutItem") # returns false
-//! [4]
-
-
-//! [5]
-print(f"MyClass.setPrecision(): ({qPrintable(objectName())}) invalid precision {newPrecision}"
-//! [5]
-
-
-//! [6]
-class MainWindow(QMainWindow):
- def __init__(self):
- self.textEdit = QTextEdit()
- setCentralWidget(self.textEdit)
- textEdit.installEventFilter(self)
-
- def eventFilter(self, obj, event):
- if obj == textEdit:
- if event.type() == QEvent.KeyPress:
- keyEvent = event
- print("Ate key press", keyEvent.key())
- return true
- else:
- return false
- else:
- # pass the event on to the parent class
- return QMainWindow.eventFilter(self, obj, event)
-//! [6]
-
-
-//! [7]
-myObject.moveToThread(QApplication.instance().thread())
-//! [7]
-
-
-//! [8]
-class MyObject(QObject):
- def __init__(self, parent):
- QObject.__init__(self, parent)
-
- self.startTimer(50) # 50-millisecond timer
- self.startTimer(1000) # 1-second timer
- self.startTimer(60000) # 1-minute timer
-
-
- def timerEvent(self, event):
- print("Timer ID:", event.timerId())
-
-//! [8]
-
-
-//! [9]
-a_list = window().queryList("QAbstractButton")
-for obj in a_list:
- obj.setEnabled(false)
-//! [9]
-
-
-//! [10]
-button = parentWidget.findChild(QPushButton, "button1")
-//! [10]
-
-
-//! [11]
-a_list = parentWidget.findChild(QListWidget)
-//! [11]
-
-
-//! [12]
-widgets = parentWidget.findChildren(QWidget, "widgetname")
-//! [12]
-
-
-//! [13]
-allPButtons = parentWidget.findChildren(QPushButton)
-//! [13]
-
-
-//! [14]
-monitoredObj.installEventFilter(filterObj)
-//! [14]
-
-
-//! [15]
-class KeyPressEater(QObject):
- def eventFilter(self, obj, event):
- if event.type() == QEvent.KeyPress:
- print("Ate key press", event.key())
- return True
- else:
- # standard event processing
- return QObject.eventFilter(self, obj, event)
-//! [15]
-
-
-//! [16]
-keyPressEater = KeyPressEater(self)
-pushButton = QPushButton(self)
-listView = QListView(self)
-
-pushButton.installEventFilter(keyPressEater)
-listView.installEventFilter(keyPressEater)
-//! [16]
-
-
-//! [17]
-def __init__(self):
- senderLabel = QLabel(self.tr("Name:"))
- recipientLabel = QLabel(self.tr("Name:", "recipient"))
- # ...
-//! [17]
-
-
-//! [18]
-n = messages.count();
-showMessage(self.tr("%n message(s) saved", "", n));
-//! [18]
-
-
-//! [19]
-if n == 1:
- self.tr("%n message saved")
-else:
- self.tr("%n messages saved")
-//! [19]
-
-
-//! [20]
-label.setText(self.tr("F\374r \310lise"))
-//! [20]
-
-
-//! [21]
-if receivers(SIGNAL('valueChanged()')) > 0:
- data = get_the_value() # expensive operation
- self.valueChanged(data)
-//! [21]
-
-
-//! [22]
-label = QLabel()
-scrollBar = QScrollBar()
-QObject.connect(scrollBar, SIGNAL('valueChanged(int)'),
- label, SLOT('setNum(int)'));
-# or scrollBar.valueChanged.connect(label.setNum)
-//! [22]
-
-
-//! [23]
-// WRONG
-QObject.connect(scrollBar, SIGNAL('valueChanged(int value)'),
- label, SLOT('setNum(int value)'));
-//! [23]
-
-
-//! [24]
-class MyWidget(QWidget):
- def __init__(self):
- myButton = QPushButton(self)
- myButton.clicked.connect(self.buttonClicked)
-//! [24]
-
-
-//! [25]
-QObject.connect: Cannot queue arguments of type 'MyType'
-(Make sure 'MyType' is registered using qRegisterMetaType().)
-//! [25]
-
-
-//! [26]
-disconnect(myObject, 0, 0, 0)
-//! [26]
-
-
-//! [27]
-myObject.disconnect()
-//! [27]
-
-
-//! [28]
-disconnect(myObject, SIGNAL('mySignal()'), 0, 0)
-//! [28]
-
-
-//! [29]
-myObject.disconnect(SIGNAL('mySignal()'))
-//! [29]
-
-
-//! [30]
-disconnect(myObject, 0, myReceiver, 0)
-//! [30]
-
-
-//! [31]
-myObject.disconnect(myReceiver)
-//! [31]
-
-
-//! [32]
-if QLatin1String(signal) == SIGNAL('valueChanged()'):
- # signal is valueChanged()
-//! [32]
-
-
-//! [33]
-def on_
Tree of QDomNodes which is not usually a complete QDomDocument
-
QDomDocumentType
The representation of the DTD in the document tree
-
QDomElement
Represents one element in the DOM tree
-
QDomEntity
Represents an XML entity
-
QDomEntityReference
Represents an XML entity reference
-
QDomImplementation
Information about the features of the DOM implementation
-
QDomNamedNodeMap
Collection of nodes that can be accessed by name
-
QDomNode
The base class for all the nodes in a DOM tree
-
QDomNodeList
List of QDomNode objects
-
QDomNotation
Represents an XML notation
-
QDomProcessingInstruction
Represents an XML processing instruction
-
QDomText
Represents text data in the parsed XML document
-
QXmlAttributes
XML attributes
-
QXmlContentHandler
Interface to report the logical content of XML data
-
QXmlDTDHandler
Interface to report DTD content of XML data
-
QXmlDeclHandler
Interface to report declaration content of XML data
-
QXmlDefaultHandler
Default implementation of all the XML handler classes
-
QXmlEntityResolver
Interface to resolve external entities contained in XML data
-
QXmlErrorHandler
Interface to report errors in XML data
-
QXmlInputSource
The input data for the QXmlReader subclasses
-
QXmlLexicalHandler
Interface to report the lexical content of XML data
-
QXmlLocator
The XML handler classes with information about the parsing position within a file
-
QXmlNamespaceSupport
Helper class for XML readers which want to include namespace support
-
QXmlParseException
Used to report errors with the QXmlErrorHandler interface
-
QXmlReader
Interface for XML readers (i.e. parsers)
-
QXmlSimpleReader
Implementation of a simple XML parser
-
-
-
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/dockwidgets/Resources/titles.txt b/sources/pyside6/doc/codesnippets/doc/src/snippets/dockwidgets/Resources/titles.txt
deleted file mode 100644
index 016825d87..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/dockwidgets/Resources/titles.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-Qt Classes by Module :/Resources/modules.html
-QtCore :/Resources/qtcore.html
-QtGui :/Resources/qtgui.html
-QtNetwork :/Resources/qtnetwork.html
-QtOpenGL :/Resources/qtopengl.html
-QtSql :/Resources/qtsql.html
-QtXml :/Resources/qtxml.html
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/dockwidgets/dockwidgets.qrc b/sources/pyside6/doc/codesnippets/doc/src/snippets/dockwidgets/dockwidgets.qrc
deleted file mode 100644
index 8c462a517..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/dockwidgets/dockwidgets.qrc
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
- Resources/titles.txt
- Resources/modules.html
- Resources/qtcore.html
- Resources/qtgui.html
- Resources/qtnetwork.html
- Resources/qtopengl.html
- Resources/qtsql.html
- Resources/qtxml.html
-
-
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/dockwidgets/mainwindow.h b/sources/pyside6/doc/codesnippets/doc/src/snippets/dockwidgets/mainwindow.h
deleted file mode 100644
index e9891d628..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/dockwidgets/mainwindow.h
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef MAINWINDOW_H
-#define MAINWINDOW_H
-
-#include
-
-class QDockWidget;
-class QListWidget;
-class QListWidgetItem;
-class QTextBrowser;
-
-class MainWindow : public QMainWindow
-{
- Q_OBJECT
-public:
- MainWindow(QWidget *parent = 0);
-
-private slots:
- void updateText(QListWidgetItem *item);
-
-private:
- void setupContents();
- void setupDockWindow();
- void setupMenus();
-
- QDockWidget *contentsWindow;
- QListWidget *headingList;
- QTextBrowser *textBrowser;
-};
-
-#endif
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/draganddrop/dragwidget.h b/sources/pyside6/doc/codesnippets/doc/src/snippets/draganddrop/dragwidget.h
deleted file mode 100644
index 88bff6669..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/draganddrop/dragwidget.h
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef DRAGWIDGET_H
-#define DRAGWIDGET_H
-
-#include
-#include
-#include
-#include
-
-class QComboBox;
-class QFrame;
-class QLabel;
-class QTextBrowser;
-
-class DragWidget : public QFrame
-{
- Q_OBJECT
-
-public:
- DragWidget(QWidget *parent);
- void setData(const QString &mimetype, const QByteArray &newData);
-
-signals:
- void dragResult(const QString &actionText);
- void mimeTypes(const QStringList &types);
-
-protected:
- void dragEnterEvent(QDragEnterEvent *event);
- void dropEvent(QDropEvent *event);
- void mouseMoveEvent(QMouseEvent *event);
- void mousePressEvent(QMouseEvent *event);
-
-private:
- QByteArray data;
- QLabel *dragDropLabel;
- QPoint dragStartPosition;
- QString mimeType;
-};
-
-#endif
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/draganddrop/mainwindow.h b/sources/pyside6/doc/codesnippets/doc/src/snippets/draganddrop/mainwindow.h
deleted file mode 100644
index ece2a8190..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/draganddrop/mainwindow.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef MAINWINDOW_H
-#define MAINWINDOW_H
-
-#include
-#include
-#include
-
-class QComboBox;
-class QLabel;
-class QLineEdit;
-class QMouseEvent;
-class QTextEdit;
-class DragWidget;
-
-class MainWindow : public QMainWindow
-{
- Q_OBJECT
-
-public:
- MainWindow(QWidget *parent = 0);
-
-public slots:
- void setDragResult(const QString &actionText);
- void setMimeTypes(const QStringList &types);
-
-private:
- QComboBox *mimeTypeCombo;
- DragWidget *dragWidget;
-};
-
-#endif
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/dragging/images.qrc b/sources/pyside6/doc/codesnippets/doc/src/snippets/dragging/images.qrc
deleted file mode 100644
index 30b8a2986..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/dragging/images.qrc
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- images/file.png
-
-
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/dragging/images/file.png b/sources/pyside6/doc/codesnippets/doc/src/snippets/dragging/images/file.png
deleted file mode 100644
index 9520080ed..000000000
Binary files a/sources/pyside6/doc/codesnippets/doc/src/snippets/dragging/images/file.png and /dev/null differ
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/dragging/mainwindow.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/dragging/mainwindow.cpp
deleted file mode 100644
index 6e4073499..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/dragging/mainwindow.cpp
+++ /dev/null
@@ -1,72 +0,0 @@
-############################################################################
-##
-## Copyright (C) 2016 The Qt Company Ltd.
-## Contact: https://www.qt.io/licensing/
-##
-## This file is part of the examples of Qt for Python.
-##
-## $QT_BEGIN_LICENSE:BSD$
-## Commercial License Usage
-## Licensees holding valid commercial Qt licenses may use this file in
-## accordance with the commercial license agreement provided with the
-## Software or, alternatively, in accordance with the terms contained in
-## a written agreement between you and The Qt Company. For licensing terms
-## and conditions see https://www.qt.io/terms-conditions. For further
-## information use the contact form at https://www.qt.io/contact-us.
-##
-## BSD License Usage
-## Alternatively, you may use this file under the terms of the BSD license
-## as follows:
-##
-## "Redistribution and use in source and binary forms, with or without
-## modification, are permitted provided that the following conditions are
-## met:
-## * Redistributions of source code must retain the above copyright
-## notice, this list of conditions and the following disclaimer.
-## * Redistributions in binary form must reproduce the above copyright
-## notice, this list of conditions and the following disclaimer in
-## the documentation and/or other materials provided with the
-## distribution.
-## * Neither the name of The Qt Company Ltd nor the names of its
-## contributors may be used to endorse or promote products derived
-## from this software without specific prior written permission.
-##
-##
-## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-##
-## $QT_END_LICENSE$
-##
-############################################################################
-
-
-//! [0]
-def mousePressEvent(self, event):
- if event.button() == Qt.LeftButton
- && iconLabel.geometry().contains(event.pos()):
-
-//! [1]
- drag = QDrag(self)
- mimeData = QMimeData()
-
- mimeData.setText(commentEdit.toPlainText())
- drag.setMimeData(mimeData)
-//! [1]
- drag.setPixmap(iconPixmap)
-
- dropAction = drag.exec_()
-//! [0]
-
-//! [2]
-
-
-//! [2]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/dragging/mainwindow.h b/sources/pyside6/doc/codesnippets/doc/src/snippets/dragging/mainwindow.h
deleted file mode 100644
index fccb01a0e..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/dragging/mainwindow.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef MAINWINDOW_H
-#define MAINWINDOW_H
-
-#include
-#include
-#include
-
-class QLabel;
-class QLineEdit;
-class QMouseEvent;
-class QTextEdit;
-
-class MainWindow : public QMainWindow
-{
- Q_OBJECT
-
-public:
- MainWindow(QWidget *parent = 0);
-
-protected:
- void mousePressEvent(QMouseEvent *event);
-
-private:
- QLabel *iconLabel;
- QLineEdit *nameEdit;
- QPixmap iconPixmap;
- QPoint dragStartPosition;
- QTextEdit *commentEdit;
-};
-
-#endif
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/dropactions/window.h b/sources/pyside6/doc/codesnippets/doc/src/snippets/dropactions/window.h
deleted file mode 100644
index 8607b6953..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/dropactions/window.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef WINDOW_H
-#define WINDOW_H
-
-#include
-#include
-#include
-
-class QComboBox;
-class QFrame;
-class QTextBrowser;
-
-class Window : public QWidget
-{
- Q_OBJECT
-
-public:
- Window(QWidget *parent = 0);
-
-protected:
- void dragEnterEvent(QDragEnterEvent *event);
- void dropEvent(QDropEvent *event);
-
-private:
- QComboBox *mimeTypeCombo;
- QFrame *dropFrame;
- QTextBrowser *textBrowser;
- QString oldText;
- QStringList oldMimeTypes;
-};
-
-#endif
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/droparea.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/droparea.cpp
deleted file mode 100644
index 77f97455b..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/droparea.cpp
+++ /dev/null
@@ -1,147 +0,0 @@
-############################################################################
-##
-## Copyright (C) 2016 The Qt Company Ltd.
-## Contact: https://www.qt.io/licensing/
-##
-## This file is part of the examples of Qt for Python.
-##
-## $QT_BEGIN_LICENSE:BSD$
-## Commercial License Usage
-## Licensees holding valid commercial Qt licenses may use this file in
-## accordance with the commercial license agreement provided with the
-## Software or, alternatively, in accordance with the terms contained in
-## a written agreement between you and The Qt Company. For licensing terms
-## and conditions see https://www.qt.io/terms-conditions. For further
-## information use the contact form at https://www.qt.io/contact-us.
-##
-## BSD License Usage
-## Alternatively, you may use this file under the terms of the BSD license
-## as follows:
-##
-## "Redistribution and use in source and binary forms, with or without
-## modification, are permitted provided that the following conditions are
-## met:
-## * Redistributions of source code must retain the above copyright
-## notice, this list of conditions and the following disclaimer.
-## * Redistributions in binary form must reproduce the above copyright
-## notice, this list of conditions and the following disclaimer in
-## the documentation and/or other materials provided with the
-## distribution.
-## * Neither the name of The Qt Company Ltd nor the names of its
-## contributors may be used to endorse or promote products derived
-## from this software without specific prior written permission.
-##
-##
-## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-##
-## $QT_END_LICENSE$
-##
-############################################################################
-
-from PySide6.QtGui import *
-
-
-DropArea.DropArea(QWidget *parent)
- : QLabel(parent)
-{
- setMinimumSize(200, 200)
- setFrameStyle(QFrame.Sunken | QFrame::StyledPanel)
- setAlignment(Qt.AlignCenter)
- setAcceptDrops(True)
- setAutoFillBackground(True)
- clear()
-}
-
-void DropArea.dragEnterEvent(QDragEnterEvent *event)
-{
- setText(tr(""))
- setBackgroundRole(QPalette.Highlight)
-
- event.acceptProposedAction()
- emit changed(event.mimeData())
-}
-
-void DropArea.dragMoveEvent(QDragMoveEvent *event)
-{
- event.acceptProposedAction()
-}
-
-void DropArea.dropEvent(QDropEvent *event)
-{
- const QMimeData *mimeData = event.mimeData()
-
- if (mimeData.hasImage()) {
- setPixmap(qvariant_cast(mimeData.imageData()))
- } else if (mimeData.hasHtml()) {
- setText(mimeData.html())
- setTextFormat(Qt.RichText)
- } else if (mimeData.hasText()) {
- setText(mimeData.text())
- setTextFormat(Qt.PlainText)
- } else {
- setText(tr("Cannot display data"))
- }
-
- setBackgroundRole(QPalette.Dark)
- event.acceptProposedAction()
-}
-
-//![0]
-def paste(self):
- clipboard = QGuiApplication.clipboard()
- mimeData = clipboard.mimeData()
-
- if mimeData.hasImage():
- setPixmap(mimeData.imageData())
- elif mimeData.hasHtml():
- setText(mimeData.html())
- setTextFormat(Qt.RichText)
- elif (mimeData.hasText():
- setText(mimeData.text())
- setTextFormat(Qt.PlainText)
- else:
- setText(tr("Cannot display data"))
-//![0]
-
- emit changed(mimeData)
- setBackgroundRole(QPalette.Dark)
- //event.acceptProposedAction()
-}
-
-void DropArea.dragLeaveEvent(QDragLeaveEvent *event)
-{
- clear()
- event.accept()
-}
-
-void DropArea.clear()
-{
- setText(tr(""))
- setBackgroundRole(QPalette.Dark)
-
- emit changed()
-}
-
-QPixmap DropArea.extractPixmap(const QByteArray &data, const QString &format)
-{
- QList imageFormats = QImageReader.supportedImageFormats()
- QPixmap pixmap
-
- foreach (QByteArray imageFormat, imageFormats) {
- if (format.mid(6) == QString(imageFormat)) {
- pixmap.loadFromData(data, imageFormat)
- break
- }
- }
- return pixmap
-}
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/dropevents/window.py b/sources/pyside6/doc/codesnippets/doc/src/snippets/dropevents/window.py
deleted file mode 100644
index 9793762ad..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/dropevents/window.py
+++ /dev/null
@@ -1,65 +0,0 @@
-############################################################################
-##
-## Copyright (C) 2016 The Qt Company Ltd.
-## Contact: https://www.qt.io/licensing/
-##
-## This file is part of the examples of Qt for Python.
-##
-## $QT_BEGIN_LICENSE:BSD$
-## Commercial License Usage
-## Licensees holding valid commercial Qt licenses may use this file in
-## accordance with the commercial license agreement provided with the
-## Software or, alternatively, in accordance with the terms contained in
-## a written agreement between you and The Qt Company. For licensing terms
-## and conditions see https://www.qt.io/terms-conditions. For further
-## information use the contact form at https://www.qt.io/contact-us.
-##
-## BSD License Usage
-## Alternatively, you may use this file under the terms of the BSD license
-## as follows:
-##
-## "Redistribution and use in source and binary forms, with or without
-## modification, are permitted provided that the following conditions are
-## met:
-## * Redistributions of source code must retain the above copyright
-## notice, this list of conditions and the following disclaimer.
-## * Redistributions in binary form must reproduce the above copyright
-## notice, this list of conditions and the following disclaimer in
-## the documentation and/or other materials provided with the
-## distribution.
-## * Neither the name of The Qt Company Ltd nor the names of its
-## contributors may be used to endorse or promote products derived
-## from this software without specific prior written permission.
-##
-##
-## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-##
-## $QT_END_LICENSE$
-##
-############################################################################
-
-from PySide6.QtWidgets import QWidget, QComboBox, QFrame, QTextBrowser
-
-class Window(QWidget):
-
- def __init__(self, parent=None):
- self.mimeTypeCombo = QComboBox()
- self.dropFrame = QFrame()
- self.textBrowser = QTextBrowser()
- self.oldText = ""
- self.oldMimeTypes = []
-
- def dragEnterEvent(self, event):
- pass
- def dropEvent(self, event):
- pass
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/droprectangle/window.h b/sources/pyside6/doc/codesnippets/doc/src/snippets/droprectangle/window.h
deleted file mode 100644
index e7854bcfd..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/droprectangle/window.h
+++ /dev/null
@@ -1,81 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef WINDOW_H
-#define WINDOW_H
-
-#include
-#include
-#include
-
-class QComboBox;
-class QFrame;
-class QTextBrowser;
-
-class Window : public QWidget
-{
- Q_OBJECT
-
-public:
- Window(QWidget *parent = 0);
-
-protected:
- void dragMoveEvent(QDragMoveEvent *event);
- void dropEvent(QDropEvent *event);
-
-private:
- QComboBox *mimeTypeCombo;
- QFrame *dropFrame;
- QTextBrowser *textBrowser;
- QString oldText;
- QStringList oldMimeTypes;
-};
-
-#endif
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/eventfilters/filterobject.h b/sources/pyside6/doc/codesnippets/doc/src/snippets/eventfilters/filterobject.h
deleted file mode 100644
index 18fd7b8c5..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/eventfilters/filterobject.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef FILTEROBJECT_H
-#define FILTEROBJECT_H
-
-#include
-
-class FilterObject : public QObject
-{
- Q_OBJECT
-
-public:
- FilterObject(QObject *parent = 0);
- bool eventFilter(QObject *object, QEvent *event);
- void setFilteredObject(QObject *object);
-
-private:
- QObject *target;
-};
-
-#endif
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/explicitlysharedemployee/employee.h b/sources/pyside6/doc/codesnippets/doc/src/snippets/explicitlysharedemployee/employee.h
deleted file mode 100644
index 66ca6b36b..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/explicitlysharedemployee/employee.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef EMPLOYEE_H
-#define EMPLOYEE_H
-
-#include
-#include
-
-class EmployeeData : public QSharedData
-{
-public:
- EmployeeData();
- EmployeeData(const EmployeeData &other);
- ~EmployeeData();
-
- int id;
- QString *name;
-};
-
-class Employee
-{
-public:
- Employee();
- Employee(int id, const QString &name);
-
- void setId(int id) { d->id = id; }
- void setName(const QString &name);
-
- int id() const { return d->id; }
- QString name() const;
-
-private:
- QExplicitlySharedDataPointer d;
-};
-
-#endif
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/myclass.h b/sources/pyside6/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/myclass.h
deleted file mode 100644
index 0f49fe256..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/myclass.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef MYCLASS_H
-#define MYCLASS_H
-
-#include
-
-//! [0]
-class MyClass
-{
- Q_DECLARE_TR_FUNCTIONS(MyClass)
-
-public:
- MyClass();
-//! [0]
- /* ... */
-//! [1]
-};
-//! [1]
-
-#endif
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/myclass.ts b/sources/pyside6/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/myclass.ts
deleted file mode 100644
index 9bd90f244..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/myclass.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
- MyClass
-
-
-
-
-
-
-
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/resources.qrc b/sources/pyside6/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/resources.qrc
deleted file mode 100644
index 903ac8578..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/resources.qrc
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
- translations/i18n-non-qt-class_en.qm
- translations/i18n-non-qt-class_fr.qm
-
-
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/translations/i18n-non-qt-class_en.ts b/sources/pyside6/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/translations/i18n-non-qt-class_en.ts
deleted file mode 100644
index 54f188694..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/translations/i18n-non-qt-class_en.ts
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
- MyClass
-
-
-
-
-
-
-
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/translations/i18n-non-qt-class_fr.ts b/sources/pyside6/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/translations/i18n-non-qt-class_fr.ts
deleted file mode 100644
index 3f3cebc23..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/i18n-non-qt-class/translations/i18n-non-qt-class_fr.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
- MyClass
-
-
-
- Bonjour Qt!
-
-
-
-
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/image/image.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/image/image.cpp
deleted file mode 100644
index a35f95c94..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/image/image.cpp
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
- image = QImage()
- ba = QByteArray()
- buffer(ba)
- buffer.open(QIODevice.WriteOnly)
- image.save(buffer, "PNG") # writes image into ba in PNG format
-//! [0]
-//! [1]
- pixmap = QPixmap()
- bytes = QByteArray()
- buffer(bytes)
- buffer.open(QIODevice.WriteOnly)
- pixmap.save(buffer, "PNG") # writes pixmap into bytes in PNG format
-//! [1]
-//! [2]
- alpha = QPixmap("image-with-alpha.png")
- alphacopy = alpha
- alphacopy.setMask(alphacopy.mask())
-//! [2]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/image/supportedformat.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/image/supportedformat.cpp
deleted file mode 100644
index 969ce5866..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/image/supportedformat.cpp
+++ /dev/null
@@ -1,56 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-//! [0]
- writer = QImageWriter()
- writer.setFormat("png")
- if writer.supportsOption(QImageIOHandler.Description):
- print("Png supports embedded text")
-//! [0]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/inherited-slot/button.h b/sources/pyside6/doc/codesnippets/doc/src/snippets/inherited-slot/button.h
deleted file mode 100644
index 855bea055..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/inherited-slot/button.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef WINDOW_H
-#define WINDOW_H
-
-#include
-
-//! [Button class with reimplemented slot]
-class Button : public QPushButton
-{
- Q_OBJECT
-
-public:
- Button(QWidget *parent = 0);
-
-public slots:
- void animateClick();
-};
-//! [Button class with reimplemented slot]
-
-#endif
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/itemselection/model.h b/sources/pyside6/doc/codesnippets/doc/src/snippets/itemselection/model.h
deleted file mode 100644
index 6b4076815..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/itemselection/model.h
+++ /dev/null
@@ -1,84 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef MODEL_H
-#define MODEL_H
-
-#include
-#include
-#include
-
-class TableModel : public QAbstractTableModel
-{
- Q_OBJECT
-
-public:
- TableModel(int rows = 1, int columns = 1, QObject *parent = 0);
-
- int rowCount(const QModelIndex &parent = QModelIndex()) const;
- int columnCount(const QModelIndex &parent = QModelIndex()) const;
- QVariant data(const QModelIndex &index, int role) const;
- QVariant headerData(int section, Qt::Orientation orientation,
- int role = Qt::DisplayRole) const;
-
- Qt::ItemFlags flags(const QModelIndex &index) const;
- bool setData(const QModelIndex &index, const QVariant &value,
- int role = Qt::EditRole);
-
- bool insertRows(int position, int rows, const QModelIndex &parent = QModelIndex());
- bool insertColumns(int position, int columns, const QModelIndex &parent = QModelIndex());
- bool removeRows(int position, int rows, const QModelIndex &parent = QModelIndex());
- bool removeColumns(int position, int columns, const QModelIndex &parent = QModelIndex());
-
-private:
- QList rowList;
-};
-
-#endif
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/layouts/layouts.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/layouts/layouts.cpp
deleted file mode 100644
index 9bcc5dbe0..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/layouts/layouts.cpp
+++ /dev/null
@@ -1,126 +0,0 @@
-############################################################################
-##
-## Copyright (C) 2016 The Qt Company Ltd.
-## Contact: https://www.qt.io/licensing/
-##
-## This file is part of the examples of Qt for Python.
-##
-## $QT_BEGIN_LICENSE:BSD$
-## Commercial License Usage
-## Licensees holding valid commercial Qt licenses may use this file in
-## accordance with the commercial license agreement provided with the
-## Software or, alternatively, in accordance with the terms contained in
-## a written agreement between you and The Qt Company. For licensing terms
-## and conditions see https://www.qt.io/terms-conditions. For further
-## information use the contact form at https://www.qt.io/contact-us.
-##
-## BSD License Usage
-## Alternatively, you may use this file under the terms of the BSD license
-## as follows:
-##
-## "Redistribution and use in source and binary forms, with or without
-## modification, are permitted provided that the following conditions are
-## met:
-## * Redistributions of source code must retain the above copyright
-## notice, this list of conditions and the following disclaimer.
-## * Redistributions in binary form must reproduce the above copyright
-## notice, this list of conditions and the following disclaimer in
-## the documentation and/or other materials provided with the
-## distribution.
-## * Neither the name of The Qt Company Ltd nor the names of its
-## contributors may be used to endorse or promote products derived
-## from this software without specific prior written permission.
-##
-##
-## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-##
-## $QT_END_LICENSE$
-##
-############################################################################
-
-//! [0]
- window = QWidget()
-//! [0] //! [1]
- button1 = QPushButton("One")
-//! [1] //! [2]
- button2 = QPushButton("Two")
- button3 = QPushButton("Three")
- button4 = QPushButton("Four")
- button5 = QPushButton("Five")
-//! [2]
-
-//! [3]
- layout = QHBoxLayout()
-//! [3] //! [4]
- layout.addWidget(button1)
- layout.addWidget(button2)
- layout.addWidget(button3)
- layout.addWidget(button4)
- layout.addWidget(button5)
-
- window.setLayout(layout)
-//! [4] //! [5]
- window.show()
-//! [5]
-
-//! [6]
- window = QWidget()
-//! [6] //! [7]
- button1 = QPushButton("One")
-//! [7] //! [8]
- button2 = QPushButton("Two")
- button3 = QPushButton("Three")
- button4 = QPushButton("Four")
- button5 = QPushButton("Five")
-//! [8]
-
-//! [9]
- layout = QVBoxLayout()
-
-//! [9] //! [10]
- layout.addWidget(button1)
- layout.addWidget(button2)
- layout.addWidget(button3)
- layout.addWidget(button4)
- layout.addWidget(button5)
-
- window.setLayout(layout)
-//! [10] //! [11]
- window.show()
-//! [11]
-
-//! [12]
- window = QWidget()
-//! [12] //! [13]
- button1 = QPushButton("One")
-//! [13] //! [14]
- button2 = QPushButton("Two")
- button3 = QPushButton("Three")
- button4 = QPushButton("Four")
- button5 = QPushButton("Five")
-//! [14]
-
-//! [15]
- layout = QGridLayout()
-
-//! [15] //! [16]
- layout.addWidget(button1, 0, 0)
- layout.addWidget(button2, 0, 1)
- layout.addWidget(button3, 1, 0, 1, 2)
- layout.addWidget(button4, 2, 0)
- layout.addWidget(button5, 2, 1)
-
- window.setLayout(layout)
-//! [16] //! [17]
- window.show()
-//! [17]
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/mainwindowsnippet.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/mainwindowsnippet.cpp
deleted file mode 100644
index 1b0f94e8e..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/mainwindowsnippet.cpp
+++ /dev/null
@@ -1,58 +0,0 @@
-############################################################################
-##
-## Copyright (C) 2016 The Qt Company Ltd.
-## Contact: https://www.qt.io/licensing/
-##
-## This file is part of the examples of Qt for Python.
-##
-## $QT_BEGIN_LICENSE:BSD$
-## Commercial License Usage
-## Licensees holding valid commercial Qt licenses may use this file in
-## accordance with the commercial license agreement provided with the
-## Software or, alternatively, in accordance with the terms contained in
-## a written agreement between you and The Qt Company. For licensing terms
-## and conditions see https://www.qt.io/terms-conditions. For further
-## information use the contact form at https://www.qt.io/contact-us.
-##
-## BSD License Usage
-## Alternatively, you may use this file under the terms of the BSD license
-## as follows:
-##
-## "Redistribution and use in source and binary forms, with or without
-## modification, are permitted provided that the following conditions are
-## met:
-## * Redistributions of source code must retain the above copyright
-## notice, this list of conditions and the following disclaimer.
-## * Redistributions in binary form must reproduce the above copyright
-## notice, this list of conditions and the following disclaimer in
-## the documentation and/or other materials provided with the
-## distribution.
-## * Neither the name of The Qt Company Ltd nor the names of its
-## contributors may be used to endorse or promote products derived
-## from this software without specific prior written permission.
-##
-##
-## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-##
-## $QT_END_LICENSE$
-##
-############################################################################
-
-//! [0]
- dockWidget = QDockWidget(tr("Dock Widget"), self)
- dockWidget.setAllowedAreas(Qt.LeftDockWidgetArea |
- Qt.RightDockWidgetArea)
- dockWidget.setWidget(dockWidgetContents)
- addDockWidget(Qt.LeftDockWidgetArea, dockWidget)
-//! [0]
-
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/matrix/matrix.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/matrix/matrix.cpp
deleted file mode 100644
index 369d25af5..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/matrix/matrix.cpp
+++ /dev/null
@@ -1,112 +0,0 @@
-############################################################################
-##
-## Copyright (C) 2016 The Qt Company Ltd.
-## Contact: https://www.qt.io/licensing/
-##
-## This file is part of the examples of Qt for Python.
-##
-## $QT_BEGIN_LICENSE:BSD$
-## Commercial License Usage
-## Licensees holding valid commercial Qt licenses may use this file in
-## accordance with the commercial license agreement provided with the
-## Software or, alternatively, in accordance with the terms contained in
-## a written agreement between you and The Qt Company. For licensing terms
-## and conditions see https://www.qt.io/terms-conditions. For further
-## information use the contact form at https://www.qt.io/contact-us.
-##
-## BSD License Usage
-## Alternatively, you may use this file under the terms of the BSD license
-## as follows:
-##
-## "Redistribution and use in source and binary forms, with or without
-## modification, are permitted provided that the following conditions are
-## met:
-## * Redistributions of source code must retain the above copyright
-## notice, this list of conditions and the following disclaimer.
-## * Redistributions in binary form must reproduce the above copyright
-## notice, this list of conditions and the following disclaimer in
-## the documentation and/or other materials provided with the
-## distribution.
-## * Neither the name of The Qt Company Ltd nor the names of its
-## contributors may be used to endorse or promote products derived
-## from this software without specific prior written permission.
-##
-##
-## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-##
-## $QT_END_LICENSE$
-##
-############################################################################
-
-//! [0]
-def paintEvent(self, event):
- painter = QPainter(self)
- painter.setPen(QPen(Qt.blue, 1, Qt.DashLine))
- painter.drawRect(0, 0, 100, 100)
-
- painter.rotate(45)
-
- painter.setFont(QFont("Helvetica", 24))
- painter.setPen(QPen(Qt.black, 1))
- painter.drawText(20, 10, "QMatrix")
-//! [0]
-
-
-//! [1]
-def paintEvent(self, event)
-
- painter = QPainter(self)
- painter.setPen(QPen(Qt.blue, 1, Qt.DashLine))
- painter.drawRect(0, 0, 100, 100)
-
- matrix = QMatrix()
- matrix.translate(50, 50)
- matrix.rotate(45)
- matrix.scale(0.5, 1.0)
- painter.setMatrix(matrix)
-
- painter.setFont(QFont("Helvetica", 24))
- painter.setPen(QPen(Qt.black, 1))
- painter.drawText(20, 10, "QMatrix")
-
-//! [1]
-
-
-//! [2]
-def paintEvent(self, event)
-
- pi = 3.14
-
- a = pi/180 * 45.0
- sina = sin(a)
- cosa = cos(a)
-
- translationMatrix = QMatrix(1, 0, 0, 1, 50.0, 50.0)
- rotationMatrix = QMatrix(cosa, sina, -sina, cosa, 0, 0)
- scalingMatrix = QMatrix(0.5, 0, 0, 1.0, 0, 0)
-
- matrix = QMatrix()
- matrix = scalingMatrix * rotationMatrix * translationMatrix
-
- painter = QPainter(self)
- painter.setPen(QPen(Qt.blue, 1, Qt::DashLine))
- painter.drawRect(0, 0, 100, 100)
-
- painter.setMatrix(matrix)
-
- painter.setFont(QFont("Helvetica", 24))
- painter.setPen(QPen(Qt.black, 1))
- painter.drawText(20, 10, "QMatrix")
-
-//! [2]
-
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/mdiareasnippets.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/mdiareasnippets.cpp
deleted file mode 100644
index f7d07c8f4..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/mdiareasnippets.cpp
+++ /dev/null
@@ -1,66 +0,0 @@
-############################################################################
-##
-## Copyright (C) 2016 The Qt Company Ltd.
-## Contact: https://www.qt.io/licensing/
-##
-## This file is part of the examples of Qt for Python.
-##
-## $QT_BEGIN_LICENSE:BSD$
-## Commercial License Usage
-## Licensees holding valid commercial Qt licenses may use this file in
-## accordance with the commercial license agreement provided with the
-## Software or, alternatively, in accordance with the terms contained in
-## a written agreement between you and The Qt Company. For licensing terms
-## and conditions see https://www.qt.io/terms-conditions. For further
-## information use the contact form at https://www.qt.io/contact-us.
-##
-## BSD License Usage
-## Alternatively, you may use this file under the terms of the BSD license
-## as follows:
-##
-## "Redistribution and use in source and binary forms, with or without
-## modification, are permitted provided that the following conditions are
-## met:
-## * Redistributions of source code must retain the above copyright
-## notice, this list of conditions and the following disclaimer.
-## * Redistributions in binary form must reproduce the above copyright
-## notice, this list of conditions and the following disclaimer in
-## the documentation and/or other materials provided with the
-## distribution.
-## * Neither the name of The Qt Company Ltd nor the names of its
-## contributors may be used to endorse or promote products derived
-## from this software without specific prior written permission.
-##
-##
-## THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-## "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-## LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-## A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-## OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-## DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-## THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-## (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-## OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-##
-## $QT_END_LICENSE$
-##
-############################################################################
-
-//! [0]
- mainWindow = QMainWindow()
- mainWindow.setCentralWidget(mdiArea)
-//! [0]
-
-//! [1]
- mdiArea = QMdiArea()
- subWindow1 = QMdiSubWindow()
- subWindow1.setWidget(internalWidget1)
- subWindow1.setAttribute(Qt.WA_DeleteOnClose)
- mdiArea.addSubWindow(subWindow1)
-
- subWindow2 = QMdiSubWindow()
- mdiArea.addSubWindow(internalWidget2)
-//! [1]
-
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/moc/myclass1.h b/sources/pyside6/doc/codesnippets/doc/src/snippets/moc/myclass1.h
deleted file mode 100644
index 0391b48aa..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/moc/myclass1.h
+++ /dev/null
@@ -1,75 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef MYCLASS1_H
-#define MYCLASS1_H
-
-#include
-
-#define MyClass MyClass1
-
-//! [0]
-class MyClass : public QObject
-{
- Q_OBJECT
-
-public:
- MyClass(QObject *parent = 0);
- ~MyClass();
-
-signals:
- void mySignal();
-
-public slots:
- void mySlot();
-};
-//! [0]
-
-#endif
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/moc/myclass2.h b/sources/pyside6/doc/codesnippets/doc/src/snippets/moc/myclass2.h
deleted file mode 100644
index e39cb6a58..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/moc/myclass2.h
+++ /dev/null
@@ -1,76 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef MYCLASS2_H
-#define MYCLASS2_H
-
-#include
-
-#define MyClass MyClass2
-
-//! [0]
-class MyClass : public QObject
-{
- Q_OBJECT
- Q_PROPERTY(Priority priority READ priority WRITE setPriority)
- Q_ENUMS(Priority)
-
-public:
- enum Priority { High, Low, VeryHigh, VeryLow };
-
- MyClass(QObject *parent = 0);
- ~MyClass();
-
- void setPriority(Priority priority);
- Priority priority() const;
-};
-//! [0]
-
-#endif
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/moc/myclass3.h b/sources/pyside6/doc/codesnippets/doc/src/snippets/moc/myclass3.h
deleted file mode 100644
index 5110c6203..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/moc/myclass3.h
+++ /dev/null
@@ -1,69 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef MYCLASS3_H
-#define MYCLASS3_H
-
-#include
-
-//! [0]
-class MyClass : public QObject
-{
- Q_OBJECT
- Q_CLASSINFO("Author", "Oscar Peterson")
- Q_CLASSINFO("Status", "Active")
-
-public:
- MyClass(QObject *parent = 0);
- ~MyClass();
-};
-//! [0]
-
-#endif
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/modelview-subclasses/model.h b/sources/pyside6/doc/codesnippets/doc/src/snippets/modelview-subclasses/model.h
deleted file mode 100644
index e9f85877a..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/modelview-subclasses/model.h
+++ /dev/null
@@ -1,80 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef MODEL_H
-#define MODEL_H
-
-#include
-#include
-#include
-
-class LinearModel : public QAbstractListModel
-{
- Q_OBJECT
-public:
- LinearModel(QObject *parent = 0)
- : QAbstractListModel(parent) {}
-
- int rowCount(const QModelIndex &parent = QModelIndex()) const;
- QModelIndex index(int row, int column = 0, const QModelIndex &parent = QModelIndex()) const;
- QVariant data(const QModelIndex &index, int role) const;
-
- Qt::ItemFlags flags(const QModelIndex &index) const;
- bool setData(const QModelIndex &index, const QVariant &value,
- int role = Qt::EditRole);
-
- bool insertRows(int position, int rows, const QModelIndex &index = QModelIndex());
- bool removeRows(int position, int rows, const QModelIndex &index = QModelIndex());
-
-private:
- QVector values;
-};
-
-#endif
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/modelview-subclasses/view.h b/sources/pyside6/doc/codesnippets/doc/src/snippets/modelview-subclasses/view.h
deleted file mode 100644
index f6a5e710c..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/modelview-subclasses/view.h
+++ /dev/null
@@ -1,100 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef VIEW_H
-#define VIEW_H
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-class LinearView : public QAbstractItemView
-{
- Q_OBJECT
-public:
- LinearView(QWidget *parent = 0);
-
- QRect itemViewportRect(const QModelIndex &index) const;
- void ensureVisible(const QModelIndex &index);
- QModelIndex itemAt(int x, int y) const;
-
-protected slots:
- /*void dataChanged(const QModelIndex &topLeft, const QModelIndex
- &bottomRight);*/
- void rowsInserted(const QModelIndex &parent, int start, int end);
- void rowsRemoved(const QModelIndex &parent, int start, int end);
- /*void selectionChanged(const QItemSelection &deselected, const QItemSelection &selected);
- void verticalScrollbarAction(int action);
- void horizontalScrollbarAction(int action);*/
-
-protected:
- void setSelection(const QRect&, QItemSelectionModel::SelectionFlags command);
- QRect selectionViewportRect(const QItemSelection &selection) const;
- QRect itemRect(const QModelIndex &item) const;
- bool isIndexHidden(const QModelIndex &index) const;
- int horizontalOffset() const;
- int verticalOffset() const;
- QModelIndex moveCursor(QAbstractItemView::CursorAction cursorAction,
- Qt::KeyboardModifiers modifiers);
-
- void paintEvent(QPaintEvent *event);
- void resizeEvent(QResizeEvent *event);
- QSize sizeHint() const;
-
-private:
- int rows(const QModelIndex &index = QModelIndex()) const;
- void updateGeometries();
-};
-
-#endif
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/modelview-subclasses/window.h b/sources/pyside6/doc/codesnippets/doc/src/snippets/modelview-subclasses/window.h
deleted file mode 100644
index ac4988f5e..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/modelview-subclasses/window.h
+++ /dev/null
@@ -1,78 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef WINDOW_H
-#define WINDOW_H
-
-#include
-#include
-#include
-
-#include "model.h"
-#include "view.h"
-
-class MainWindow : public QMainWindow
-{
- Q_OBJECT
-public:
- MainWindow::MainWindow(QWidget *parent = 0);
-
-public slots:
- void selectOpenFile();
-
-private:
- void setupModelView();
- void openFile(const QString &fileName);
-
- LinearModel *model;
- LinearView *view;
-};
-
-#endif
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/myscrollarea.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/myscrollarea.cpp
deleted file mode 100644
index 375df1b90..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/myscrollarea.cpp
+++ /dev/null
@@ -1,112 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-from PySide6.QtCore import *
-from PySide6.QtGui import *
-import sys
-
-class MyScrollArea (QAbstractScrollArea):
- widget = None
-
- def __init__(widget):
- self.setWidget(widget);
-
- def setWidget(w):
- self.widget = w;
- self.widget.setParent(viewport());
- if not self.widget.testAttribute(Qt.WA_Resized):
- self.widget.resize(widget.sizeHint())
-
- self.verticalScrollBar().setValue(0)
- self.verticalScrollBar().setValue(0)
-
- self.updateArea()
-
-
- def updateWidgetPosition():
-//! [0]
- hvalue = self.horizontalScrollBar().value()
- vvalue = self.verticalScrollBar().value()
- topLeft = self.viewport().rect().topLeft()
-
- self.widget.move(topLeft.x() - hvalue, topLeft.y() - vvalue)
-//! [0]
-
-
- def scrollContentsBy(dx, dy):
- self.updateWidgetPosition()
-
- def updateArea():
-//! [1]
- areaSize = viewport().size()
- widgetSize = widget.size()
-
- self.verticalScrollBar().setPageStep(widgetSize.height())
- self.horizontalScrollBar().setPageStep(widgetSize.width())
- self.verticalScrollBar().setRange(0, widgetSize.height() - areaSize.height())
- self.horizontalScrollBar().setRange(0, widgetSize.width() - areaSize.width())
- self.updateWidgetPosition()
-//! [1]
-
- def resizeEvent(QResizeEvent):
- self.updateArea()
-
-app = QApplication(sys.argv)
-pixmap = QPixmap("mypixmap.png")
-label = QLabel()
-label.setPixmap(pixmap)
-area = MyScrollArea(label)
-area.resize(300, 300)
-area.show()
-
-area.setWidget(label)
-
-app.exec_();
-
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/network/tcpwait.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/network/tcpwait.cpp
deleted file mode 100644
index 426d0f844..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/network/tcpwait.cpp
+++ /dev/null
@@ -1,71 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the examples of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-from PySide6.QtGui import *
-from PySide6.QtNetwork import QTcpSocket
-
-def main():
- app = QCoreApplication()
-
- socket = QTcpSocket()
- socket.connectToHost("localhost", 1025)
-
-//! [0]
- numRead = 0
- numReadTotal = 0
-
- while(True):
- buffer = socket.read(50)
- # do whatever with array
- numReadTotal += buffer.size()
- if (buffer.size() == 0 && !socket.waitForReadyRead()):
- break
-//! [0]
- return app.exec_()
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/ntfsp.cpp b/sources/pyside6/doc/codesnippets/doc/src/snippets/ntfsp.cpp
deleted file mode 100644
index c50c3cd82..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/ntfsp.cpp
+++ /dev/null
@@ -1,60 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of Qt for Python.
-**
-** $QT_BEGIN_LICENSE:BSD$
-** Commercial License Usage
-** Licensees holding valid commercial Qt licenses may use this file in
-** accordance with the commercial license agreement provided with the
-** Software or, alternatively, in accordance with the terms contained in
-** a written agreement between you and The Qt Company. For licensing terms
-** and conditions see https://www.qt.io/terms-conditions. For further
-** information use the contact form at https://www.qt.io/contact-us.
-**
-** BSD License Usage
-** Alternatively, you may use this file under the terms of the BSD license
-** as follows:
-**
-** "Redistribution and use in source and binary forms, with or without
-** modification, are permitted provided that the following conditions are
-** met:
-** * Redistributions of source code must retain the above copyright
-** notice, this list of conditions and the following disclaimer.
-** * Redistributions in binary form must reproduce the above copyright
-** notice, this list of conditions and the following disclaimer in
-** the documentation and/or other materials provided with the
-** distribution.
-** * Neither the name of The Qt Company Ltd nor the names of its
-** contributors may be used to endorse or promote products derived
-** from this software without specific prior written permission.
-**
-**
-** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-
-//! [0]
-extern Q_CORE_EXPORT int qt_ntfs_permission_lookup;
-//! [0]
-
-//! [1]
-qt_ntfs_permission_lookup += 1 // turn checking on
-qt_ntfs_permission_lookup += 1 // turn it off again
-//! [1]
-
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/anyHTMLElement.xq b/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/anyHTMLElement.xq
deleted file mode 100644
index 9f5ee1275..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/anyHTMLElement.xq
+++ /dev/null
@@ -1 +0,0 @@
-doc('data.xml')/*:body
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/anyXLinkAttribute.xq b/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/anyXLinkAttribute.xq
deleted file mode 100644
index 059bcc081..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/anyXLinkAttribute.xq
+++ /dev/null
@@ -1,2 +0,0 @@
-declare namespace xlink = "http://www.w3.org/1999/xlink";
-doc('image.svg')//@xlink:*
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/bracesIncluded.xq b/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/bracesIncluded.xq
deleted file mode 100644
index 3961c2838..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/bracesIncluded.xq
+++ /dev/null
@@ -1 +0,0 @@
-{sum((1, 2, 3))}
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/bracesIncludedResult.xml b/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/bracesIncludedResult.xml
deleted file mode 100644
index 0004c7126..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/bracesIncludedResult.xml
+++ /dev/null
@@ -1 +0,0 @@
-6
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/bracesOmitted.xq b/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/bracesOmitted.xq
deleted file mode 100644
index ffbadd077..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/bracesOmitted.xq
+++ /dev/null
@@ -1 +0,0 @@
-sum({(1, 2, 3)})
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/bracesOmittedResult.xml b/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/bracesOmittedResult.xml
deleted file mode 100644
index 744fb8fe6..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/bracesOmittedResult.xml
+++ /dev/null
@@ -1,2 +0,0 @@
-
-sum(1 2 3)
\ No newline at end of file
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/computedTreeFragment.xq b/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/computedTreeFragment.xq
deleted file mode 100644
index c5b93ada6..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/computedTreeFragment.xq
+++ /dev/null
@@ -1,14 +0,0 @@
-declare default element namespace "http://example.com/Namespace";
-declare variable $documentElementName := "doc";
-
-element {$documentElementName}
-{
- attribute xml:base {"http://example.com/"},
- element anotherElement
- {
- comment {" a comment "},
- processing-instruction target {"data"},
- element anotherElement {()},
- text {"some text"}
- }
-}
diff --git a/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/copyAttribute.xq b/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/copyAttribute.xq
deleted file mode 100644
index 40e44942c..000000000
--- a/sources/pyside6/doc/codesnippets/doc/src/snippets/patternist/copyAttribute.xq
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-