mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Use palette highlight text colour for highlighted items so we dont have dark text on dark bg
git-svn-id: http://svn.osgeo.org/qgis/trunk@10025 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
b60e737809
commit
071f3cc5cd
@ -122,7 +122,13 @@ void QgsDetailedItemDelegate::paintManually( QPainter * thepPainter,
|
||||
if ( theOption.state & QStyle::State_Selected )
|
||||
{
|
||||
drawHighlight( theOption, thepPainter, height( theOption, theData ) );
|
||||
thepPainter->setPen(theOption.palette.highlightedText().color());
|
||||
}
|
||||
else
|
||||
{
|
||||
thepPainter->setPen(theOption.palette.text().color());
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// Draw the checkbox
|
||||
@ -191,7 +197,6 @@ void QgsDetailedItemDelegate::paintAsWidget( QPainter * thepPainter,
|
||||
mpWidget->setAutoFillBackground( true );
|
||||
//mpWidget->setAttribute(Qt::WA_OpaquePaintEvent);
|
||||
mpWidget->repaint();
|
||||
|
||||
if ( theOption.state & QStyle::State_Selected )
|
||||
{
|
||||
drawHighlight( theOption, thepPainter, height( theOption, theData ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user