X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftrackview.h;h=755b8e11173c17c89da22afdb3ba519e651ee7c7;hb=c3302003093710ee247ad84c0fe2ef3c579d417f;hp=b46ec00c0eef484d1af3a1cc922b2cbe58fd3e97;hpb=66477ff375fb6103903d61b0ac06ee47ab864356;p=kdenlive diff --git a/src/trackview.h b/src/trackview.h index b46ec00c..755b8e11 100644 --- a/src/trackview.h +++ b/src/trackview.h @@ -80,15 +80,15 @@ public: void updatePalette(); protected: - virtual void keyPressEvent(QKeyEvent * event); + void keyPressEvent(QKeyEvent * event); public slots: void slotDeleteClip(const QString &clipId); void slotChangeZoom(int horizontal, int vertical = -1); void setDuration(int dur); - void slotSetZone(QPoint p, bool updateDocumentProperties = true); + void slotSetZone(const QPoint &p, bool updateDocumentProperties = true); /** @brief Save a snapshot image of current timeline view */ - void slotSaveTimelinePreview(const QString path); + void slotSaveTimelinePreview(const QString &path); private: CustomRuler *m_ruler; CustomTrackView *m_trackview; @@ -106,8 +106,8 @@ private: QList m_trackActions; void parseDocument(const QDomDocument &doc); - int slotAddProjectTrack(int ix, QDomElement xml, bool locked, QDomNodeList producers); - DocClipBase *getMissingProducer(const QString id) const; + int slotAddProjectTrack(int ix, QDomElement xml, bool locked, const QDomNodeList &producers); + DocClipBase *getMissingProducer(const QString &id) const; void adjustTrackHeaders(); /** @brief Add effects from the xml. Returns true if some effect was upgraded, false if everything went fine.*/ void slotAddProjectEffects(QDomNodeList effects, QDomElement parentNode, ClipItem *clip, int trackIndex); @@ -132,7 +132,7 @@ private slots: /** @brief Changes the name of a track. * @param ix Number of the track * @param name New name */ - void slotRenameTrack(int ix, QString name); + void slotRenameTrack(int ix, const QString &name); void slotRepaintTracks(); /** @brief Adjusts the margins of the header area. @@ -152,7 +152,7 @@ signals: void configTrack(int); void updateTracksInfo(); void setZoom(int); - void showTrackEffects(int, TrackInfo); + void showTrackEffects(int, const TrackInfo&); }; #endif