mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-25 14:59:11 +02:00
Qt,Qt5: set selection start to 0 if edit control is disabled. issue #23369
git-svn-id: trunk@62827 -
This commit is contained in:
parent
ca458a59c2
commit
5e1a4e94f5
@ -9902,6 +9902,8 @@ end;
|
||||
procedure TQtLineEdit.setText(const AText: WideString);
|
||||
begin
|
||||
QLineEdit_setText(QLineEditH(Widget), @AText);
|
||||
if not getEnabled then
|
||||
setSelection(0, 0);
|
||||
end;
|
||||
|
||||
procedure TQtLineEdit.setTextMargins(ARect: TRect);
|
||||
|
@ -9828,6 +9828,8 @@ end;
|
||||
procedure TQtLineEdit.setText(const AText: WideString);
|
||||
begin
|
||||
QLineEdit_setText(QLineEditH(Widget), @AText);
|
||||
if not getEnabled then
|
||||
setSelection(0, 0);
|
||||
end;
|
||||
|
||||
procedure TQtLineEdit.setTextHint(const ATextHint: string);
|
||||
|
Loading…
Reference in New Issue
Block a user