Changeset View
Changeset View
Standalone View
Standalone View
src/bindings/utils.h
Context not available. | |||||
21 | #include <QObject> | 21 | #include <QObject> | ||
---|---|---|---|---|---|
22 | #include <QTime> | 22 | #include <QTime> | ||
23 | #include <QUrl> | 23 | #include <QUrl> | ||
24 | #include <QColor> | ||||
24 | 25 | | |||
25 | class Utils : public QObject | 26 | class Utils : public QObject | ||
26 | { | 27 | { | ||
27 | Q_OBJECT | 28 | Q_OBJECT | ||
28 | public: | 29 | public: | ||
29 | explicit Utils(QObject* parent = 0); | 30 | explicit Utils(QObject* parent = nullptr); | ||
30 | Q_INVOKABLE QUrl findImage(const QString &name); | | |||
31 | Q_INVOKABLE int getMinutesOfQTime(const QTime& time); | 31 | Q_INVOKABLE int getMinutesOfQTime(const QTime& time); | ||
32 | Q_INVOKABLE int getSecondsOfQTime(const QTime& time); | 32 | Q_INVOKABLE int getSecondsOfQTime(const QTime& time); | ||
33 | Q_INVOKABLE QString uuid(); | 33 | Q_INVOKABLE QString uuid(); | ||
34 | Q_INVOKABLE QColor alpha(const QColor& color, float alpha); | ||||
34 | 35 | | |||
35 | }; | 36 | }; | ||
36 | 37 | | |||
Context not available. |