Plasma-workspace
taskfilterproxymodel.cpp
345 && (!d->demandingAttentionSkipsFilters || !sourceIdx.data(AbstractTasksModel::IsDemandingAttention).toBool())) {
346 const QVariantList &virtualDesktops = sourceIdx.data(AbstractTasksModel::VirtualDesktops).toList();
369 if (static const bool isX11 = KWindowSystem::isPlatformX11(); isX11 && windowGeometry.isValid()) {
370 // On X11, in regionGeometry, the original point of the topLeft position belongs to the device coordinate system
371 // but the size belongs to the logical coordinate system (which means the reported size is already divided by DPR)
372 // Converting regionGeometry to device coordinate system is better than converting windowGeometry to logical
373 // coordinate system because the window may span multiple screens, while the region is always on one screen.
377 screenTopLeft + QPoint(regionGeometry.x() - screenTopLeft.x(), regionGeometry.y() - screenTopLeft.y()) * devicePixelRatio;
407 if (!d->demandingAttentionSkipsFilters || !sourceIdx.data(AbstractTasksModel::IsDemandingAttention).toBool()) {
459bool TaskFilterProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const
static bool isPlatformX11()
@ SkipTaskbar
Task should not be shown in a 'task bar' user interface.
Definition abstracttasksmodel.h:76
@ SkipPager
Task should not to be shown in a 'pager' user interface.
Definition abstracttasksmodel.h:77
A proxy tasks model filtering its source model by various properties.
Definition taskfilterproxymodel.h:32
void setFilterByScreen(bool filter)
Set whether tasks should be filtered by screen.
Definition taskfilterproxymodel.cpp:163
void setActivity(const QString &activity)
Set the id of the activity to use in filtering by activity.
Definition taskfilterproxymodel.cpp:129
bool acceptsRow(int sourceRow) const
Returns whether the filter model accepts this source row.
Definition taskfilterproxymodel.cpp:324
void setFilterSkipTaskbar(bool filter)
Set whether tasks which should be omitted from 'task bars' should be filtered.
Definition taskfilterproxymodel.cpp:276
void setVirtualDesktop(const QVariant &desktop=QVariant())
Set the id of the virtual desktop to use in filtering by virtual desktop.
Definition taskfilterproxymodel.cpp:74
void setRegionGeometry(const QRect &geometry)
Set the geometry of the screen to use in filtering by region.
Definition taskfilterproxymodel.cpp:110
void setFilterNotMinimized(bool filter)
Set whether non-minimized tasks should be filtered.
Definition taskfilterproxymodel.cpp:228
void setScreenGeometry(const QRect &geometry)
Set the geometry of the screen to use in filtering by screen.
Definition taskfilterproxymodel.cpp:92
void setDemandingAttentionSkipsFilters(bool skip)
Sets whether tasks which demand attention should bypass filters by virtual desktop or activity.
Definition taskfilterproxymodel.cpp:308
void setFilterByActivity(bool filter)
Set whether tasks should be filtered by activity.
Definition taskfilterproxymodel.cpp:179
void setFilterNotMaximized(bool filter)
Set whether non-maximized tasks should be filtered.
Definition taskfilterproxymodel.cpp:244
void setFilterByRegion(RegionFilterMode::Mode mode)
Set whether tasks should be filtered by region.
Definition taskfilterproxymodel.cpp:195
void setFilterHidden(bool filter)
Set whether hidden tasks should be filtered.
Definition taskfilterproxymodel.cpp:260
void setFilterByVirtualDesktop(bool filter)
Set whether tasks should be filtered by virtual desktop.
Definition taskfilterproxymodel.cpp:147
void setFilterSkipPager(bool filter)
Set whether tasks which should be omitted from 'pagers' should be filtered.
Definition taskfilterproxymodel.cpp:292
void setFilterMinimized(bool filter)
Sets whether non-minimized tasks should be filtered out.
Definition taskfilterproxymodel.cpp:211
virtual QModelIndex parent(const QModelIndex &index) const const=0
sourceModel
bool isEmpty() const const
QVariant data(int role) const const
bool isValid() const const
QObject(QObject *parent)
Q_EMITQ_EMIT
int x() const const
int y() const const
bool isValid() const const
QSortFilterProxyModel(QObject *parent)
void invalidateFilter()
virtual void setSourceModel(QAbstractItemModel *sourceModel) override
bool contains(QLatin1StringView str, Qt::CaseSensitivity cs) const const
bool isNull() const const
bool toBool() const const
QList< QVariant > toList() const const
QRect toRect() const const
QStringList toStringList() const const
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.