]> git.sesse.net Git - kdenlive/commitdiff
Fix indent, Use const'ref
authorMontel Laurent <montel@kde.org>
Fri, 24 May 2013 08:35:46 +0000 (10:35 +0200)
committerMontel Laurent <montel@kde.org>
Fri, 24 May 2013 08:35:46 +0000 (10:35 +0200)
src/colorpickerwidget.h
src/colorplaneexport.cpp
src/utils/abstractservice.h
src/utils/archiveorg.h
src/utils/freesound.h
src/utils/resourcewidget.cpp
src/utils/resourcewidget.h

index def14f1f79f9b666a90130248456dd6a15eabcaf..eeede832106524e50e488f537eb31b44dd7e88dd 100644 (file)
@@ -35,10 +35,10 @@ class MyFrame : public QFrame
 {
     Q_OBJECT
 public:
-    MyFrame(QWidget* parent = 0);
+    explicit MyFrame(QWidget* parent = 0);
 
 protected:
-    virtual void hideEvent ( QHideEvent * event );
+    void hideEvent ( QHideEvent * event );
 
 signals:
     void getColor();
index 0f3a97f5518eead0d1ed740c5c5c07f5c1882fd7..b4daaa54ccbc13557a15a6fe204481f521e86a80 100644 (file)
@@ -123,7 +123,7 @@ void ColorPlaneExport::slotUpdateDisplays()
         break;
     }
 
-    lblSize->setText(i18n("%1 px", QVariant(tResX->text()).toInt()*QVariant(tResY->text()).toInt()));
+    lblSize->setText(i18n("%1 px", tResX->text().toInt()*tResY->text().toInt()));
 }
 
 void ColorPlaneExport::slotValidate()
index 250f3e587962d85646d2e70a3428ec3e394cd26c..2e52d6341e75e087ad3ddadaaf771190cf7d5972 100644 (file)
@@ -86,11 +86,11 @@ signals:
     void searchInfo(const QString &);
     void maxPages(int);
     /** @brief Emit meta info for current item in formatted html. */
-    void gotMetaInfo(const QString);
+    void gotMetaInfo(const QString &);
     /** @brief Emit some extra meta info (description, license). */
-    void gotMetaInfo(QMap <QString, QString> info);
+    void gotMetaInfo(const QMap <QString, QString> &info);
     /** @brief We have an url for current item's preview thumbnail. */
-    void gotThumb(const QString url);
+    void gotThumb(const QString &url);
     /** @brief The requested search query is finished. */
     void searchDone();
 };
index a00e4b1eb63820ced476327fa9e2de4ccbd970f7..b0a5a0ec5d5536ac137e650bbc5d11fc14b33619 100644 (file)
@@ -57,7 +57,7 @@ private:
     QString m_thumbsPath;
 
 signals:
-    void addClip(KUrl, const QString &);
+    void addClip(const KUrl &, const QString &);
 };
 
 
index 04d3321920ccc89a644b31843b31537204a723ca..03906093a9b76daef417793811b1cf4cacecb954 100644 (file)
@@ -55,7 +55,7 @@ private:
     QProcess *m_previewProcess;
 
 signals:
-    void addClip(KUrl, const QString &);
+    void addClip(const KUrl &, const QString &);
 };
 
 
index 9935f674d0de89a9aa164104bf6a43c5394c77ab..7201aedb8bb34a2e004ba18a3fd8a3074958ad1d 100644 (file)
@@ -67,9 +67,9 @@
 #endif
 
 ResourceWidget::ResourceWidget(const QString & folder, QWidget * parent) :
-        QDialog(parent),
-        m_folder(folder),
-        m_currentService(NULL)
+    QDialog(parent),
+    m_folder(folder),
+    m_currentService(NULL)
 {
     setFont(KGlobalSettings::toolBarFont());
     setupUi(this);
@@ -176,7 +176,7 @@ void ResourceWidget::slotUpdateCurrentSound()
 }
 
 
-void ResourceWidget::slotLoadThumb(const QString url)
+void ResourceWidget::slotLoadThumb(const QString &url)
 {
     KUrl img(url);
     if (img.isEmpty()) return;
@@ -184,7 +184,7 @@ void ResourceWidget::slotLoadThumb(const QString url)
         if (KIO::NetAccess::download(img, m_tmpThumbFile, this)) {
             slotSetImage(m_tmpThumbFile);
             /*QPixmap pix(tmpFile);
-            
+
             int newHeight = pix.height() * item_image->width() / pix.width();
             if (newHeight > 200) {
                 item_image->setScaledContents(false);
@@ -243,7 +243,7 @@ void ResourceWidget::slotSaveItem(const QString &originalUrl)
     if (saveUrl.isEmpty() || !KIO::NetAccess::stat(srcUrl, entry, this)) return;
     KIO::FileCopyJob * getJob = KIO::file_copy(srcUrl, KUrl(saveUrl), -1, KIO::Overwrite);
     
-    KFileItem info(entry, srcUrl); 
+    KFileItem info(entry, srcUrl);
     getJob->setSourceSize(info.size());
     getJob->setProperty("license", item_license->text());
     getJob->setProperty("licenseurl", item_license->url());
@@ -261,27 +261,27 @@ void ResourceWidget::slotGotFile(KJob *job)
     const KUrl filePath = copyJob->destUrl();
 #ifdef USE_NEPOMUK
 #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") );
-        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(), 
+    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") );
+    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
 
 #ifdef USE_NEPOMUKCORE
-        Nepomuk2::Resource res( filePath );
-        res.setProperty( Nepomuk2::Vocabulary::NIE::license(), (Nepomuk2::Variant) job->property("license") );
-        res.setProperty( Nepomuk2::Vocabulary::NIE::licenseType(), (Nepomuk2::Variant) job->property("licenseurl") );
-        res.setProperty( Nepomuk2::Vocabulary::NDO::copiedFrom(), (Nepomuk2::Variant) job->property("originurl") );
-        res.setProperty( Nepomuk2::Vocabulary::NCO::creator(), (Nepomuk2::Variant) job->property("author") );
-        //res.setDescription(item_description->toPlainText());
-        //res.setProperty( Soprano::Vocabulary::NAO::description(), 
+    Nepomuk2::Resource res( filePath );
+    res.setProperty( Nepomuk2::Vocabulary::NIE::license(), (Nepomuk2::Variant) job->property("license") );
+    res.setProperty( Nepomuk2::Vocabulary::NIE::licenseType(), (Nepomuk2::Variant) job->property("licenseurl") );
+    res.setProperty( Nepomuk2::Vocabulary::NDO::copiedFrom(), (Nepomuk2::Variant) job->property("originurl") );
+    res.setProperty( Nepomuk2::Vocabulary::NCO::creator(), (Nepomuk2::Variant) job->property("author") );
+    //res.setDescription(item_description->toPlainText());
+    //res.setProperty( Soprano::Vocabulary::NAO::description(),
 #endif
 
-        emit addClip(filePath, stringMap());
+    emit addClip(filePath, stringMap());
 }
 
 void ResourceWidget::slotOpenUrl(const QString &url)
index 1def7a907db3a5a4c557dc6759b21a45651ba89b..275e9112db6d425a7236ceda630bb026d579574b 100644 (file)
@@ -60,7 +60,7 @@ private slots:
     void slotNextPage();
     void slotPreviousPage();
     void slotOpenLink(const QUrl &url);
-    void slotLoadThumb(const QString url);
+    void slotLoadThumb(const QString& url);
     /** @brief A file download is finished */
     void slotGotFile(KJob *job);
     void slotSetMetadata(const QString &desc);
@@ -86,7 +86,7 @@ private:
     void updateLayout();
    
 signals:
-    void addClip(KUrl, stringMap data);
+    void addClip(const KUrl &, const stringMap &data);
 };