diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-08-06 16:49:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-08-07 10:05:19 +0200 |
commit | 045847237d5a40b2679d53533db4937aa1c9ac3e (patch) | |
tree | 9ce5f8fd63b1a5213706ac92dff21dd841097b27 /vcl | |
parent | 9e4a4d7511611b9c2182493d846dfef9f69ba083 (diff) |
nothing calls EnableEntryMnemonics anymore
Change-Id: I8ef10b4d2f350b4025e46a153766d60510d1b7d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100262
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/treelist/svlbitm.cxx | 2 | ||||
-rw-r--r-- | vcl/source/treelist/treelistbox.cxx | 24 |
2 files changed, 0 insertions, 26 deletions
diff --git a/vcl/source/treelist/svlbitm.cxx b/vcl/source/treelist/svlbitm.cxx index 6467efcbf8ff..3d456710fbb9 100644 --- a/vcl/source/treelist/svlbitm.cxx +++ b/vcl/source/treelist/svlbitm.cxx @@ -226,8 +226,6 @@ void SvLBoxString::Paint( } Size aSize; - if (rDev.IsEntryMnemonicsEnabled()) - nStyle |= DrawTextFlags::Mnemonic; if (rDev.TextCenterAndClipEnabled()) { nStyle |= DrawTextFlags::PathEllipsis | DrawTextFlags::Center; diff --git a/vcl/source/treelist/treelistbox.cxx b/vcl/source/treelist/treelistbox.cxx index 4776f6b3634b..af55a6ff1133 100644 --- a/vcl/source/treelist/treelistbox.cxx +++ b/vcl/source/treelist/treelistbox.cxx @@ -379,20 +379,15 @@ int SvLBoxItem::CalcWidth(const SvTreeListBox* /*pView*/) const struct SvTreeListBoxImpl { - bool m_bEntryMnemonicsEnabled:1; bool m_bDoingQuickSelection:1; - vcl::MnemonicEngine m_aMnemonicEngine; vcl::QuickSelectionEngine m_aQuickSelectionEngine; explicit SvTreeListBoxImpl(SvTreeListBox& _rBox) : - m_bEntryMnemonicsEnabled(false), m_bDoingQuickSelection(false), - m_aMnemonicEngine(_rBox), m_aQuickSelectionEngine(_rBox) {} }; - SvTreeListBox::SvTreeListBox(vcl::Window* pParent, WinBits nWinStyle) : Control(pParent, nWinStyle | WB_CLIPCHILDREN), DropTargetHelper(this), @@ -430,20 +425,6 @@ void SvTreeListBox::Clear() pModel->Clear(); // Model calls SvTreeListBox::ModelHasCleared() } -void SvTreeListBox::EnableEntryMnemonics() -{ - if ( IsEntryMnemonicsEnabled() ) - return; - - mpImpl->m_bEntryMnemonicsEnabled = true; - Invalidate(); -} - -bool SvTreeListBox::IsEntryMnemonicsEnabled() const -{ - return mpImpl->m_bEntryMnemonicsEnabled; -} - IMPL_LINK( SvTreeListBox, CloneHdl_Impl, SvTreeListEntry*, pEntry, SvTreeListEntry* ) { return CloneEntry(pEntry); @@ -1042,11 +1023,6 @@ bool SvTreeListBox::HandleKeyInput( const KeyEvent& _rKEvt ) if ( _rKEvt.GetKeyCode().IsMod1() ) return false; - if ( IsEntryMnemonicsEnabled() - && mpImpl->m_aMnemonicEngine.HandleKeyEvent( _rKEvt ) - ) - return true; - if (mbQuickSearch) { mpImpl->m_bDoingQuickSelection = true; |