Fixed unused variable warning in diagramscene example.
authorMitch Curtis <mitch.curtis@nokia.com>
Fri, 18 May 2012 10:15:19 +0000 (12:15 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 18 May 2012 19:12:16 +0000 (21:12 +0200)
Change-Id: I85cc038602e22c140f0564b15ebcb3872750b162
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
examples/graphicsview/diagramscene/mainwindow.cpp

index ca98838..977730a 100644 (file)
@@ -304,7 +304,6 @@ void MainWindow::itemSelected(QGraphicsItem *item)
     qgraphicsitem_cast<DiagramTextItem *>(item);
 
     QFont font = textItem->font();
-    QColor color = textItem->defaultTextColor();
     fontCombo->setCurrentFont(font);
     fontSizeCombo->setEditText(QString().setNum(font.pointSize()));
     boldAction->setChecked(font.weight() == QFont::Bold);