Skip to content
Permalink
Browse files

Use palette highlight text colour for highlighted items so we dont ha…

…ve dark text on dark bg

git-svn-id: http://svn.osgeo.org/qgis/branches/Version-1_0@10024 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux
timlinux committed Jan 26, 2009
1 parent faae187 commit 1d527ce1330148a584b0ec01ac65f3a0eb68e6df
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/gui/qgsdetaileditemdelegate.cpp
@@ -122,8 +122,14 @@ 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 ) );

0 comments on commit 1d527ce

Please sign in to comment.
You can’t perform that action at this time.