Commit 1c4d9e48 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Fix warnings about assigned/unused variables (gcc 4.6).



Change-Id: Ifdeb2e25ecb0e11a78c5353aaf68782464c9a676
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent 7daf1c58
......@@ -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);
......
......@@ -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);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment