X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmonitor.h;fp=src%2Fmonitor.h;h=c041bccb8b3047551080dac6ae46ae578e52736e;hb=45adaf0e93ffa28bfeb3425a099ca95e70fd0d79;hp=5dc6f2a4eeb0bf49f65661b58adf3a83888b1509;hpb=aa17f2397f8cb15489c4b03cd78e9ee16cd2f485;p=kdenlive diff --git a/src/monitor.h b/src/monitor.h index 5dc6f2a4..c041bccb 100644 --- a/src/monitor.h +++ b/src/monitor.h @@ -101,18 +101,18 @@ public: QString getMarkerThumb(GenTime pos); protected: - virtual void mousePressEvent(QMouseEvent * event); - virtual void mouseReleaseEvent(QMouseEvent * event); - virtual void mouseDoubleClickEvent(QMouseEvent * event); - virtual void resizeEvent(QResizeEvent *event); + void mousePressEvent(QMouseEvent * event); + void mouseReleaseEvent(QMouseEvent * event); + void mouseDoubleClickEvent(QMouseEvent * event); + void resizeEvent(QResizeEvent *event); /** @brief Move to another position on mouse wheel event. * * Moves towards the end of the clip/timeline on mouse wheel down/back, the * opposite on mouse wheel up/forward. * Ctrl + wheel moves by a second, without Ctrl it moves by a single frame. */ - virtual void wheelEvent(QWheelEvent * event); - virtual void mouseMoveEvent(QMouseEvent *event); + void wheelEvent(QWheelEvent * event); + void mouseMoveEvent(QMouseEvent *event); virtual QStringList mimeTypes() const; /*virtual void dragMoveEvent(QDragMoveEvent * event); @@ -148,7 +148,7 @@ private: #ifdef USE_OPENGL VideoGLWidget *m_glWidget; - bool createOpenGlWidget(QWidget *parent, const QString profile); + bool createOpenGlWidget(QWidget *parent, const QString &profile); #endif GenTime getSnapForPos(bool previous); @@ -167,7 +167,7 @@ private slots: void slotSetSizeOneToTwo(); void slotSaveZone(); void slotSeek(); - void setClipZone(QPoint pos); + void setClipZone(const QPoint &pos); void slotSwitchMonitorInfo(bool show); void slotSwitchDropFrames(bool show); void slotGoToMarker(QAction *action); @@ -194,7 +194,7 @@ public slots: void slotRewind(double speed = 0); void slotRewindOneFrame(int diff = 1); void slotForwardOneFrame(int diff = 1); - void saveSceneList(QString path, QDomElement info = QDomElement()); + void saveSceneList(const QString &path, const QDomElement &info = QDomElement()); void slotStart(); void slotEnd(); void slotSetZoneStart(); @@ -223,13 +223,13 @@ signals: void durationChanged(int); void refreshClipThumbnail(const QString &, bool); void adjustMonitorSize(); - void zoneUpdated(QPoint); - void saveZone(Render *, QPoint, DocClipBase *); + void zoneUpdated(const QPoint&); + void saveZone(Render *, const QPoint&, DocClipBase *); /** @brief Editing transitions / effects over the monitor requires the renderer to send frames as QImage. * This causes a major slowdown, so we only enable it if required */ void requestFrameForAnalysis(bool); /** @brief Request a zone extraction (ffmpeg transcoding). */ - void extractZone(const QString &id, QPoint zone); + void extractZone(const QString &id, const QPoint &zone); }; #endif