Plasma-workspace
tasksmodel.h
47class TASKMANAGER_EXPORT TasksModel : public QSortFilterProxyModel, public AbstractTasksModelIface, public QQmlParserStatus
56 Q_PROPERTY(QStringList launcherList READ launcherList WRITE setLauncherList NOTIFY launcherListChanged)
58 Q_PROPERTY(bool anyTaskDemandsAttention READ anyTaskDemandsAttention NOTIFY anyTaskDemandsAttentionChanged)
60 Q_PROPERTY(QVariant virtualDesktop READ virtualDesktop WRITE setVirtualDesktop NOTIFY virtualDesktopChanged)
61 Q_PROPERTY(QRect screenGeometry READ screenGeometry WRITE setScreenGeometry NOTIFY screenGeometryChanged)
62 Q_PROPERTY(QRect regionGeometry READ regionGeometry WRITE setRegionGeometry NOTIFY regionGeometryChanged)
65 Q_PROPERTY(bool filterByVirtualDesktop READ filterByVirtualDesktop WRITE setFilterByVirtualDesktop NOTIFY filterByVirtualDesktopChanged)
66 Q_PROPERTY(bool filterByScreen READ filterByScreen WRITE setFilterByScreen NOTIFY filterByScreenChanged)
67 Q_PROPERTY(bool filterByActivity READ filterByActivity WRITE setFilterByActivity NOTIFY filterByActivityChanged)
68 Q_PROPERTY(RegionFilterMode::Mode filterByRegion READ filterByRegion WRITE setFilterByRegion NOTIFY filterByRegionChanged)
69 Q_PROPERTY(bool filterMinimized READ filterMinimized WRITE setFilterMinimized NOTIFY filterMinimizedChanged)
70 Q_PROPERTY(bool filterNotMinimized READ filterNotMinimized WRITE setFilterNotMinimized NOTIFY filterNotMinimizedChanged)
71 Q_PROPERTY(bool filterNotMaximized READ filterNotMaximized WRITE setFilterNotMaximized NOTIFY filterNotMaximizedChanged)
75 Q_PROPERTY(bool separateLaunchers READ separateLaunchers WRITE setSeparateLaunchers NOTIFY separateLaunchersChanged)
76 Q_PROPERTY(bool launchInPlace READ launchInPlace WRITE setLaunchInPlace NOTIFY launchInPlaceChanged)
77 Q_PROPERTY(bool hideActivatedLaunchers READ hideActivatedLaunchers WRITE setHideActivatedLaunchers NOTIFY hideActivatedLaunchersChanged)
82 int groupingWindowTasksThreshold READ groupingWindowTasksThreshold WRITE setGroupingWindowTasksThreshold NOTIFY groupingWindowTasksThresholdChanged)
83 Q_PROPERTY(QStringList groupingAppIdBlacklist READ groupingAppIdBlacklist WRITE setGroupingAppIdBlacklist NOTIFY groupingAppIdBlacklistChanged)
84 Q_PROPERTY(QStringList groupingLauncherUrlBlacklist READ groupingLauncherUrlBlacklist WRITE setGroupingLauncherUrlBlacklist NOTIFY
86 Q_PROPERTY(bool taskReorderingEnabled READ taskReorderingEnabled WRITE setTaskReorderingEnabled NOTIFY taskReorderingEnabledChanged)
111 Q_INVOKABLE int rowCount(const QModelIndex &parent = QModelIndex()) const override; // Invokable.
866 Q_INVOKABLE void requestVirtualDesktops(const QModelIndex &index, const QVariantList &desktops) override;
887 Q_INVOKABLE void requestActivities(const QModelIndex &index, const QStringList &activities) override;
904 Q_INVOKABLE void requestPublishDelegateGeometry(const QModelIndex &index, const QRect &geometry, QObject *delegate = nullptr) override;
Pure virtual method interface for tasks model implementations.
Definition abstracttasksmodeliface.h:26
void setFilterNotMinimized(bool filter)
Set whether non-minimized tasks should be filtered.
Definition tasksmodel.cpp:1179
void setLaunchInPlace(bool launchInPlace)
Sets whether window tasks should be sorted as their associated launcher tasks or separately.
Definition tasksmodel.cpp:1272
void setFilterByVirtualDesktop(bool filter)
Set whether tasks should be filtered by virtual desktop.
Definition tasksmodel.cpp:1129
void setFilterByActivity(bool filter)
Set whether tasks should be filtered by activity.
Definition tasksmodel.cpp:1149
void setFilterByRegion(RegionFilterMode::Mode mode)
Set whether tasks should be filtered by region.
Definition tasksmodel.cpp:1159
void setRegionGeometry(const QRect &geometry)
Set the geometry of the screen to use in filtering by region.
Definition tasksmodel.cpp:1109
void setGroupingWindowTasksThreshold(int threshold)
Sets the number of window tasks (AbstractTasksModel::IsWindow) above which groups will be formed,...
Definition tasksmodel.cpp:1342
void setGroupingAppIdBlacklist(const QStringList &list)
Sets the blacklist of app ids (AbstractTasksModel::AppId) that is consulted before grouping a task.
Definition tasksmodel.cpp:1364
void setGroupingLauncherUrlBlacklist(const QStringList &list)
Sets the blacklist of launcher URLs (AbstractTasksModel::LauncherUrl) that is consulted before groupi...
Definition tasksmodel.cpp:1380
void setLauncherList(const QStringList &launchers)
Replace the list of launcher URL strings.
Definition tasksmodel.cpp:1408
void setFilterNotMaximized(bool filter)
Set whether non-maximized tasks should be filtered.
Definition tasksmodel.cpp:1189
void setFilterMinimized(bool filter)
Sets whether non-minimized tasks should be filtered out.
Definition tasksmodel.cpp:1169
void setTaskReorderingEnabled(bool enabled)
Enables or disables tasks reordering.
Definition tasksmodel.cpp:1392
void setGroupInline(bool groupInline)
Sets whether grouping is done "inline" or not, i.e.
Definition tasksmodel.cpp:1326
void setFilterHidden(bool filter)
Set whether hidden tasks should be filtered.
Definition tasksmodel.cpp:1199
@ SortActivity
Tasks are sorted by the number of tasks on the activities they're on.
Definition tasksmodel.h:95
@ SortAlpha
Tasks are sorted alphabetically, by AbstractTasksModel::AppName and Qt::DisplayRole.
Definition tasksmodel.h:93
void setVirtualDesktop(const QVariant &desktop=QVariant())
Set the id of the virtual desktop to use in filtering by virtual desktop.
Definition tasksmodel.cpp:1089
void setSeparateLaunchers(bool separate)
Sets whether launchers are kept separate from other kinds of tasks.
Definition tasksmodel.cpp:1255
void setHideActivatedLaunchers(bool hideActivatedLaunchers)
Sets whether launchers should be hidden after they have been activated.
Definition tasksmodel.cpp:1297
void setActivity(const QString &activity)
Set the id of the activity to use in filtering by activity.
Definition tasksmodel.cpp:1119
void setGroupMode(TasksModel::GroupMode mode)
Sets the group mode, i.e.
Definition tasksmodel.cpp:1309
void setSortMode(SortMode mode)
Sets the sort mode used in sorting tasks.
Definition tasksmodel.cpp:1209
void setFilterByScreen(bool filter)
Set whether tasks should be filtered by screen.
Definition tasksmodel.cpp:1139
void setScreenGeometry(const QRect &geometry)
Set the geometry of the screen to use in filtering by screen.
Definition tasksmodel.cpp:1099
Provides basic virtual desktop information.
Definition virtualdesktopinfo.h:27
Q_INTERFACES(...)
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
QSortFilterProxyModel(QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:53 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:53 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.