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;
459bool TaskFilterProxyModel::filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const
static bool isPlatformX11()
bool isEmpty() const const
QVariant data(int role) const const
bool isValid() const const
QObject * parent() const const
int x() const const
int y() const const
bool contains(const QPoint &point, bool proper) const const
bool intersects(const QRect &rectangle) const const
bool isValid() const const
QSize size() const const
int x() const const
int y() const const
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-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.