Qt,Qt5: set ListView.AutoWidthLastColumn to qt widget. issue #27850

git-svn-id: trunk@62826 -
This commit is contained in:
zeljko 2020-03-31 10:18:57 +00:00
parent d84fe6746d
commit ca458a59c2
2 changed files with 2 additions and 2 deletions

View File

@ -748,7 +748,7 @@ begin
QtTreeWidget.ViewStyle := Ord(TCustomListViewHack(AWinControl).ViewStyle);
QtTreeWidget.OwnerDrawn := ALV.IsCustomDrawn(dtControl, cdPrePaint) or (ALV.OwnerDraw and
(ALV.ViewStyle = vsReport));
QtTreeWidget.setStretchLastSection(False);
QtTreeWidget.setStretchLastSection(ALV.AutoWidthLastColumn);
QTreeView_setItemsExpandable(QTreeViewH(QtTreeWidget.Widget), False);
QtTreeWidget.setRootIsDecorated(False);
QtTreeWidget.AttachEvents;

View File

@ -750,7 +750,7 @@ begin
QtTreeWidget.ViewStyle := Ord(TCustomListViewHack(AWinControl).ViewStyle);
QtTreeWidget.OwnerDrawn := ALV.IsCustomDrawn(dtControl, cdPrePaint) or (ALV.OwnerDraw and
(ALV.ViewStyle = vsReport));
QtTreeWidget.setStretchLastSection(False);
QtTreeWidget.setStretchLastSection(ALV.AutoWidthLastColumn);
QTreeView_setItemsExpandable(QTreeViewH(QtTreeWidget.Widget), False);
QtTreeWidget.setRootIsDecorated(False);
QtTreeWidget.AttachEvents;