diff options
author | Petr Mrázek <peterix@gmail.com> | 2019-07-21 21:12:05 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-07-22 01:40:52 +0200 |
commit | d6c665387233e894a27c0b33e4b49e5d1d229aeb (patch) | |
tree | 0e22463970ba5e08d5dbf5e1f2403b0a98f03a1d /application/groupview/InstanceDelegate.cpp | |
parent | 3b32730526512be8d672931afe860e0baff76a28 (diff) | |
download | MultiMC-d6c665387233e894a27c0b33e4b49e5d1d229aeb.tar MultiMC-d6c665387233e894a27c0b33e4b49e5d1d229aeb.tar.gz MultiMC-d6c665387233e894a27c0b33e4b49e5d1d229aeb.tar.lz MultiMC-d6c665387233e894a27c0b33e4b49e5d1d229aeb.tar.xz MultiMC-d6c665387233e894a27c0b33e4b49e5d1d229aeb.zip |
NOISSUE Add basic accessibility support to GroupView
Diffstat (limited to 'application/groupview/InstanceDelegate.cpp')
-rw-r--r-- | application/groupview/InstanceDelegate.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/application/groupview/InstanceDelegate.cpp b/application/groupview/InstanceDelegate.cpp index 9774e5e9..39830d1a 100644 --- a/application/groupview/InstanceDelegate.cpp +++ b/application/groupview/InstanceDelegate.cpp @@ -205,6 +205,8 @@ void ListViewDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opti { // FIXME: unused // QSize textSize = viewItemTextSize ( &opt ); + drawSelectionRect(painter, opt, textHighlightRect); + /* QPalette::ColorGroup cg; QStyleOptionViewItem opt2(opt); @@ -219,10 +221,13 @@ void ListViewDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opti { cg = QPalette::Disabled; } + */ + /* opt2.palette.setCurrentColorGroup(cg); // fill in background, if any + if (opt.backgroundBrush.style() != Qt::NoBrush) { QPointF oldBO = painter->brushOrigin(); @@ -232,6 +237,7 @@ void ListViewDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opti } drawSelectionRect(painter, opt2, textHighlightRect); + */ /* if (opt.showDecorationSelected) |