Qt5,Qt6: fixed readOnly status for TQtTextEdit on FreeBSD. issue #40930

This commit is contained in:
Željan Rikalo 2024-05-04 17:45:59 +02:00
parent 575c9dcef5
commit 0a7ff2fb3d
2 changed files with 2 additions and 2 deletions

View File

@ -10213,7 +10213,7 @@ end;
procedure TQtTextEdit.setReadOnly(const AReadOnly: Boolean);
begin
{$IFDEF DARWIN} // issue #40246
{$IF DEFINED(DARWIN) OR DEFINED(FREEBSD)} // issue #40246
if AReadOnly <> QTextEdit_isReadOnly(QTextEditH(Widget)) then
{$ENDIF}
QTextEdit_setReadOnly(QTextEditH(Widget), AReadOnly);

View File

@ -10245,7 +10245,7 @@ end;
procedure TQtTextEdit.setReadOnly(const AReadOnly: Boolean);
begin
{$IFDEF DARWIN} // issue #40246
{$IF DEFINED(DARWIN) OR DEFINED(FREEBSD)} // issue #40246
if AReadOnly <> QTextEdit_isReadOnly(QTextEditH(Widget)) then
{$ENDIF}
QTextEdit_setReadOnly(QTextEditH(Widget), AReadOnly);