Fix TODO about renaming variable

This commit is contained in:
Sergio Martins
2022-06-04 20:26:35 +01:00
parent 0f8823664c
commit 03a17c3a9d
2 changed files with 4 additions and 3 deletions

View File

@@ -827,16 +827,16 @@ static QRect topLevelGeometry(const QWidget *topLevel)
#endif
static ViewWrapper::Ptr qtTopLevelUnderCursor_impl(QPoint globalPos, const Window::List &windows,
View *windowBeingDragged) // TODOm2: Rename to viewBeingDragged
View *rootViewBeingDragged)
{
for (auto i = windows.size() - 1; i >= 0; --i) {
Window::Ptr window = windows.at(i);
auto tl = window->rootView();
if (!tl->isVisible() || tl->equals(windowBeingDragged) || tl->isMinimized())
if (!tl->isVisible() || tl->equals(rootViewBeingDragged) || tl->isMinimized())
continue;
if (windowBeingDragged && windowBeingDragged->window()->equals(window))
if (rootViewBeingDragged && rootViewBeingDragged->window()->equals(window))
continue;
if (window->geometry().contains(globalPos)) {

View File

@@ -56,6 +56,7 @@ inline std::shared_ptr<ViewWrapper> asQQuickWrapper(QQuickItem *item)
}
class DOCKS_EXPORT View_qtquick : public QQuickItem,
public View
{