X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Futils%2Fresourcewidget.cpp;h=b88a0db9a91cd69fdeb0991667f8e42276ee53c1;hb=07cc32ca3557ccce583f95cbc8dd114d989b4f49;hp=8d10c2a563ea77d739a39968d839fc4df706f372;hpb=b165d7e4ed3625ca16d4e3c22a27aaad712af129;p=kdenlive diff --git a/src/utils/resourcewidget.cpp b/src/utils/resourcewidget.cpp index 8d10c2a5..b88a0db9 100644 --- a/src/utils/resourcewidget.cpp +++ b/src/utils/resourcewidget.cpp @@ -49,23 +49,23 @@ #include #ifdef USE_NEPOMUK -#if KDE_IS_VERSION(4,6,0) -#include -#include -#include -#include -#include -#include -#endif + #if KDE_IS_VERSION(4,6,0) + #include + #include + #include + #include + #include + #include + #endif #endif #ifdef USE_NEPOMUKCORE -#include -#include -#include -#include -#include -#include + #include + #include + #include + #include + #include + #include #endif ResourceWidget::ResourceWidget(const QString & folder, QWidget * parent) : @@ -115,9 +115,9 @@ ResourceWidget::ResourceWidget(const QString & folder, QWidget * parent) : sound_box->setEnabled(false); search_text->setFocus(); #ifdef USE_NEPOMUK -#if KDE_IS_VERSION(4,6,0) + #if KDE_IS_VERSION(4,6,0) Nepomuk::ResourceManager::instance()->init(); -#endif + #endif #endif slotChangeService(); loadConfig(); @@ -289,7 +289,7 @@ void ResourceWidget::slotGotFile(KJob *job) KIO::FileCopyJob* copyJob = static_cast( job ); const KUrl filePath = copyJob->destUrl(); #ifdef USE_NEPOMUK -#if KDE_IS_VERSION(4,6,0) + #if KDE_IS_VERSION(4,6,0) Nepomuk::Resource res( filePath ); res.setProperty( Nepomuk::Vocabulary::NIE::license(), (Nepomuk::Variant) job->property("license") ); res.setProperty( Nepomuk::Vocabulary::NIE::licenseType(), (Nepomuk::Variant) job->property("licenseurl") ); @@ -297,7 +297,7 @@ void ResourceWidget::slotGotFile(KJob *job) res.setProperty( Nepomuk::Vocabulary::NCO::creator(), (Nepomuk::Variant) job->property("author") ); //res.setDescription(item_description->toPlainText()); //res.setProperty( Soprano::Vocabulary::NAO::description(), -#endif + #endif #endif #ifdef USE_NEPOMUKCORE