X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fslideshowclip.h;h=fe0134fb8dfb44771b75c648502fe2f61f659eb4;hb=3c844989ad9fdb96bb9258a990a9874773b3d792;hp=69fc496fcbcfee1c950aa8b21a6541a62ddcffbd;hpb=ce68de86827a11cd0dc96465fba021b2f7ceea55;p=kdenlive diff --git a/src/slideshowclip.h b/src/slideshowclip.h index 69fc496f..fe0134fb 100644 --- a/src/slideshowclip.h +++ b/src/slideshowclip.h @@ -34,7 +34,7 @@ class SlideshowClip : public QDialog Q_OBJECT public: - SlideshowClip(Timecode tc, QWidget * parent = 0); + explicit SlideshowClip(const Timecode& tc, QWidget * parent = 0); virtual ~ SlideshowClip(); /** return selected path for slideshow in MLT format */ QString selectedPath(); @@ -49,12 +49,10 @@ public: int softness() const; QString animation() const; - /** @brief Check if there are several files with filename pattern, like: image_001.jpg, image_002.jpg,... */ - static int sequenceCount(KUrl file); /** @brief Get the image frame number from a file path, for example image_047.jpg will return 47. */ - static int getFrameNumberFromPath(KUrl path); + static int getFrameNumberFromPath(const KUrl &path); /** @brief return the url pattern for selected slideshow. */ - static QString selectedPath(KUrl url, bool isMime, QString extension, QStringList *list); + static QString selectedPath(const KUrl &url, bool isMime, QString extension, QStringList *list); /** @brief Convert the selection animation style into an affine geometry string. */ static QString animationToGeometry(const QString &animation, int &ttl);