summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2022-09-15 10:19:45 +0200
committerSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2022-09-19 11:42:59 +0200
commit467085bfb0f595a094389c2de159589372d36d1e (patch)
tree1124baddedd97a081015513aab0dd8656fe3d683 /svtools
parentde90c192cb8f1f03a4028493d8bfe9a127a76b2a (diff)
Rename MouseNotifyEvent to NotifyEventType
Also contains keyboard and focus events, not only mouse events Change-Id: Iec1d6c341b01a489ba80fe9634ea3579afb02ea9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139970 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/brwbox/editbrowsebox.cxx6
-rw-r--r--svtools/source/control/tabbar.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/brwbox/editbrowsebox.cxx b/svtools/source/brwbox/editbrowsebox.cxx
index 8cadf47483f2..46f3379b7847 100644
--- a/svtools/source/brwbox/editbrowsebox.cxx
+++ b/svtools/source/brwbox/editbrowsebox.cxx
@@ -623,7 +623,7 @@ namespace svt
bool EditBrowseBox::PreNotify(NotifyEvent& rEvt)
{
- if (rEvt.GetType() == MouseNotifyEvent::KEYINPUT)
+ if (rEvt.GetType() == NotifyEventType::KEYINPUT)
{
if ( (IsEditing() && ControlHasFocus())
|| rEvt.GetWindow() == &GetDataWindow()
@@ -647,11 +647,11 @@ namespace svt
{
switch (rEvt.GetType())
{
- case MouseNotifyEvent::GETFOCUS:
+ case NotifyEventType::GETFOCUS:
DetermineFocus(getRealGetFocusFlags(this));
break;
- case MouseNotifyEvent::LOSEFOCUS:
+ case NotifyEventType::LOSEFOCUS:
DetermineFocus();
break;
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index a1a074c4470a..700c1c37767b 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -1303,7 +1303,7 @@ void TabBar::Resize()
bool TabBar::PreNotify(NotifyEvent& rNEvt)
{
- if (rNEvt.GetType() == MouseNotifyEvent::COMMAND)
+ if (rNEvt.GetType() == NotifyEventType::COMMAND)
{
if (rNEvt.GetCommandEvent()->GetCommand() == CommandEventId::Wheel)
{