From bee77498d8b64fdf0affb2d6abe65e5da254aed6 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 7 Jul 2011 15:32:04 +0200 Subject: [PATCH] bind tickInterval property --- widgets/videowidget.cpp | 10 ++++++++++ widgets/videowidget.h | 14 ++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/widgets/videowidget.cpp b/widgets/videowidget.cpp index dee26e921..d79a9fd95 100644 --- a/widgets/videowidget.cpp +++ b/widgets/videowidget.cpp @@ -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); diff --git a/widgets/videowidget.h b/widgets/videowidget.h index bbf3ce9ac..689e0c625 100644 --- a/widgets/videowidget.h +++ b/widgets/videowidget.h @@ -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 *