mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 02:20:00 +03:00
NOISSUE Add basic accessibility support to GroupView
This commit is contained in:
parent
3b32730526
commit
d6c6653872
11 changed files with 934 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue