[plasma/kwin] src/decorations: decorations: Port away from QRectF

Vlad Zahorodnii <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 578d600f5a8990b8b9bbca0312ccf0e93059e846 by Vlad Zahorodnii.
Committed on 22/07/2026 at 06:51.
Pushed by vladz into branch 'master'.

decorations: Port away from QRectF

M  +2    -2    src/decorations/decoratedwindow.cpp

https://invent.kde.org/plasma/kwin/-/commit/578d600f5a8990b8b9bbca0312ccf0e93059e846

diff --git a/src/decorations/decoratedwindow.cpp b/src/decorations/decoratedwindow.cpp
index a190ed8d82d..aa46acc4d6d 100644
--- a/src/decorations/decoratedwindow.cpp
+++ b/src/decorations/decoratedwindow.cpp
@@ -227,7 +227,7 @@ void DecoratedWindowImpl::requestShowWindowMenu(const QRect &rect)
     if (m_window->isDeleted()) {
         return;
     }
-    Workspace::self()->showWindowMenu(QRectF(m_window->pos() + rect.topLeft(), m_window->pos() + rect.bottomRight()).toRect(), m_window);
+    Workspace::self()->showWindowMenu(RectF(m_window->pos() + rect.topLeft(), m_window->pos() + rect.bottomRight()).toRect(), m_window);
 }
 
 void DecoratedWindowImpl::requestShowApplicationMenu(const QRect &rect, int actionId)
@@ -341,7 +341,7 @@ QString DecoratedWindowImpl::applicationMenuObjectPath() const
 
 void DecoratedWindowImpl::popup(const KDecoration3::Positioner &positioner, QMenu *menu)
 {
-    const QRectF anchorRect = positioner.anchorRect().translated(m_window->pos());
+    const RectF anchorRect = positioner.anchorRect().translated(m_window->pos());
     const QPointF position = qGuiApp->layoutDirection() == Qt::RightToLeft
         ? QPointF(anchorRect.right() - menu->width(), anchorRect.bottom())
         : QPointF(anchorRect.left(), anchorRect.bottom());
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.