Qt: bugfix, readonly ctls should not avoid eg. Ctrl+C usage inside read only control (TQtLineEdit, TQtTextEdit), so we do not change focuspolicy at this place - let LCL decide about it.

git-svn-id: trunk@22524 -
This commit is contained in:
zeljko 2009-11-10 14:51:56 +00:00
parent 461751ec27
commit f3e3bd4288

View File

@ -5350,13 +5350,6 @@ end;
procedure TQtLineEdit.setReadOnly(const AReadOnly: Boolean);
begin
QLineEdit_setReadOnly(QLineEditH(Widget), AReadOnly);
if Assigned(LCLObject) then
begin
if AReadOnly and not LCLObject.TabStop then
setFocusPolicy(QtNoFocus)
else
setFocusPolicy(QtClickFocus);
end;
end;
procedure TQtLineEdit.setSelection(const AStart, ALength: Integer);
@ -5490,13 +5483,6 @@ end;
procedure TQtTextEdit.setReadOnly(const AReadOnly: Boolean);
begin
QTextEdit_setReadOnly(QTextEditH(Widget), AReadOnly);
if Assigned(LCLObject) then
begin
if AReadOnly and not LCLObject.TabStop then
setFocusPolicy(QtNoFocus)
else
setFocusPolicy(QtClickFocus);
end;
end;
procedure TQtTextEdit.setSelection(const AStart, ALength: Integer);