mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-08 15:27:27 +01:00
Qt: correct debug info when checking handles
git-svn-id: trunk@36500 -
This commit is contained in:
parent
1ad22c447d
commit
5e68dd0ae6
@ -234,7 +234,7 @@ begin
|
|||||||
WriteLn('[TQtWSMenuItem.SetCaption] Caption: ' + AMenuItem.Caption + ' NewCaption: ', ACaption);
|
WriteLn('[TQtWSMenuItem.SetCaption] Caption: ' + AMenuItem.Caption + ' NewCaption: ', ACaption);
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
if not WSCheckMenuItem(AMenuItem, 'SetEnable') then
|
if not WSCheckMenuItem(AMenuItem, 'SetCaption') then
|
||||||
Exit;
|
Exit;
|
||||||
|
|
||||||
Widget := TQtWidget(AMenuItem.Handle);
|
Widget := TQtWidget(AMenuItem.Handle);
|
||||||
@ -262,7 +262,7 @@ begin
|
|||||||
WriteLn('[TQtWSMenuItem.SetCaption] SetShortCut: ' + AMenuItem.Caption);
|
WriteLn('[TQtWSMenuItem.SetCaption] SetShortCut: ' + AMenuItem.Caption);
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
if not WSCheckMenuItem(AMenuItem, 'SetEnable') then
|
if not WSCheckMenuItem(AMenuItem, 'SetShortCut') then
|
||||||
Exit;
|
Exit;
|
||||||
|
|
||||||
Widget := TQtWidget(AMenuItem.Handle);
|
Widget := TQtWidget(AMenuItem.Handle);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user