fixed checkbox selection on installedAppsDrawer (#759)
* fixed checkbox selection on installedAppsDrawer * added sorting by name for split tunneling by application
This commit is contained in:
parent
79edbe52a3
commit
5c19b08e5e
4 changed files with 14 additions and 6 deletions
|
@ -1,18 +1,19 @@
|
|||
#ifndef INSTALLEDAPPSMODEL_H
|
||||
#define INSTALLEDAPPSMODEL_H
|
||||
|
||||
#include <QJsonArray>
|
||||
#include <QAbstractListModel>
|
||||
#include <QJsonArray>
|
||||
|
||||
class InstalledAppsModel: public QAbstractListModel
|
||||
class InstalledAppsModel : public QAbstractListModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
enum Roles {
|
||||
AppNameRole= Qt::UserRole + 1,
|
||||
AppNameRole = Qt::UserRole + 1,
|
||||
PackageNameRole,
|
||||
AppIconRole
|
||||
AppIconRole,
|
||||
IsAppSelectedRole
|
||||
};
|
||||
|
||||
explicit InstalledAppsModel(QObject *parent = nullptr);
|
||||
|
@ -22,7 +23,7 @@ public:
|
|||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
|
||||
|
||||
public slots:
|
||||
void selectedStateChanged(const int index, const bool selected);
|
||||
void selectedStateChanged(const int index, const bool selected);
|
||||
QVector<QPair<QString, QString>> getSelectedAppsInfo();
|
||||
|
||||
void updateModel();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue