diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-10-04 17:12:40 +0200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-10-18 20:36:15 +0200 |
commit | 6685793351178364460e1580e07b2bf5ccc043ce (patch) | |
tree | fe9551c23fb2eb88640f6e3f9030c38a47957602 /vcl/qt5/Qt5Frame.cxx | |
parent | b2fdf08169fea536bc05e49bf63d70d6fdbfe31b (diff) |
Basic structures for qt5 drag'n'drop support
put (so far) no-op UNO ifaces in place
Change-Id: I95394cfe05b8e3db21ddce6dfed1c1bb1d0e6381
Reviewed-on: https://gerrit.libreoffice.org/61385
Tested-by: Jenkins
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'vcl/qt5/Qt5Frame.cxx')
-rw-r--r-- | vcl/qt5/Qt5Frame.cxx | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/vcl/qt5/Qt5Frame.cxx b/vcl/qt5/Qt5Frame.cxx index b42ec5e08a0c..070342601bbd 100644 --- a/vcl/qt5/Qt5Frame.cxx +++ b/vcl/qt5/Qt5Frame.cxx @@ -27,6 +27,7 @@ #include <Qt5MainWindow.hxx> #include <Qt5Data.hxx> #include <Qt5Menu.hxx> +#include <Qt5DragAndDrop.hxx> #include <QtCore/QPoint> #include <QtCore/QSize> @@ -835,4 +836,31 @@ void Qt5Frame::SetApplicationID(const OUString&) // So the hope is that QGuiApplication deals with this properly.. } +// Drag'n'drop foo +void Qt5Frame::registerDragSource(Qt5DragSource* pDragSource) +{ + assert(!m_pDragSource); + m_pDragSource = pDragSource; +} + +void Qt5Frame::deregisterDragSource(Qt5DragSource const* pDragSource) +{ + assert(m_pDragSource == pDragSource); + (void)pDragSource; + m_pDragSource = nullptr; +} + +void Qt5Frame::registerDropTarget(Qt5DropTarget* pDropTarget) +{ + assert(!m_pDropTarget); + m_pDropTarget = pDropTarget; +} + +void Qt5Frame::deregisterDropTarget(Qt5DropTarget const* pDropTarget) +{ + assert(m_pDropTarget == pDropTarget); + (void)pDropTarget; + m_pDropTarget = nullptr; +} + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |