summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2016-02-17 21:28:17 +0000
committerMichael Meeks <michael.meeks@collabora.com>2016-02-17 21:28:47 +0000
commit751d6cbc16a010e3f8712da26bb8a1edaf93034b (patch)
tree2d6af647aa5d3d1d41a44612ded6e26100ce607f
parent17d91c85fe91b21cb77afa343c4f1217ea8081ed (diff)
Revert bits pushed to wrong branch.
-rw-r--r--include/vcl/salnativewidgets.hxx6
-rw-r--r--include/vcl/toolbox.hxx3
-rw-r--r--vcl/source/control/spinfld.cxx3
-rw-r--r--vcl/source/window/toolbox.cxx13
4 files changed, 9 insertions, 16 deletions
diff --git a/include/vcl/salnativewidgets.hxx b/include/vcl/salnativewidgets.hxx
index 0789270bbe52..8c1176a2aa95 100644
--- a/include/vcl/salnativewidgets.hxx
+++ b/include/vcl/salnativewidgets.hxx
@@ -288,12 +288,6 @@ public:
case CTRL_RADIOBUTTON:
case CTRL_LISTNODE:
case CTRL_SLIDER:
- // FIXME: these guys have complex state hidden in ImplControlValue
- // structs which affects rendering, needs to be a and needs to be
- // part of the key to our cache.
- case CTRL_SPINBOX:
- case CTRL_SPINBUTTONS:
- case CTRL_TAB_ITEM:
return false;
case CTRL_MENUBAR:
diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx
index 11958cd1f7e0..12a0b7029f9b 100644
--- a/include/vcl/toolbox.hxx
+++ b/include/vcl/toolbox.hxx
@@ -155,8 +155,7 @@ public:
using Window::ImplInit;
private:
SAL_DLLPRIVATE void InvalidateItem(sal_uInt16 nPosition);
- SAL_DLLPRIVATE void InvalidateSpin(bool bInvalidateUpper = true,
- bool bInvalidateLower = true);
+ SAL_DLLPRIVATE void InvalidateSpin(bool bUpperIn, bool bLowerIn);
SAL_DLLPRIVATE void InvalidateMenuButton();
SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle );
diff --git a/vcl/source/control/spinfld.cxx b/vcl/source/control/spinfld.cxx
index daf4b5f69cfd..5f86629d5d17 100644
--- a/vcl/source/control/spinfld.cxx
+++ b/vcl/source/control/spinfld.cxx
@@ -142,9 +142,8 @@ bool ImplDrawNativeSpinbuttons(vcl::RenderContext& rRenderContext, const Spinbut
if (rRenderContext.IsNativeControlSupported(CTRL_SPINBUTTONS, PART_ENTIRE_CONTROL))
{
- Rectangle aArea = rSpinbuttonValue.maUpperRect.GetUnion(rSpinbuttonValue.maLowerRect);
// only paint the standalone spin buttons, all buttons are painted at once
- bNativeOK = rRenderContext.DrawNativeControl(CTRL_SPINBUTTONS, PART_ALL_BUTTONS, aArea,
+ bNativeOK = rRenderContext.DrawNativeControl(CTRL_SPINBUTTONS, PART_ALL_BUTTONS, Rectangle(),
ControlState::ENABLED, rSpinbuttonValue, OUString());
}
return bNativeOK;
diff --git a/vcl/source/window/toolbox.cxx b/vcl/source/window/toolbox.cxx
index 62140e435128..e0e84920a33f 100644
--- a/vcl/source/window/toolbox.cxx
+++ b/vcl/source/window/toolbox.cxx
@@ -3455,7 +3455,8 @@ bool ToolBox::ImplHandleMouseMove( const MouseEvent& rMEvt, bool bRepeat )
if ( bNewIn != mbIn )
{
mbIn = bNewIn;
- InvalidateSpin(true, false);
+ Invalidate();
+ InvalidateSpin(mbIn, false);
}
return true;
}
@@ -3466,7 +3467,7 @@ bool ToolBox::ImplHandleMouseMove( const MouseEvent& rMEvt, bool bRepeat )
if ( bNewIn != mbIn )
{
mbIn = bNewIn;
- InvalidateSpin(false, true);
+ InvalidateSpin(false, mbIn);
}
return true;
}
@@ -3581,7 +3582,7 @@ bool ToolBox::ImplHandleMouseButtonUp( const MouseEvent& rMEvt, bool bCancel )
mbUpper = false;
mbLower = false;
mbIn = false;
- InvalidateSpin();
+ InvalidateSpin(false, false);
return true;
}
@@ -4483,7 +4484,7 @@ void ToolBox::Command( const CommandEvent& rCEvt )
ShowLine( false );
else if ( (mnCurLine+mnVisLines-1 < mnCurLines) && (pData->GetDelta() < 0) )
ShowLine( true );
- InvalidateSpin();
+ InvalidateSpin(false, false);
return;
}
}
@@ -5192,7 +5193,7 @@ void ToolBox::KeyInput( const KeyEvent& rKEvt )
mnCurLine = 1;
mbFormat = true;
ImplFormat();
- InvalidateSpin();
+ InvalidateSpin(false, false);
ImplChangeHighlight( ImplGetFirstValidItem( mnCurLine ) );
}
break;
@@ -5205,7 +5206,7 @@ void ToolBox::KeyInput( const KeyEvent& rKEvt )
mnCurLine = mnCurLines;
mbFormat = true;
ImplFormat();
- InvalidateSpin();
+ InvalidateSpin(false, false);
ImplChangeHighlight( ImplGetFirstValidItem( mnCurLine ) );
}
break;