summaryrefslogtreecommitdiff
path: root/vcl/inc/treeglue.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/inc/treeglue.hxx')
-rw-r--r--vcl/inc/treeglue.hxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/vcl/inc/treeglue.hxx b/vcl/inc/treeglue.hxx
index da4cc1ffeaf9..11c61944f5e1 100644
--- a/vcl/inc/treeglue.hxx
+++ b/vcl/inc/treeglue.hxx
@@ -127,7 +127,7 @@ public:
m_aModelChangedHdl.Call(this);
}
- virtual SvTreeListEntry* GetDropTarget(const Point& rPos) override
+ SvTreeListEntry* GetTargetAtPoint(const Point& rPos, bool bHighLightTarget)
{
SvTreeListEntry* pOldTargetEntry = pTargetEntry;
pTargetEntry = pImpl->GetEntry(rPos);
@@ -150,11 +150,16 @@ public:
}
}
- if (pTargetEntry)
+ if (pTargetEntry && bHighLightTarget)
ImplShowTargetEmphasis(pTargetEntry, true);
return pTargetEntry;
}
+ virtual SvTreeListEntry* GetDropTarget(const Point& rPos) override
+ {
+ return GetTargetAtPoint(rPos, true);
+ }
+
virtual bool EditingEntry(SvTreeListEntry* pEntry, Selection&) override
{
return m_aEditingEntryHdl.Call(pEntry);