bind tickInterval property

This commit is contained in:
Marco Martin 2011-07-07 15:32:04 +02:00
parent a13881b651
commit bee77498d8
2 changed files with 24 additions and 0 deletions

View File

@ -542,6 +542,16 @@ bool VideoWidget::controlsVisible() const
return d->controlsWidget != 0 && d->controlsWidget->isVisible(); 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) void VideoWidget::setStyleSheet(const QString &stylesheet)
{ {
d->videoWidget->setStyleSheet(stylesheet); d->videoWidget->setStyleSheet(stylesheet);

View File

@ -55,6 +55,7 @@ class PLASMA_EXPORT VideoWidget : public QGraphicsProxyWidget
Q_PROPERTY(qint64 remainingTime READ remainingTime) Q_PROPERTY(qint64 remainingTime READ remainingTime)
Q_PROPERTY(Controls usedControls READ usedControls WRITE setUsedControls) Q_PROPERTY(Controls usedControls READ usedControls WRITE setUsedControls)
Q_PROPERTY(bool controlsVisible READ controlsVisible WRITE setControlsVisible) 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_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
Q_ENUMS(Control) Q_ENUMS(Control)
@ -142,6 +143,19 @@ public:
*/ */
bool controlsVisible() const; 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 * Sets the stylesheet used to control the visual display of this VideoWidget
* *