ProfileListModel Class
class ScreenPlay::ProfileListModelUsed to save all active wallpapers and widgets position and configurations after a restart. More...
Header: | #include <ProfileListModel> |
Public Functions
ProfileListModel(const std::shared_ptr<GlobalVariables> &globalVariables, QObject *parent = nullptr) | |
void | append(const ScreenPlay::Profile &profile) |
bool | getProfileByName(QString id, ScreenPlay::Profile *profile) |
Reimplemented Public Functions
virtual QVariant | data(const QModelIndex &index, int role = Qt::DisplayRole) const override |
virtual QHash<int, QByteArray> | roleNames() const override |
virtual int | rowCount(const QModelIndex &parent = QModelIndex()) const override |
Detailed Description
Not yet in used class. Otherwhise it is a regular QAbstractListModel based list model.
Member Function Documentation
ProfileListModel::ProfileListModel(const std::shared_ptr<GlobalVariables> &globalVariables, QObject *parent = nullptr)
Constructor
void ProfileListModel::append(const ScreenPlay::Profile &profile)
.
[override virtual]
QVariant ProfileListModel::data(const QModelIndex &index, int role = Qt::DisplayRole) const
.
bool ProfileListModel::getProfileByName(QString id, ScreenPlay::Profile *profile)
.
[override virtual]
QHash<int, QByteArray> ProfileListModel::roleNames() const
.
[override virtual]
int ProfileListModel::rowCount(const QModelIndex &parent = QModelIndex()) const
.