Class RecentProjectListModel
ClassList > RecentProjectListModel
Inherits the following classes: QAbstractListModel
Classes
Public Types
Public Signals
Public Functions
Public Static Functions
Public Types Documentation
enum ProjectType
enum RecentProjectListModel::ProjectType {
LocalProject,
CloudProject,
LinkProject,
LocalDataset
};
enum Role
enum RecentProjectListModel::Role {
ProjectTypeRole = Qt::UserRole,
ProjectTitleRole,
ProjectPathRole,
ProjectThumbnailRole
};
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
Public Static Functions Documentation
function recentProjects
static QList< RecentProject > RecentProjectListModel::recentProjects (
bool skipNonAvailable=false
)
function removeRecentProject
static Q_INVOKABLE void RecentProjectListModel::removeRecentProject (
const QString & path
)
function saveRecentProjects
static void RecentProjectListModel::saveRecentProjects (
const QList< RecentProject > & projects
)
The documentation for this class was generated from the following file src/core/recentprojectlistmodel.h