mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 11:16:12 +02:00
Qt: bugfix -> TQtWidgetSet.GetScrollBarSize() returned wrong results.
git-svn-id: trunk@21820 -
This commit is contained in:
parent
2b795ca9d8
commit
e62f9ab988
@ -2617,7 +2617,7 @@ begin
|
||||
{TODO: find out what to do with TCustomForm descendants }
|
||||
if w is TQtAbstractScrollArea then
|
||||
begin
|
||||
if BarKind = SM_CYVSCROLL then
|
||||
if BarKind in [SM_CXVSCROLL, SM_CYVSCROLL] then
|
||||
ScrollBar := TQtAbstractScrollArea(w).verticalScrollBar
|
||||
else
|
||||
ScrollBar := TQtAbstractScrollArea(w).horizontalScrollBar;
|
||||
@ -2628,7 +2628,7 @@ begin
|
||||
ScrollBar := nil;
|
||||
if ScrollBar <> nil then
|
||||
begin
|
||||
if BarKind = SM_CYVSCROLL then
|
||||
if BarKind in [SM_CYHSCROLL, SM_CYVSCROLL] then
|
||||
Result := ScrollBar.getWidth
|
||||
else
|
||||
Result := ScrollBar.getHeight;
|
||||
|
Loading…
Reference in New Issue
Block a user