summaryrefslogtreecommitdiffstats
path: root/DOCS/client_api_examples/qt_opengl/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'DOCS/client_api_examples/qt_opengl/mainwindow.cpp')
-rw-r--r--DOCS/client_api_examples/qt_opengl/mainwindow.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/DOCS/client_api_examples/qt_opengl/mainwindow.cpp b/DOCS/client_api_examples/qt_opengl/mainwindow.cpp
index 2e3cf210ee..3ecd0a196d 100644
--- a/DOCS/client_api_examples/qt_opengl/mainwindow.cpp
+++ b/DOCS/client_api_examples/qt_opengl/mainwindow.cpp
@@ -48,6 +48,5 @@ void MainWindow::pauseResume()
void MainWindow::setSliderRange(int duration)
{
- const int time0 = m_mpv->getProperty("time-start").toInt();
- m_slider->setRange(time0, time0+duration);
+ m_slider->setRange(0, duration);
}