diff options
author | Topi Reinio <topi.reinio@qt.io> | 2021-05-03 13:18:03 +0200 |
---|---|---|
committer | Assam Boudjelthia <assam.boudjelthia@qt.io> | 2021-05-05 16:07:17 +0000 |
commit | d831035435dac02006751d7bdd74160451f50adf (patch) | |
tree | c709fc5df2d9168d9078b987f92c1985c0bd8e21 /src/corelib/doc | |
parent | 127f617387c00139dddbfc9438ab032e24559566 (diff) |
Doc: Fix documentation warnings for QJni* classes
Pick-to: 6.1
Change-Id: Iab836fbdf649f1b3b60e88d32266361299ac4bb2
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Diffstat (limited to 'src/corelib/doc')
-rw-r--r-- | src/corelib/doc/include/jni.h | 62 | ||||
-rw-r--r-- | src/corelib/doc/qtcore.qdocconf | 2 |
2 files changed, 64 insertions, 0 deletions
diff --git a/src/corelib/doc/include/jni.h b/src/corelib/doc/include/jni.h new file mode 100644 index 0000000000..09186969dd --- /dev/null +++ b/src/corelib/doc/include/jni.h @@ -0,0 +1,62 @@ +/**************************************************************************** +** +** Copyright (C) 2021 The Qt Company Ltd. +** Contact: https://www.qt.io/licensing/ +** +** This file is part of the QtCore module 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$ +** +****************************************************************************/ + +#pragma once + +// +// 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. +// + +// Dummy declarations for generating docs on non-Android platforms +#if !defined(Q_OS_ANDROID) && defined(Q_QDOC) +typedef struct {} JNIEnv; +typedef struct {} JNINativeMethod; +struct _jclass; +typedef _jclass* jclass; +struct _jobject; +typedef _jobject* jobject; +typedef void* JavaVM; +#endif diff --git a/src/corelib/doc/qtcore.qdocconf b/src/corelib/doc/qtcore.qdocconf index 895dcb7b0a..3699bc84c3 100644 --- a/src/corelib/doc/qtcore.qdocconf +++ b/src/corelib/doc/qtcore.qdocconf @@ -5,6 +5,8 @@ project = QtCore description = Qt Core Reference Documentation version = $QT_VERSION +includepaths += ./include + examplesinstallpath = corelib qhp.projects = QtCore |