diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-10-05 11:39:49 +0200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-10-18 20:37:20 +0200 |
commit | 0585043a6f326a2e108a51bba251ce77ca6a2ea0 (patch) | |
tree | 9f460c975f631f2ff8c82dd132e6e7c83fda9c7d /vcl/qt5 | |
parent | 6685793351178364460e1580e07b2bf5ccc043ce (diff) |
Just enough of SystemEnvData for drag'n'drop
Change-Id: I18ef6cb58632898ddfcb28098b99447565bcfb99
Reviewed-on: https://gerrit.libreoffice.org/61720
Tested-by: Jenkins
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'vcl/qt5')
-rw-r--r-- | vcl/qt5/Qt5Frame.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/vcl/qt5/Qt5Frame.cxx b/vcl/qt5/Qt5Frame.cxx index 070342601bbd..ae3ae325ccd2 100644 --- a/vcl/qt5/Qt5Frame.cxx +++ b/vcl/qt5/Qt5Frame.cxx @@ -133,6 +133,14 @@ Qt5Frame::Qt5Frame(Qt5Frame* pParent, SalFrameStyleFlags nStyle, bool bUseCairo) maGeometry.nLeftDecoration = 0; maGeometry.nRightDecoration = 0; } + + m_aSystemData.nSize = sizeof(SystemEnvData); + //m_aSystemData.aWindow = GetNativeWindowHandle(m_pWindow); + m_aSystemData.aShellWindow = reinterpret_cast<sal_IntPtr>(this); + //m_aSystemData.pSalFrame = this; + //m_aSystemData.pWidget = m_pQWidget; + //m_aSystemData.nScreen = m_nXScreen.getXScreen(); + m_aSystemData.pToolkit = "qt5"; } Qt5Frame::~Qt5Frame() @@ -143,6 +151,7 @@ Qt5Frame::~Qt5Frame() delete m_pTopLevel; else delete m_pQWidget; + m_aSystemData.aShellWindow = 0; } void Qt5Frame::Damage(sal_Int32 nExtentsX, sal_Int32 nExtentsY, sal_Int32 nExtentsWidth, @@ -780,8 +789,6 @@ void Qt5Frame::UpdateSettings(AllSettings& rSettings) void Qt5Frame::Beep() { QApplication::beep(); } -const SystemEnvData* Qt5Frame::GetSystemData() const { return nullptr; } - SalFrame::SalPointerState Qt5Frame::GetPointerState() { SalPointerState aState; |