mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 00:38:15 +02:00
Minor identation and comments fixes on qt interface
git-svn-id: trunk@11112 -
This commit is contained in:
parent
86605834e9
commit
28b1b1be74
@ -413,6 +413,7 @@ type
|
||||
end;
|
||||
|
||||
implementation
|
||||
|
||||
const
|
||||
AlignmentMap: array[TAlignment] of QtAlignment =
|
||||
(
|
||||
@ -1565,6 +1566,7 @@ var
|
||||
begin
|
||||
Parent := TQtWidget(LCLObject.Parent.Handle).Widget;
|
||||
Widget := QWidget_create(Parent);
|
||||
Result := Widget;
|
||||
end;
|
||||
|
||||
procedure TQtWidget.SetGeometry;
|
||||
|
@ -864,7 +864,7 @@ end;
|
||||
function TQtWidgetSet.Frame3d(DC : HDC; var ARect : TRect;
|
||||
const FrameWidth : integer; const Style : TBevelCut) : boolean;
|
||||
begin
|
||||
|
||||
Result := True;
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
|
@ -250,7 +250,6 @@ end;
|
||||
{------------------------------------------------------------------------------
|
||||
Method: TQtWSWinControl.SetColor
|
||||
Params: AWinControl - the calling object
|
||||
|
||||
Returns: Nothing
|
||||
|
||||
Sets the color of the widget.
|
||||
@ -267,7 +266,7 @@ begin
|
||||
if AWinControl.Color = CLR_INVALID then exit;
|
||||
|
||||
// Get the color numeric value (system colors are mapped to numeric colors depending on the widget style)
|
||||
Color:=ColorToRGB(AWinControl.Color);
|
||||
Color := ColorToRGB(AWinControl.Color);
|
||||
|
||||
// Fill QColor
|
||||
QColor_setRgb(@QColor,Red(Color),Green(Color),Blue(Color));
|
||||
@ -276,6 +275,13 @@ begin
|
||||
TQtWidget(AWinControl.Handle).SetColor(@QColor);
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
Method: TQtWSWinControl.SetCursor
|
||||
Params: AWinControl - the calling object
|
||||
Returns: Nothing
|
||||
|
||||
Sets the cursor of the widget.
|
||||
------------------------------------------------------------------------------}
|
||||
class procedure TQtWSWinControl.SetCursor(const AWinControl: TWinControl; const ACursor: HCursor);
|
||||
begin
|
||||
if AWinControl = nil then exit;
|
||||
|
Loading…
Reference in New Issue
Block a user