declare the Q_ENUM
svn path=/trunk/KDE/kdelibs/; revision=925910
This commit is contained in:
parent
499fd451b4
commit
d544dc7c2d
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user