diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-03 10:53:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-03 12:16:38 +0200 |
commit | 77e9216ca1073caa0dcec23ef89808cc7f80fc06 (patch) | |
tree | 71ea2c3841f1a1017123dec44552239d74fd7a4a /vcl/source/window/toolbox.cxx | |
parent | 81903d443116c643a9ff92d92c092812abc7f57d (diff) |
loplugin:unusedfields
and filter out the weld fields, since we're not touching them yet
Change-Id: I3cc23c46d2650f13cb29c7d381687939d23e2882
Reviewed-on: https://gerrit.libreoffice.org/80104
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window/toolbox.cxx')
-rw-r--r-- | vcl/source/window/toolbox.cxx | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx index 267d2389e18a..82640c566927 100644 --- a/vcl/source/window/toolbox.cxx +++ b/vcl/source/window/toolbox.cxx @@ -2578,22 +2578,6 @@ void ToolBox::ImplDrawItem(vcl::RenderContext& rRenderContext, ImplToolItems::si // Compute buttons area. Size aBtnSize = pItem->maRect.GetSize(); - if( ImplGetSVData()->maNWFData.mbToolboxDropDownSeparate ) - { - // separate button not for dropdown only where the whole button is painted - // exception: when text position is set to bottom then we want to calculate rect for dropdown only button - if ( ( pItem->mnBits & ToolBoxItemBits::DROPDOWN && - ((pItem->mnBits & ToolBoxItemBits::DROPDOWNONLY) != ToolBoxItemBits::DROPDOWNONLY) ) - || ( ( pItem->mnBits & ToolBoxItemBits::DROPDOWN) && ( meTextPosition == ToolBoxTextPosition::Bottom ) ) ) - { - tools::Rectangle aArrowRect = pItem->GetDropDownRect( mbHorz ); - if( aArrowRect.Top() == pItem->maRect.Top() ) // dropdown arrow on right side - aBtnSize.AdjustWidth( -(aArrowRect.GetWidth()) ); - else if ( !( (meTextPosition == ToolBoxTextPosition::Bottom) - && ((pItem->mnBits & ToolBoxItemBits::DROPDOWNONLY) == ToolBoxItemBits::DROPDOWNONLY) ) ) - aBtnSize.AdjustHeight( -(aArrowRect.GetHeight()) ); // dropdown arrow on bottom side - } - } /* Compute the button/separator rectangle here, we'll need it for * both the buttons and the separators. */ |