-void MarkerDialog::slotTimeDown() {
- int duration = m_tc.getFrameCount(m_view.marker_position->text(), m_fps);
- if (duration <= 0) return;
- duration --;
- m_view.marker_position->setText(m_tc.getTimecode(GenTime(duration, m_fps), m_fps));
-}
-
-CommentedTime MarkerDialog::newMarker() {
- return CommentedTime(GenTime(m_tc.getFrameCount(m_view.marker_position->text(), m_fps), m_fps), m_view.marker_comment->text());
-}
-
-void MarkerDialog::wheelEvent(QWheelEvent * event) {
- if (m_view.marker_position->underMouse() || m_view.clip_thumb->underMouse()) {
- if (event->delta() > 0)
- slotTimeUp();
- else
- slotTimeDown();
- }
+CommentedTime MarkerDialog::newMarker()
+{
+ KdenliveSettings::setDefault_marker_type(marker_type->currentIndex());
+ return CommentedTime(m_in->gentime(), marker_comment->text(), marker_type->currentIndex());