[Libreoffice-commits] core.git: sw/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Sep 24 15:35:03 UTC 2019
sw/source/ui/index/cnttab.cxx | 19 -------------------
sw/source/uibase/inc/swuicnttab.hxx | 1 -
2 files changed, 20 deletions(-)
New commits:
commit 75923e132479b64320f78c6913e5d7241c69ad26
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Sep 24 12:03:39 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Sep 24 17:33:48 2019 +0200
drop SwTOXEntryTabPage::EventNotify
Change-Id: If1bf562ad7e385b4faf0a32b02ac33c8095df8de
Reviewed-on: https://gerrit.libreoffice.org/79454
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index dbaa2c0d2243..d8527538469b 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -2182,25 +2182,6 @@ void SwTOXEntryTabPage::SetFocus2theAllBtn()
m_xAllLevelsPB->grab_focus();
}
-bool SwTOXEntryTabPage::EventNotify( NotifyEvent& rNEvt )
-{
- if ( rNEvt.GetType() == MouseNotifyEvent::KEYINPUT )
- {
- const KeyEvent& rKEvt = *rNEvt.GetKeyEvent();
- vcl::KeyCode aCode = rKEvt.GetKeyCode();
- if ( (aCode.GetCode() == KEY_F4) && aCode.IsShift() && !aCode.IsMod1() && !aCode.IsMod2() )
- {
- if (SwTOXWidget* pActiveControl = m_xTokenWIN->GetActiveControl())
- {
- pActiveControl->GrabFocus();
- }
- }
-
- }
-
- return SfxTabPage::EventNotify(rNEvt);
-}
-
// This function initializes the default value in the Token
// put here the UI dependent initializations
IMPL_LINK(SwTOXEntryTabPage, InsertTokenHdl, weld::Button&, rBtn, void)
diff --git a/sw/source/uibase/inc/swuicnttab.hxx b/sw/source/uibase/inc/swuicnttab.hxx
index 84b90945e2ac..b3613020a1db 100644
--- a/sw/source/uibase/inc/swuicnttab.hxx
+++ b/sw/source/uibase/inc/swuicnttab.hxx
@@ -404,7 +404,6 @@ public:
void PreTokenButtonRemoved(const SwFormToken& rToken);
void SetFocus2theAllBtn();
- virtual bool EventNotify( NotifyEvent& rNEvt ) override;
};
class SwTOXStylesTabPage : public SfxTabPage
More information about the Libreoffice-commits
mailing list