mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-08 00:37:14 +01:00
Qt: check enable state of TQtLineEdit & TQtComboBox when using AutoSelect property.
git-svn-id: trunk@16636 -
This commit is contained in:
parent
d8e36f10fb
commit
7dcfdfde0f
@ -5031,7 +5031,9 @@ begin
|
||||
begin
|
||||
// it would be better if we have AutoSelect published from TCustomEdit
|
||||
// then TMaskEdit also belongs here.
|
||||
if ((LCLObject is TEdit) and (TEdit(LCLObject).AutoSelect)) then
|
||||
if ((LCLObject is TEdit) and
|
||||
(getEnabled) and
|
||||
(TEdit(LCLObject).AutoSelect)) then
|
||||
QLineEdit_selectAll(QLineEditH(Widget));
|
||||
end;
|
||||
end;
|
||||
@ -6030,7 +6032,9 @@ begin
|
||||
[QtTabFocusReason,QtBacktabFocusReason,QtActiveWindowFocusReason,
|
||||
QtShortcutFocusReason, QtOtherFocusReason] then
|
||||
begin
|
||||
if Assigned(LineEdit) and TComboBox(LCLObject).AutoSelect then
|
||||
if Assigned(LineEdit) and
|
||||
LineEdit.getEnabled and
|
||||
TComboBox(LCLObject).AutoSelect then
|
||||
LineEdit.selectAll;
|
||||
end;
|
||||
TCustomComboBox(LCLObject).IntfGetItems;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user