summaryrefslogtreecommitdiffstats
path: root/src/platformheaders
diff options
context:
space:
mode:
Diffstat (limited to 'src/platformheaders')
-rw-r--r--src/platformheaders/cocoafunctions/cocoafunctions.pri1
-rw-r--r--src/platformheaders/cocoafunctions/qcocoawindowfunctions.h63
-rw-r--r--src/platformheaders/cocoafunctions/qcocoawindowfunctions.qdoc58
-rw-r--r--src/platformheaders/doc/qtplatformheaders.qdocconf42
-rw-r--r--src/platformheaders/doc/snippets/qwindowswindowfunctions/main.cpp71
-rw-r--r--src/platformheaders/doc/snippets/qxcbwindowfunctions/main.cpp71
-rw-r--r--src/platformheaders/doc/src/dontdocument.qdoc30
-rw-r--r--src/platformheaders/doc/src/qtplatformheaders.qdoc100
-rw-r--r--src/platformheaders/eglfsfunctions/eglfsfunctions.pri1
-rw-r--r--src/platformheaders/eglfsfunctions/qeglfsfunctions.h133
-rw-r--r--src/platformheaders/eglfsfunctions/qeglfsfunctions.qdoc172
-rw-r--r--src/platformheaders/helper/helper.pri2
-rw-r--r--src/platformheaders/helper/qplatformheaderhelper.h93
-rw-r--r--src/platformheaders/linuxfbfunctions/linuxfbfunctions.pri1
-rw-r--r--src/platformheaders/linuxfbfunctions/qlinuxfbfunctions.h74
-rw-r--r--src/platformheaders/linuxfbfunctions/qlinuxfbfunctions.qdoc82
-rw-r--r--src/platformheaders/nativecontexts/nativecontexts.pri4
-rw-r--r--src/platformheaders/nativecontexts/qcocoanativecontext.h72
-rw-r--r--src/platformheaders/nativecontexts/qcocoanativecontext.qdoc58
-rw-r--r--src/platformheaders/nativecontexts/qeglnativecontext.h78
-rw-r--r--src/platformheaders/nativecontexts/qeglnativecontext.qdoc70
-rw-r--r--src/platformheaders/nativecontexts/qglxnativecontext.h88
-rw-r--r--src/platformheaders/nativecontexts/qglxnativecontext.qdoc83
-rw-r--r--src/platformheaders/nativecontexts/qwglnativecontext.h79
-rw-r--r--src/platformheaders/nativecontexts/qwglnativecontext.qdoc131
-rw-r--r--src/platformheaders/platformheaders.pro19
-rw-r--r--src/platformheaders/waylandfunctions/qwaylandwindowfunctions.h86
-rw-r--r--src/platformheaders/waylandfunctions/waylandfunctions.pri1
-rw-r--r--src/platformheaders/windowsfunctions/qwindowswindowfunctions.h117
-rw-r--r--src/platformheaders/windowsfunctions/qwindowswindowfunctions.qdoc211
-rw-r--r--src/platformheaders/windowsfunctions/windowsfunctions.pri1
-rw-r--r--src/platformheaders/xcbfunctions/qxcbscreenfunctions.h62
-rw-r--r--src/platformheaders/xcbfunctions/qxcbwindowfunctions.h108
-rw-r--r--src/platformheaders/xcbfunctions/qxcbwindowfunctions.qdoc165
-rw-r--r--src/platformheaders/xcbfunctions/xcbfunctions.pri3
35 files changed, 0 insertions, 2430 deletions
diff --git a/src/platformheaders/cocoafunctions/cocoafunctions.pri b/src/platformheaders/cocoafunctions/cocoafunctions.pri
deleted file mode 100644
index 3987523f9a..0000000000
--- a/src/platformheaders/cocoafunctions/cocoafunctions.pri
+++ /dev/null
@@ -1 +0,0 @@
-HEADERS += $$PWD/qcocoawindowfunctions.h
diff --git a/src/platformheaders/cocoafunctions/qcocoawindowfunctions.h b/src/platformheaders/cocoafunctions/qcocoawindowfunctions.h
deleted file mode 100644
index 248900ad2a..0000000000
--- a/src/platformheaders/cocoafunctions/qcocoawindowfunctions.h
+++ /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 plugins of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QCOCOAWINDOWFUNCTIONS_H
-#define QCOCOAWINDOWFUNCTIONS_H
-
-#include <QtPlatformHeaders/QPlatformHeaderHelper>
-
-QT_BEGIN_NAMESPACE
-
-class QWindow;
-
-class QCocoaWindowFunctions {
-public:
- typedef QPoint (*BottomLeftClippedByNSWindowOffset)(QWindow *window);
- static const QByteArray bottomLeftClippedByNSWindowOffsetIdentifier() { return QByteArrayLiteral("CocoaBottomLeftClippedByNSWindowOffset"); }
-
- static QPoint bottomLeftClippedByNSWindowOffset(QWindow *window)
- {
- return QPlatformHeaderHelper::callPlatformFunction<QPoint, BottomLeftClippedByNSWindowOffset>(bottomLeftClippedByNSWindowOffsetIdentifier(),window);
- }
-};
-
-
-QT_END_NAMESPACE
-
-#endif // QCOCOAWINDOWFUNCTIONS_H
diff --git a/src/platformheaders/cocoafunctions/qcocoawindowfunctions.qdoc b/src/platformheaders/cocoafunctions/qcocoawindowfunctions.qdoc
deleted file mode 100644
index e164a92e22..0000000000
--- a/src/platformheaders/cocoafunctions/qcocoawindowfunctions.qdoc
+++ /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 documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** 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.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \class QCocoaWindowFunctions
- \inmodule QtPlatformHeaders
-
- \brief The QCocoaWindowFunctions class is an inline class containing
- miscellaneous functionality for NSWindow and NSView window specific functionality.
-
- \note There is no binary compatibility guarantee for this class,
- meaning that an application using it is only guaranteed to work with the Qt
- version it was developed against.
-*/
-
-/*!
- \typedef QCocoaWindowFunctions::BottomLeftClippedByNSWindowOffset
-
- This is the typedef for the function returned by QGuiApplication::platformFunction when passed clippedByNSWindowIdentifier.
-*/
-
-/*!
- \fn QByteArray QCocoaWindowFunctions::bottomLeftClippedByNSWindowOffsetIdentifier()
-
- This function returns the bytearray that can be used to query
- QGuiApplication::platformFunction to retrieve the BottomLeftClippedByNSWindowOffset function.
-*/
-
-/*!
- \fn QPoint QCocoaWindowFunctions::bottomLeftClippedByNSWindowOffset(QWindow *window)
-
- This is a convenience function that can be used directly instead of resolving the function pointer.
- \a window will be relayed to the function retrieved by QGuiApplication
-*/
diff --git a/src/platformheaders/doc/qtplatformheaders.qdocconf b/src/platformheaders/doc/qtplatformheaders.qdocconf
deleted file mode 100644
index c8868d678b..0000000000
--- a/src/platformheaders/doc/qtplatformheaders.qdocconf
+++ /dev/null
@@ -1,42 +0,0 @@
-include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf)
-include($QT_INSTALL_DOCS/config/exampleurl-qtbase.qdocconf)
-
-project = QtPlatformHeaders
-description = Qt Platform Headers Reference Documentation
-version = $QT_VERSION
-
-examplesinstallpath = qtplatformheaders
-
-qhp.projects = QtPlatformHeaders
-
-qhp.QtPlatformHeaders.file = qtplatformheaders.qhp
-qhp.QtPlatformHeaders.namespace = org.qt-project.qtplatformheaders.$QT_VERSION_TAG
-qhp.QtPlatformHeaders.virtualFolder = qtplatformheaders
-qhp.QtPlatformHeaders.indexTitle = Qt Platform Headers
-qhp.QtPlatformHeaders.indexRoot =
-
-qhp.QtPlatformHeaders.filterAttributes = qtplatformheaders $QT_VERSION qtrefdoc
-qhp.QtPlatformHeaders.customFilters.Qt.name = QtPlatformHeaders $QT_VERSION
-qhp.QtPlatformHeaders.customFilters.Qt.filterAttributes = qtplatformheaders $QT_VERSION
-
-qhp.QtPlatformHeaders.subprojects = classes
-qhp.QtPlatformHeaders.subprojects.classes.title = C++ Classes
-qhp.QtPlatformHeaders.subprojects.classes.indexTitle = Qt Platform Headers C++ Classes
-qhp.QtPlatformHeaders.subprojects.classes.selectors = class fake:headerfile
-qhp.QtPlatformHeaders.subprojects.classes.sortPages = true
-
-depends += \
- qtcore \
- qtgui \
- qtwidgets \
- qtdoc
-
-headerdirs += ..
-sourcedirs += ..
-exampledirs += snippets
-imagedirs += images
-
-tagfile = qtplatformheaders.tags
-
-navigation.landingpage = "Qt Platform Headers"
-navigation.cppclassespage = "Qt Platform Headers C++ Classes"
diff --git a/src/platformheaders/doc/snippets/qwindowswindowfunctions/main.cpp b/src/platformheaders/doc/snippets/qwindowswindowfunctions/main.cpp
deleted file mode 100644
index f8f4f28ed3..0000000000
--- a/src/platformheaders/doc/snippets/qwindowswindowfunctions/main.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 documentation of the Qt Toolkit.
-**
-** $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$
-**
-****************************************************************************/
-
-#include <QtWidgets>
-#include <QtPlatformHeaders/qwindowswindowfunctions.h>
-
-//! [0]
-int main(int argc, char **argv)
-{
- QApplication app(argc, argv);
-
- QPushButton topLevelWidget("Hello World!");
- topLevelWidget.winId(); //have to create the QWindow
-
- QWindow *tlwWindow = topLevelWidget.windowHandle();
-
- QWindowsWindowFunctions::setTouchWindowTouchType(tlwWindow, QWindowsWindowFunctions::WantPalmTouch);
-
- topLevelWidget.show();
-
- return app.exec();
-}
-//! [0]
-
diff --git a/src/platformheaders/doc/snippets/qxcbwindowfunctions/main.cpp b/src/platformheaders/doc/snippets/qxcbwindowfunctions/main.cpp
deleted file mode 100644
index c2b66e6aa2..0000000000
--- a/src/platformheaders/doc/snippets/qxcbwindowfunctions/main.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 documentation of the Qt Toolkit.
-**
-** $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$
-**
-****************************************************************************/
-
-#include <QtWidgets>
-#include <QtPlatformHeaders/qxcbwindowfunctions.h>
-
-//! [0]
-int main(int argc, char **argv)
-{
- QApplication app(argc, argv);
-
- QPushButton topLevelWidget("Hello World!");
- topLevelWidget.winId(); //have to create the QWindow
-
- QWindow *tlwWindow = topLevelWidget.windowHandle();
-
- QXcbWindowFunctions::setWmWindowType(tlwWindow, QXcbWindowFunctions::Dock);
-
- topLevelWidget.show();
-
- return app.exec();
-}
-//! [0]
-
diff --git a/src/platformheaders/doc/src/dontdocument.qdoc b/src/platformheaders/doc/src/dontdocument.qdoc
deleted file mode 100644
index dc02c6473e..0000000000
--- a/src/platformheaders/doc/src/dontdocument.qdoc
+++ /dev/null
@@ -1,30 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2019 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** 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.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \dontdocument (QMetaTypeId)
-*/
diff --git a/src/platformheaders/doc/src/qtplatformheaders.qdoc b/src/platformheaders/doc/src/qtplatformheaders.qdoc
deleted file mode 100644
index 6eb7b27cce..0000000000
--- a/src/platformheaders/doc/src/qtplatformheaders.qdoc
+++ /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 documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** 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.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \module QtPlatformHeaders
- \title Qt Platform Headers C++ Classes
- \ingroup modules
-
- \brief The Qt Platform Headers module offers header-only inline classes that
- encapsulate platform-specific information that is tied to a given runtime
- configuration of a platform plugin.
-*/
-
-/*!
- \page qtplatformheaders-index.html
- \title Qt Platform Headers
-
- \brief The Qt Platform Headers module offers header-only inline classes that
- encapsulate platform-specific information that is tied to a given runtime
- configuration of a platform plugin.
-
- Some applications may need to interface Qt with other frameworks. This often
- means using graphics contexts or other types of native handles created by
- one framework with another. For example, on some platforms, QOpenGLContext
- offers the ability to wrap an existing native OpenGL context, instead of
- creating a new one. This existing native context can be created by some
- other third-party code.
-
- The type of such native handles is highly platform specific and in some
- cases the platform plugin will need more information to adopt a handle, just
- the handle in itself will not be sufficient. Therefore the public API
- consists of functions taking or returning a QVariant that contains a
- platform-specific value type. See for example
- QOpenGLContext::setNativeHandle() and QOpenGLContext::nativeHandle(). When
- running on Linux/X11, using the xcb platform plugin and the GLX windowing
- system interface, the variant contains a QGLXNativeContext. On other
- platforms a different class will be used. These classes are all placed in
- the Qt Platform Headers module.
-
- Platform headers can be used in conjunction with
- QGuiApplication::platformFunction() to give a type safe interface to
- platform specific functionality. It is possible for headers defined in
- QtPlatformHeaders to define typedefs for functions that can be returned by
- a platform plugin from QGuiApplication::platformFunction(). Headers in
- QtPlatformHeaders can also implement wrapper functions for the function
- pointer, giving a static function that can be called from any context after
- the platform integration has been created. An implementation of this
- pattern is QXcbWindowFunctions::setWmWindowType(). This function retrieves
- a function pointer from QGuiApplication::platformFunction, and executes
- that function if the requested function was returned.
-
- \note Similar to the other QPA APIs, there are no binary compatibility
- guarantees for these classes, meaning that an application using these
- classes is only guaranteed to work with the Qt version it was developed
- against. Unlike QPA however, source compatibility is guaranteed.
-
- \sa QXcbWindowFunctions QWindowsWindowFunctions
-
- \section1 Getting Started
-
- To include the definitions of the module's functions and classes, use the following directives:
- \code
- #include <QtPlatformHeaders/QWindowsWindowFunctions>
- #include <QtPlatformHeaders/QXcbWindowFunctions>
- \endcode
-
- As the module is header-only, no further modifications to the .pro files are required to use it.
-
- \note The module name (\c QtPlatformHeaders) must appear in the \c #include directive.
- \note It is not necessary to enclose the code in \c #ifdef directives depending on platform.
-
- \section1 API Reference
- \list
- \li \l{Qt Platform Headers C++ Classes}{C++ Classes}
- \endlist
- */
diff --git a/src/platformheaders/eglfsfunctions/eglfsfunctions.pri b/src/platformheaders/eglfsfunctions/eglfsfunctions.pri
deleted file mode 100644
index e4e645f5a5..0000000000
--- a/src/platformheaders/eglfsfunctions/eglfsfunctions.pri
+++ /dev/null
@@ -1 +0,0 @@
-HEADERS += $$PWD/qeglfsfunctions.h
diff --git a/src/platformheaders/eglfsfunctions/qeglfsfunctions.h b/src/platformheaders/eglfsfunctions/qeglfsfunctions.h
deleted file mode 100644
index 869fe7ce3f..0000000000
--- a/src/platformheaders/eglfsfunctions/qeglfsfunctions.h
+++ /dev/null
@@ -1,133 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the plugins of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QEGLFSFUNCTIONS_H
-#define QEGLFSFUNCTIONS_H
-
-#include <QtCore/QByteArray>
-#include <QtGui/QGuiApplication>
-
-QT_BEGIN_NAMESPACE
-
-class QEglFSFunctions
-{
-public:
- typedef void (*LoadKeymapType)(const QString &filename);
- typedef void (*SwitchLangType)();
- static QByteArray loadKeymapTypeIdentifier() { return QByteArrayLiteral("EglFSLoadKeymap"); }
- static QByteArray switchLangTypeIdentifier() { return QByteArrayLiteral("EglFSSwitchLang"); }
-
- static void loadKeymap(const QString &filename)
- {
- LoadKeymapType func = reinterpret_cast<LoadKeymapType>(QGuiApplication::platformFunction(loadKeymapTypeIdentifier()));
- if (func)
- func(filename);
- }
-
- static void switchLang()
- {
- SwitchLangType func = reinterpret_cast<SwitchLangType>(QGuiApplication::platformFunction(switchLangTypeIdentifier()));
- if (func)
- func();
- }
-
- typedef int (*Vsp2AddLayerType)(const QScreen *screen, int dmabufFd, const QSize &size, const QPoint &position, uint drmPixelFormat, uint bytesPerLine);
- static QByteArray vsp2AddLayerTypeIdentifier() { return QByteArrayLiteral("EglFSVsp2AddLayer"); }
-
- //vsp2 functions are currently internal and preliminary (see qdoc file)
- static int vsp2AddLayer(const QScreen *screen, int dmabufFd, const QSize &size, const QPoint &position, uint drmPixelFormat, uint bytesPerLine)
- {
- auto func = reinterpret_cast<Vsp2AddLayerType>(QGuiApplication::platformFunction(vsp2AddLayerTypeIdentifier()));
- if (func)
- return func(screen, dmabufFd, size, position, drmPixelFormat, bytesPerLine);
- return 0;
- }
-
- typedef bool (*Vsp2RemoveLayerType)(const QScreen *screen, int id);
- static QByteArray vsp2RemoveLayerTypeIdentifier() { return QByteArrayLiteral("EglFSVsp2RemoveLayer"); }
-
- static bool vsp2RemoveLayer(const QScreen *screen, int id)
- {
- auto func = reinterpret_cast<Vsp2RemoveLayerType>(QGuiApplication::platformFunction(vsp2RemoveLayerTypeIdentifier()));
- return func && func(screen, id);
- }
-
- typedef void (*Vsp2SetLayerBufferType)(const QScreen *screen, int id, int dmabufFd);
- static QByteArray vsp2SetLayerBufferTypeIdentifier() { return QByteArrayLiteral("EglFSVsp2SetLayerBuffer"); }
-
- static void vsp2SetLayerBuffer(const QScreen *screen, int id, int dmabufFd)
- {
- auto func = reinterpret_cast<Vsp2SetLayerBufferType>(QGuiApplication::platformFunction(vsp2SetLayerBufferTypeIdentifier()));
- if (func)
- func(screen, id, dmabufFd);
- }
-
- typedef bool (*Vsp2SetLayerPositionType)(const QScreen *screen, int id, const QPoint &position);
- static QByteArray vsp2SetLayerPositionTypeIdentifier() { return QByteArrayLiteral("EglFSVsp2SetLayerPosition"); }
-
- static bool vsp2SetLayerPosition(const QScreen *screen, int id, const QPoint &position)
- {
- auto func = reinterpret_cast<Vsp2SetLayerPositionType>(QGuiApplication::platformFunction(vsp2SetLayerPositionTypeIdentifier()));
- return func && func(screen, id, position);
- }
-
- typedef bool (*Vsp2SetLayerAlphaType)(const QScreen *screen, int id, qreal alpha);
- static QByteArray vsp2SetLayerAlphaTypeIdentifier() { return QByteArrayLiteral("EglFSVsp2SetLayerAlpha"); }
-
- static bool vsp2SetLayerAlpha(const QScreen *screen, int id, qreal alpha)
- {
- auto func = reinterpret_cast<Vsp2SetLayerAlphaType>(QGuiApplication::platformFunction(vsp2SetLayerAlphaTypeIdentifier()));
- return func && func(screen, id, alpha);
- }
-
- typedef void (*Vsp2AddBlendListenerType)(const QScreen *screen, void(*callback)());
- static QByteArray vsp2AddBlendListenerTypeIdentifier() { return QByteArrayLiteral("EglFSVsp2AddBlendListener"); }
-
- static void vsp2AddBlendListener(const QScreen *screen, void(*callback)())
- {
- auto func = reinterpret_cast<Vsp2AddBlendListenerType>(QGuiApplication::platformFunction(vsp2AddBlendListenerTypeIdentifier()));
- if (func)
- func(screen, callback);
- }
-};
-
-
-QT_END_NAMESPACE
-
-#endif // QEGLFSFUNCTIONS_H
diff --git a/src/platformheaders/eglfsfunctions/qeglfsfunctions.qdoc b/src/platformheaders/eglfsfunctions/qeglfsfunctions.qdoc
deleted file mode 100644
index a5f37f8377..0000000000
--- a/src/platformheaders/eglfsfunctions/qeglfsfunctions.qdoc
+++ /dev/null
@@ -1,172 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** 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.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \class QEglFSFunctions
- \inmodule QtPlatformHeaders
-
- \brief The QEglFSFunctions class is an inline class containing
- platform-specific functionality for the eglfs platform plugin that is
- typically used on systems running Embedded Linux or Android.
-
- \note There is no binary compatibility guarantee for this class,
- meaning that an application using it is only guaranteed to work with the Qt
- version it was developed against.
-*/
-
-/*!
- \typedef QEglFSFunctions::LoadKeymapType
-
- Function type for loadKeymap.
-*/
-
-/*!
- \fn QByteArray QEglFSFunctions::loadKeymapTypeIdentifier()
-
- \return the identifier that can be passed to
- QGuiApplication::platformFunction() to query the entry point for the
- loadKeymap function implementation.
-*/
-
-/*!
- \fn void QEglFSFunctions::loadKeymap(const QString &filename)
-
- Loads and switches to the keymap from \a filename. When \a filename is
- empty, the default keymap, which is either the built-on one or the keymap
- given in the plugin specification, is restored.
-
- \note This is functional only when the evdev keyboard support code is
- compiled in to the platform plugin. When using external generic plugins via
- the \c{-plugin} argument, or when the environment variable
- \c{QT_QPA_EGLFS_DISABLE_INPUT} is set or when building Qt without evdev
- support, this function will have no effect.
-*/
-
-/*!
- \fn void QEglFSFunctions::switchLang()
-
- Switches between English and other language when the keymap is loaded.
- Usually the keymap contains two languages: English and national. When
- you load the keymap, English is selected by default. This function allows
- to switch between these languages.
-
- \note This is functional only when the evdev keyboard support code is
- compiled in to the platform plugin. When using external generic plugins via
- the \c{-plugin} argument, or when the environment variable
- \c{QT_QPA_EGLFS_DISABLE_INPUT} is set or when building Qt without evdev
- support, this function will have no effect.
-*/
-
-/*!
- \fn int QEglFSFunctions::vsp2AddLayer(const QScreen *screen, int dmabufFd, const QSize &size, const QPoint &position, uint drmPixelFormat, uint bytesPerLine)
- \internal
- \preliminary
-*/
-
-/*!
- \fn bool QEglFSFunctions::vsp2RemoveLayer(const QScreen *screen, int id)
- \internal
- \preliminary
-*/
-
-/*!
- \fn void QEglFSFunctions::vsp2SetLayerBuffer(const QScreen *screen, int id, int dmabufFd)
- \internal
- \preliminary
-*/
-
-/*!
- \fn bool QEglFSFunctions::vsp2SetLayerPosition(const QScreen *screen, int id, const QPoint &position)
- \internal
- \preliminary
-*/
-
-/*!
- \fn bool QEglFSFunctions::vsp2SetLayerAlpha(const QScreen *screen, int id, qreal alpha)
- \internal
- \preliminary
-*/
-
-/*!
- \fn void QEglFSFunctions::vsp2AddBlendListener(const QScreen *screen, void(*callback)())
- \internal
- \preliminary
-*/
-
-/*!
- \typedef QEglFSFunctions::Vsp2AddBlendListenerType
- \internal
-*/
-
-/*!
- \typedef QEglFSFunctions::Vsp2AddLayerType
- \internal
-*/
-
-/*!
- \typedef QEglFSFunctions::Vsp2RemoveLayerType
- \internal
-*/
-
-/*!
- \typedef QEglFSFunctions::Vsp2SetLayerBufferType
- \internal
-*/
-
-/*!
- \typedef QEglFSFunctions::Vsp2SetLayerPositionType
- \internal
-*/
-
-/*!
- \typedef QEglFSFunctions::Vsp2SetLayerAlphaType
- \internal
-*/
-
-/*! \fn QByteArray QEglFSFunctions::vsp2AddBlendListenerTypeIdentifier()
- \internal
- */
-
-/*! \fn QByteArray QEglFSFunctions::vsp2AddLayerTypeIdentifier()
- \internal
- */
-
-/*! \fn QByteArray QEglFSFunctions::vsp2RemoveLayerTypeIdentifier()
- \internal
- */
-
-/*! \fn QByteArray QEglFSFunctions::vsp2SetLayerBufferTypeIdentifier()
- \internal
- */
-
-/*! \fn QByteArray QEglFSFunctions::vsp2SetLayerPositionTypeIdentifier()
- \internal
- */
-
-/*! \fn QByteArray QEglFSFunctions::vsp2SetLayerAlphaTypeIdentifier()
- \internal
- */
diff --git a/src/platformheaders/helper/helper.pri b/src/platformheaders/helper/helper.pri
deleted file mode 100644
index 2f6e766214..0000000000
--- a/src/platformheaders/helper/helper.pri
+++ /dev/null
@@ -1,2 +0,0 @@
-HEADERS += \
- $$PWD/qplatformheaderhelper.h
diff --git a/src/platformheaders/helper/qplatformheaderhelper.h b/src/platformheaders/helper/qplatformheaderhelper.h
deleted file mode 100644
index 6959d889ae..0000000000
--- a/src/platformheaders/helper/qplatformheaderhelper.h
+++ /dev/null
@@ -1,93 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the plugins of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QPLATFORMHEADERHELPER_H
-#define QPLATFORMHEADERHELPER_H
-
-#include <QtCore/QByteArray>
-#include <QtGui/QGuiApplication>
-
-#if 0
-#pragma qt_class(QPlatformHeaderHelper)
-#endif
-
-QT_BEGIN_NAMESPACE
-
-namespace QPlatformHeaderHelper {
-
-template<typename ReturnT, typename FunctionT>
-ReturnT callPlatformFunction(const QByteArray &functionName)
-{
- FunctionT func = reinterpret_cast<FunctionT>(QGuiApplication::platformFunction(functionName));
- return func ? func() : ReturnT();
-}
-
-template<typename ReturnT, typename FunctionT, typename Arg1>
-ReturnT callPlatformFunction(const QByteArray &functionName, Arg1 a1)
-{
- FunctionT func = reinterpret_cast<FunctionT>(QGuiApplication::platformFunction(functionName));
- return func ? func(a1) : ReturnT();
-}
-
-template<typename ReturnT, typename FunctionT, typename Arg1, typename Arg2>
-ReturnT callPlatformFunction(const QByteArray &functionName, Arg1 a1, Arg2 a2)
-{
- FunctionT func = reinterpret_cast<FunctionT>(QGuiApplication::platformFunction(functionName));
- return func ? func(a1, a2) : ReturnT();
-}
-
-template<typename ReturnT, typename FunctionT, typename Arg1, typename Arg2, typename Arg3>
-ReturnT callPlatformFunction(const QByteArray &functionName, Arg1 a1, Arg2 a2, Arg3 a3)
-{
- FunctionT func = reinterpret_cast<FunctionT>(QGuiApplication::platformFunction(functionName));
- return func ? func(a1, a2, a3) : ReturnT();
-}
-
-template<typename ReturnT, typename FunctionT, typename Arg1, typename Arg2, typename Arg3, typename Arg4>
-ReturnT callPlatformFunction(const QByteArray &functionName, Arg1 a1, Arg2 a2, Arg3 a3, Arg4 a4)
-{
- FunctionT func = reinterpret_cast<FunctionT>(QGuiApplication::platformFunction(functionName));
- return func ? func(a1, a2, a3, a4) : ReturnT();
-}
-
-}
-
-QT_END_NAMESPACE
-
-#endif /*QPLATFORMHEADERHELPER_H*/
diff --git a/src/platformheaders/linuxfbfunctions/linuxfbfunctions.pri b/src/platformheaders/linuxfbfunctions/linuxfbfunctions.pri
deleted file mode 100644
index 8a092c3049..0000000000
--- a/src/platformheaders/linuxfbfunctions/linuxfbfunctions.pri
+++ /dev/null
@@ -1 +0,0 @@
-HEADERS += $$PWD/qlinuxfbfunctions.h
diff --git a/src/platformheaders/linuxfbfunctions/qlinuxfbfunctions.h b/src/platformheaders/linuxfbfunctions/qlinuxfbfunctions.h
deleted file mode 100644
index 94c4c24270..0000000000
--- a/src/platformheaders/linuxfbfunctions/qlinuxfbfunctions.h
+++ /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 plugins of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QLINUXFBFUNCTIONS_H
-#define QLINUXFBFUNCTIONS_H
-
-#include <QtCore/QByteArray>
-#include <QtGui/QGuiApplication>
-
-QT_BEGIN_NAMESPACE
-
-class QLinuxFbFunctions
-{
-public:
- typedef void (*LoadKeymapType)(const QString &filename);
- typedef void (*SwitchLangType)();
- static QByteArray loadKeymapTypeIdentifier() { return QByteArrayLiteral("LinuxFbLoadKeymap"); }
- static QByteArray switchLangTypeIdentifier() { return QByteArrayLiteral("LinuxFbSwitchLang"); }
-
- static void loadKeymap(const QString &filename)
- {
- LoadKeymapType func = reinterpret_cast<LoadKeymapType>(QGuiApplication::platformFunction(loadKeymapTypeIdentifier()));
- if (func)
- func(filename);
- }
-
- static void switchLang()
- {
- SwitchLangType func = reinterpret_cast<SwitchLangType>(QGuiApplication::platformFunction(switchLangTypeIdentifier()));
- if (func)
- func();
- }
-};
-
-
-QT_END_NAMESPACE
-
-#endif // QLINUXFBFUNCTIONS_H
diff --git a/src/platformheaders/linuxfbfunctions/qlinuxfbfunctions.qdoc b/src/platformheaders/linuxfbfunctions/qlinuxfbfunctions.qdoc
deleted file mode 100644
index 939aa76946..0000000000
--- a/src/platformheaders/linuxfbfunctions/qlinuxfbfunctions.qdoc
+++ /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 the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** 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.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \class QLinuxFbFunctions
- \inmodule QtPlatformHeaders
-
- \brief The QLinuxFbFunctions class is an inline class containing
- platform-specific functionality for the linuxfb platform plugin that is
- typically used on systems running Embedded Linux or Android.
-
- \note There is no binary compatibility guarantee for this class,
- meaning that an application using it is only guaranteed to work with the Qt
- version it was developed against.
-*/
-
-/*!
- \typedef QLinuxFbFunctions::LoadKeymapType
-
- Function type for loadKeymap.
-*/
-
-/*!
- \fn QByteArray QLinuxFbFunctions::loadKeymapTypeIdentifier()
-
- \return the identifier that can be passed to
- QGuiApplication::platformFunction() to query the entry point for the
- loadKeymap function implementation.
-*/
-
-/*!
- \fn void QLinuxFbFunctions::loadKeymap(const QString &filename)
-
- Loads and switches to the keymap from \a filename. When \a filename is
- empty, the default keymap, which is either the built-on one or the keymap
- given in the plugin specification, is restored.
-
- \note This is functional only when the evdev keyboard support code is
- compiled in to the platform plugin. When using external generic plugins via
- the \c{-plugin} argument, or when the environment variable
- \c{QT_QPA_FB_DISABLE_INPUT} is set or when building Qt without evdev
- support, this function will have no effect.
-*/
-
-/*!
- \fn void QLinuxFbFunctions::switchLang()
-
- Switches between English and other language when the keymap is loaded.
- Usually the keymap contains two languages: English and national. When
- you load the keymap, English is selected by default. This function allows
- to switch between these languages.
-
- \note This is functional only when the evdev keyboard support code is
- compiled in to the platform plugin. When using external generic plugins via
- the \c{-plugin} argument, or when the environment variable
- \c{QT_QPA_FB_DISABLE_INPUT} is set or when building Qt without evdev
- support, this function will have no effect.
-*/
diff --git a/src/platformheaders/nativecontexts/nativecontexts.pri b/src/platformheaders/nativecontexts/nativecontexts.pri
deleted file mode 100644
index cfb190e4fa..0000000000
--- a/src/platformheaders/nativecontexts/nativecontexts.pri
+++ /dev/null
@@ -1,4 +0,0 @@
-HEADERS += $$PWD/qglxnativecontext.h \
- $$PWD/qeglnativecontext.h \
- $$PWD/qcocoanativecontext.h \
- $$PWD/qwglnativecontext.h
diff --git a/src/platformheaders/nativecontexts/qcocoanativecontext.h b/src/platformheaders/nativecontexts/qcocoanativecontext.h
deleted file mode 100644
index 8227485b15..0000000000
--- a/src/platformheaders/nativecontexts/qcocoanativecontext.h
+++ /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 plugins of the Qt Toolkit.
- **
- ** $QT_BEGIN_LICENSE:LGPL$
- ** 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.
- **
- ** GNU Lesser General Public License Usage
- ** Alternatively, this file may be used under the terms of the GNU Lesser
- ** General Public License version 3 as published by the Free Software
- ** Foundation and appearing in the file LICENSE.LGPL3 included in the
- ** packaging of this file. Please review the following information to
- ** ensure the GNU Lesser General Public License version 3 requirements
- ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
- **
- ** GNU General Public License Usage
- ** Alternatively, this file may be used under the terms of the GNU
- ** General Public License version 2.0 or (at your option) the GNU General
- ** Public license version 3 or any later version approved by the KDE Free
- ** Qt Foundation. The licenses are as published by the Free Software
- ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
- ** included in the packaging of this file. Please review the following
- ** information to ensure the GNU General Public License requirements will
- ** be met: https://www.gnu.org/licenses/gpl-2.0.html and
- ** https://www.gnu.org/licenses/gpl-3.0.html.
- **
- ** $QT_END_LICENSE$
- **
- ****************************************************************************/
-
-#ifndef QCOCOANATIVECONTEXT_H
-#define QCOCOANATIVECONTEXT_H
-
-#include <QtCore/QMetaType>
-#include <AppKit/NSOpenGL.h>
-
-QT_BEGIN_NAMESPACE
-
-#if defined(Q_CLANG_QDOC)
-typedef void NSOpenGLContext;
-#endif
-
-struct QCocoaNativeContext
-{
- QCocoaNativeContext()
- : m_context(0)
- { }
-
- QCocoaNativeContext(NSOpenGLContext *ctx)
- : m_context(ctx)
- { }
-
- NSOpenGLContext *context() const { return m_context; }
-
-private:
- NSOpenGLContext *m_context;
-};
-
-QT_END_NAMESPACE
-
-Q_DECLARE_METATYPE(QCocoaNativeContext)
-
-#endif // QCOCOANATIVECONTEXT_H
diff --git a/src/platformheaders/nativecontexts/qcocoanativecontext.qdoc b/src/platformheaders/nativecontexts/qcocoanativecontext.qdoc
deleted file mode 100644
index 7cb4138207..0000000000
--- a/src/platformheaders/nativecontexts/qcocoanativecontext.qdoc
+++ /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 documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** 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.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \class QCocoaNativeContext
- \inmodule QtPlatformHeaders
- \since 5.4
-
- \brief A class encapsulating a Cocoa NSOpenGLContext.
-
- \note There is no binary compatibility guarantee for this class, meaning
- that an application using it is only guaranteed to work with the Qt version it was
- developed against.
-
- \sa QOpenGLContext::setNativeHandle(), QOpenGLContext::nativeHandle()
- */
-
-/*!
- \fn NSOpenGLContext *QCocoaNativeContext::context() const
-
- \return the context.
- */
-
-/*!
- \fn QCocoaNativeContext::QCocoaNativeContext()
-
- Construct a new instance with no handles.
- */
-
-/*!
- \fn QCocoaNativeContext::QCocoaNativeContext(NSOpenGLContext *ctx)
-
- Constructs a new instance with the provided \a ctx handle.
- */
diff --git a/src/platformheaders/nativecontexts/qeglnativecontext.h b/src/platformheaders/nativecontexts/qeglnativecontext.h
deleted file mode 100644
index 5af2b304fe..0000000000
--- a/src/platformheaders/nativecontexts/qeglnativecontext.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 plugins of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QEGLNATIVECONTEXT_H
-#define QEGLNATIVECONTEXT_H
-
-#include <QtCore/QMetaType>
-
-// Leave including egl.h with the appropriate defines to the client.
-
-QT_BEGIN_NAMESPACE
-
-#if defined(Q_CLANG_QDOC)
-typedef int EGLContext;
-typedef int EGLDisplay;
-#endif
-
-struct QEGLNativeContext
-{
- QEGLNativeContext()
- : m_context(nullptr),
- m_display(nullptr)
- { }
-
- QEGLNativeContext(EGLContext ctx, EGLDisplay dpy)
- : m_context(ctx),
- m_display(dpy)
- { }
-
- EGLContext context() const { return m_context; }
- EGLDisplay display() const { return m_display; }
-
-private:
- EGLContext m_context;
- EGLDisplay m_display;
-};
-
-QT_END_NAMESPACE
-
-Q_DECLARE_METATYPE(QEGLNativeContext)
-
-#endif // QEGLNATIVECONTEXT_H
diff --git a/src/platformheaders/nativecontexts/qeglnativecontext.qdoc b/src/platformheaders/nativecontexts/qeglnativecontext.qdoc
deleted file mode 100644
index 3779ea10c8..0000000000
--- a/src/platformheaders/nativecontexts/qeglnativecontext.qdoc
+++ /dev/null
@@ -1,70 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** 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.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \class QEGLNativeContext
- \inmodule QtPlatformHeaders
- \since 5.4
-
- \brief A class encapsulating an EGL context and display handle.
-
- \note There is no binary compatibility guarantee for this class, meaning
- that an application using it is only guaranteed to work with the Qt version it was
- developed against.
-
- \note Due to being public while relying on otherwise hidden EGL types, this header
- itself does not include \c{EGL/egl.h}. It is the application's responsibility to
- include egl.h with any appropriate defines (for example, \c{MESA_EGL_NO_X11_HEADERS}
- or other vendor-specific defines controlling the typedefs for EGL's native resources)
- before this header.
-
- \sa QOpenGLContext::setNativeHandle(), QOpenGLContext::nativeHandle()
- */
-
-/*!
- \fn EGLContext QEGLNativeContext::context() const
-
- \return the EGL context.
- */
-
-/*!
- \fn EGLDisplay QEGLNativeContext::display() const
-
- \return the EGL display.
- */
-
-/*!
- \fn QEGLNativeContext::QEGLNativeContext()
-
- Construct a new instance with no handles.
- */
-
-/*!
- \fn QEGLNativeContext::QEGLNativeContext(EGLContext ctx, EGLDisplay dpy)
-
- Constructs a new instance with the provided \a ctx and \a dpy handles.
- */
diff --git a/src/platformheaders/nativecontexts/qglxnativecontext.h b/src/platformheaders/nativecontexts/qglxnativecontext.h
deleted file mode 100644
index 989d68eb9e..0000000000
--- a/src/platformheaders/nativecontexts/qglxnativecontext.h
+++ /dev/null
@@ -1,88 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the plugins of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QGLXNATIVECONTEXT_H
-#define QGLXNATIVECONTEXT_H
-
-#include <QtCore/QMetaType>
-#include <X11/Xlib.h>
-#include <GL/glx.h>
-
-QT_BEGIN_NAMESPACE
-
-#if defined(Q_CLANG_QDOC)
-typedef int GLXContext;
-typedef void Display;
-typedef int Window;
-typedef int VisualID;
-#endif
-
-struct QGLXNativeContext
-{
- QGLXNativeContext()
- : m_context(nullptr),
- m_display(nullptr),
- m_window(0),
- m_visualId(0)
- { }
-
- QGLXNativeContext(GLXContext ctx, Display *dpy = nullptr, Window wnd = 0, VisualID vid = 0)
- : m_context(ctx),
- m_display(dpy),
- m_window(wnd),
- m_visualId(vid)
- { }
-
- GLXContext context() const { return m_context; }
- Display *display() const { return m_display; }
- Window window() const { return m_window; }
- VisualID visualId() const { return m_visualId; }
-
-private:
- GLXContext m_context;
- Display *m_display;
- Window m_window;
- VisualID m_visualId;
-};
-
-QT_END_NAMESPACE
-
-Q_DECLARE_METATYPE(QGLXNativeContext)
-
-#endif // QGLXNATIVECONTEXT_H
diff --git a/src/platformheaders/nativecontexts/qglxnativecontext.qdoc b/src/platformheaders/nativecontexts/qglxnativecontext.qdoc
deleted file mode 100644
index 56182534a5..0000000000
--- a/src/platformheaders/nativecontexts/qglxnativecontext.qdoc
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** 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.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \class QGLXNativeContext
- \inmodule QtPlatformHeaders
- \since 5.4
-
- \brief A class encapsulating a GLXContext and related native handles.
-
- \note Only context() is guaranteed to be valid. The other handles may be all \c 0. They are
- useful however when QOpenGLContext::setNativeHandle() is used to adopt a legacy context
- created by glXCreateContext. To adopt such a context, either the Window or VisualID
- that had been used to create the context needs to be known, otherwise the adoption will
- fail. For modern contexts created with an FBConfig, these are not necessary, the
- GLXContext itself is sufficient. The Display is optional.
-
- \note There is no binary compatibility guarantee for this class, meaning
- that an application using it is only guaranteed to work with the Qt version it was
- developed against.
-
- \sa QOpenGLContext::setNativeHandle(), QOpenGLContext::nativeHandle()
- */
-
-/*!
- \fn GLXContext QGLXNativeContext::context() const
-
- \return the GLXContext.
- */
-
-/*!
- \fn Display *QGLXNativeContext::display() const
-
- \return a pointer to the X11 display or \c NULL if not available.
- */
-
-/*!
- \fn Window QGLXNativeContext::window() const
-
- \return the X11 Window or \c 0 if not available.
- */
-
-/*!
- \fn VisualID QGLXNativeContext::visualId() const
-
- \return the X11 visual ID or \c 0 if not available.
- */
-
-/*!
- \fn QGLXNativeContext::QGLXNativeContext()
-
- Construct a new instance with no handles.
- */
-
-/*!
- \fn QGLXNativeContext::QGLXNativeContext(GLXContext ctx, Display *dpy, Window wnd, VisualID vid)
-
- Constructs a new instance with the provided \a ctx, \a dpy, \a wnd, \a vid handles.
- */
diff --git a/src/platformheaders/nativecontexts/qwglnativecontext.h b/src/platformheaders/nativecontexts/qwglnativecontext.h
deleted file mode 100644
index 24244b285f..0000000000
--- a/src/platformheaders/nativecontexts/qwglnativecontext.h
+++ /dev/null
@@ -1,79 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the plugins of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QWGLNATIVECONTEXT_H
-#define QWGLNATIVECONTEXT_H
-
-#include <QtCore/QMetaType>
-#include <wingdi.h>
-#include <GL/gl.h>
-
-QT_BEGIN_NAMESPACE
-
-#if defined(Q_CLANG_QDOC)
-typedef int HGLRC;
-typedef int HWND;
-#endif
-
-class QWGLNativeContext
-{
-public:
- QWGLNativeContext()
- : m_context(0),
- m_window(0)
- { }
-
- QWGLNativeContext(HGLRC ctx, HWND wnd)
- : m_context(ctx),
- m_window(wnd)
- { }
-
- HGLRC context() const { return m_context; }
- HWND window() const { return m_window; }
-
-private:
- HGLRC m_context;
- HWND m_window;
-};
-
-QT_END_NAMESPACE
-
-Q_DECLARE_METATYPE(QWGLNativeContext)
-
-#endif // QWGLNATIVECONTEXT_H
diff --git a/src/platformheaders/nativecontexts/qwglnativecontext.qdoc b/src/platformheaders/nativecontexts/qwglnativecontext.qdoc
deleted file mode 100644
index 20563c3906..0000000000
--- a/src/platformheaders/nativecontexts/qwglnativecontext.qdoc
+++ /dev/null
@@ -1,131 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** 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.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \class QWGLNativeContext
- \inmodule QtPlatformHeaders
- \since 5.4
-
- \brief A class encapsulating a WGL context on Windows with desktop OpenGL (opengl32.dll).
-
- \note There is no binary compatibility guarantee for this class,
- meaning that an application using it is only guaranteed to work with the Qt
- version it was developed against.
-
- QWGLNativeContext is a value class that can be passed to
- QOpenGLContext::setNativeHandle(). When creating a QOpenGLContext with the
- native handle set, no new context will get created. Instead, the provided
- handles are used, without taking ownership. This allows wrapping a context
- created by an external framework or rendering engine. The typical usage will
- be similar to the following snippet:
-
- \code
- #include <QtPlatformSupport/QWGLNativeContext>
- ...create and retrieve the WGL context and the corresponding window...
- QOpenGLContext *context = new QOpenGLContext;
- QWGLNativeContext nativeContext(hglrc, hwnd);
- context->setNativeHandle(QVariant::fromValue(nativeContext));
- context->create();
- ...
- \endcode
-
- The window is needed because the its pixel format will be queried. When the
- adoption is successful, QOpenGLContext::format() will return a QSurfaceFormat
- describing this pixel format.
-
- It is recommended to restrict the usage of QOpenGLContexts created this way.
- Various platform-specific behavior and issues may prevent such contexts to be
- made current with windows (surfaces) created by Qt due to non-matching pixel
- formats for example. A potentially safer solution is to use the wrapped
- context only to set up sharing and perform Qt-based rendering offscreen,
- using a separate, dedicated QOpenGLContext. The resulting textures are then
- accessible in the foreign context too.
-
- \code
- ...like above...
- QOpenGLContext *qtcontext = new QOpenGLContext;
- qtcontext->setShareContext(context);
- qtcontext->setFormat(context->format());
- qtcontext->create();
- ...use qtcontext for rendering with Qt...
- \endcode
-
- In addition to being used with QOpenGLContext::setNativeHandle(), this class
- is used also to retrieve the native context handle, that is, a HGLRC value,
- from a QOpenGLContext. Calling QOpenGLContext::nativeHandle() returns a
- QVariant which, on Windows with opengl32.dll at least, will contain a
- QWGLNativeContext:
-
- \code
- QVariant nativeHandle = context->nativeHandle();
- if (!nativeHandle.isNull() && nativeHandle.canConvert<QWGLNativeContext>()) {
- QWGLNativeContext nativeContext = nativeHandle.value<QWGLNativeContext>();
- HGLRC hglrc = nativeContext.context();
- ...
- }
- \endcode
-
- \sa QOpenGLContext::setNativeHandle(), QOpenGLContext::nativeHandle()
- */
-
-/*!
- \fn HGLRC QWGLNativeContext::context() const
-
- \return the WGL context.
- */
-
-/*!
- \fn HWND QWGLNativeContext::window() const
-
- \note The window handle is not available when the QWGLNativeContext is
- queried from a regular, non-adopted QOpenGLContext using
- QOpenGLContext::nativeHandle(). This is because the \e windows platform
- plugin creates WGL contexts using a dummy window that is not available
- afterwards. Instead, the native window handle (HWND) is queriable from a
- QWindow via QPlatformNativeInterface::nativeResourceForWindow() using the \e
- "handle" resource key. Note however that the window will not have its pixel
- format set until it is first associated with a context via
- QOpenGLContext::makeCurrent().
-
- \return handle for the window for which the context was created.
- */
-
-/*!
- \fn QWGLNativeContext::QWGLNativeContext()
-
- Construct a new instance with no handles.
- */
-
-/*!
- \fn QWGLNativeContext::QWGLNativeContext(HGLRC ctx, HWND wnd)
-
- Constructs a new instance with the provided \a ctx context handle and \a wnd window handle.
-
- \note The window specified by \a wnd must have its pixel format set to a
- format compatible with the context's. If no SetPixelFormat() call was made on
- any device context belonging to the window, adopting the context will fail.
- */
diff --git a/src/platformheaders/platformheaders.pro b/src/platformheaders/platformheaders.pro
deleted file mode 100644
index 392acc54f0..0000000000
--- a/src/platformheaders/platformheaders.pro
+++ /dev/null
@@ -1,19 +0,0 @@
-# Only headers here, no library is wanted.
-TEMPLATE = subdirs
-VERSION = $$MODULE_VERSION
-MODULE_INCNAME = QtPlatformHeaders
-
-include(nativecontexts/nativecontexts.pri)
-include(xcbfunctions/xcbfunctions.pri)
-include(eglfsfunctions/eglfsfunctions.pri)
-include(windowsfunctions/windowsfunctions.pri)
-include(helper/helper.pri)
-include(cocoafunctions/cocoafunctions.pri)
-include(waylandfunctions/waylandfunctions.pri)
-include(linuxfbfunctions/linuxfbfunctions.pri)
-
-QMAKE_DOCS = $$PWD/doc/qtplatformheaders.qdocconf
-
-load(qt_module_headers)
-load(qt_docs)
-load(qt_installs)
diff --git a/src/platformheaders/waylandfunctions/qwaylandwindowfunctions.h b/src/platformheaders/waylandfunctions/qwaylandwindowfunctions.h
deleted file mode 100644
index 9c2e5f2a14..0000000000
--- a/src/platformheaders/waylandfunctions/qwaylandwindowfunctions.h
+++ /dev/null
@@ -1,86 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 LG Electronics Ltd, author: mikko.levonmaa@lge.com
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the plugins of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QWAYLANDWINDOWFUNCTIONS_H
-#define QWAYLANDWINDOWFUNCTIONS_H
-
-#include <QtCore/QByteArray>
-#include <QtGui/QGuiApplication>
-
-QT_BEGIN_NAMESPACE
-
-class QWindow;
-
-class QWaylandWindowFunctions {
-public:
-
- typedef void (*SetWindowSync)(QWindow *window);
- typedef void (*SetWindowDeSync)(QWindow *window);
- typedef bool (*IsWindowSync)(QWindow *window);
- static const QByteArray setSyncIdentifier() { return QByteArrayLiteral("WaylandSubSurfaceSetSync"); }
- static const QByteArray setDeSyncIdentifier() { return QByteArrayLiteral("WaylandSubSurfaceSetDeSync"); }
- static const QByteArray isSyncIdentifier() { return QByteArrayLiteral("WaylandSubSurfaceIsSync"); }
-
- static void setSync(QWindow *window)
- {
- static SetWindowSync func = reinterpret_cast<SetWindowSync>(QGuiApplication::platformFunction(setSyncIdentifier()));
- Q_ASSERT(func);
- func(window);
- }
-
- static void setDeSync(QWindow *window)
- {
- static SetWindowDeSync func = reinterpret_cast<SetWindowDeSync>(QGuiApplication::platformFunction(setDeSyncIdentifier()));
- Q_ASSERT(func);
- func(window);
- }
-
- static bool isSync(QWindow *window)
- {
- static IsWindowSync func = reinterpret_cast<IsWindowSync>(QGuiApplication::platformFunction(isSyncIdentifier()));
- Q_ASSERT(func);
- return func(window);
- }
-
-};
-
-QT_END_NAMESPACE
-
-#endif // QWAYLANDWINDOWFUNCTIONS_H
-
diff --git a/src/platformheaders/waylandfunctions/waylandfunctions.pri b/src/platformheaders/waylandfunctions/waylandfunctions.pri
deleted file mode 100644
index 202df907e5..0000000000
--- a/src/platformheaders/waylandfunctions/waylandfunctions.pri
+++ /dev/null
@@ -1 +0,0 @@
-HEADERS += $$PWD/qwaylandwindowfunctions.h
diff --git a/src/platformheaders/windowsfunctions/qwindowswindowfunctions.h b/src/platformheaders/windowsfunctions/qwindowswindowfunctions.h
deleted file mode 100644
index 032dcafa6e..0000000000
--- a/src/platformheaders/windowsfunctions/qwindowswindowfunctions.h
+++ /dev/null
@@ -1,117 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the plugins of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QWINDOWSWINDOWFUNCTIONS_H
-#define QWINDOWSWINDOWFUNCTIONS_H
-
-#include <QtCore/QByteArray>
-#include <QtGui/QGuiApplication>
-
-QT_BEGIN_NAMESPACE
-
-class QWindow;
-
-class QWindowsWindowFunctions {
-public:
- enum TouchWindowTouchType {
- NormalTouch = 0x00000000,
- FineTouch = 0x00000001,
- WantPalmTouch = 0x00000002
- };
-
- Q_DECLARE_FLAGS(TouchWindowTouchTypes, TouchWindowTouchType)
-
- enum WindowActivationBehavior {
- DefaultActivateWindow,
- AlwaysActivateWindow
- };
-
- typedef void (*SetTouchWindowTouchType)(QWindow *window, QWindowsWindowFunctions::TouchWindowTouchTypes touchType);
- static const QByteArray setTouchWindowTouchTypeIdentifier() { return QByteArrayLiteral("WindowsSetTouchWindowTouchType"); }
-
- static void setTouchWindowTouchType(QWindow *window, TouchWindowTouchTypes type)
- {
- SetTouchWindowTouchType func = reinterpret_cast<SetTouchWindowTouchType>(QGuiApplication::platformFunction(setTouchWindowTouchTypeIdentifier()));
- if (func)
- func(window, type);
- }
-
- typedef void (*SetHasBorderInFullScreen)(QWindow *window, bool border);
- static const QByteArray setHasBorderInFullScreenIdentifier() { return QByteArrayLiteral("WindowsSetHasBorderInFullScreen"); }
- static void setHasBorderInFullScreen(QWindow *window, bool border)
- {
- SetHasBorderInFullScreen func = reinterpret_cast<SetHasBorderInFullScreen>(QGuiApplication::platformFunction(setHasBorderInFullScreenIdentifier()));
- if (func)
- func(window, border);
- }
-
- typedef void (*SetHasBorderInFullScreenDefault)(bool border);
- static const QByteArray setHasBorderInFullScreenDefaultIdentifier() { return QByteArrayLiteral("WindowsSetHasBorderInFullScreenDefault"); }
- static void setHasBorderInFullScreenDefault(bool border)
- {
- auto func = reinterpret_cast<SetHasBorderInFullScreenDefault>(QGuiApplication::platformFunction(setHasBorderInFullScreenDefaultIdentifier()));
- if (func)
- func(border);
- }
-
- typedef void (*SetWindowActivationBehaviorType)(WindowActivationBehavior);
- static const QByteArray setWindowActivationBehaviorIdentifier() { return QByteArrayLiteral("WindowsSetWindowActivationBehavior"); }
-
- static void setWindowActivationBehavior(WindowActivationBehavior behavior)
- {
- SetWindowActivationBehaviorType func = reinterpret_cast<SetWindowActivationBehaviorType>(QGuiApplication::platformFunction(setWindowActivationBehaviorIdentifier()));
- if (func)
- func(behavior);
- }
-
- typedef bool (*IsTabletModeType)();
- static const QByteArray isTabletModeIdentifier() { return QByteArrayLiteral("WindowsIsTabletMode"); }
-
- static bool isTabletMode()
- {
- IsTabletModeType func = reinterpret_cast<IsTabletModeType>(QGuiApplication::platformFunction(isTabletModeIdentifier()));
- return func && func();
- }
-};
-
-Q_DECLARE_OPERATORS_FOR_FLAGS(QWindowsWindowFunctions::TouchWindowTouchTypes)
-
-QT_END_NAMESPACE
-
-#endif // QWINDOWSWINDOWFUNCTIONS_H
diff --git a/src/platformheaders/windowsfunctions/qwindowswindowfunctions.qdoc b/src/platformheaders/windowsfunctions/qwindowswindowfunctions.qdoc
deleted file mode 100644
index 0c52cde753..0000000000
--- a/src/platformheaders/windowsfunctions/qwindowswindowfunctions.qdoc
+++ /dev/null
@@ -1,211 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** 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.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \class QWindowsWindowFunctions
- \inmodule QtPlatformHeaders
- \since 5.5
- \brief The QWindowsWindowFunctions class is an inline class containing
- miscellaneous functionality for Windows window specific functionality.
-
- A common usage pattern is as follows:
- \snippet qwindowswindowfunctions/main.cpp 0
-
- \note There is no binary compatibility guarantee for this class,
- meaning that an application using it is only guaranteed to work with the Qt
- version it was developed against.
-*/
-
-/*!
- \enum QWindowsWindowFunctions::TouchWindowTouchType
-
- This enum represents the supported TouchWindow touch flags for RegisterTouchWindow().
-
- \value NormalTouch
- \value FineTouch
- \value WantPalmTouch
-*/
-
-/*!
- \typedef QWindowsWindowFunctions::SetTouchWindowTouchType
-
- This is the typedef for the function returned by QGuiApplication::platformFunction when passed setTouchWindowTouchTypeIdentifier.
-*/
-
-/*!
- \fn QByteArray QWindowsWindowFunctions::setTouchWindowTouchTypeIdentifier()
-
- This function returns the bytearray that can be used to query
- QGuiApplication::platformFunction to retrieve the SetTouchWindowTouchType function.
-*/
-
-/*!
- \fn void QWindowsWindowFunctions::setTouchWindowTouchType(QWindow *window, TouchWindowTouchTypes type)
-
- This is a convenience function that can be used directly instead of resolving the function pointer.
- \a window and \a type will be relayed to the function retrieved by QGuiApplication
-*/
-
-/*!
- \typedef QWindowsWindowFunctions::SetHasBorderInFullScreen
-
- This is the typedef for the function returned by QGuiApplication::platformFunction when passed setHasBorderInFullScreenIdentifier.
-*/
-
-/*!
- \fn QByteArray QWindowsWindowFunctions::setHasBorderInFullScreenIdentifier()
- \since 5.6
-
- This function returns the bytearray that can be used to query
- QGuiApplication::platformFunction to retrieve the SetHasBorderInFullScreen function.
-*/
-
-/*!
- \fn void QWindowsWindowFunctions::setHasBorderInFullScreen(QWindow *window, bool border)
- \since 5.6
-
- This is a convenience function that can be used directly instead of resolving the function pointer.
- \a window and \a border will be relayed to the function retrieved by QGuiApplication. When \a border
- is true then it will enable the WS_BORDER flag in full screen mode to enable other top level windows
- inside the application to appear on top when required.
-
- \note The setting must be applied before showing the window or switching it
- to full screen. For QML, setHasBorderInFullScreenDefault() can be used to
- set a default value.
-
- See also \l [QtDoc] {Fullscreen OpenGL Based Windows}
-*/
-
-/*!
- \typedef QWindowsWindowFunctions::SetHasBorderInFullScreenDefault
- \since 5.13
-
- This is the typedef for the function returned by QGuiApplication::platformFunction
- when passed setHasBorderInFullScreenDefaultIdentifier.
-*/
-
-/*!
- \fn QByteArray QWindowsWindowFunctions::setHasBorderInFullScreenDefaultIdentifier()
- \since 5.13
-
- This function returns the bytearray that can be used to query
- QGuiApplication::platformFunction to retrieve the SetHasBorderInFullScreen function.
-*/
-
-/*!
- \fn void QWindowsWindowFunctions::setHasBorderInFullScreenDefault(bool border)
- \since 5.13
-
- This is a convenience function that can be used directly instead of resolving
- the function pointer. \a border will be relayed to the function retrieved by
- QGuiApplication. When \a border is true, the WS_BORDER flag will be set
- in full screen mode for all windows by default.
-
- See also \l [QtDoc] {Fullscreen OpenGL Based Windows}
- \sa setHasBorderInFullScreen()
-*/
-
-/*!
- \enum QWindowsWindowFunctions::WindowActivationBehavior
-
- This enum specifies the behavior of QWidget::activateWindow() and
- QWindow::requestActivate().
-
- \value DefaultActivateWindow The window is activated according to the default
- behavior of the Windows operating system. This means the window will not
- be activated in some circumstances (most notably when the calling process
- is not the active process); only the taskbar entry will be flashed.
- \value AlwaysActivateWindow The window is always activated, even when the
- calling process is not the active process.
-
- \sa QWidget::activateWindow(), QWindow::requestActivate()
- \since 5.7
-*/
-
-/*!
- \typedef QWindowsWindowFunctions::SetWindowActivationBehaviorType
-
- This is the typedef for the function returned by QGuiApplication::platformFunction()
- when passed setWindowActivationBehaviorIdentifier().
-
- \sa QWidget::activateWindow(), QWindow::requestActivate()
- \since 5.7
-*/
-
-/*!
- \fn QByteArray QWindowsWindowFunctions::setWindowActivationBehaviorIdentifier()
-
- This function returns a bytearray that can be used to query
- QGuiApplication::platformFunction() to retrieve the SetWindowActivationBehaviorType
- function.
-
- \sa QWidget::activateWindow(), QWindow::requestActivate()
- \since 5.7
-*/
-
-/*!
- \fn void QWindowsWindowFunctions::setWindowActivationBehavior(WindowActivationBehavior behavior)
-
- This is a convenience function that can be used directly instead of resolving
- the function pointer. \a behavior will be relayed to the function retrieved
- by QGuiApplication.
-
- \sa QWidget::activateWindow(), QWindow::requestActivate()
- \since 5.7
-*/
-
-/*!
- \typedef QWindowsWindowFunctions::IsTabletModeType
-
- This is the typedef for the function returned by QGuiApplication::platformFunction()
- when passed isTabletModeIdentifier().
-
- \since 5.9
-*/
-
-/*!
- \fn QByteArray QWindowsWindowFunctions::isTabletModeIdentifier()
-
- Returns a bytearray that can be used to query
- QGuiApplication::platformFunction() to retrieve the IsTabletModeType
- function.
-
- \since 5.9
-*/
-
-/*!
- \fn bool QWindowsWindowFunctions::isTabletMode()
-
- This is a convenience function that can be used directly instead of resolving
- the function pointer. Returns true if Windows 10 operates in \e{Tablet Mode}.
- In this mode, Windows forces all application main windows to open in maximized
- state. Applications should then avoid resizing windows or restoring geometries
- to non-maximized states.
-
- \sa QWidget::showMaximized(), QWidget::saveGeometry(), QWidget::restoreGeometry()
- \since 5.9
-*/
diff --git a/src/platformheaders/windowsfunctions/windowsfunctions.pri b/src/platformheaders/windowsfunctions/windowsfunctions.pri
deleted file mode 100644
index 479245db80..0000000000
--- a/src/platformheaders/windowsfunctions/windowsfunctions.pri
+++ /dev/null
@@ -1 +0,0 @@
-HEADERS += $$PWD/qwindowswindowfunctions.h
diff --git a/src/platformheaders/xcbfunctions/qxcbscreenfunctions.h b/src/platformheaders/xcbfunctions/qxcbscreenfunctions.h
deleted file mode 100644
index 99624bd5d6..0000000000
--- a/src/platformheaders/xcbfunctions/qxcbscreenfunctions.h
+++ /dev/null
@@ -1,62 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2017 The Qt Company Ltd.
-** Contact: http://www.qt.io/licensing/
-**
-** This file is part of the plugins of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QXCBSCREENFUNCTIONS_H
-#define QXCBSCREENFUNCTIONS_H
-
-#include <QtPlatformHeaders/QPlatformHeaderHelper>
-
-QT_BEGIN_NAMESPACE
-
-class QScreen;
-
-class QXcbScreenFunctions
-{
-public:
- typedef bool (*VirtualDesktopNumber)(const QScreen *screen);
- static const QByteArray virtualDesktopNumberIdentifier() { return QByteArrayLiteral("XcbVirtualDesktopNumber"); }
- static int virtualDesktopNumber(const QScreen *screen)
- {
- return QPlatformHeaderHelper::callPlatformFunction<int, VirtualDesktopNumber, const QScreen *>(virtualDesktopNumberIdentifier(), screen);
- }
-};
-
-QT_END_NAMESPACE
-
-#endif /*QXCBSCREENFUNCTIONS_H*/
diff --git a/src/platformheaders/xcbfunctions/qxcbwindowfunctions.h b/src/platformheaders/xcbfunctions/qxcbwindowfunctions.h
deleted file mode 100644
index b0e6cb6a1d..0000000000
--- a/src/platformheaders/xcbfunctions/qxcbwindowfunctions.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 plugins of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** 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.
-**
-** GNU Lesser General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU Lesser
-** General Public License version 3 as published by the Free Software
-** Foundation and appearing in the file LICENSE.LGPL3 included in the
-** packaging of this file. Please review the following information to
-** ensure the GNU Lesser General Public License version 3 requirements
-** will be met: https://www.gnu.org/licenses/lgpl-3.0.html.
-**
-** GNU General Public License Usage
-** Alternatively, this file may be used under the terms of the GNU
-** General Public License version 2.0 or (at your option) the GNU General
-** Public license version 3 or any later version approved by the KDE Free
-** Qt Foundation. The licenses are as published by the Free Software
-** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3
-** included in the packaging of this file. Please review the following
-** information to ensure the GNU General Public License requirements will
-** be met: https://www.gnu.org/licenses/gpl-2.0.html and
-** https://www.gnu.org/licenses/gpl-3.0.html.
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QXCBWINDOWFUNCTIONS_H
-#define QXCBWINDOWFUNCTIONS_H
-
-#include <QtPlatformHeaders/QPlatformHeaderHelper>
-
-QT_BEGIN_NAMESPACE
-
-class QWindow;
-
-class QXcbWindowFunctions {
-public:
- enum WmWindowType {
- Normal = 0x000001,
- Desktop = 0x000002,
- Dock = 0x000004,
- Toolbar = 0x000008,
- Menu = 0x000010,
- Utility = 0x000020,
- Splash = 0x000040,
- Dialog = 0x000080,
- DropDownMenu = 0x000100,
- PopupMenu = 0x000200,
- Tooltip = 0x000400,
- Notification = 0x000800,
- Combo = 0x001000,
- Dnd = 0x002000,
- KdeOverride = 0x004000
- };
-
- Q_DECLARE_FLAGS(WmWindowTypes, WmWindowType)
-
- typedef void (*SetWmWindowType)(QWindow *window, QXcbWindowFunctions::WmWindowTypes windowType);
- static const QByteArray setWmWindowTypeIdentifier() { return QByteArrayLiteral("XcbSetWmWindowType"); }
- static void setWmWindowType(QWindow *window, WmWindowType type)
- {
- return QPlatformHeaderHelper::callPlatformFunction<void, SetWmWindowType, QWindow *, WmWindowType>(setWmWindowTypeIdentifier(), window, type);
- }
-
- typedef void (*SetWmWindowRole)(QWindow *window, const QByteArray &role);
- static const QByteArray setWmWindowRoleIdentifier() { return QByteArrayLiteral("XcbSetWmWindowRole"); }
-
- static void setWmWindowRole(QWindow *window, const QByteArray &role)
- {
- return QPlatformHeaderHelper::callPlatformFunction<void, SetWmWindowRole, QWindow *, const QByteArray &>(setWmWindowRoleIdentifier(), window, role);
- }
-
- typedef void (*SetWmWindowIconText)(QWindow *window, const QString &text);
- static const QByteArray setWmWindowIconTextIdentifier() { return QByteArrayLiteral("XcbSetWmWindowIconText"); }
- static void setWmWindowIconText(QWindow *window, const QString &text)
- {
- return QPlatformHeaderHelper::callPlatformFunction<void, SetWmWindowIconText, QWindow *, const QString &>(setWmWindowIconTextIdentifier(), window, text);
- }
-
- typedef uint (*VisualId)(QWindow *window);
- static const QByteArray visualIdIdentifier() { return QByteArrayLiteral("XcbVisualId"); }
-
- static uint visualId(QWindow *window)
- {
- QXcbWindowFunctions::VisualId func = reinterpret_cast<VisualId>(QGuiApplication::platformFunction(visualIdIdentifier()));
- if (func)
- return func(window);
- return UINT_MAX;
- }
-};
-
-
-QT_END_NAMESPACE
-
-#endif // QXCBWINDOWFUNCTIONS_H
diff --git a/src/platformheaders/xcbfunctions/qxcbwindowfunctions.qdoc b/src/platformheaders/xcbfunctions/qxcbwindowfunctions.qdoc
deleted file mode 100644
index 5e2aa2cbf2..0000000000
--- a/src/platformheaders/xcbfunctions/qxcbwindowfunctions.qdoc
+++ /dev/null
@@ -1,165 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2016 The Qt Company Ltd.
-** Contact: https://www.qt.io/licensing/
-**
-** This file is part of the documentation of the Qt Toolkit.
-**
-** $QT_BEGIN_LICENSE:FDL$
-** 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.
-**
-** GNU Free Documentation License Usage
-** Alternatively, this file may be used under the terms of the GNU Free
-** Documentation License version 1.3 as published by the Free Software
-** Foundation and appearing in the file included in the packaging of
-** this file. Please review the following information to ensure
-** the GNU Free Documentation License version 1.3 requirements
-** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-/*!
- \class QXcbWindowFunctions
- \inmodule QtPlatformHeaders
-
- \brief The QXcbWindowFunctions class is an inline class containing
- miscellaneous functionality for xcb window specific functionality.
-
- A common usage pattern is as follows:
- \snippet qxcbwindowfunctions/main.cpp 0
-
- \note There is no binary compatibility guarantee for this class,
- meaning that an application using it is only guaranteed to work with the Qt
- version it was developed against.
-*/
-
-/*!
- \enum QXcbWindowFunctions::WmWindowType
-
- This enum represents the supported WM_WINDOW_TYPE atoms.
-
- \value Normal
- \value Desktop
- \value Dock
- \value Toolbar
- \value Menu
- \value Utility
- \value Splash
- \value Dialog
- \value DropDownMenu
- \value PopupMenu
- \value Tooltip
- \value Notification
- \value Combo
- \value Dnd
- \value KdeOverride
-*/
-
-/*!
- \typedef QXcbWindowFunctions::SetWmWindowType
-
- This is the typedef for the function returned by
- QGuiApplication::platformFunction when passed the
- value returned by setWmWindowTypeIdentifier().
-*/
-
-/*!
- \fn QByteArray QXcbWindowFunctions::setWmWindowTypeIdentifier()
-
- This function returns the byte array that can be used to query
- QGuiApplication::platformFunction to retrieve the SetWmWindowType function.
-*/
-
-/*!
- \fn void QXcbWindowFunctions::setWmWindowType(QWindow *window, WmWindowType type)
-
- This is a convenience function that can be used directly instead
- of resolving the function pointer. \a window and \a type will be
- relayed to the function retrieved by QGuiApplication.
-*/
-
-/*!
- \typedef QXcbWindowFunctions::SetWmWindowRole
- \since 5.6.2
-
- This is the typedef for the function returned by
- QGuiApplication::platformFunction when passed the
- value returned by setWmWindowRoleIdentifier().
-*/
-
-/*!
- \fn QByteArray QXcbWindowFunctions::setWmWindowRoleIdentifier()
- \since 5.6.2
-
- This function returns the byte array that can be used to query
- QGuiApplication::platformFunction to retrieve the SetWmWindowRole function.
-*/
-
-/*!
- \fn void QXcbWindowFunctions::setWmWindowRole(QWindow *window, const QByteArray &role)
- \since 5.6.2
-
- Sets the WM_WINDOW_ROLE property from \a role on the corresponding
- X11 window.
-
- This is a convenience function that can be used directly instead
- of resolving the function pointer. \a window and \a role will be
- relayed to the function retrieved by QGuiApplication.
-*/
-
-/*!
- \typedef QXcbWindowFunctions::SetWmWindowIconText
-
- This is the typedef for the function returned by
- QGuiApplication::platformFunction when passed the
- value returned by setWmWindowIconTextIdentifier().
-*/
-
-/*!
- \fn const QByteArray QXcbWindowFunctions::setWmWindowIconTextIdentifier()
-
- This function returns the byte array that can be used to query
- QGuiApplication::platformFunction to retrieve the SetWmWindowIconText function.
-*/
-
-/*!
- \fn void QXcbWindowFunctions::setWmWindowIconText(QWindow *window, const QString& text)
-
- This is a convenience function that can be used directly instead
- of resolving the function pointer. \a window and \a text will be
- relayed to the function retrieved by QGuiApplication.
-*/
-
-/*!
- \typedef QXcbWindowFunctions::VisualId
-
- This is the typedef for the function returned by
- QGuiApplication::platformFunction when passed the
- value returned by visualIdIdentifier().
-*/
-
-/*!
- \fn const QByteArray QXcbWindowFunctions::visualIdIdentifier()
-
- This function returns the byte array that can be used to query
- QGuiApplication::platformFunction to retrieve the VisualId function.
-*/
-
-/*!
- \fn uint QXcbWindowFunctions::visualId(QWindow *window)
-
- This is a convenience function that can be used directly instead
- of resolving the function pointer. \a window will be
- relayed to the function retrieved by QGuiApplication.
-
- Returns the unsigned integer result of calling the function or
- UINT_MAX if the function was not found.
-*/
-
diff --git a/src/platformheaders/xcbfunctions/xcbfunctions.pri b/src/platformheaders/xcbfunctions/xcbfunctions.pri
deleted file mode 100644
index 3fbee53854..0000000000
--- a/src/platformheaders/xcbfunctions/xcbfunctions.pri
+++ /dev/null
@@ -1,3 +0,0 @@
-HEADERS += \
- $$PWD/qxcbwindowfunctions.h \
- $$PWD/qxcbscreenfunctions.h