]> git.sesse.net Git - kdenlive/blobdiff - src/scopes/audioscopes/abstractaudioscopewidget.h
Fix includes
[kdenlive] / src / scopes / audioscopes / abstractaudioscopewidget.h
index a3c352b7d50c7a401928fb3e893540ff182254f6..2487a811716eb87bee88fd6c0a8496b878ff1cb0 100644 (file)
 #define ABSTRACTAUDIOSCOPEWIDGET_H
 
 
-#include <QtCore>
 #include <QWidget>
 
 #include <stdint.h>
 
 #include "../abstractscopewidget.h"
 
-class QMenu;
 
-class Monitor;
 class Render;
 
 /**
@@ -31,11 +28,11 @@ class AbstractAudioScopeWidget : public AbstractScopeWidget
 {
     Q_OBJECT
 public:
-    AbstractAudioScopeWidget(bool trackMouse = false, QWidget *parent = 0);
+    explicit AbstractAudioScopeWidget(bool trackMouse = false, QWidget *parent = 0);
     virtual ~AbstractAudioScopeWidget();
 
 public slots:
-    void slotReceiveAudio(QVector<int16_t> sampleData, int freq, int num_channels, int num_samples);
+    void slotReceiveAudio(const QVector<int16_t> &sampleData, int freq, int num_channels, int num_samples);
 
 protected:
     /** @brief This is just a wrapper function, subclasses can use renderAudioScope. */
@@ -46,8 +43,8 @@ protected:
         when calculation has finished, to allow multi-threading.
         accelerationFactor hints how much faster than usual the calculation should be accomplished, if possible. */
     virtual QImage renderAudioScope(uint accelerationFactor,
-                               const QVector<int16_t> audioFrame, const int freq, const int num_channels, const int num_samples,
-                               const int newData) = 0;
+                                    const QVector<int16_t> &audioFrame, const int freq, const int num_channels, const int num_samples,
+                                    const int newData) = 0;
 
     int m_freq;
     int m_nChannels;