Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 12224edf authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_DECL_OVERRIDE

parent 05c18877
......@@ -30,7 +30,7 @@ class ColorPickerPlugin : public QQmlExtensionPlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
virtual void registerTypes(const char *uri);
void registerTypes(const char *uri) Q_DECL_OVERRIDE;
};
......
......@@ -73,8 +73,8 @@ class ComicApplet : public Plasma::Applet, public Plasma::DataEngineConsumer
ComicApplet( QObject *parent, const QVariantList &args );
~ComicApplet();
void init();
virtual QList<QAction*> contextualActions();
void init() Q_DECL_OVERRIDE;
QList<QAction*> contextualActions() Q_DECL_OVERRIDE;
//For QML
QObject *comicsModel() const;
......@@ -157,7 +157,7 @@ Q_SIGNALS:
void slotArchiveFinished( KJob *job );
public slots:
void configChanged();
void configChanged() Q_DECL_OVERRIDE;
void saveConfig();
Q_INVOKABLE void updateComic(const QString &identifierSuffix = QString());
Q_INVOKABLE void goJump() { slotGoJump();}
......
......@@ -71,15 +71,15 @@ class ComicArchiveJob : public KJob
*/
void setFromIdentifier( const QString &fromIdentifier );
virtual void start();
void start() Q_DECL_OVERRIDE;
public slots:
void dataUpdated( const QString &source, const Plasma::DataEngine::Data& data );
protected:
virtual bool doKill();
virtual bool doSuspend();
virtual bool doResume();
bool doKill() Q_DECL_OVERRIDE;
bool doSuspend() Q_DECL_OVERRIDE;
bool doResume() Q_DECL_OVERRIDE;
private:
/**
......
......@@ -36,12 +36,12 @@ class ComicModel : public QAbstractTableModel, public Plasma::DataEngineConsumer
void setComics( const Plasma::DataEngine::Data &comics, const QStringList &usedComics );
QHash<int, QByteArray> roleNames() const;
QHash<int, QByteArray> roleNames() const Q_DECL_OVERRIDE;
int rowCount( const QModelIndex &index = QModelIndex() ) const;
int columnCount( const QModelIndex &index = QModelIndex() ) const;
QVariant data( const QModelIndex &index, int role = Qt::CheckStateRole ) const;
Qt::ItemFlags flags( const QModelIndex &index ) const;
int rowCount( const QModelIndex &index = QModelIndex() ) const Q_DECL_OVERRIDE;
int columnCount( const QModelIndex &index = QModelIndex() ) const Q_DECL_OVERRIDE;
QVariant data( const QModelIndex &index, int role = Qt::CheckStateRole ) const Q_DECL_OVERRIDE;
Qt::ItemFlags flags( const QModelIndex &index ) const Q_DECL_OVERRIDE;
public Q_SLOTS:
......
......@@ -30,7 +30,7 @@ class StringStripSelector : public StripSelector
explicit StringStripSelector(QObject *parent = 0);
virtual ~StringStripSelector();
virtual void select(const ComicData &currentStrip);
void select(const ComicData &currentStrip) Q_DECL_OVERRIDE;
};
class NumberStripSelector : public StripSelector
......@@ -39,7 +39,7 @@ class NumberStripSelector : public StripSelector
explicit NumberStripSelector(QObject *parent = 0);
virtual ~NumberStripSelector();
virtual void select(const ComicData &currentStrip);
void select(const ComicData &currentStrip) Q_DECL_OVERRIDE;
};
class DateStripSelector : public StripSelector
......@@ -50,7 +50,7 @@ class DateStripSelector : public StripSelector
explicit DateStripSelector(QObject *parent = 0);
virtual ~DateStripSelector();
virtual void select(const ComicData &currentStrip);
void select(const ComicData &currentStrip) Q_DECL_OVERRIDE;
private slots:
void slotChosenDay(const QDate &date);
......
......@@ -27,7 +27,7 @@ class DiskQuotaPlugin : public QQmlExtensionPlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
virtual void registerTypes(const char *uri);
void registerTypes(const char *uri) Q_DECL_OVERRIDE;
};
#endif // QUOTA_WATCH_PLUGIN_H
......@@ -30,7 +30,7 @@ class FifteenImageProvider : public QQuickImageProvider
public:
FifteenImageProvider();
QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize);
QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize) Q_DECL_OVERRIDE;
private:
// Update our pixmaps, called when sizes change or boardSize changes
......
......@@ -31,8 +31,8 @@ class FifteenPuzzlePlugin : public QQmlExtensionPlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
virtual void registerTypes(const char* uri);
virtual void initializeEngine(QQmlEngine * engine, const char * uri);
void registerTypes(const char* uri) Q_DECL_OVERRIDE;
void initializeEngine(QQmlEngine * engine, const char * uri) Q_DECL_OVERRIDE;
};
......
......@@ -28,7 +28,7 @@ class MediaFramePlugin : public QQmlExtensionPlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
virtual void registerTypes(const char *uri);
void registerTypes(const char *uri) Q_DECL_OVERRIDE;
};
#endif
......@@ -30,7 +30,7 @@ class MinimizeAllPlugin : public QQmlExtensionPlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
virtual void registerTypes(const char *uri);
void registerTypes(const char *uri) Q_DECL_OVERRIDE;
};
#endif // MINIMIZEALLPLUGIN_H
......@@ -33,7 +33,7 @@ Q_OBJECT
public:
FileNote(const QString &path, const QString &id);
void load();
void save(const QString &text);
void save(const QString &text) Q_DECL_OVERRIDE;
private:
void fileSystemChanged(const QString &path);
QString m_path;
......
......@@ -29,7 +29,7 @@ class NotesPlugin : public QQmlExtensionPlugin
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
virtual void registerTypes(const char *uri);
void registerTypes(const char *uri) Q_DECL_OVERRIDE;
};
#endif // NOTESPLUGIN_H
......@@ -29,7 +29,7 @@ class ShowDesktopPlugin : public QQmlExtensionPlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
virtual void registerTypes(const char *uri);
void registerTypes(const char *uri) Q_DECL_OVERRIDE;
};
#endif // SHOWDESKTOPPLUGIN_H
......@@ -28,7 +28,7 @@ class TimerPlugin : public QQmlExtensionPlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
void registerTypes(const char *uri);
void registerTypes(const char *uri) Q_DECL_OVERRIDE;
};
#endif // TIMERPLUGIN_H
......@@ -26,7 +26,7 @@ class WeatherPlugin : public QQmlExtensionPlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
public:
void registerTypes(const char *uri);
void registerTypes(const char *uri) Q_DECL_OVERRIDE;
};
#endif // PLUGIN_H
......@@ -49,13 +49,13 @@ class CachedProvider : public ComicProvider
*
* Is always StringIdentifier here.
*/
IdentifierType identifierType() const;
IdentifierType identifierType() const Q_DECL_OVERRIDE;
/**
* Returns the type of identifier that is used by this
* comic provider.
*/
virtual QString suffixType() const;
QString suffixType() const Q_DECL_OVERRIDE;
/**
* Returns the requested image.
......@@ -63,27 +63,27 @@ class CachedProvider : public ComicProvider
* Note: This method returns only a valid image after the
* finished() signal has been emitted.
*/
virtual QImage image() const;
QImage image() const Q_DECL_OVERRIDE;
/**
* Returns the identifier of the comic request (name + date).
*/
virtual QString identifier() const;
QString identifier() const Q_DECL_OVERRIDE;
/**
* Returns the identifier suffix of the next comic.
*/
virtual QString nextIdentifier() const;
QString nextIdentifier() const Q_DECL_OVERRIDE;
/**
* Returns the identifier suffix of the previous comic.
*/
virtual QString previousIdentifier() const;
QString previousIdentifier() const Q_DECL_OVERRIDE;
/**
* Returns the identifier of the first strip.
*/
virtual QString firstStripIdentifier() const;
QString firstStripIdentifier() const Q_DECL_OVERRIDE;
/**
* Returns the identifier of the last cached strip.
......@@ -93,32 +93,32 @@ class CachedProvider : public ComicProvider
/**
* Returns the title of the strip.
*/
virtual QString stripTitle() const;
QString stripTitle() const Q_DECL_OVERRIDE;
/**
* Returns the author of the comic.
*/
virtual QString comicAuthor() const;
QString comicAuthor() const Q_DECL_OVERRIDE;
/**
* Returns additionalText of the comic.
*/
virtual QString additionalText() const;
QString additionalText() const Q_DECL_OVERRIDE;
/**
* Returns the name for the comic
*/
virtual QString name() const;
QString name() const Q_DECL_OVERRIDE;
/**
* Returns wether the comic is leftToRight or not
*/
virtual bool isLeftToRight() const;
bool isLeftToRight() const Q_DECL_OVERRIDE;
/**
* Returns wether the comic is topToBottom or not
*/
virtual bool isTopToBottom() const;
bool isTopToBottom() const Q_DECL_OVERRIDE;
/**
* Returns whether a comic with the given @p identifier is cached.
......@@ -138,14 +138,14 @@ class CachedProvider : public ComicProvider
/**
* Returns the website of the comic.
*/
virtual QUrl websiteUrl() const;
QUrl websiteUrl() const Q_DECL_OVERRIDE;
virtual QUrl imageUrl() const;
QUrl imageUrl() const Q_DECL_OVERRIDE;
/**
* Returns the shop website of the comic.
*/
virtual QUrl shopUrl() const;
QUrl shopUrl() const Q_DECL_OVERRIDE;
/**
* Returns the maximum number of cached strips per comic, -1 means that there is no limit
......
......@@ -50,10 +50,10 @@ class ComicEngine : public Plasma::DataEngine
protected:
void init();
bool sourceRequestEvent(const QString &identifier);
bool sourceRequestEvent(const QString &identifier) Q_DECL_OVERRIDE;
protected Q_SLOTS:
bool updateSourceEvent(const QString &identifier);
bool updateSourceEvent(const QString &identifier) Q_DECL_OVERRIDE;
private Q_SLOTS:
void finished(ComicProvider*);
......
......@@ -27,7 +27,7 @@ class ComicPackage : public KPackage::PackageStructure
public:
explicit ComicPackage(QObject *parent = 0, const QVariantList& args = QVariantList());
void initPackage(KPackage::Package *package);
void initPackage(KPackage::Package *package) Q_DECL_OVERRIDE;
};
#endif
......@@ -37,23 +37,23 @@ class ComicProviderKross : public ComicProvider
static KPackage::PackageStructure *packageStructure();
virtual bool isLeftToRight() const;
virtual bool isTopToBottom() const;
virtual IdentifierType identifierType() const;
virtual QUrl websiteUrl() const;
virtual QUrl shopUrl() const;
virtual QImage image() const;
virtual QString identifier() const;
virtual QString nextIdentifier() const;
virtual QString previousIdentifier() const;
virtual QString firstStripIdentifier() const;
virtual QString stripTitle() const;
virtual QString additionalText() const;
bool isLeftToRight() const Q_DECL_OVERRIDE;
bool isTopToBottom() const Q_DECL_OVERRIDE;
IdentifierType identifierType() const Q_DECL_OVERRIDE;
QUrl websiteUrl() const Q_DECL_OVERRIDE;
QUrl shopUrl() const Q_DECL_OVERRIDE;
QImage image() const Q_DECL_OVERRIDE;
QString identifier() const Q_DECL_OVERRIDE;
QString nextIdentifier() const Q_DECL_OVERRIDE;
QString previousIdentifier() const Q_DECL_OVERRIDE;
QString firstStripIdentifier() const Q_DECL_OVERRIDE;
QString stripTitle() const Q_DECL_OVERRIDE;
QString additionalText() const Q_DECL_OVERRIDE;
protected:
virtual void pageRetrieved(int id, const QByteArray &data);
virtual void pageError(int id, const QString &message);
virtual void redirected(int id, const QUrl &newUrl);
void pageRetrieved(int id, const QByteArray &data) Q_DECL_OVERRIDE;
void pageError(int id, const QString &message) Q_DECL_OVERRIDE;
void redirected(int id, const QUrl &newUrl) Q_DECL_OVERRIDE;
QString identifierToString(const QVariant &identifier) const;
private:
......
......@@ -32,7 +32,7 @@ public:
~KonsoleProfilesEngine();
void init();
Plasma::Service *serviceForSource(const QString &source);
Plasma::Service *serviceForSource(const QString &source) Q_DECL_OVERRIDE;
private Q_SLOTS:
void profilesChanged();
......
......@@ -30,7 +30,7 @@ public:
KonsoleProfilesService(QObject* parent, const QString& profileName);
protected:
Plasma::ServiceJob* createJob(const QString& operation, QMap<QString,QVariant>& parameters);
Plasma::ServiceJob* createJob(const QString& operation, QMap<QString,QVariant>& parameters) Q_DECL_OVERRIDE;
};
class ProfileJob : public Plasma::ServiceJob
......@@ -39,7 +39,7 @@ class ProfileJob : public Plasma::ServiceJob
public:
ProfileJob(KonsoleProfilesService *service, const QString& operation, const QMap<QString, QVariant> &parameters);
void start();
void start() Q_DECL_OVERRIDE;
};
#endif
......@@ -56,7 +56,7 @@ class ApodProvider : public PotdProvider
* Note: This method returns only a valid image after the
* finished() signal has been emitted.
*/
virtual QImage image() const;
QImage image() const Q_DECL_OVERRIDE;
private:
class Private;
......
......@@ -50,7 +50,7 @@ class BingProvider : public PotdProvider
* Note: This method returns only a valid image after the
* finished() signal has been emitted.
*/
virtual QImage image() const;
QImage image() const Q_DECL_OVERRIDE;
private:
class Private;
......
......@@ -52,12 +52,12 @@ class CachedProvider : public PotdProvider
* Note: This method returns only a valid image after the
* finished() signal has been emitted.
*/
virtual QImage image() const;
QImage image() const Q_DECL_OVERRIDE;
/**
* Returns the identifier of the picture request (name + date).
*/
virtual QString identifier() const;
QString identifier() const Q_DECL_OVERRIDE;
/**
* Returns whether a picture with the given @p identifier is cached.
......@@ -83,7 +83,7 @@ class LoadImageThread : public QObject, public QRunnable
public:
LoadImageThread(const QString &filePath);
void run();
void run() Q_DECL_OVERRIDE;
Q_SIGNALS:
void done(const QImage &pixmap);
......@@ -98,7 +98,7 @@ class SaveImageThread : public QObject, public QRunnable
public:
SaveImageThread(const QString &identifier, const QImage &image);
void run();
void run() Q_DECL_OVERRIDE;
Q_SIGNALS:
void done( const QString &source, const QString &path, const QImage &img );
......
......@@ -52,7 +52,7 @@ class EpodProvider : public PotdProvider
* Note: This method returns only a valid image after the
* finished() signal has been emitted.
*/
virtual QImage image() const;
QImage image() const Q_DECL_OVERRIDE;
private:
class Private;
......
......@@ -55,7 +55,7 @@ class FlickrProvider : public PotdProvider
* Note: This method returns only a valid image after the
* finished() signal has been emitted.
*/
virtual QImage image() const;
QImage image() const Q_DECL_OVERRIDE;
private:
class Private;
......
......@@ -57,7 +57,7 @@ class NatGeoProvider : public PotdProvider
* Note: This method returns only a valid image after the
* finished() signal has been emitted.
*/
virtual QImage image() const;
QImage image() const Q_DECL_OVERRIDE;
private:
class Private;
......
......@@ -53,7 +53,7 @@ class NOAAProvider : public PotdProvider
* Note: This method returns only a valid image after the
* finished() signal has been emitted.
*/
virtual QImage image() const;
QImage image() const Q_DECL_OVERRIDE;
private:
class Private;
......
......@@ -45,10 +45,10 @@ class PotdEngine : public Plasma::DataEngine
~PotdEngine();
protected:
bool sourceRequestEvent( const QString &identifier );
bool sourceRequestEvent( const QString &identifier ) Q_DECL_OVERRIDE;
protected Q_SLOTS:
bool updateSourceEvent( const QString &identifier );
bool updateSourceEvent( const QString &identifier ) Q_DECL_OVERRIDE;
private Q_SLOTS:
void finished( PotdProvider* );
......
......@@ -55,7 +55,7 @@ class WcpotdProvider : public PotdProvider
* Note: This method returns only a valid image after the
* finished() signal has been emitted.
*/
virtual QImage image() const;
QImage image() const Q_DECL_OVERRIDE;
private:
class Private;
......
......@@ -31,8 +31,8 @@ public:
ConverterRunner(QObject* parent, const QVariantList &args);
~ConverterRunner();
void match(Plasma::RunnerContext &context);
void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match);
void match(Plasma::RunnerContext &context) Q_DECL_OVERRIDE;
void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &match) Q_DECL_OVERRIDE;
private:
QStringList m_separators;
......
......@@ -39,7 +39,7 @@ public:
DateTimeRunner(QObject *parent, const QVariantList &args);
~DateTimeRunner();
void match(Plasma::RunnerContext &context);
void match(Plasma::RunnerContext &context) Q_DECL_OVERRIDE;
private:
QDateTime datetime(const QString &tz, QString &tzName);
......
......@@ -14,15 +14,15 @@ class DictionaryRunner : public Plasma::AbstractRunner
public:
DictionaryRunner(QObject *parent, const QVariantList &args);
void match(Plasma::RunnerContext &context);
void reloadConfiguration();
void match(Plasma::RunnerContext &context) Q_DECL_OVERRIDE;
void reloadConfiguration() Q_DECL_OVERRIDE;
private:
QString m_triggerWord;
DictionaryMatchEngine *m_engine;
protected slots:
void init();
void init() Q_DECL_OVERRIDE;
};
......
......@@ -19,9 +19,9 @@ public:
DictionaryRunnerConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
public slots:
void save();
void load();
void defaults();
void save() Q_DECL_OVERRIDE;
void load() Q_DECL_OVERRIDE;
void defaults() Q_DECL_OVERRIDE;
private:
QLineEdit *m_triggerWord;
......
......@@ -35,13 +35,13 @@ public:
SpellCheckRunner(QObject* parent, const QVariantList &args);
~SpellCheckRunner();
void match(Plasma::RunnerContext &context);
void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &action);
void match(Plasma::RunnerContext &context) Q_DECL_OVERRIDE;
void run(const Plasma::RunnerContext &context, const Plasma::QueryMatch &action) Q_DECL_OVERRIDE;
void reloadConfiguration();
void reloadConfiguration() Q_DECL_OVERRIDE;
protected slots:
void init();
void init() Q_DECL_OVERRIDE;
void loaddata();
void destroydata();
......
......@@ -38,9 +38,9 @@ class SpellCheckConfig : public KCModule
~SpellCheckConfig();
public slots:
void save();
void load();
void defaults();
void save() Q_DECL_OVERRIDE;
void load() Q_DECL_OVERRIDE;
void defaults() Q_DECL_OVERRIDE;
void toggleTriggerWord(int state);
......
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