Commit cba3c6aa authored by Laurent Montel's avatar Laurent Montel 😁

Remove not necessary virtual keyword. Use const'ref

parent 31198f86
......@@ -816,7 +816,7 @@ void RecMonitor::showWarningMessage(const QString &text, bool logAction)
#endif
}
const QString RecMonitor::getV4lXmlPlaylist(MltVideoProfile profile, bool *isXml)
const QString RecMonitor::getV4lXmlPlaylist(const MltVideoProfile &profile, bool *isXml)
{
QString playlist;
if (rec_video->isChecked() && rec_audio->isChecked()) {
......
......@@ -64,8 +64,8 @@ public:
enum CAPTUREDEVICE {FIREWIRE = 0, VIDEO4LINUX = 1, SCREENGRAB = 2, BLACKMAGIC = 3};
protected:
virtual void mousePressEvent(QMouseEvent * event);
virtual void mouseDoubleClickEvent(QMouseEvent * event);
void mousePressEvent(QMouseEvent * event);
void mouseDoubleClickEvent(QMouseEvent * event);
private:
KDateTime m_captureTime;
......@@ -117,7 +117,7 @@ private:
/** @brief Build MLT producer for device, using path as profile. */
void buildMltDevice(const QString &path);
/** @brief Create string containing an XML playlist for v4l capture. */
const QString getV4lXmlPlaylist(MltVideoProfile profile, bool *isXml);
const QString getV4lXmlPlaylist(const MltVideoProfile &profile, bool *isXml);
/** @brief Display an error message to user. */
void showWarningMessage(const QString &text, bool logAction = false);
......
......@@ -46,9 +46,9 @@ public:
void refreshRuler();
protected:
virtual void paintEvent(QPaintEvent *e);
virtual void resizeEvent(QResizeEvent *);
virtual void leaveEvent(QEvent * event);
void paintEvent(QPaintEvent *e);
void resizeEvent(QResizeEvent *);
void leaveEvent(QEvent * event);
private:
int m_cursorPosition;
......
......@@ -87,10 +87,10 @@ public:
protected:
/** @see QWidget::paintEvent() */
virtual void paintEvent(QPaintEvent* event);
void paintEvent(QPaintEvent* event);
/** @see QWidget::resizeEvent() */
virtual void resizeEvent(QResizeEvent* event);
void resizeEvent(QResizeEvent* event);
public slots:
void setMessage(const QString& text, MessageType type, int timeoutMS = 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment