Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquick3drenderstatspassesmodel_p.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QQUICK3DRENDERSTATSPASSESMODEL_H
5#define QQUICK3DRENDERSTATSPASSESMODEL_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/QAbstractTableModel>
19#include <QtCore/QObject>
20#include <QtQml/qqml.h>
21
23
25{
28 QML_NAMED_ELEMENT(RenderStatsPassesModel)
29public:
30 QHash<int, QByteArray> roleNames() const override;
31 int rowCount(const QModelIndex &parent) const override;
32 int columnCount(const QModelIndex &parent) const override;
33 QVariant data(const QModelIndex &index, int role) const override;
34 QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
35
36 const QString &passData() const;
37
38public Q_SLOTS:
39 void setPassData(const QString &newPassData);
40
43
44private:
45 struct Data {
48 quint64 vertices;
49 quint32 drawCalls;
50 };
51 QVector<Data> m_data;
52 QString m_passData;
53};
54
56
57#endif // QQUICK3DRENDERSTATSPASSESMODEL_H
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
\inmodule QtCore
int rowCount(const QModelIndex &parent) const override
Returns the number of rows under the given parent.
void setPassData(const QString &newPassData)
QVariant headerData(int section, Qt::Orientation orientation, int role) const override
Returns the data for the given role and section in the header with the specified orientation.
QHash< int, QByteArray > roleNames() const override
int columnCount(const QModelIndex &parent) const override
Returns the number of columns for the children of the given parent.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qvariant.h:65
Combined button and popup list for selecting options.
Orientation
Definition qnamespace.h:98
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLuint index
[2]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLuint name
#define QML_NAMED_ELEMENT(NAME)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_SLOTS
#define Q_SIGNALS
unsigned int quint32
Definition qtypes.h:50
unsigned long long quint64
Definition qtypes.h:61