diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-11-19 13:35:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-11-19 20:11:30 +0100 |
commit | 80530986a70bbbcca6cb71ab32da593e11e3684c (patch) | |
tree | fb60c6bdea96f7cb026d8e6231af172b9b2a5a78 /vcl/source/control/button.cxx | |
parent | d273ea2a43886138be553514218c0c3ffda5900f (diff) |
loplugin:unusedenumconstants
Change-Id: Iecfe5d0ba8d7b287aad798daf2c3e0a7c1a5f1d3
Reviewed-on: https://gerrit.libreoffice.org/83191
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/control/button.cxx')
-rw-r--r-- | vcl/source/control/button.cxx | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index 53eaa3ff6b0c..715752c146c4 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -728,32 +728,6 @@ DrawTextFlags PushButton::ImplGetTextStyle( DrawFlags nDrawFlags ) const return nTextStyle; } -static void ImplDrawBtnDropDownArrow( OutputDevice* pDev, - long nX, long nY, - Color const & rColor, bool bBlack ) -{ - Color aOldLineColor = pDev->GetLineColor(); - Color aOldFillColor = pDev->GetFillColor(); - - pDev->SetLineColor(); - if ( bBlack ) - pDev->SetFillColor( COL_BLACK ); - else - pDev->SetFillColor( rColor ); - pDev->DrawRect( tools::Rectangle( nX+0, nY+0, nX+6, nY+0 ) ); - pDev->DrawRect( tools::Rectangle( nX+1, nY+1, nX+5, nY+1 ) ); - pDev->DrawRect( tools::Rectangle( nX+2, nY+2, nX+4, nY+2 ) ); - pDev->DrawRect( tools::Rectangle( nX+3, nY+3, nX+3, nY+3 ) ); - if ( bBlack ) - { - pDev->SetFillColor( rColor ); - pDev->DrawRect( tools::Rectangle( nX+2, nY+1, nX+4, nY+1 ) ); - pDev->DrawRect( tools::Rectangle( nX+3, nY+2, nX+3, nY+2 ) ); - } - pDev->SetLineColor( aOldLineColor ); - pDev->SetFillColor( aOldFillColor ); -} - void PushButton::ImplDrawPushButtonContent(OutputDevice* pDev, DrawFlags nDrawFlags, const tools::Rectangle& rRect, bool bMenuBtnSep, DrawButtonFlags nButtonFlags) @@ -854,26 +828,6 @@ void PushButton::ImplDrawPushButtonContent(OutputDevice* pDev, DrawFlags nDrawFl DecorationView aDecoView( pDev ); aDecoView.DrawSymbol( aSymbolRect, meSymbol, aColor, nStyle ); } - - if ( mnDDStyle == PushButtonDropdownStyle::Toolbox ) - { - bool bBlack = false; - Color aArrowColor( COL_BLACK ); - - if ( !(nDrawFlags & DrawFlags::Mono) ) - { - if ( !IsEnabled() ) - aArrowColor = rStyleSettings.GetShadowColor(); - else - { - aArrowColor = COL_LIGHTGREEN; - bBlack = true; - } - } - - ImplDrawBtnDropDownArrow( pDev, aInRect.Right()-6, aInRect.Top()+1, - aArrowColor, bBlack ); - } } pDev->Pop(); // restore clipregion |