diff options
author | Jim Raykowski <raykowj@gmail.com> | 2018-01-01 14:52:41 -0900 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-01-11 11:30:08 +0100 |
commit | 582b2ed5ba25657afc2c2d45860899325b3b2450 (patch) | |
tree | 60ec98ab10f80fb2da3a08ab8beb3d73e3c344b7 /svtools/source/contnr | |
parent | f66fbd947f70f6be6b22ab372facaeb9e2fb63ae (diff) |
tdf#36308 make double click not expand/collapse node in Navigator tree
Change-Id: I0075af147e5aa02f09db57fc2113dcdfcab5bc57
Reviewed-on: https://gerrit.libreoffice.org/47241
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Heiko Tietze <tietze.heiko@gmail.com>
Tested-by: Heiko Tietze <tietze.heiko@gmail.com>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'svtools/source/contnr')
-rw-r--r-- | svtools/source/contnr/svimpbox.cxx | 11 | ||||
-rw-r--r-- | svtools/source/contnr/treelistbox.cxx | 5 |
2 files changed, 12 insertions, 4 deletions
diff --git a/svtools/source/contnr/svimpbox.cxx b/svtools/source/contnr/svimpbox.cxx index 8c3f8ed0e093..1b0e4ac4f509 100644 --- a/svtools/source/contnr/svimpbox.cxx +++ b/svtools/source/contnr/svimpbox.cxx @@ -2037,10 +2037,13 @@ void SvImpLBox::MouseButtonDown( const MouseEvent& rMEvt ) } if( pEntry->HasChildren() || pEntry->HasChildrenOnDemand() ) { - if( pView->IsExpanded(pEntry) ) - pView->Collapse( pEntry ); - else - pView->Expand( pEntry ); + if( bSubLstOpDblClick ) + { + if( pView->IsExpanded(pEntry) ) + pView->Collapse( pEntry ); + else + pView->Expand( pEntry ); + } if( pEntry == pCursor ) // only if Entryitem was clicked // (Nodebutton is not an Entryitem!) pView->Select( pCursor ); diff --git a/svtools/source/contnr/treelistbox.cxx b/svtools/source/contnr/treelistbox.cxx index 02e5d0416c91..c3da96e85bf5 100644 --- a/svtools/source/contnr/treelistbox.cxx +++ b/svtools/source/contnr/treelistbox.cxx @@ -1434,6 +1434,11 @@ void SvTreeListBox::SetSublistOpenWithLeftRight() pImpl->bSubLstOpLR = true; } +void SvTreeListBox::SetSublistNotOpenWithDoubleClick() +{ + pImpl->bSubLstOpDblClick = false; +} + void SvTreeListBox::Resize() { if( IsEditingActive() ) |