bind tickInterval property
This commit is contained in:
parent
a13881b651
commit
bee77498d8
@ -542,6 +542,16 @@ bool VideoWidget::controlsVisible() const
|
||||
return d->controlsWidget != 0 && d->controlsWidget->isVisible();
|
||||
}
|
||||
|
||||
void VideoWidget::setTickInterval(qint64 interval)
|
||||
{
|
||||
d->media->setTickInterval(interval);
|
||||
}
|
||||
|
||||
qint64 VideoWidget::tickInterval() const
|
||||
{
|
||||
return d->media->tickInterval();
|
||||
}
|
||||
|
||||
void VideoWidget::setStyleSheet(const QString &stylesheet)
|
||||
{
|
||||
d->videoWidget->setStyleSheet(stylesheet);
|
||||
|
@ -55,6 +55,7 @@ class PLASMA_EXPORT VideoWidget : public QGraphicsProxyWidget
|
||||
Q_PROPERTY(qint64 remainingTime READ remainingTime)
|
||||
Q_PROPERTY(Controls usedControls READ usedControls WRITE setUsedControls)
|
||||
Q_PROPERTY(bool controlsVisible READ controlsVisible WRITE setControlsVisible)
|
||||
Q_PROPERTY(qint32 tickInterval READ tickInterval WRITE setTickInterval)
|
||||
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
|
||||
Q_ENUMS(Control)
|
||||
|
||||
@ -142,6 +143,19 @@ public:
|
||||
*/
|
||||
bool controlsVisible() const;
|
||||
|
||||
/**
|
||||
* @param interval milliseconds the tick signal will be emitted
|
||||
* @since 4.8
|
||||
*/
|
||||
void setTickInterval(qint64 interval);
|
||||
|
||||
/**
|
||||
* @return milliseconds the tick signal will be emitted
|
||||
* @see tickInterval()
|
||||
* @since 4.8
|
||||
*/
|
||||
qint64 tickInterval() const;
|
||||
|
||||
/**
|
||||
* Sets the stylesheet used to control the visual display of this VideoWidget
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user