declare the Q_ENUM

svn path=/trunk/KDE/kdelibs/; revision=925910
This commit is contained in:
Marco Martin 2009-02-14 13:55:09 +00:00
parent 499fd451b4
commit d544dc7c2d
2 changed files with 5 additions and 2 deletions

View File

@ -271,10 +271,12 @@ QString VideoWidget::url() const
return d->media->currentSource().url().toString();
}
void VideoWidget::setUsedControls(Controls controls)
void VideoWidget::setUsedControls(const Controls controls)
{
d->shownControls = controls;
//kDebug()<<"Setting used controls"<<controls;
QGraphicsLinearLayout *controlsLayout;
if (controls != NoControls && d->controlsWidget == 0) {
d->controlsWidget = new QGraphicsWidget(this);

View File

@ -56,6 +56,7 @@ class PLASMA_EXPORT VideoWidget : public QGraphicsProxyWidget
Q_PROPERTY(Controls usedControls READ usedControls WRITE setUsedControls)
Q_PROPERTY(bool controlsVisible READ controlsVisible WRITE setControlsVisible)
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
Q_ENUMS(Control)
public:
enum Control {
@ -118,7 +119,7 @@ public:
* @arg controls bitwise OR combination of Controls flags
* @see Controls
*/
void setUsedControls(Controls controls);
void setUsedControls(const Controls controls);
/**
* @return the video controls that are used and shown