summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uidesigner/vfdwidgetclass.pas4
1 files changed, 2 insertions, 2 deletions
diff --git a/uidesigner/vfdwidgetclass.pas b/uidesigner/vfdwidgetclass.pas
index 0fe62171..fe4a2e99 100644
--- a/uidesigner/vfdwidgetclass.pas
+++ b/uidesigner/vfdwidgetclass.pas
@@ -96,7 +96,7 @@ uses
type
// used to get to SetDesigning() in Form Designer
- TComponentFriendClass = class(TComponent);
+ TWidgetFriendClass = class(TfpgWidget);
{ TVFDWidgetClass }
@@ -122,7 +122,7 @@ end;
function TVFDWidgetClass.CreateWidget(AOwner: TComponent): TfpgWidget;
begin
Result := WidgetClass.Create(AOwner);
- TComponentFriendClass(Result).SetDesigning(True);
+ TWidgetFriendClass(Result).SetDesigning(True);
end;
function TVFDWidgetClass.CreatePopupMenu(AWidget: TfpgWidget): TfpgPopupMenu;