]> git.sesse.net Git - kdenlive/blobdiff - src/utils/resourcewidget.cpp
Cleanup
[kdenlive] / src / utils / resourcewidget.cpp
index 45bcb227f5a4c8b7f7c35e82ac4148b2bafb657c..c0ea22991ff08b6f83d50137d02b6944aa166bc8 100644 (file)
@@ -261,7 +261,7 @@ void ResourceWidget::slotGotFile(KJob *job)
         //res.setProperty( Soprano::Vocabulary::NAO::description(), 
 #endif
 #endif
-        emit addClip(filePath, QMap <QString, QString>());
+        emit addClip(filePath, stringMap());
 }
 
 void ResourceWidget::slotOpenUrl(const QString &url)
@@ -288,7 +288,7 @@ void ResourceWidget::slotChangeService()
 
     connect(m_currentService, SIGNAL(gotMetaInfo(const QString)), this, SLOT(slotSetMetadata(const QString)));
     connect(m_currentService, SIGNAL(gotMetaInfo(QMap <QString, QString>)), this, SLOT(slotDisplayMetaInfo(QMap <QString, QString>)));
-    connect(m_currentService, SIGNAL(maxPages(int)), page_number, SLOT(setMaximum(int)));
+    connect(m_currentService, SIGNAL(maxPages(int)), this, SLOT(slotSetMaximum(int)));
     connect(m_currentService, SIGNAL(searchInfo(QString)), search_info, SLOT(setText(QString)));
     connect(m_currentService, SIGNAL(gotThumb(const QString)), this, SLOT(slotLoadThumb(const QString)));
 #if KDE_IS_VERSION(4,4,0)
@@ -301,6 +301,11 @@ void ResourceWidget::slotChangeService()
     if (!search_text->text().isEmpty()) slotStartSearch();
 }
 
+void ResourceWidget::slotSetMaximum(int max)
+{
+    page_number->setMaximum(max);
+}
+
 void ResourceWidget::slotOnline()
 {
     button_search->setEnabled(true);