mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 07:59:32 +02:00
Qt5: fixed problem with setting readOnly property under darwin. issue #40246
This commit is contained in:
parent
5e2ba5934a
commit
46e20db82d
@ -10114,7 +10114,10 @@ end;
|
||||
|
||||
procedure TQtTextEdit.setReadOnly(const AReadOnly: Boolean);
|
||||
begin
|
||||
QTextEdit_setReadOnly(QTextEditH(Widget), AReadOnly);
|
||||
{$IFDEF DARWIN} // issue #40246
|
||||
if AReadOnly <> QTextEdit_isReadOnly(QTextEditH(Widget)) then
|
||||
{$ENDIF}
|
||||
QTextEdit_setReadOnly(QTextEditH(Widget), AReadOnly);
|
||||
end;
|
||||
|
||||
procedure TQtTextEdit.setSelection(const AStart, ALength: Integer);
|
||||
|
Loading…
Reference in New Issue
Block a user