X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Futils%2Fresourcewidget.cpp;h=c0ea22991ff08b6f83d50137d02b6944aa166bc8;hb=e8cb078eb6a33d286c9fe2aff730980f7a2eff32;hp=45bcb227f5a4c8b7f7c35e82ac4148b2bafb657c;hpb=f9c0df27ed5dafb1ee72c3e6dea7340de350b542;p=kdenlive diff --git a/src/utils/resourcewidget.cpp b/src/utils/resourcewidget.cpp index 45bcb227..c0ea2299 100644 --- a/src/utils/resourcewidget.cpp +++ b/src/utils/resourcewidget.cpp @@ -261,7 +261,7 @@ void ResourceWidget::slotGotFile(KJob *job) //res.setProperty( Soprano::Vocabulary::NAO::description(), #endif #endif - emit addClip(filePath, QMap ()); + 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 )), this, SLOT(slotDisplayMetaInfo(QMap ))); - 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);