Fix non-windows developer build

Build was complaining about unused function
This commit is contained in:
Sergio Martins
2021-05-25 14:06:02 +01:00
parent 49c7cea3a5
commit bb1b3c7b7b

View File

@@ -786,7 +786,6 @@ static QWidgetOrQuick *qtTopLevelForHWND(HWND hwnd)
qCDebug(toplevels) << Q_FUNC_INFO << "Couldn't find hwnd for top-level" << hwnd;
return nullptr;
}
#endif
static QRect topLevelGeometry(const QWidgetOrQuick* topLevel)
{
@@ -796,6 +795,8 @@ static QRect topLevelGeometry(const QWidgetOrQuick* topLevel)
return topLevel->geometry();
}
#endif
template <typename T>
static WidgetType* qtTopLevelUnderCursor_impl(QPoint globalPos, const QVector<QWindow*> &windows, T windowBeingDragged)
{