mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 21:39:49 +02:00
Qt: fix for #15569.Now we use QStackedWidget instead of QWidget for FCentralWidget in TQtGroupBox, also focusPolicy is set to none for FCentralWidget in TQtGroupBox.
git-svn-id: trunk@23535 -
This commit is contained in:
parent
772886e88f
commit
3f7ea2711e
@ -4756,7 +4756,10 @@ begin
|
||||
{$endif}
|
||||
FHasPaint := True;
|
||||
Result := QGroupBox_create();
|
||||
FCentralWidget := QWidget_create(Result, 0);
|
||||
FCentralWidget := QStackedWidget_create(Result);
|
||||
{we set QtNoFocus by default, since we don't want
|
||||
FCentralWidget grabs focus on mouse click}
|
||||
QWidget_setFocusPolicy(FCentralWidget, QtNoFocus);
|
||||
|
||||
Layout := QVBoxLayout_create(Result);
|
||||
QLayout_addWidget(Layout, FCentralWidget);
|
||||
|
Loading…
Reference in New Issue
Block a user