Commit 4f37e0c0 authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_DECL_OVERRIDE

parent d5337273
......@@ -34,8 +34,8 @@ public:
explicit QtMultimediaBackend(QObject *parent, const QList< QVariant >&);
virtual ~QtMultimediaBackend();
CaptureBackendInterface * captureBackend() const;
OutputBackendInterface * outputBackend() const;
CaptureBackendInterface * captureBackend() const Q_DECL_OVERRIDE;
OutputBackendInterface * outputBackend() const Q_DECL_OVERRIDE;
private:
QtMultimediaCaptureBackend *m_captureBackend;
......
......@@ -36,12 +36,12 @@ public:
explicit QtMultimediaCaptureBackend(QObject *parent);
virtual ~QtMultimediaCaptureBackend();
void startCapture(const QString &filePath);
void stopCapture();
CaptureDeviceController::State captureState() const;
void startCapture(const QString &filePath) Q_DECL_OVERRIDE;
void stopCapture() Q_DECL_OVERRIDE;
CaptureDeviceController::State captureState() const Q_DECL_OVERRIDE;
QStringList devices() const;
void setDevice(const QString &deviceIdentifier);
QStringList devices() const Q_DECL_OVERRIDE;
void setDevice(const QString &deviceIdentifier) Q_DECL_OVERRIDE;
private:
QAudioRecorder *m_recorder;
......
......@@ -31,19 +31,19 @@ public:
explicit QtMultimediaOutputBackend(QObject *parent = nullptr);
virtual ~QtMultimediaOutputBackend();
void setUri(const QString & uri);
void setUri(const QString & uri) Q_DECL_OVERRIDE;
/**
* volume as cubic value
*/
int volume() const;
int volume() const Q_DECL_OVERRIDE;
OutputDeviceController::State state() const;
OutputDeviceController::State state() const Q_DECL_OVERRIDE;
public Q_SLOTS:
void play();
void pause();
void stop();
void setVolume(int volume);
void play() Q_DECL_OVERRIDE;
void pause() Q_DECL_OVERRIDE;
void stop() Q_DECL_OVERRIDE;
void setVolume(int volume) Q_DECL_OVERRIDE;
private:
QMediaPlayer *m_player;
......
......@@ -49,17 +49,17 @@ public:
/**
* \return unique identifier
*/
virtual QString identifier();
QString identifier() Q_DECL_OVERRIDE;
/**
* \return human readable localized title
*/
virtual QString title();
QString title() Q_DECL_OVERRIDE;
/**
* \return human readable title in English
*/
virtual QString i18nTitle();
QString i18nTitle() Q_DECL_OVERRIDE;
/**
* \return language identifier of this course
......@@ -69,14 +69,14 @@ public:
/**
* \return type of resource
*/
virtual Type type() const;
Type type() const Q_DECL_OVERRIDE;
/**
* \return true if resource is loaded, otherwise false
*/
virtual bool isOpen() const;
bool isOpen() const Q_DECL_OVERRIDE;
virtual void sync();
void sync() Q_DECL_OVERRIDE;
/**
* export course as <course-id>.tar.bz2 file in the specified folder.
......@@ -86,18 +86,18 @@ public:
/**
* close resource without writing changes back to file
*/
virtual void close();
void close() Q_DECL_OVERRIDE;
/**
* \return path to resource file
*/
virtual QUrl path() const;
QUrl path() const Q_DECL_OVERRIDE;
/**
* \return reference to the loaded resource
* if resource is not open yet, it will be loaded
*/
virtual QObject * resource();
QObject * resource() Q_DECL_OVERRIDE;
/**
* \return reference to the loaded course resource
......
......@@ -41,43 +41,43 @@ public:
/**
* \return unique identifier
*/
virtual QString identifier();
QString identifier() Q_DECL_OVERRIDE;
/**
* \return human readable localized title
*/
virtual QString title();
QString title() Q_DECL_OVERRIDE;
/**
* \return human readable title in English
*/
virtual QString i18nTitle();
QString i18nTitle() Q_DECL_OVERRIDE;
/**
* \return type of resource
*/
virtual Type type() const;
Type type() const Q_DECL_OVERRIDE;
/**
* \return true if resource is loaded, otherwise false
*/
virtual bool isOpen() const;
bool isOpen() const Q_DECL_OVERRIDE;
/**
* close resource without writing changes back to file
*/
virtual void close();
void close() Q_DECL_OVERRIDE;
/**
* \return path to resource file
*/
virtual QUrl path() const;
QUrl path() const Q_DECL_OVERRIDE;
/**
* \return reference to the loaded resource
* if resource is not open yet, it will be loaded
*/
virtual QObject * resource();
QObject * resource() Q_DECL_OVERRIDE;
/**
* \return reference to the loaded language resource
......
......@@ -50,47 +50,47 @@ public:
/**
* \return unique identifier
*/
virtual QString identifier();
QString identifier() Q_DECL_OVERRIDE;
/**
* \return human readable localized title
*/
virtual QString title();
QString title() Q_DECL_OVERRIDE;
/**
* \return human readable title in English
*/
virtual QString i18nTitle();
QString i18nTitle() Q_DECL_OVERRIDE;
/**
* \return type of resource
*/
virtual Type type() const;
Type type() const Q_DECL_OVERRIDE;
/**
* \return true if resource is loaded, otherwise false
*/
virtual bool isOpen() const;
bool isOpen() const Q_DECL_OVERRIDE;
/**
* close resource without writing changes back to file
*/
virtual void close();
void close() Q_DECL_OVERRIDE;
virtual void sync();
void sync() Q_DECL_OVERRIDE;
virtual void reload();
void reload() Q_DECL_OVERRIDE;
/**
* \return path to resource file
*/
virtual QUrl path() const;
QUrl path() const Q_DECL_OVERRIDE;
/**
* \return reference to the loaded resource
* if resource is not open yet, it will be loaded
*/
virtual QObject * resource();
QObject * resource() Q_DECL_OVERRIDE;
/**
* \return reference to the loaded skeleton resource
......
......@@ -42,7 +42,7 @@ public:
* Writes course object back to file and set \ref modified state to false.
* If no file is set, no operation is performed.
*/
Q_INVOKABLE void sync();
Q_INVOKABLE void sync() Q_DECL_OVERRIDE;
private:
Q_DISABLE_COPY(Skeleton)
......
......@@ -52,9 +52,9 @@ public:
void setupActions();
virtual QSize sizeHint() const { return QSize(1000, 700); }
QSize sizeHint() const Q_DECL_OVERRIDE { return QSize(1000, 700); }
virtual bool queryClose();
bool queryClose() Q_DECL_OVERRIDE;
public Q_SLOTS:
void showSettingsDialog();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment