From 91fb70992bc809bfb5ffe37c4f07e5770ddea7e7 Mon Sep 17 00:00:00 2001 From: Kurt Hindenburg Date: Tue, 15 Apr 2014 09:16:40 -0400 Subject: [PATCH] Remove commented code and dead-code that was used in commented code (cherry picked from commit ffd9e56cce5133624bcfb30d69fec8f43f243842) --- src/EditProfileDialog.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/EditProfileDialog.cpp b/src/EditProfileDialog.cpp index f52d6dc4b..b04235578 100644 --- a/src/EditProfileDialog.cpp +++ b/src/EditProfileDialog.cpp @@ -1342,22 +1342,17 @@ void ColorSchemeViewDelegate::paint(QPainter* painter, const QStyleOptionViewIte painter->setBrush(gradient); painter->drawRoundRect(backgroundRect , 4 , 30); - //const bool isChecked = index.data(Qt::CheckStateRole) == Qt::Checked; const bool isSelected = option.state & QStyle::State_Selected; // draw border on selected items - if (isSelected) { //|| isChecked ) + if (isSelected) { static const int selectedBorderWidth = 6; painter->setBrush(QBrush(Qt::NoBrush)); QPen pen; QColor highlightColor = option.palette.highlight().color(); - - if (isSelected) - highlightColor.setAlphaF(1.0); - else - highlightColor.setAlphaF(0.7); + highlightColor.setAlphaF(1.0); pen.setBrush(highlightColor); pen.setWidth(selectedBorderWidth);