equal
deleted
inserted
replaced
117 void VideoPlayer::openFile() |
117 void VideoPlayer::openFile() |
118 { |
118 { |
119 QString fileName = QFileDialog::getOpenFileName(this, tr("Open Movie")); |
119 QString fileName = QFileDialog::getOpenFileName(this, tr("Open Movie")); |
120 |
120 |
121 if (!fileName.isEmpty()) { |
121 if (!fileName.isEmpty()) { |
122 if (videoItem->isStarted()) |
122 videoItem->stop(); |
123 videoItem->stop(); |
|
124 |
123 |
125 movie.setFileName(fileName); |
124 movie.setFileName(fileName); |
126 |
125 |
127 playButton->setEnabled(true); |
126 playButton->setEnabled(true); |
128 positionSlider->setMaximum(movie.frameCount()); |
127 positionSlider->setMaximum(movie.frameCount()); |