summaryrefslogtreecommitdiff
path: root/vcl/source/window/splitwin.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-01-04 15:45:15 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-01-04 16:50:44 +0000
commit9e7b0ef950035393e28d2c1469c4c1a0a5662c17 (patch)
tree17129a53d82cf43a10b8aeaf7b53a962284c031c /vcl/source/window/splitwin.cxx
parentb4a31534b949c512facdc7b0d148f249db285d13 (diff)
follow up remove unused autohide leftovers
Change-Id: Ic7281e915075519c300a330557399111838d7d34
Diffstat (limited to 'vcl/source/window/splitwin.cxx')
-rw-r--r--vcl/source/window/splitwin.cxx45
1 files changed, 2 insertions, 43 deletions
diff --git a/vcl/source/window/splitwin.cxx b/vcl/source/window/splitwin.cxx
index 768af62ad025..0f3df6a3adcc 100644
--- a/vcl/source/window/splitwin.cxx
+++ b/vcl/source/window/splitwin.cxx
@@ -1320,11 +1320,8 @@ void SplitWindow::ImplInit( vcl::Window* pParent, WinBits nStyle )
mbInvalidate = true;
mbFadeIn = false;
mbFadeOut = false;
- mbAutoHideIn = false;
- mbAutoHideDown = false;
mbFadeInDown = false;
mbFadeOutDown = false;
- mbAutoHidePressed = false;
mbFadeInPressed = false;
mbFadeOutPressed = false;
mbFadeNoButtonMode = false;
@@ -2156,7 +2153,7 @@ void SplitWindow::MouseButtonDown( const MouseEvent& rMEvt )
}
}
- if ( mbAutoHideDown || mbFadeInDown || mbFadeOutDown )
+ if ( mbFadeInDown || mbFadeOutDown )
StartTracking();
else
ImplStartSplit( rMEvt );
@@ -2198,36 +2195,7 @@ void SplitWindow::Tracking( const TrackingEvent& rTEvt )
{
Point aMousePosPixel = rTEvt.GetMouseEvent().GetPosPixel();
- if ( mbAutoHideDown )
- {
- if ( rTEvt.IsTrackingEnded() )
- {
- mbAutoHideDown = false;
- if ( mbAutoHidePressed )
- {
- mbAutoHidePressed = false;
-
- if ( !rTEvt.IsTrackingCanceled() )
- {
- mbAutoHideIn = !mbAutoHideIn;
- Invalidate();
- AutoHide();
- }
- else
- Invalidate();
- }
- }
- else
- {
- bool bNewPressed = false;
- if ( bNewPressed != mbAutoHidePressed )
- {
- mbAutoHidePressed = bNewPressed;
- Invalidate();
- }
- }
- }
- else if ( mbFadeInDown )
+ if ( mbFadeInDown )
{
if ( rTEvt.IsTrackingEnded() )
{
@@ -3085,15 +3053,6 @@ void SplitWindow::ShowFadeOutButton()
ImplUpdate();
}
-void SplitWindow::SetAutoHideState( bool bAutoHide )
-{
- mbAutoHideIn = bAutoHide;
- if ( IsReallyVisible() )
- {
- Invalidate(Rectangle());
- }
-}
-
long SplitWindow::GetFadeInSize() const
{
long n = 0;