mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-10-01 10:49:28 +02:00
Qt: cleanup
git-svn-id: trunk@12046 -
This commit is contained in:
parent
d712502a4c
commit
6eb5685e9e
@ -2818,16 +2818,8 @@ end;
|
||||
{ TQtPushButton }
|
||||
|
||||
function TQtPushButton.CreateWidget(const AParams: TCreateParams): QWidgetH;
|
||||
var
|
||||
Str: WideString;
|
||||
begin
|
||||
// Creates the widget
|
||||
{$ifdef VerboseQt}
|
||||
WriteLn('TQtPushButton.Create Left:', dbgs(LCLObject.Left), ' Top:', dbgs(LCLObject.Top));
|
||||
{$endif}
|
||||
|
||||
Str := UTF8Decode(LCLObject.Caption);
|
||||
Result := QPushButton_create(@Str);
|
||||
Result := QPushButton_create();
|
||||
end;
|
||||
|
||||
{------------------------------------------------------------------------------
|
||||
@ -3958,15 +3950,8 @@ end;
|
||||
{ TQtLineEdit }
|
||||
|
||||
function TQtLineEdit.CreateWidget(const AParams: TCreateParams): QWidgetH;
|
||||
var
|
||||
Str: WideString;
|
||||
begin
|
||||
// Creates the widget
|
||||
{$ifdef VerboseQt}
|
||||
WriteLn('TQtLineEdit.Create');
|
||||
{$endif}
|
||||
Str := UTF8Decode((LCLObject as TCustomEdit).Text);
|
||||
Result := QLineEdit_create(@Str);
|
||||
Result := QLineEdit_create();
|
||||
end;
|
||||
|
||||
function TQtLineEdit.getMaxLength: Integer;
|
||||
@ -5967,21 +5952,8 @@ end;
|
||||
|
||||
function TQtStatusBar.CreateWidget(const AParams: TCreateParams): QWidgetH;
|
||||
begin
|
||||
// Creates the widget
|
||||
{$ifdef VerboseQt}
|
||||
WriteLn('TQtStatusBar.Create');
|
||||
{$endif}
|
||||
|
||||
SetLength(APanels, 0);
|
||||
Result := QStatusBar_create();
|
||||
|
||||
{TODO: this should be made in initializeWND?
|
||||
if (LCLObject as TStatusBar).SimplePanel then
|
||||
begin;
|
||||
Text := UTF8Decode((LCLObject as TStatusBar).SimpleText);
|
||||
showMessage(@Text);
|
||||
end;
|
||||
}
|
||||
end;
|
||||
|
||||
procedure TQtStatusBar.showMessage(text: PWideString; timeout: Integer);
|
||||
|
Loading…
Reference in New Issue
Block a user