Qt: small code formatting

git-svn-id: trunk@12185 -
This commit is contained in:
paul 2007-09-26 07:57:45 +00:00
parent 430c74310a
commit 5e21b95eac

View File

@ -188,8 +188,11 @@ end;
} }
procedure TQtWidgetSet.AppSetTitle(const ATitle: string); procedure TQtWidgetSet.AppSetTitle(const ATitle: string);
var
W: WideString;
begin begin
// TODO W := GetUtf8String(ATitle);
QCoreApplication_setApplicationName(@W);
end; end;
procedure TQtWidgetSet.AttachMenuToWindow(AMenuObject: TComponent); procedure TQtWidgetSet.AttachMenuToWindow(AMenuObject: TComponent);
@ -210,6 +213,7 @@ begin
R1.Right := R.Right; R1.Right := R.Right;
QtMenuBar.setGeometry(R1); QtMenuBar.setGeometry(R1);
QtMainWindow.setMenuBar(QMenuBarH(QtMenuBar.Widget)); QtMainWindow.setMenuBar(QMenuBarH(QtMenuBar.Widget));
QtMainWindow.setVisible(True);
end; end;
end; end;
end; end;
@ -294,7 +298,7 @@ end;
procedure TQtWidgetSet.DCRedraw(CanvasHandle: HDC); procedure TQtWidgetSet.DCRedraw(CanvasHandle: HDC);
begin begin
// TODO: implement me
end; end;
procedure TQtWidgetSet.SetDesigning(AComponent: TComponent); procedure TQtWidgetSet.SetDesigning(AComponent: TComponent);