From 8be90ee688b4e1227d6e3962eef311c2ed7f1284 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Mardelle Date: Mon, 17 Sep 2012 11:16:25 +0200 Subject: [PATCH] cleanup --- src/customtrackview.cpp | 2 +- src/customtrackview.h | 4 +++- src/trackview.cpp | 2 +- src/utils/resourcewidget.cpp | 1 - 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/customtrackview.cpp b/src/customtrackview.cpp index cf1ac229..1edb555b 100644 --- a/src/customtrackview.cpp +++ b/src/customtrackview.cpp @@ -3359,7 +3359,7 @@ int CustomTrackView::seekPosition() const } -void CustomTrackView::setCursorPos(int pos, bool seek) +void CustomTrackView::setCursorPos(int pos) { if (pos != m_cursorPos) { emit cursorMoved((int)(m_cursorPos), (int)(pos)); diff --git a/src/customtrackview.h b/src/customtrackview.h index a37f76ee..c493ceb6 100644 --- a/src/customtrackview.h +++ b/src/customtrackview.h @@ -206,8 +206,10 @@ public: int seekPosition() const; public slots: + /** @brief Send seek request to MLT. */ void seekCursorPos(int pos); - void setCursorPos(int pos, bool seek = true); + /** @brief Move timeline cursor to new position. */ + void setCursorPos(int pos); void moveCursorPos(int delta); void updateCursorPos(); void slotDeleteEffect(ClipItem *clip, int track, QDomElement effect, bool affectGroup = true); diff --git a/src/trackview.cpp b/src/trackview.cpp index 0bf0331a..b9df353d 100644 --- a/src/trackview.cpp +++ b/src/trackview.cpp @@ -470,7 +470,7 @@ void TrackView::setCursorPos(int pos) void TrackView::moveCursorPos(int pos) { - m_trackview->setCursorPos(pos, false); + m_trackview->setCursorPos(pos); } void TrackView::slotChangeZoom(int horizontal, int vertical) diff --git a/src/utils/resourcewidget.cpp b/src/utils/resourcewidget.cpp index 16d54a3f..45bcb227 100644 --- a/src/utils/resourcewidget.cpp +++ b/src/utils/resourcewidget.cpp @@ -256,7 +256,6 @@ void ResourceWidget::slotGotFile(KJob *job) res.setProperty( Nepomuk::Vocabulary::NIE::license(), (Nepomuk::Variant) job->property("license") ); res.setProperty( Nepomuk::Vocabulary::NIE::licenseType(), (Nepomuk::Variant) job->property("licenseurl") ); res.setProperty( Nepomuk::Vocabulary::NDO::copiedFrom(), (Nepomuk::Variant) job->property("originurl") ); - res.setProperty( Nepomuk::Vocabulary::NDO::copiedFrom(), (Nepomuk::Variant) job->property("originurl") ); res.setProperty( Nepomuk::Vocabulary::NCO::creator(), (Nepomuk::Variant) job->property("author") ); //res.setDescription(item_description->toPlainText()); //res.setProperty( Soprano::Vocabulary::NAO::description(), -- 2.39.5