make graphicsWidget const

This commit is contained in:
Aaron Seigo 2011-05-20 08:10:39 +02:00
parent cfdccb7968
commit 7f4bd841e2
2 changed files with 2 additions and 3 deletions

View File

@ -655,8 +655,7 @@ void Dialog::setGraphicsWidget(QGraphicsWidget *widget)
}
}
//KDE5 FIXME: should be const
QGraphicsWidget *Dialog::graphicsWidget()
QGraphicsWidget *Dialog::graphicsWidget() const
{
return d->graphicsWidgetPtr.data();
}

View File

@ -84,7 +84,7 @@ class PLASMA_EXPORT Dialog : public QWidget
/**
* @return the graphics widget shown in this dialog
*/
QGraphicsWidget *graphicsWidget();
QGraphicsWidget *graphicsWidget() const;
/**
* @arg corners the corners the resize handlers should be placed in.