diff options
author | Petr Mrázek <peterix@gmail.com> | 2014-02-04 02:01:11 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2014-02-04 02:01:11 +0100 |
commit | 6206a241ea51864b22d493d5b7b0a9282c754571 (patch) | |
tree | b91d9c10100fd11accc03b271e826be038b2af02 /gui/groupview/InstanceDelegate.cpp | |
parent | 7839c4ecc01aad4c5d34a6d06b2dfc4afdc58458 (diff) | |
download | MultiMC-6206a241ea51864b22d493d5b7b0a9282c754571.tar MultiMC-6206a241ea51864b22d493d5b7b0a9282c754571.tar.gz MultiMC-6206a241ea51864b22d493d5b7b0a9282c754571.tar.lz MultiMC-6206a241ea51864b22d493d5b7b0a9282c754571.tar.xz MultiMC-6206a241ea51864b22d493d5b7b0a9282c754571.zip |
A try at fixing the instance delegate. A bit. Maybe.
Diffstat (limited to 'gui/groupview/InstanceDelegate.cpp')
-rw-r--r-- | gui/groupview/InstanceDelegate.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/groupview/InstanceDelegate.cpp b/gui/groupview/InstanceDelegate.cpp index 8527e2bc..8a273758 100644 --- a/gui/groupview/InstanceDelegate.cpp +++ b/gui/groupview/InstanceDelegate.cpp @@ -173,6 +173,7 @@ void ListViewDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opti opt2.palette.setCurrentColorGroup(cg); // fill in background, if any + if (opt.backgroundBrush.style() != Qt::NoBrush) { QPointF oldBO = painter->brushOrigin(); @@ -181,6 +182,9 @@ void ListViewDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opti painter->setBrushOrigin(oldBO); } + drawSelectionRect(painter, opt2, textHighlightRect); + + /* if (opt.showDecorationSelected) { drawSelectionRect(painter, opt2, opt.rect); @@ -200,6 +204,7 @@ void ListViewDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opti drawFocusRect(painter, opt2, textHighlightRect); } } + */ } // draw the icon |