]> git.sesse.net Git - kdenlive/commitdiff
Fix compilation without nepomuk
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 14 Jan 2012 08:56:36 +0000 (09:56 +0100)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 14 Jan 2012 08:56:36 +0000 (09:56 +0100)
src/utils/resourcewidget.cpp
src/utils/resourcewidget.h

index 39c8ec5263eec0f17f8c59c06725ea870ad98233..80fbc18ebef50334bae34a15b0eb5690c381cc3d 100644 (file)
@@ -42,7 +42,7 @@
 #include <KRun>
 #include <KPixmapSequence>
 #include <KPixmapSequenceOverlayPainter>
-
+#include <KFileItem>
 
 #ifdef USE_NEPOMUK
 #if KDE_IS_VERSION(4,6,0)
@@ -52,7 +52,6 @@
 #include <Nepomuk/Vocabulary/NIE>
 #include <Nepomuk/Vocabulary/NCO>
 #include <Nepomuk/Vocabulary/NDO>
-#include <kfileitem.h>
 #endif
 #endif
 
@@ -206,25 +205,6 @@ void ResourceWidget::slotPlaySound()
 }
 
 
-void ResourceWidget::slotForcePlaySound(bool play)
-{
-    /*
-    if (m_service != FREESOUND) return;
-    m_previewProcess->close();
-    if (m_currentPreview.isEmpty()) return;
-    if (play)
-        m_previewProcess->start("ffplay", QStringList() << m_currentPreview << "-nodisp");
-    */
-}
-
-void ResourceWidget::slotPreviewStatusChanged(QProcess::ProcessState state)
-{
-    /*if (state == QProcess::NotRunning)
-        button_preview->setText(i18n("Preview"));
-    else 
-        button_preview->setText(i18n("Stop"));*/
-}
-
 void ResourceWidget::slotSaveItem(const QString originalUrl)
 {
     //if (m_currentUrl.isEmpty()) return;
index 71253c763a57d077df8a204e826f5f14d850dedc..b2021e0c175d19692302d17ef3b548acd7af07a4 100644 (file)
@@ -46,8 +46,6 @@ private slots:
     void slotStartSearch(int page = 0);
     void slotUpdateCurrentSound();
     void slotPlaySound();
-    void slotForcePlaySound(bool play);
-    void slotPreviewStatusChanged(QProcess::ProcessState state);
     void slotDisplayMetaInfo(QMap <QString, QString> metaInfo);
     void slotSaveItem(const QString originalUrl = QString());
     void slotOpenUrl(const QString &url);