Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QtAbstractItemModelProxy.java
Go to the documentation of this file.
1// Copyright (C) 2024 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4package org.qtproject.qt.android;
5
6//
7// W A R N I N G
8// -------------
9//
10// This file is not part of the Qt API. It exists purely as an
11// implementation detail. This header file may change from version to
12// version without notice, or even be removed.
13//
14// We mean it.
15
16class QtAndroidItemModelProxy extends QtAbstractItemModel
17{
18 @Override public int columnCount(QtModelIndex parent) { return jni_columnCount(parent); }
19
20 @Override public Object data(QtModelIndex index, int role) { return jni_data(index, role); }
21 @Override public QtModelIndex index(int row, int column, QtModelIndex parent)
22 {
23 return (QtModelIndex)jni_index(row, column, parent);
24 }
25 @Override public QtModelIndex parent(QtModelIndex index)
26 {
27 return (QtModelIndex)jni_parent(index);
28 }
29 @Override public int rowCount(QtModelIndex parent) { return jni_rowCount(parent); }
30
31 private native int jni_columnCount(QtModelIndex parent);
32 private native Object jni_data(QtModelIndex index, int role);
33 private native Object jni_index(int row, int column, QtModelIndex parent);
34 private native Object jni_parent(QtModelIndex index);
35 private native int jni_rowCount(QtModelIndex parent);
36}
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
[0]
GLuint index
GLenum GLenum GLsizei void GLsizei void * column
GLenum GLenum GLsizei void * row