forked from qt-creator/qt-creator
Fix warnings about assigned/unused variables (gcc 4.6).
Change-Id: Ifdeb2e25ecb0e11a78c5353aaf68782464c9a676 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user