Merge lp:~nik90/ubuntu-clock-app/correct-public-slots into lp:ubuntu-clock-app

Proposed by Nekhelesh Ramananthan
Status: Merged
Approved by: Bartosz Kosiorek
Approved revision: 382
Merged at revision: 381
Proposed branch: lp:~nik90/ubuntu-clock-app/correct-public-slots
Merge into: lp:ubuntu-clock-app
Diff against target: 68 lines (+16/-17)
3 files modified
backend/modules/Alarm/sound.h (+11/-12)
backend/modules/Stopwatch/formattime.h (+4/-5)
debian/changelog (+1/-0)
To merge this branch: bzr merge lp:~nik90/ubuntu-clock-app/correct-public-slots
Reviewer Review Type Date Requested Status
Bartosz Kosiorek Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+270826@code.launchpad.net

Commit message

Fixes the usage of public slots and Q_INVOKABLE in the Sound and FormatTime class.

Description of the change

Fixes the usage of public slots and Q_INVOKABLE in the Sound and FormatTime class.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Bartosz Kosiorek (gang65) wrote :

Everything is ok, according to checklist.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'backend/modules/Alarm/sound.h'
2--- backend/modules/Alarm/sound.h 2015-08-25 15:41:50 +0000
3+++ backend/modules/Alarm/sound.h 2015-09-11 14:05:36 +0000
4@@ -36,21 +36,20 @@
5
6 QString customAlarmSoundDirectory() const;
7
8-public slots:
9- void deleteCustomAlarmSound(const QString &soundName);
10+ Q_INVOKABLE void deleteCustomAlarmSound(const QString &soundName);
11
12 // Function to delete old alarm file sound according to file name from full path.
13 // It will able to replace sound alarm with new version
14- void prepareToAddAlarmSound(const QString &soundPath);
15-
16- void createCustomAlarmSoundDirectory();
17-
18- bool isAlarmSoundValid(const QString &soundFileName);
19- bool isAlarmSoundValid(const QUrl &soundUrl);
20-
21- QString getDefaultAlarmSoundPath(const QString &soundFileName) const;
22-
23- QString getSoundName(const QString &soundPath) const;
24+ Q_INVOKABLE void prepareToAddAlarmSound(const QString &soundPath);
25+
26+ Q_INVOKABLE void createCustomAlarmSoundDirectory();
27+
28+ Q_INVOKABLE bool isAlarmSoundValid(const QString &soundFileName);
29+ Q_INVOKABLE bool isAlarmSoundValid(const QUrl &soundUrl);
30+
31+ Q_INVOKABLE QString getDefaultAlarmSoundPath(const QString &soundFileName) const;
32+
33+ Q_INVOKABLE QString getSoundName(const QString &soundPath) const;
34
35 private:
36 QString m_customAlarmDir;
37
38=== modified file 'backend/modules/Stopwatch/formattime.h'
39--- backend/modules/Stopwatch/formattime.h 2015-08-26 22:41:34 +0000
40+++ backend/modules/Stopwatch/formattime.h 2015-09-11 14:05:36 +0000
41@@ -28,11 +28,10 @@
42 public:
43 FormatTime(QObject *parent=0);
44
45-public slots:
46- QString millisToString(int millis) const;
47- QString millisToTimeString(int millis, bool showHours) const;
48- QString addZeroPrefix(QString str, int totalLength) const;
49- QString lapTimeToString(int millis) const;
50+ Q_INVOKABLE QString millisToString(int millis) const;
51+ Q_INVOKABLE QString millisToTimeString(int millis, bool showHours) const;
52+ Q_INVOKABLE QString addZeroPrefix(QString str, int totalLength) const;
53+ Q_INVOKABLE QString lapTimeToString(int millis) const;
54 };
55
56 #endif
57
58=== modified file 'debian/changelog'
59--- debian/changelog 2015-09-10 11:10:13 +0000
60+++ debian/changelog 2015-09-11 14:05:36 +0000
61@@ -6,6 +6,7 @@
62 * Added sections headers to separate custom and default alarm sounds (LP: #1487735)
63 * Removed ListItemWithActions upstream component and also fixed the user
64 world city list count never decreasing to 0. (LP: #1368393)
65+ * Fixed incorrect usage of public slots and Q_INVOKABLE in c++ classes (LP: #1494756)
66
67 [ Bartosz Kosiorek ]
68 * Fix wrong time after changing timezone, when stopwatch is running (LP: #1491024)

Subscribers

People subscribed via source and target branches