|
|
| ProfileModel (QObject *parent=Q_NULLPTR) |
| |
|
void | fillTable () |
| |
|
virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| |
|
virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| |
|
virtual QVariant | data (const QModelIndex &idx, int role=Qt::DisplayRole) const |
| |
|
virtual bool | setData (const QModelIndex &index, const QVariant &value, int role) |
| |
|
virtual QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| |
|
virtual Qt::ItemFlags | flags (const QModelIndex &index) const |
| |
|
void | deleteEntries (QModelIndexList idcs) |
| |
|
bool | restoreEntries (QModelIndexList idcs) |
| |
|
int | findByName (const QString &name) |
| |
|
QModelIndex | addNewProfile (QString name) |
| |
|
QModelIndex | duplicateEntry (QModelIndex idx, ProfileItem::StatusType status=ProfileItem::StatusType::Copy) |
| |
|
QModelIndex | activeProfile () const |
| |
|
bool | userProfilesExist () const |
| |
|
bool | isDataValid (QString &err) |
| |
|
void | importProfilesFromDir (QString filename, int &skippedCnt, QStringList &importList, bool fromZip=false) |
| |
|
QList< int > | findAllByNameAndVisibility (const QString &name, bool isGlobal=false, bool searchReference=false) const |
| |
|
bool | checkDuplicate (const QModelIndex &index, bool isOriginalToDuplicate=false) const |
| |
|
void | applyChanges () |
| |
|
const ProfileItem * | getCurrentProfile () const |
| |
|
const ProfileItem * | getProfile (int index) const |
| |
|
const ProfileItem * | getPersonalProfile (const QString &name) |
| |
|
QVariant | dataPath (const QModelIndex &idx, QString &profilePath) const |
| |