Changeset View
Changeset View
Standalone View
Standalone View
scripting/scripting_model.cpp
Show First 20 Lines • Show All 841 Lines • ▼ Show 20 Line(s) | |||||
842 | { \ | 842 | { \ | ||
843 | setLevels(levels); \ | 843 | setLevels(levels); \ | ||
844 | } \ | 844 | } \ | ||
845 | name::~name() {} | 845 | name::~name() {} | ||
846 | 846 | | |||
847 | CLIENT_MODEL_WRAPPER(SimpleClientModel, QList<LevelRestriction>()) | 847 | CLIENT_MODEL_WRAPPER(SimpleClientModel, QList<LevelRestriction>()) | ||
848 | CLIENT_MODEL_WRAPPER(ClientModelByScreen, QList<LevelRestriction>() << ScreenRestriction) | 848 | CLIENT_MODEL_WRAPPER(ClientModelByScreen, QList<LevelRestriction>() << ScreenRestriction) | ||
849 | CLIENT_MODEL_WRAPPER(ClientModelByScreenAndDesktop, QList<LevelRestriction>() << ScreenRestriction << VirtualDesktopRestriction) | 849 | CLIENT_MODEL_WRAPPER(ClientModelByScreenAndDesktop, QList<LevelRestriction>() << ScreenRestriction << VirtualDesktopRestriction) | ||
850 | CLIENT_MODEL_WRAPPER(ClientModelByScreenAndActivity, QList<LevelRestriction>() << ScreenRestriction << ActivityRestriction) | ||||
850 | #undef CLIENT_MODEL_WRAPPER | 851 | #undef CLIENT_MODEL_WRAPPER | ||
851 | 852 | | |||
852 | ClientFilterModel::ClientFilterModel(QObject *parent) | 853 | ClientFilterModel::ClientFilterModel(QObject *parent) | ||
853 | : QSortFilterProxyModel(parent) | 854 | : QSortFilterProxyModel(parent) | ||
854 | , m_clientModel(nullptr) | 855 | , m_clientModel(nullptr) | ||
855 | { | 856 | { | ||
856 | } | 857 | } | ||
857 | 858 | | |||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |