diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-07-17 20:01:21 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-07-20 17:47:29 +0200 |
commit | 3a475d48ee03d1953292a8fe4ef8ab7e3b1e6c37 (patch) | |
tree | 2d8e5b5491067b3166e87c80abc7cbda151f29cf /src/platformheaders/xcbfunctions | |
parent | 6e5694b63b0275fe180da7b892b03a865d218d99 (diff) |
Add QXcbScreen platform interface
Task-number: QTBUG-84220
Change-Id: I6c166409fbaf50627dea65a6256764e08ab36a59
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/platformheaders/xcbfunctions')
-rw-r--r-- | src/platformheaders/xcbfunctions/qxcbscreenfunctions_p.h | 73 | ||||
-rw-r--r-- | src/platformheaders/xcbfunctions/xcbfunctions.pri | 3 |
2 files changed, 1 insertions, 75 deletions
diff --git a/src/platformheaders/xcbfunctions/qxcbscreenfunctions_p.h b/src/platformheaders/xcbfunctions/qxcbscreenfunctions_p.h deleted file mode 100644 index f040701941..0000000000 --- a/src/platformheaders/xcbfunctions/qxcbscreenfunctions_p.h +++ /dev/null @@ -1,73 +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 - -// -// W A R N I N G -// ------------- -// -// This file is not part of the Qt API. It exists purely as an -// implementation detail. This header file may change from version to -// version without notice, or even be removed. -// -// We mean it. -// - -#include <QtPlatformHeaders/private/qplatformheaderhelper_p.h> - -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/xcbfunctions.pri b/src/platformheaders/xcbfunctions/xcbfunctions.pri index 5ca2721506..f3fdfe605e 100644 --- a/src/platformheaders/xcbfunctions/xcbfunctions.pri +++ b/src/platformheaders/xcbfunctions/xcbfunctions.pri @@ -1,3 +1,2 @@ HEADERS += \ - $$PWD/qxcbwindowfunctions_p.h \ - $$PWD/qxcbscreenfunctions_p.h + $$PWD/qxcbwindowfunctions_p.h |