Skip to content

Class RecentProjectListModel

ClassList > RecentProjectListModel

Inherits the following classes: QAbstractListModel

Classes

Type Name
struct RecentProject

Public Types

Type Name
enum ProjectType
enum Role

Public Signals

Type Name
signal void projectChanged

Public Functions

Type Name
RecentProjectListModel (QObject * parent=nullptr)
QVariant data (const QModelIndex & index, int role) override const
Q_INVOKABLE void reloadModel ()
QHash< int, QByteArray > roleNames () override const
int rowCount (const QModelIndex & parent) override const

Public Types Documentation

enum ProjectType

enum RecentProjectListModel::ProjectType {
    LocalProject,
    CloudProject,
    LocalDataset
};

enum Role

enum RecentProjectListModel::Role {
    ProjectTypeRole = Qt::UserRole,
    ProjectTitleRole,
    ProjectPathRole,
    ProjectSampleRole
};

Roles to get the data of the model.


Public Signals Documentation

signal projectChanged

void RecentProjectListModel::projectChanged;

Public Functions Documentation

function RecentProjectListModel

explicit RecentProjectListModel::RecentProjectListModel (
    QObject * parent=nullptr
) 

function data

QVariant RecentProjectListModel::data (
    const QModelIndex & index,
    int role
) override const

function reloadModel

Q_INVOKABLE void RecentProjectListModel::reloadModel () 

function roleNames

QHash< int, QByteArray > RecentProjectListModel::roleNames () override const

function rowCount

int RecentProjectListModel::rowCount (
    const QModelIndex & parent
) override const


The documentation for this class was generated from the following file src/core/recentprojectlistmodel.h