LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
 
QScopedPointer< SmartSExprFilemFile
 
QList< FilePathmAllProjects
 
QList< FilePathmVisibleProjects
 

Detailed Description

Constructor & Destructor Documentation

RecentProjectsModel ( )
delete
RecentProjectsModel ( const RecentProjectsModel other)
delete
RecentProjectsModel ( const Workspace workspace)
explicitnoexcept

+ Here is the call graph for this function:

~RecentProjectsModel ( )
noexcept

Member Function Documentation

void setLastRecentProject ( const FilePath filepath)
noexcept
void updateVisibleProjects ( )
noexcept

+ Here is the call graph for this function:

RecentProjectsModel& operator= ( const RecentProjectsModel rhs)
delete
void save ( )
privatenoexcept

+ Here is the call graph for this function:

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

Member Data Documentation

const Workspace& mWorkspace
private
QScopedPointer<SmartSExprFile> mFile
private
QList<FilePath> mAllProjects
private
QList<FilePath> mVisibleProjects
private

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