diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-04-28 12:53:27 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-04-29 09:24:20 +0900 |
commit | 9905a8b953953b9ec5e123a17997d5931978acfe (patch) | |
tree | 8f31ba1b0e1aa6a024a02e580d0a350cb363c986 /vcl/source | |
parent | f50fd9692ed7b9632c0f8dad9508f5a207679be4 (diff) |
replace Paint calls to Invalidate + fix compilation
Change-Id: Id716c47d56922ab6ce0c3adb3d426ea814980674
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/control/fixedhyper.cxx | 4 | ||||
-rw-r--r-- | vcl/source/control/scrbar.cxx | 2 | ||||
-rw-r--r-- | vcl/source/control/spinbtn.cxx | 4 | ||||
-rw-r--r-- | vcl/source/control/spinfld.cxx | 14 |
4 files changed, 12 insertions, 12 deletions
diff --git a/vcl/source/control/fixedhyper.cxx b/vcl/source/control/fixedhyper.cxx index db36f90c2572..74309848605a 100644 --- a/vcl/source/control/fixedhyper.cxx +++ b/vcl/source/control/fixedhyper.cxx @@ -89,14 +89,14 @@ void FixedHyperlink::RequestHelp( const HelpEvent& rHEvt ) void FixedHyperlink::GetFocus() { SetTextColor( Color( COL_LIGHTRED ) ); - Paint( Rectangle( Point(), GetSizePixel() ) ); + Invalidate(Rectangle(Point(), GetSizePixel())); ShowFocus( Rectangle( Point( 1, 1 ), Size( m_nTextLen + 4, GetSizePixel().Height() - 2 ) ) ); } void FixedHyperlink::LoseFocus() { SetTextColor( GetControlForeground() ); - Paint( Rectangle( Point(), GetSizePixel() ) ); + Invalidate(Rectangle(Point(), GetSizePixel())); HideFocus(); } diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx index 4050560c7605..6f883bf6e2a8 100644 --- a/vcl/source/control/scrbar.cxx +++ b/vcl/source/control/scrbar.cxx @@ -1306,7 +1306,7 @@ bool ScrollBar::PreNotify( NotifyEvent& rNEvt ) } SetClipRegion( aClipRegion ); - Paint( aClipRegion.GetBoundRect() ); + Invalidate(aClipRegion.GetBoundRect()); SetClipRegion( aRgn ); } diff --git a/vcl/source/control/spinbtn.cxx b/vcl/source/control/spinbtn.cxx index 4a7da9bead2a..4689ee84e7e8 100644 --- a/vcl/source/control/spinbtn.cxx +++ b/vcl/source/control/spinbtn.cxx @@ -458,13 +458,13 @@ bool SpinButton::PreNotify( NotifyEvent& rNEvt ) if( pLastRect ) { SetClipRegion(vcl::Region(*pLastRect)); - Paint( *pLastRect ); + Invalidate(*pLastRect); SetClipRegion( aRgn ); } if( pRect ) { SetClipRegion(vcl::Region(*pRect)); - Paint( *pRect ); + Invalidate(*pRect); SetClipRegion( aRgn ); } } diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx index 66cabf6d1ca6..c9131b71c6d6 100644 --- a/vcl/source/control/spinfld.cxx +++ b/vcl/source/control/spinfld.cxx @@ -415,7 +415,7 @@ void SpinField::MouseButtonDown( const MouseEvent& rMEvt ) { // put DropDownButton to the right mbInDropDown = ShowDropDown( !mbInDropDown ); - Paint( Rectangle( Point(), GetOutputSizePixel() ) ); + Invalidate(Rectangle(Point(), GetOutputSizePixel())); } if ( mbUpperIn || mbLowerIn ) @@ -531,7 +531,7 @@ bool SpinField::Notify( NotifyEvent& rNEvt ) else if ( ( nMod == KEY_MOD2 ) && !mbInDropDown && ( GetStyle() & WB_DROPDOWN ) ) { mbInDropDown = ShowDropDown( true ); - Paint( Rectangle( Point(), GetOutputSizePixel() ) ); + Invalidate(Rectangle(Point(), GetOutputSizePixel())); nDone = true; } } @@ -604,7 +604,7 @@ void SpinField::FillLayoutData() const Edit::FillLayoutData(); } -void SpinField::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& rRect ) +void SpinField::Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) { if ( mbSpin ) { @@ -630,7 +630,7 @@ void SpinField::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& aView.DrawSymbol( aInnerRect, eSymbol, GetSettings().GetStyleSettings().GetButtonTextColor(), nStyle ); } - Edit::Paint( rRect ); + Edit::Paint(rRenderContext, rRect); } void SpinField::ImplCalcButtonAreas( OutputDevice* pDev, const Size& rOutSz, Rectangle& rDDArea, Rectangle& rSpinUpArea, Rectangle& rSpinDownArea ) @@ -890,13 +890,13 @@ bool SpinField::PreNotify( NotifyEvent& rNEvt ) if( pLastRect ) { SetClipRegion(vcl::Region(*pLastRect)); - Paint( *pLastRect ); + Invalidate(*pLastRect); SetClipRegion( aRgn ); } if( pRect ) { SetClipRegion(vcl::Region(*pRect)); - Paint( *pRect ); + Invalidate(*pRect); SetClipRegion( aRgn ); } } @@ -911,7 +911,7 @@ bool SpinField::PreNotify( NotifyEvent& rNEvt ) void SpinField::EndDropDown() { mbInDropDown = false; - Paint( Rectangle( Point(), GetOutputSizePixel() ) ); + Invalidate(Rectangle(Point(), GetOutputSizePixel())); } bool SpinField::ShowDropDown( bool ) |