plasma: const-ify Dialog::graphicsWidget() getter

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-09-29 22:51:50 +03:00
parent 81870c59a8
commit 792357e82e
2 changed files with 2 additions and 3 deletions

View file

@ -660,8 +660,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;
/**
* @param corners the corners the resize handlers should be placed in.