mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 08:39:35 +02:00
patch from zeljko, small TSpinEdit and TFloatSpinEdit fix on Qt
git-svn-id: trunk@11387 -
This commit is contained in:
parent
b4f7d49315
commit
d4564ed42a
@ -2947,6 +2947,7 @@ begin
|
||||
{$endif}
|
||||
Parent := TQtWidget(LCLObject.Parent.Handle).GetContainerWidget;
|
||||
Str := UTF8Decode((LCLObject as TCustomEdit).Text);
|
||||
if (Length(Str) = 0) then Str := #0;
|
||||
Result := QLineEdit_create(@Str, Parent);
|
||||
end;
|
||||
|
||||
|
@ -52,6 +52,9 @@ type
|
||||
class procedure DestroyHandle(const AWinControl: TWinControl); override;
|
||||
class function GetValue(const ACustomFloatSpinEdit: TCustomFloatSpinEdit): single; override;
|
||||
class procedure UpdateControl(const ACustomFloatSpinEdit: TCustomFloatSpinEdit); override;
|
||||
class function GetText(const AWinControl: TWinControl; var AText: String): Boolean; override;
|
||||
class procedure SetText(const AWinControl: TWinControl; const AText: string); override;
|
||||
|
||||
(*
|
||||
class function GetSelStart(const ACustomFloatSpinEdit: TCustomFloatSpinEdit): integer; virtual;
|
||||
class function GetSelLength(const ACustomFloatSpinEdit: TCustomFloatSpinEdit): integer; virtual;
|
||||
@ -185,6 +188,16 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
class function TQtWSCustomFloatSpinEdit.GetText(const AWinControl: TWinControl; var AText: String): Boolean;
|
||||
begin
|
||||
|
||||
end;
|
||||
|
||||
class procedure TQtWSCustomFloatSpinEdit.SetText(const AWinControl: TWinControl; const AText: string);
|
||||
begin
|
||||
// perhaps QSpinBox_setSuffix() goes here one day (if we get LCL support)
|
||||
end;
|
||||
|
||||
initialization
|
||||
|
||||
////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user