Qt: Revert last patch, TTreeView have problems with such case - others work fine.

git-svn-id: trunk@12320 -
This commit is contained in:
zeljko 2007-10-04 19:32:42 +00:00
parent 5db853472f
commit 74948a0ce6
2 changed files with 3 additions and 1 deletions

View File

@ -6580,7 +6580,8 @@ end;
procedure TQtAbstractScrollArea.setVisible(visible: Boolean); procedure TQtAbstractScrollArea.setVisible(visible: Boolean);
begin begin
inherited setVisible(visible); inherited setVisible(visible);
viewPort.setVisible(visible); if FViewPortWidget <> nil then
FViewPortWidget.setVisible(visible);
end; end;
{------------------------------------------------------------------------------ {------------------------------------------------------------------------------

View File

@ -147,6 +147,7 @@ begin
QtAbstractScrollArea := TQtAbstractScrollArea.Create(AWinControl, AParams); QtAbstractScrollArea := TQtAbstractScrollArea.Create(AWinControl, AParams);
QtAbstractScrollArea.setFrameShape(TBorderStyleToQtFrameShapeMap[TCustomControl(AWinControl).BorderStyle]); QtAbstractScrollArea.setFrameShape(TBorderStyleToQtFrameShapeMap[TCustomControl(AWinControl).BorderStyle]);
QtAbstractScrollArea.viewportNeeded;
QtAbstractScrollArea.AttachEvents; QtAbstractScrollArea.AttachEvents;
Result := THandle(QtAbstractScrollArea); Result := THandle(QtAbstractScrollArea);