Class QfRecentProjectListModel
ClassList > QfRecentProjectListModel
Inherits the following classes: QAbstractListModel
Classes
Public Types
Public Signals
Public Functions
Public Static Functions
Public Types Documentation
enum ProjectType
enum QfRecentProjectListModel::ProjectType {
LocalProject,
CloudProject,
LinkProject,
LocalDataset
};
enum Role
enum QfRecentProjectListModel::Role {
ProjectTypeRole = Qt::UserRole,
ProjectTitleRole,
ProjectPathRole,
ProjectThumbnailRole
};
Roles to get the data of the model.
Public Signals Documentation
signal projectChanged
void QfRecentProjectListModel::projectChanged;
Public Functions Documentation
function QfRecentProjectListModel
explicit QfRecentProjectListModel::QfRecentProjectListModel (
QObject * parent=nullptr
)
function data
QVariant QfRecentProjectListModel::data (
const QModelIndex & index,
int role
) override const
function reloadModel
Q_INVOKABLE void QfRecentProjectListModel::reloadModel ()
function roleNames
QHash< int, QByteArray > QfRecentProjectListModel::roleNames () override const
function rowCount
int QfRecentProjectListModel::rowCount (
const QModelIndex & parent
) override const
Public Static Functions Documentation
function recentProjects
static QList< RecentProject > QfRecentProjectListModel::recentProjects (
bool skipNonAvailable=false
)
function removeRecentProject
static Q_INVOKABLE void QfRecentProjectListModel::removeRecentProject (
const QString & path
)
function saveRecentProjects
static void QfRecentProjectListModel::saveRecentProjects (
const QList< RecentProject > & projects
)
The documentation for this class was generated from the following file src/gui/qfrecentprojectlistmodel.h