From d93e44b2019c689c7b490f15d4156ccd85e94864 Mon Sep 17 00:00:00 2001 From: Sam Connelly Date: Tue, 15 Oct 2024 20:15:37 -0400 Subject: [PATCH 1/2] Resolve ambiguous overloaded function argument --- gui/qt/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/qt/mainwindow.cpp b/gui/qt/mainwindow.cpp index 236f7341..3b413086 100644 --- a/gui/qt/mainwindow.cpp +++ b/gui/qt/mainwindow.cpp @@ -1150,7 +1150,7 @@ void MainWindow::showEvent(QShowEvent *e) { DockWidget *MainWindow::redistributeFindDock(const QPoint &pos) { QWidget *child = childAt(pos); if (QTabBar *tabBar = findSelfOrParent(child)) { - child = childAt({pos.x(), tabBar->mapTo(this, QPoint{}).y() - 1}); + child = childAt((const QPoint&){pos.x(), tabBar->mapTo(this, QPoint{}).y() - 1}); } return findSelfOrParent(child); } From 66f5e18c5a6f6b0f6ad2ba089e1fa04f0b7d8521 Mon Sep 17 00:00:00 2001 From: Sam Connelly Date: Tue, 15 Oct 2024 20:36:34 -0400 Subject: [PATCH 2/2] Change the hacky cast to an initializer --- gui/qt/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/qt/mainwindow.cpp b/gui/qt/mainwindow.cpp index 3b413086..04fabf19 100644 --- a/gui/qt/mainwindow.cpp +++ b/gui/qt/mainwindow.cpp @@ -1150,7 +1150,7 @@ void MainWindow::showEvent(QShowEvent *e) { DockWidget *MainWindow::redistributeFindDock(const QPoint &pos) { QWidget *child = childAt(pos); if (QTabBar *tabBar = findSelfOrParent(child)) { - child = childAt((const QPoint&){pos.x(), tabBar->mapTo(this, QPoint{}).y() - 1}); + child = childAt(QPoint({pos.x(), tabBar->mapTo(this, QPoint{}).y() - 1})); } return findSelfOrParent(child); }