diff options
author | Gergo Mocsi <gmocsi91@gmail.com> | 2013-07-25 16:15:27 +0200 |
---|---|---|
committer | Gergo Mocsi <gmocsi91@gmail.com> | 2013-09-02 18:16:49 +0200 |
commit | d5aa9c3b23f6c9b5ff0b6af11ff6d6827c5f24bd (patch) | |
tree | 7459b7b96eb233133c18f3fa53d2c76cff6aba68 /include | |
parent | 59520bd3f1cd619cfe02ea1d6c8d8888413fd9af (diff) |
GSOC work, disable QuickSelectionEngine+ListBox navigation modification
Added a function to disable QuickSelectionEngine in ListBox, beacuse it's not needed.
ListBox navigation changed: it is not hiding/showing entries, instead of it, jumps to the longest match without filtering.
Arrow behavior remains the same.
Change-Id: I8982c280f20929c74f9630cbaa95010820d2e234
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/lstbox.hxx | 2 | ||||
-rw-r--r-- | include/vcl/quickselectionengine.hxx | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/vcl/lstbox.hxx b/include/vcl/lstbox.hxx index 0e754be399ae..3680522ff539 100644 --- a/include/vcl/lstbox.hxx +++ b/include/vcl/lstbox.hxx @@ -230,6 +230,8 @@ public: void setMaxWidthChars(sal_Int32 nWidth); virtual bool set_property(const OString &rKey, const OString &rValue); + + void EnableQuickSelection( const bool& b ); }; // ---------------- diff --git a/include/vcl/quickselectionengine.hxx b/include/vcl/quickselectionengine.hxx index 3bfa7a9e34d4..1be7622cacbe 100644 --- a/include/vcl/quickselectionengine.hxx +++ b/include/vcl/quickselectionengine.hxx @@ -75,9 +75,11 @@ namespace vcl bool HandleKeyEvent( const KeyEvent& _rKEvt ); void Reset(); + void SetEnabled( const bool& b ); private: ::std::auto_ptr< QuickSelectionEngine_Data > m_pData; + bool bEnabled; private: QuickSelectionEngine(); // never implemented |