LibrePCB Developers Documentation
RecentProjectsModel Class Reference

The RecentProjectsModel class. More...

#include <recentprojectsmodel.h>

Inherits QAbstractListModel.

+ Collaboration diagram for RecentProjectsModel:

Public Member Functions

 RecentProjectsModel ()=delete
 
 RecentProjectsModel (const RecentProjectsModel &other)=delete
 
 RecentProjectsModel (const Workspace &workspace) noexcept
 
 ~RecentProjectsModel () noexcept
 
void setLastRecentProject (const FilePath &filepath) noexcept
 
void updateVisibleProjects () noexcept
 
RecentProjectsModeloperator= (const RecentProjectsModel &rhs)=delete
 

Private Member Functions

void save () noexcept
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 

Private Attributes

const WorkspacemWorkspace
 
FilePath mFilePath
 
QList< FilePathmAllProjects
 
QList< FilePathmVisibleProjects
 

Detailed Description

Constructor & Destructor Documentation

◆ RecentProjectsModel() [1/3]

RecentProjectsModel ( )
delete

◆ RecentProjectsModel() [2/3]

RecentProjectsModel ( const RecentProjectsModel other)
delete

◆ RecentProjectsModel() [3/3]

RecentProjectsModel ( const Workspace workspace)
explicitnoexcept
+ Here is the call graph for this function:

◆ ~RecentProjectsModel()

~RecentProjectsModel ( )
noexcept

Member Function Documentation

◆ setLastRecentProject()

void setLastRecentProject ( const FilePath filepath)
noexcept

◆ updateVisibleProjects()

void updateVisibleProjects ( )
noexcept
+ Here is the call graph for this function:

◆ operator=()

RecentProjectsModel & operator= ( const RecentProjectsModel rhs)
delete

◆ save()

void save ( )
privatenoexcept
+ Here is the call graph for this function:

◆ rowCount()

int rowCount ( const QModelIndex &  parent = QModelIndex()) const
private

◆ data()

QVariant data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
private

Member Data Documentation

◆ mWorkspace

const Workspace& mWorkspace
private

◆ mFilePath

FilePath mFilePath
private

◆ mAllProjects

QList<FilePath> mAllProjects
private

◆ mVisibleProjects

QList<FilePath> mVisibleProjects
private

The documentation for this class was generated from the following files: