Qt,Qt5: set selection start to 0 if edit control is disabled. issue #23369

git-svn-id: trunk@62827 -
This commit is contained in:
zeljko 2020-03-31 10:48:29 +00:00
parent ca458a59c2
commit 5e1a4e94f5
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -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);