mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 23:58:06 +02:00
Qt5,Qt6: fixed readOnly status for TQtTextEdit on FreeBSD. issue #40930
This commit is contained in:
parent
575c9dcef5
commit
0a7ff2fb3d
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user