if (!path.endsWith('/')) path.append('/');
if (!originalUrl.isEmpty()) {
path.append(KUrl(originalUrl).fileName());
- ext = "*." + KUrl(originalUrl).fileName().section(".", -1);
+ ext = "*." + KUrl(originalUrl).fileName().section('.', -1);
m_currentInfo.itemDownload = originalUrl;
}
else {
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(),
#endif
#endif
- emit addClip(filePath, QString());
+ emit addClip(filePath, stringMap());
}
void ResourceWidget::slotOpenUrl(const QString &url)
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)
if (!search_text->text().isEmpty()) slotStartSearch();
}
+void ResourceWidget::slotSetMaximum(int max)
+{
+ page_number->setMaximum(max);
+}
+
void ResourceWidget::slotOnline()
{
button_search->setEnabled(true);
if (!m_desc.isEmpty()) content.append(m_desc);
if (!m_meta.isEmpty()) content.append(m_meta);
info_browser->setHtml(content);
-}
\ No newline at end of file
+}
+