windows: Port some code from QWindow to Window

Removed the respectives Q_OS_WIN_TODO as they compile now
This commit is contained in:
Sergio Martins
2022-05-30 22:54:20 +01:00
parent 340e65df0b
commit 827008a96a
6 changed files with 38 additions and 22 deletions

View File

@@ -16,6 +16,8 @@
#include <QScreen>
#include <QVariant>
#include <QtGui/private/qhighdpiscaling_p.h>
using namespace KDDockWidgets;
Window_qt::Window_qt(QWindow *window)
@@ -138,3 +140,8 @@ QSize Window_qt::maxSize() const
{
return m_window->maximumSize();
}
QPoint Window_qt::fromNativePixels(QPoint nativePos) const
{
return QHighDpi::fromNativePixels(nativePos, m_window.data());
}