Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
ComponentListModel.h
1/*
2Copyright (C) 2018,2026 Rodrigo Jose Hernandez Cordoba
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17#ifndef AEONGAMES_COMPONENTLISTMODEL_H
18#define AEONGAMES_COMPONENTLISTMODEL_H
19#include <vector>
20#include <memory>
21#include "ListModel.h"
22
23namespace AeonGames
24{
27 {
28 Q_OBJECT
29 public:
34 ComponentListModel ( QObject *parent = nullptr );
38
39
42 int rowCount ( const QModelIndex & index = QModelIndex() ) const override;
47 QVariant data ( const QModelIndex & index, int role = Qt::DisplayRole ) const override;
53 QVariant headerData ( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const override;
55 };
56}
57#endif
int rowCount(const QModelIndex &index=QModelIndex()) const override
Return the number of rows under the given parent.
ComponentListModel(QObject *parent=nullptr)
Construct the component list model.
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
Return the data for the given index and role.
virtual ~ComponentListModel()
Destructor.
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
Return the header data for the given section, orientation, and role.
ListModel(QObject *parent=nullptr)
Construct the list model.
Definition ListModel.cpp:30
<- This is here just for the literals
Definition AABB.hpp:31