- if (width % 2 == 1) width++;
- QPixmap p = KThumb::getFrame(m_producer, pos, width, 100);
- if (!p.isNull()) clip_thumb->setPixmap(p);
- else kDebug() << "!!!!!!!!!!! ERROR CREATING THUMB";
-}
-
-void MarkerDialog::slotTimeUp()
-{
- int duration = m_tc.getFrameCount(marker_position->text());
- if (m_clip && duration >= m_clip->duration().frames(m_fps)) return;
- duration ++;
- marker_position->setText(m_tc.getTimecode(GenTime(duration, m_fps)));
+ int swidth = (int) (100.0 * m_profile->width() / m_profile->height() + 0.5);
+ if (width % 2 == 1)
+ width++;
+
+ m_image = KThumb::getFrame(m_producer, pos, swidth, width, 100);
+ const QPixmap p = QPixmap::fromImage(m_image);
+ if (!p.isNull())
+ clip_thumb->setPixmap(p);
+ else
+ kDebug() << "!!!!!!!!!!! ERROR CREATING THUMB";