20#ifndef LIBREPCB_EDITOR_FAVORITEPROJECTSMODEL_H
21#define LIBREPCB_EDITOR_FAVORITEPROJECTSMODEL_H
68 int rowCount(const QModelIndex& parent = QModelIndex()) const;
69 QVariant
data(const QModelIndex& index,
int role = Qt::DisplayRole) const;
This class represents absolute, well-formatted paths to files or directories.
Definition: filepath.h:129
The Workspace class represents a workspace with all its data (library, projects, settings,...
Definition: workspace.h:54
The FavoriteProjectsModel class.
Definition: favoriteprojectsmodel.h:47
QList< FilePath > mAllProjects
Definition: favoriteprojectsmodel.h:74
~FavoriteProjectsModel() noexcept
Definition: favoriteprojectsmodel.cpp:63
void addFavoriteProject(const FilePath &filepath) noexcept
Definition: favoriteprojectsmodel.cpp:75
FilePath mFilePath
Definition: favoriteprojectsmodel.h:73
void updateVisibleProjects() noexcept
Definition: favoriteprojectsmodel.cpp:92
QList< FilePath > mVisibleProjects
Definition: favoriteprojectsmodel.h:75
const Workspace & mWorkspace
Definition: favoriteprojectsmodel.h:72
void removeFavoriteProject(const FilePath &filepath) noexcept
Definition: favoriteprojectsmodel.cpp:84
int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: favoriteprojectsmodel.cpp:124
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: favoriteprojectsmodel.cpp:131
bool isFavoriteProject(const FilePath &filepath) const noexcept
Definition: favoriteprojectsmodel.cpp:70
void save() noexcept
Definition: favoriteprojectsmodel.cpp:108
FavoriteProjectsModel(const FavoriteProjectsModel &other)=delete
FavoriteProjectsModel()=delete
Definition: occmodel.cpp:77