mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 02:19:32 +02:00
Qt: unify TScrollBar Max value and position with winapi. issue #20127
git-svn-id: trunk@52150 -
This commit is contained in:
parent
34f3fbbdfc
commit
7ffbcd7764
@ -366,8 +366,8 @@ begin
|
||||
QtScrollBar.BeginUpdate;
|
||||
try
|
||||
if (QtScrollBar.getMin <> AScrollBar.Min) or
|
||||
(QtScrollBar.getMax <> AScrollbar.Max) then
|
||||
QtScrollBar.setRange(AScrollBar.Min, AScrollBar.Max);
|
||||
(QtScrollBar.getMax <> (AScrollbar.Max - AScrollBar.PageSize)) then
|
||||
QtScrollBar.setRange(AScrollBar.Min, AScrollBar.Max - AScrollBar.PageSize);
|
||||
if QtScrollBar.getPageStep <> AScrollBar.PageSize then
|
||||
begin
|
||||
QtScrollBar.setPageStep(AScrollBar.PageSize);
|
||||
|
Loading…
Reference in New Issue
Block a user