20#ifndef LIBREPCB_EDITOR_RECENTPROJECTSMODEL_H
21#define LIBREPCB_EDITOR_RECENTPROJECTSMODEL_H
66 int rowCount(const QModelIndex& parent = QModelIndex()) const;
67 QVariant
data(const QModelIndex& index,
int role = Qt::DisplayRole) const;
This class represents absolute, well-formatted paths to files or directories.
Definition filepath.h:127
The Workspace class represents a workspace with all its data (library, projects, settings,...
Definition workspace.h:54
The RecentProjectsModel class.
Definition recentprojectsmodel.h:47
QList< FilePath > mAllProjects
Definition recentprojectsmodel.h:72
~RecentProjectsModel() noexcept
Definition recentprojectsmodel.cpp:62
FilePath mFilePath
Definition recentprojectsmodel.h:71
void updateVisibleProjects() noexcept
Definition recentprojectsmodel.cpp:83
QList< FilePath > mVisibleProjects
Definition recentprojectsmodel.h:73
const Workspace & mWorkspace
Definition recentprojectsmodel.h:70
void setLastRecentProject(const FilePath &filepath) noexcept
Definition recentprojectsmodel.cpp:69
int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition recentprojectsmodel.cpp:116
RecentProjectsModel(const RecentProjectsModel &other)=delete
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition recentprojectsmodel.cpp:123
void save() noexcept
Definition recentprojectsmodel.cpp:100
RecentProjectsModel()=delete
Definition occmodel.cpp:76