summaryrefslogtreecommitdiff
path: root/vcl/source/app
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-04-27 20:35:55 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-04-28 09:42:31 +0200
commit00e90218fd912525f8bfb6592cd235336e8f5496 (patch)
treef17923ffaab842c6768a38a08616b94627ab76b0 /vcl/source/app
parent4ba1909f12b49f020195b5e767045340717ce6df (diff)
add a get_drop_index for dnd interaction with toolbars
Change-Id: I4c7c5cfa36d43a15509498dc4f28c10bf3fd7344 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92991 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/app')
-rw-r--r--vcl/source/app/salvtables.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 5ca6d0a59e52..5ec6794ab2dd 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -1012,6 +1012,14 @@ public:
return m_xToolBox->GetModifier();
}
+ int get_drop_index(const Point& rPoint) const override
+ {
+ auto nRet = m_xToolBox->GetItemPos(rPoint);
+ if (nRet == ToolBox::ITEM_NOTFOUND)
+ return 0;
+ return nRet;
+ }
+
virtual ~SalInstanceToolbar() override
{
m_xToolBox->SetDropdownClickHdl(Link<ToolBox*, void>());