api docs and note an API wart that should be fixed in the next BIC release

svn path=/trunk/KDE/kdelibs/; revision=1038110
This commit is contained in:
Aaron J. Seigo 2009-10-20 16:37:25 +00:00
parent 799e2dc3fb
commit f9b2ad74fc
2 changed files with 12 additions and 0 deletions

View File

@ -466,6 +466,7 @@ void Dialog::setGraphicsWidget(QGraphicsWidget *widget)
} }
} }
//BIC FIXME: should be const
QGraphicsWidget *Dialog::graphicsWidget() QGraphicsWidget *Dialog::graphicsWidget()
{ {
return d->graphicsWidget; return d->graphicsWidget;

View File

@ -73,7 +73,18 @@ class PLASMA_EXPORT Dialog : public QWidget
explicit Dialog(QWidget * parent = 0, Qt::WindowFlags f = Qt::Window); explicit Dialog(QWidget * parent = 0, Qt::WindowFlags f = Qt::Window);
virtual ~Dialog(); virtual ~Dialog();
/**
* Sets a QGraphicsWidget to be shown as the content in this dialog.
* The dialog will then set up a QGraphicsView and coordinate geometry with
* the widget automatically.
*
* @arg widget the QGraphicsWidget to display in this dialog
*/
void setGraphicsWidget(QGraphicsWidget *widget); void setGraphicsWidget(QGraphicsWidget *widget);
/**
* @return the graphics widget shown in this dialog
*/
QGraphicsWidget *graphicsWidget(); QGraphicsWidget *graphicsWidget();
/** /**