Qt: TQtListWidget, TQtTreeWidget.itemDelegatePaint() draw background of item by default.related to issue #24941

git-svn-id: trunk@43158 -
This commit is contained in:
zeljko 2013-10-07 14:38:16 +00:00
parent aaf99d7581
commit 3bc8a27299

View File

@ -11378,6 +11378,8 @@ begin
ItemIndex := QModelIndex_row(index);
SubItemIndex := QModelIndex_column(index);
QStyle_drawControl(QApplication_style, QStyleCE_ItemViewItem, Option, painter, viewportWidget);
// NOW WE ARE DRAWING ITEMS ...
QPainter_save(painter);
if TCustomListView(LCLObject).Canvas.HandleAllocated then
@ -12697,6 +12699,8 @@ begin
ItemIndex := QModelIndex_row(index);
SubItemIndex := QModelIndex_column(index);
QStyle_drawControl(QApplication_style, QStyleCE_ItemViewItem, Option, painter, viewportWidget);
// NOW WE ARE DRAWING ITEMS ...
QPainter_save(painter);
if TCustomListView(LCLObject).Canvas.HandleAllocated then