mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-02 12:32:55 +02:00
Qt: TQtListWidget, TQtTreeWidget.itemDelegatePaint() draw background of item by default.related to issue #24941
git-svn-id: trunk@43158 -
This commit is contained in:
parent
aaf99d7581
commit
3bc8a27299
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user