diff --git a/lcl/interfaces/qt/qtwsmenus.pp b/lcl/interfaces/qt/qtwsmenus.pp index de77d76ca7..54249df00a 100644 --- a/lcl/interfaces/qt/qtwsmenus.pp +++ b/lcl/interfaces/qt/qtwsmenus.pp @@ -222,7 +222,7 @@ begin WriteLn('[TQtWSMenuItem.SetCaption] Caption: ' + AMenuItem.Caption + ' NewCaption: ', ACaption); {$endif} - if not WSCheckMenuItem(AMenuItem, 'SetEnable') then + if not WSCheckMenuItem(AMenuItem, 'SetCaption') then Exit; Widget := TQtWidget(AMenuItem.Handle); @@ -243,7 +243,7 @@ begin WriteLn('[TQtWSMenuItem.SetCaption] SetShortCut: ' + AMenuItem.Caption); {$endif} - if not WSCheckMenuItem(AMenuItem, 'SetEnable') then + if not WSCheckMenuItem(AMenuItem, 'SetShortCut') then Exit; Widget := TQtWidget(AMenuItem.Handle); @@ -261,7 +261,7 @@ begin {$ifdef VerboseQt} WriteLn('[TQtWSMenuItem.SetVisible] SetShortCut: ' + AMenuItem.Caption + ' Visible: ', Visible); {$endif} - if not WSCheckMenuItem(AMenuItem, 'SetEnable') then + if not WSCheckMenuItem(AMenuItem, 'SetVisible') then Exit; TQtMenu(AMenuItem.Handle).setVisible(Visible); @@ -276,7 +276,7 @@ class function TQtWSMenuItem.SetCheck(const AMenuItem: TMenuItem; const Checked: begin Result := False; - if not WSCheckMenuItem(AMenuItem, 'SetEnable') then + if not WSCheckMenuItem(AMenuItem, 'SetCheck') then Exit; TQtMenu(AMenuItem.Handle).setChecked(Checked); @@ -318,7 +318,7 @@ end; ------------------------------------------------------------------------------} class function TQtWSMenuItem.SetRightJustify(const AMenuItem: TMenuItem; const Justified: boolean): boolean; begin - if not WSCheckMenuItem(AMenuItem, 'SetEnable') then + if not WSCheckMenuItem(AMenuItem, 'SetRightJustify') then Exit; Result := True;