[Libreoffice-commits] core.git: include/vcl
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Aug 7 08:08:04 UTC 2020
include/vcl/treelistbox.hxx | 28 +++++++++-------------------
1 file changed, 9 insertions(+), 19 deletions(-)
New commits:
commit e73ca98ebeeddac05dcf224e517970ede582eb9f
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Aug 6 17:23:06 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Aug 7 10:07:17 2020 +0200
SvTreeListBox::HandleKeyInput can be private
and update the comment to state what it has been
truncated to do
Change-Id: I96caa247e097625a7c0569eb589873fce688e8a1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100266
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/include/vcl/treelistbox.hxx b/include/vcl/treelistbox.hxx
index 6e6ba94ccf0e..cd6a5abf262d 100644
--- a/include/vcl/treelistbox.hxx
+++ b/include/vcl/treelistbox.hxx
@@ -272,6 +272,15 @@ private:
VCL_DLLPRIVATE void DrawCustomEntry(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect, const SvTreeListEntry& rEntry);
VCL_DLLPRIVATE Size MeasureCustomEntry(vcl::RenderContext& rRenderContext, const SvTreeListEntry& rEntry);
+ /** Handles the given key event.
+
+ At the moment this merely does typeahead if typeahead is enabled.
+
+ @return
+ <TRUE/> if the event has been consumed, <FALSE/> otherwise.
+ */
+ VCL_DLLPRIVATE bool HandleKeyInput(const KeyEvent& rKEvt);
+
void UnsetDropTarget();
protected:
@@ -390,25 +399,6 @@ public:
bool TextCenterAndClipEnabled() const { return mbCenterAndClipText; }
- /** Handles the given key event.
-
- At the moment this merely checks for accelerator keys, if entry mnemonics
- are enabled.
-
- This method may come in handy if you want to use keyboard acceleration
- while the control does not have the focus.
-
- If the key event describes the pressing of a shortcut for an entry,
- then SelectSearchEntry resp. ExecuteSearchEntry are called.
-
- @see IMnemonicEntryList
- @see MnemonicEngine
-
- @return
- <TRUE/> if the event has been consumed, <FALSE/> otherwise.
- */
- bool HandleKeyInput( const KeyEvent& rKEvt );
-
void SetSelectHdl( const Link<SvTreeListBox*,void>& rNewHdl ) {aSelectHdl=rNewHdl; }
void SetDeselectHdl( const Link<SvTreeListBox*,void>& rNewHdl ) {aDeselectHdl=rNewHdl; }
void SetDoubleClickHdl(const Link<SvTreeListBox*,bool>& rNewHdl) {aDoubleClickHdl=rNewHdl;}
More information about the Libreoffice-commits
mailing list