diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-02-18 14:20:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-02-18 15:48:31 +0000 |
commit | 473b03d1a4b7cdd72551a9039f6cc76a808cce58 (patch) | |
tree | e11f3ab4bb7071adaabc9caae97b101fcab06265 /vcl/source | |
parent | 55b33456c14aa5311fb0e3d71f1cad4fbd73cbef (diff) |
StyleSettingsOptions::SpinUpDown is not set by anyone
Change-Id: I26d5189b6a20844bac2a671a30def1b01aa786a8
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/control/imp_listbox.cxx | 5 | ||||
-rw-r--r-- | vcl/source/control/spinfld.cxx | 6 |
2 files changed, 1 insertions, 10 deletions
diff --git a/vcl/source/control/imp_listbox.cxx b/vcl/source/control/imp_listbox.cxx index ed3d39cbd8fd..f1fa9a23a219 100644 --- a/vcl/source/control/imp_listbox.cxx +++ b/vcl/source/control/imp_listbox.cxx @@ -49,10 +49,7 @@ using namespace ::com::sun::star; void ImplInitDropDownButton( PushButton* pButton ) { - if ( pButton->GetSettings().GetStyleSettings().GetOptions() & StyleSettingsOptions::SpinUpDown ) - pButton->SetSymbol( SymbolType::SPIN_UPDOWN ); - else - pButton->SetSymbol( SymbolType::SPIN_DOWN ); + pButton->SetSymbol( SymbolType::SPIN_DOWN ); if ( pButton->IsNativeControlSupported(CTRL_LISTBOX, PART_ENTIRE_CONTROL) && ! pButton->IsNativeControlSupported(CTRL_LISTBOX, PART_BUTTON_DOWN) ) diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx index 126152f3e704..59208e32374c 100644 --- a/vcl/source/control/spinfld.cxx +++ b/vcl/source/control/spinfld.cxx @@ -631,9 +631,6 @@ void SpinField::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rRect Rectangle aInnerRect = aView.DrawButton(maDropDownRect, nStyle); SymbolType eSymbol = SymbolType::SPIN_DOWN; - if (rRenderContext.GetSettings().GetStyleSettings().GetOptions() & StyleSettingsOptions::SpinUpDown) - eSymbol = SymbolType::SPIN_UPDOWN; - DrawSymbolFlags nSymbolStyle = IsEnabled() ? DrawSymbolFlags::NONE : DrawSymbolFlags::Disable; aView.DrawSymbol(aInnerRect, eSymbol, rRenderContext.GetSettings().GetStyleSettings().GetButtonTextColor(), nSymbolStyle); } @@ -1034,9 +1031,6 @@ void SpinField::Draw(OutputDevice* pDev, const Point& rPos, const Size& rSize, D DrawButtonFlags nStyle = DrawButtonFlags::NoLightBorder; Rectangle aInnerRect = aView.DrawButton( aDD, nStyle ); SymbolType eSymbol = SymbolType::SPIN_DOWN; - if (GetSettings().GetStyleSettings().GetOptions() & StyleSettingsOptions::SpinUpDown) - eSymbol = SymbolType::SPIN_UPDOWN; - DrawSymbolFlags nSymbolStyle = (IsEnabled() || (nFlags & DrawFlags::NoDisable)) ? DrawSymbolFlags::NONE : DrawSymbolFlags::Disable; aView.DrawSymbol(aInnerRect, eSymbol, aButtonTextColor, nSymbolStyle); } |