windows: Port some code from QWindow to Window
Removed the respectives Q_OS_WIN_TODO as they compile now
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user