Fixed unused variable warning in diagramscene example.

Change-Id: I85cc038602e22c140f0564b15ebcb3872750b162
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
This commit is contained in:
Mitch Curtis 2012-05-18 12:15:19 +02:00 committed by Qt by Nokia
parent 5159379c10
commit 91a5e272c5

View 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);