Qt: TQtCustomControl should pass arrow keys to lcl.

git-svn-id: trunk@37241 -
This commit is contained in:
zeljko 2012-05-10 13:21:09 +00:00
parent 1e3ca58978
commit ddd0657787

View File

@ -449,6 +449,7 @@ type
FViewPortWidget: TQtViewPort; FViewPortWidget: TQtViewPort;
protected protected
function CreateWidget(const AParams: TCreateParams):QWidgetH; override; function CreateWidget(const AParams: TCreateParams):QWidgetH; override;
function ProcessArrowKeys: Boolean; override;
public public
destructor Destroy; override; destructor Destroy; override;
function EventFilter(Sender: QObjectH; Event: QEventH): Boolean; cdecl; override; function EventFilter(Sender: QObjectH; Event: QEventH): Boolean; cdecl; override;
@ -14611,6 +14612,11 @@ begin
QWidget_setAttribute(Result, QtWA_InputMethodEnabled); QWidget_setAttribute(Result, QtWA_InputMethodEnabled);
end; end;
function TQtCustomControl.ProcessArrowKeys: Boolean;
begin
Result := True;
end;
{------------------------------------------------------------------------------ {------------------------------------------------------------------------------
Function: TQtCustomControl.Destroy Function: TQtCustomControl.Destroy
Params: None Params: None