diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-10-15 14:44:29 +0200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2018-10-19 10:05:00 +0200 |
commit | 5ebef042bd44e9babd58f53b4458616aa3215beb (patch) | |
tree | 2ba2ad7304390d6bcce33954e79d88cb406c0057 /vcl/inc | |
parent | 2c1b7e8d6a7fa22cb91919238418816671c3a497 (diff) |
Kick-start beginning of drag event
Change-Id: Iaad25a7acdc7d64013bc3dd0d9410e7d2d5c6762
Reviewed-on: https://gerrit.libreoffice.org/61791
Tested-by: Jenkins
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/qt5/Qt5DragAndDrop.hxx | 6 | ||||
-rw-r--r-- | vcl/inc/qt5/Qt5Frame.hxx | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/vcl/inc/qt5/Qt5DragAndDrop.hxx b/vcl/inc/qt5/Qt5DragAndDrop.hxx index 733cf4d03570..424a1ba638e4 100644 --- a/vcl/inc/qt5/Qt5DragAndDrop.hxx +++ b/vcl/inc/qt5/Qt5DragAndDrop.hxx @@ -57,6 +57,10 @@ public: css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override; void dragFailed(); + css::uno::Reference<css::datatransfer::XTransferable> const& GetTransferable() const + { + return m_xTrans; + } }; class Qt5DropTarget @@ -102,6 +106,8 @@ public: OUString SAL_CALL getImplementationName() override; sal_Bool SAL_CALL supportsService(OUString const& ServiceName) override; css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override; + + void fire_dragEnter(const css::datatransfer::dnd::DropTargetDragEnterEvent& dtde); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/inc/qt5/Qt5Frame.hxx b/vcl/inc/qt5/Qt5Frame.hxx index d3400f378d1f..9ee9f50666e9 100644 --- a/vcl/inc/qt5/Qt5Frame.hxx +++ b/vcl/inc/qt5/Qt5Frame.hxx @@ -75,6 +75,7 @@ class VCLPLUG_QT5_PUBLIC Qt5Frame : public QObject, public SalFrame Qt5DragSource* m_pDragSource; Qt5DropTarget* m_pDropTarget; + bool m_bInDrag; bool m_bDefaultSize; bool m_bDefaultPos; @@ -133,6 +134,7 @@ public: virtual void deregisterDragSource(Qt5DragSource const* pDragSource); virtual void registerDropTarget(Qt5DropTarget* pDropTarget); virtual void deregisterDropTarget(Qt5DropTarget const* pDropTarget); + void draggingStarted(const int x, const int y); virtual void SetExtendedFrameStyle(SalExtStyle nExtStyle) override; virtual void Show(bool bVisible, bool bNoActivate = false) override; |