diff --git a/src/libs/qmleditorwidgets/contextpanewidgetrectangle.cpp b/src/libs/qmleditorwidgets/contextpanewidgetrectangle.cpp index 08927708e73..a0119caae17 100644 --- a/src/libs/qmleditorwidgets/contextpanewidgetrectangle.cpp +++ b/src/libs/qmleditorwidgets/contextpanewidgetrectangle.cpp @@ -196,7 +196,6 @@ void ContextPaneWidgetRectangle::onGradientClicked() m_hasGradient = true; QLinearGradient gradient; QGradientStops stops; - QColor color = ui->colorColorButton->convertedColor(); stops.append(QGradientStop(0, ui->colorColorButton->convertedColor())); stops.append(QGradientStop(1, Qt::white)); gradient.setStops(stops); diff --git a/src/plugins/qmlprofiler/timelineview.cpp b/src/plugins/qmlprofiler/timelineview.cpp index 56eaa70f3ce..441e787500e 100644 --- a/src/plugins/qmlprofiler/timelineview.cpp +++ b/src/plugins/qmlprofiler/timelineview.cpp @@ -172,7 +172,7 @@ void TimelineView::drawSelectionBoxes(QPainter *p) QPen lightPen(QBrush(QColor(Qt::blue).lighter(130)), 2); p->setPen(lightPen); - int x,y,width,rowNumber,eventType; + int x, y, width, eventType; for (int i = fromIndex; i <= toIndex; i++) { if (m_eventList->getHash(i) != id) continue; @@ -193,7 +193,6 @@ void TimelineView::drawSelectionBoxes(QPainter *p) if (width<1) width = 1; - rowNumber = y/DefaultRowHeight; p->drawRect(x,y,width,DefaultRowHeight); } }