#include <KIO/NetAccess>
#include <Solid/Networking>
#include <KRun>
+#if KDE_IS_VERSION(4,4,0)
#include <KPixmapSequence>
#include <KPixmapSequenceOverlayPainter>
+#endif
#include <KFileItem>
#ifdef USE_NEPOMUK
config_button->setMenu(resourceMenu);
config_button->setIcon(KIcon("configure"));
+#if KDE_IS_VERSION(4,4,0)
m_busyWidget = new KPixmapSequenceOverlayPainter(this);
m_busyWidget->setAlignment(Qt::AlignHCenter | Qt::AlignVCenter);
m_busyWidget->setWidget(search_results->viewport());
+#endif
sound_box->setEnabled(false);
search_text->setFocus();
page_number->blockSignals(true);
page_number->setValue(page);
page_number->blockSignals(false);
+#if KDE_IS_VERSION(4,4,0)
m_busyWidget->start();
+#endif
m_currentService->slotStartSearch(search_text->text(), page);
}
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( Soprano::Vocabulary::NAO::description(),
#endif
#endif
- emit addClip(filePath, QString());
+ emit addClip(filePath, QMap <QString, QString>());
}
void ResourceWidget::slotOpenUrl(const QString &url)
connect(m_currentService, SIGNAL(maxPages(int)), page_number, SLOT(setMaximum(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)
connect(m_currentService, SIGNAL(searchDone()), m_busyWidget, SLOT(stop()));
+#endif
button_preview->setVisible(m_currentService->hasPreview);
button_import->setVisible(!m_currentService->inlineDownload);
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
+}
+