Qt: fixed returning GetScrollInfo for SIF_POS when it's called from TCustomControls eg. TScrollingWinControl which caused wrong result and mess.

git-svn-id: trunk@32555 -
This commit is contained in:
zeljko 2011-09-29 12:17:36 +00:00
parent b8308d269a
commit f99dd2f18d

View File

@ -3400,7 +3400,12 @@ begin
begin
// POS
if (ScrollInfo.fMask and SIF_POS) <> 0 then
ScrollInfo.nPos := QtScrollBar.getValue;
begin
if QtScrollBar.ChildOfComplexWidget = ccwAbstractScrollArea then
ScrollInfo.nPos := QtScrollBar.getSliderPosition
else
ScrollInfo.nPos := QtScrollBar.getValue;
end;
// RANGE
if (ScrollInfo.fMask and SIF_RANGE) <> 0 then