mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-20 13:28:54 +02:00
Qt: TQtCustomControl should pass arrow keys to lcl.
git-svn-id: trunk@37241 -
This commit is contained in:
parent
1e3ca58978
commit
ddd0657787
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user