Use Q_DECL_OVERRIDE where possible
REVIEW: 122542
This commit is contained in:
parent
667eb808a9
commit
7e302a5236
@ -30,7 +30,7 @@ class SimpleLoader : public Plasma::PluginLoader
|
|||||||
{
|
{
|
||||||
protected:
|
protected:
|
||||||
virtual Plasma::Applet *internalLoadApplet(const QString &name, uint appletId = 0,
|
virtual Plasma::Applet *internalLoadApplet(const QString &name, uint appletId = 0,
|
||||||
const QVariantList &args = QVariantList());
|
const QVariantList &args = QVariantList()) Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -42,8 +42,8 @@ public:
|
|||||||
explicit SimpleCorona(QObject * parent = 0);
|
explicit SimpleCorona(QObject * parent = 0);
|
||||||
~SimpleCorona();
|
~SimpleCorona();
|
||||||
|
|
||||||
QRect screenGeometry(int) const;
|
QRect screenGeometry(int) const Q_DECL_OVERRIDE;
|
||||||
int screenForContainment(const Plasma::Containment *) const;
|
int screenForContainment(const Plasma::Containment *) const Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
class SimpleApplet : public Plasma::Applet
|
class SimpleApplet : public Plasma::Applet
|
||||||
|
@ -42,8 +42,8 @@ public:
|
|||||||
|
|
||||||
explicit DaysModel(QObject *parent = 0);
|
explicit DaysModel(QObject *parent = 0);
|
||||||
void setSourceData(QList<DayData> *data);
|
void setSourceData(QList<DayData> *data);
|
||||||
virtual int rowCount(const QModelIndex &parent) const;
|
int rowCount(const QModelIndex &parent) const Q_DECL_OVERRIDE;
|
||||||
virtual QVariant data(const QModelIndex &index, int role) const;
|
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE;
|
||||||
void update();
|
void update();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -34,8 +34,8 @@ class CoreBindingsPlugin : public QQmlExtensionPlugin
|
|||||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void initializeEngine(QQmlEngine *engine, const char *uri);
|
void initializeEngine(QQmlEngine *engine, const char *uri) Q_DECL_OVERRIDE;
|
||||||
void registerTypes(const char *uri);
|
void registerTypes(const char *uri) Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -176,14 +176,14 @@ public:
|
|||||||
int roleNameToId(const QString &name);
|
int roleNameToId(const QString &name);
|
||||||
|
|
||||||
//Reimplemented
|
//Reimplemented
|
||||||
QVariant data(const QModelIndex &index, int role) const;
|
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE;
|
||||||
QVariant headerData(int section, Qt::Orientation orientation,
|
QVariant headerData(int section, Qt::Orientation orientation,
|
||||||
int role = Qt::DisplayRole) const;
|
int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
|
||||||
QModelIndex index(int row, int column,
|
QModelIndex index(int row, int column,
|
||||||
const QModelIndex &parent = QModelIndex()) const;
|
const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
|
||||||
QModelIndex parent(const QModelIndex &child) const;
|
QModelIndex parent(const QModelIndex &child) const Q_DECL_OVERRIDE;
|
||||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
|
||||||
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
int count() const
|
int count() const
|
||||||
{
|
{
|
||||||
|
@ -176,19 +176,19 @@ public:
|
|||||||
bool fromCurrentTheme() const;
|
bool fromCurrentTheme() const;
|
||||||
|
|
||||||
void geometryChanged(const QRectF &newGeometry,
|
void geometryChanged(const QRectF &newGeometry,
|
||||||
const QRectF &oldGeometry);
|
const QRectF &oldGeometry) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Only to be used from inside this library, is not intended to be invokable
|
* Only to be used from inside this library, is not intended to be invokable
|
||||||
*/
|
*/
|
||||||
Plasma::FrameSvg *frameSvg() const;
|
Plasma::FrameSvg *frameSvg() const;
|
||||||
|
|
||||||
virtual QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *);
|
QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void componentComplete();
|
void componentComplete() Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
/// @endcond
|
/// @endcond
|
||||||
|
|
||||||
|
@ -64,10 +64,10 @@ public:
|
|||||||
|
|
||||||
bool isValid() const;
|
bool isValid() const;
|
||||||
|
|
||||||
QSGNode* updatePaintNode(QSGNode * oldNode, UpdatePaintNodeData * updatePaintNodeData);
|
QSGNode* updatePaintNode(QSGNode * oldNode, UpdatePaintNodeData * updatePaintNodeData) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
void geometryChanged(const QRectF &newGeometry,
|
void geometryChanged(const QRectF &newGeometry,
|
||||||
const QRectF &oldGeometry);
|
const QRectF &oldGeometry) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
void componentComplete() Q_DECL_OVERRIDE;
|
void componentComplete() Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ public:
|
|||||||
|
|
||||||
QSizeF naturalSize() const;
|
QSizeF naturalSize() const;
|
||||||
|
|
||||||
QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *updatePaintNodeData);
|
QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *updatePaintNodeData) Q_DECL_OVERRIDE;
|
||||||
/// @endcond
|
/// @endcond
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
|
@ -169,9 +169,9 @@ public Q_SLOTS:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// @cond INTERNAL_DOCS
|
/// @cond INTERNAL_DOCS
|
||||||
bool childMouseEventFilter(QQuickItem *item, QEvent *event);
|
bool childMouseEventFilter(QQuickItem *item, QEvent *event) Q_DECL_OVERRIDE;
|
||||||
void hoverEnterEvent(QHoverEvent *event);
|
void hoverEnterEvent(QHoverEvent *event) Q_DECL_OVERRIDE;
|
||||||
void hoverLeaveEvent(QHoverEvent *event);
|
void hoverLeaveEvent(QHoverEvent *event) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
ToolTipDialog *tooltipDialogInstance();
|
ToolTipDialog *tooltipDialogInstance();
|
||||||
/// @endcond
|
/// @endcond
|
||||||
|
@ -55,7 +55,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* animate the position change if visible
|
* animate the position change if visible
|
||||||
*/
|
*/
|
||||||
virtual void adjustGeometry(const QRect &geom);
|
void adjustGeometry(const QRect &geom) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
void dismiss();
|
void dismiss();
|
||||||
void keepalive();
|
void keepalive();
|
||||||
@ -67,10 +67,10 @@ public:
|
|||||||
void setAnimationsEnabled(bool enabled);
|
void setAnimationsEnabled(bool enabled);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void showEvent(QShowEvent *event);
|
void showEvent(QShowEvent *event) Q_DECL_OVERRIDE;
|
||||||
void hideEvent(QHideEvent *event);
|
void hideEvent(QHideEvent *event) Q_DECL_OVERRIDE;
|
||||||
void resizeEvent(QResizeEvent *re);
|
void resizeEvent(QResizeEvent *re) Q_DECL_OVERRIDE;
|
||||||
bool event(QEvent *e);
|
bool event(QEvent *e) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void valueChanged(const QVariant &value);
|
void valueChanged(const QVariant &value);
|
||||||
|
@ -105,7 +105,7 @@ public:
|
|||||||
Units(QObject *parent = 0);
|
Units(QObject *parent = 0);
|
||||||
~Units();
|
~Units();
|
||||||
|
|
||||||
bool eventFilter(QObject *watched, QEvent *event);
|
bool eventFilter(QObject *watched, QEvent *event) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return pixel value for a grid Unit. Depends on DPI and font size.
|
* @return pixel value for a grid Unit. Depends on DPI and font size.
|
||||||
|
@ -83,8 +83,8 @@ class WindowThumbnail : public QQuickItem, public QAbstractNativeEventFilter
|
|||||||
public:
|
public:
|
||||||
WindowThumbnail(QQuickItem *parent = 0);
|
WindowThumbnail(QQuickItem *parent = 0);
|
||||||
virtual ~WindowThumbnail();
|
virtual ~WindowThumbnail();
|
||||||
virtual bool nativeEventFilter(const QByteArray &eventType, void *message, long int *result);
|
bool nativeEventFilter(const QByteArray &eventType, void *message, long int *result) Q_DECL_OVERRIDE;
|
||||||
virtual QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *updatePaintNodeData);
|
QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *updatePaintNodeData) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
uint32_t winId() const;
|
uint32_t winId() const;
|
||||||
void setWinId(uint32_t winId);
|
void setWinId(uint32_t winId);
|
||||||
|
@ -51,8 +51,8 @@ class PlasmaComponentsPlugin : public QQmlExtensionPlugin
|
|||||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void initializeEngine(QQmlEngine *engine, const char *uri);
|
void initializeEngine(QQmlEngine *engine, const char *uri) Q_DECL_OVERRIDE;
|
||||||
void registerTypes(const char *uri);
|
void registerTypes(const char *uri) Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -69,7 +69,7 @@ public:
|
|||||||
Q_INVOKABLE void addMenuItem(QMenuItem *item);
|
Q_INVOKABLE void addMenuItem(QMenuItem *item);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool event(QEvent *event);
|
bool event(QEvent *event) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void statusChanged();
|
void statusChanged();
|
||||||
|
@ -33,7 +33,7 @@ class AppBackgroundProvider : public QQuickImageProvider
|
|||||||
public:
|
public:
|
||||||
AppBackgroundProvider();
|
AppBackgroundProvider();
|
||||||
~AppBackgroundProvider();
|
~AppBackgroundProvider();
|
||||||
virtual QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize);
|
QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize) Q_DECL_OVERRIDE;
|
||||||
private:
|
private:
|
||||||
Plasma::Theme *m_theme;
|
Plasma::Theme *m_theme;
|
||||||
};
|
};
|
||||||
|
@ -31,8 +31,8 @@ class PlasmaExtraComponentsPlugin : public QQmlExtensionPlugin
|
|||||||
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void initializeEngine(QQmlEngine *engine, const char *uri);
|
void initializeEngine(QQmlEngine *engine, const char *uri) Q_DECL_OVERRIDE;
|
||||||
void registerTypes(const char *uri);
|
void registerTypes(const char *uri) Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -592,7 +592,7 @@ protected:
|
|||||||
/**
|
/**
|
||||||
* Reimplemented from QObject
|
* Reimplemented from QObject
|
||||||
*/
|
*/
|
||||||
void timerEvent(QTimerEvent *event);
|
void timerEvent(QTimerEvent *event) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/**
|
/**
|
||||||
|
@ -90,7 +90,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Reimplemented from Applet
|
* Reimplemented from Applet
|
||||||
*/
|
*/
|
||||||
void init();
|
void init() Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the type of containment
|
* Returns the type of containment
|
||||||
@ -145,13 +145,13 @@ public:
|
|||||||
* @reimp
|
* @reimp
|
||||||
* @sa Applet::save(KConfigGroup &)
|
* @sa Applet::save(KConfigGroup &)
|
||||||
*/
|
*/
|
||||||
void save(KConfigGroup &group) const;
|
void save(KConfigGroup &group) const Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @reimp
|
* @reimp
|
||||||
* @sa Applet::restore(KConfigGroup &)
|
* @sa Applet::restore(KConfigGroup &)
|
||||||
*/
|
*/
|
||||||
void restore(KConfigGroup &group);
|
void restore(KConfigGroup &group) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets wallpaper plugin.
|
* Sets wallpaper plugin.
|
||||||
|
@ -275,7 +275,7 @@ protected Q_SLOTS:
|
|||||||
/**
|
/**
|
||||||
* @reimp from QObject
|
* @reimp from QObject
|
||||||
*/
|
*/
|
||||||
void timerEvent(QTimerEvent *event);
|
void timerEvent(QTimerEvent *event) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class SignalRelay;
|
friend class SignalRelay;
|
||||||
|
@ -390,7 +390,7 @@ protected:
|
|||||||
/**
|
/**
|
||||||
* Reimplemented from QObject
|
* Reimplemented from QObject
|
||||||
**/
|
**/
|
||||||
void timerEvent(QTimerEvent *event);
|
void timerEvent(QTimerEvent *event) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the icon for this data engine
|
* Sets the icon for this data engine
|
||||||
|
@ -110,7 +110,7 @@ public:
|
|||||||
* Loads a new Svg
|
* Loads a new Svg
|
||||||
* @param imagePath the new file
|
* @param imagePath the new file
|
||||||
*/
|
*/
|
||||||
Q_INVOKABLE void setImagePath(const QString &path);
|
Q_INVOKABLE void setImagePath(const QString &path) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets what borders should be painted
|
* Sets what borders should be painted
|
||||||
|
@ -124,7 +124,7 @@ Q_SIGNALS:
|
|||||||
void dataUpdated(const QString &, const Plasma::DataEngine::Data &);
|
void dataUpdated(const QString &, const Plasma::DataEngine::Data &);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void timerEvent(QTimerEvent *event);
|
void timerEvent(QTimerEvent *event) Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // Plasma namespace
|
} // Plasma namespace
|
||||||
|
@ -78,7 +78,7 @@ protected:
|
|||||||
/**
|
/**
|
||||||
* Reimplemented from QObject
|
* Reimplemented from QObject
|
||||||
**/
|
**/
|
||||||
void timerEvent(QTimerEvent *event);
|
void timerEvent(QTimerEvent *event) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/**
|
/**
|
||||||
|
@ -32,8 +32,8 @@ class ChangeableMainScriptPackage : public KPackage::PackageStructure
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
void initPackage(KPackage::Package *package);
|
void initPackage(KPackage::Package *package) Q_DECL_OVERRIDE;
|
||||||
void pathChanged(KPackage::Package *package);
|
void pathChanged(KPackage::Package *package) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual QString mainScriptConfigKey() const;
|
virtual QString mainScriptConfigKey() const;
|
||||||
@ -43,35 +43,35 @@ class GenericPackage : public ChangeableMainScriptPackage
|
|||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
void initPackage(KPackage::Package *package);
|
void initPackage(KPackage::Package *package) Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
class PlasmoidPackage : public GenericPackage
|
class PlasmoidPackage : public GenericPackage
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
void initPackage(KPackage::Package *package);
|
void initPackage(KPackage::Package *package) Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
class DataEnginePackage : public ChangeableMainScriptPackage
|
class DataEnginePackage : public ChangeableMainScriptPackage
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
void initPackage(KPackage::Package *package);
|
void initPackage(KPackage::Package *package) Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ThemePackage : public KPackage::PackageStructure
|
class ThemePackage : public KPackage::PackageStructure
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
void initPackage(KPackage::Package *package);
|
void initPackage(KPackage::Package *package) Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
class ContainmentActionsPackage : public ChangeableMainScriptPackage
|
class ContainmentActionsPackage : public ChangeableMainScriptPackage
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
void initPackage(KPackage::Package *package);
|
void initPackage(KPackage::Package *package) Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Plasma
|
} // namespace Plasma
|
||||||
|
@ -37,12 +37,12 @@ public:
|
|||||||
|
|
||||||
~PackageStructureWrapper();
|
~PackageStructureWrapper();
|
||||||
|
|
||||||
virtual void initPackage(KPackage::Package *package);
|
void initPackage(KPackage::Package *package) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
virtual void pathChanged(KPackage::Package *package);
|
void pathChanged(KPackage::Package *package) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
virtual KJob *install(KPackage::Package *package, const QString &archivePath, const QString &packageRoot);
|
KJob *install(KPackage::Package *package, const QString &archivePath, const QString &packageRoot) Q_DECL_OVERRIDE;
|
||||||
virtual KJob *uninstall(KPackage::Package *package, const QString &packageRoot);
|
KJob *uninstall(KPackage::Package *package, const QString &packageRoot) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QPointer<Plasma::PackageStructure> m_struct;
|
QPointer<Plasma::PackageStructure> m_struct;
|
||||||
|
@ -42,7 +42,7 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
void start()
|
void start() Q_DECL_OVERRIDE
|
||||||
{
|
{
|
||||||
setErrorText(i18nc("Error message, tried to start an invalid service", "Invalid (null) service, can not perform any operations."));
|
setErrorText(i18nc("Error message, tried to start an invalid service", "Invalid (null) service, can not perform any operations."));
|
||||||
emitResult();
|
emitResult();
|
||||||
@ -59,7 +59,7 @@ public:
|
|||||||
setName("NullService");
|
setName("NullService");
|
||||||
}
|
}
|
||||||
|
|
||||||
ServiceJob *createJob(const QString &operation, QVariantMap &)
|
ServiceJob *createJob(const QString &operation, QVariantMap &) Q_DECL_OVERRIDE
|
||||||
{
|
{
|
||||||
return new NullServiceJob(destination(), operation, this);
|
return new NullServiceJob(destination(), operation, this);
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ public:
|
|||||||
~StorageJob();
|
~StorageJob();
|
||||||
void setData(const QVariantMap &data);
|
void setData(const QVariantMap &data);
|
||||||
QVariantMap data() const;
|
QVariantMap data() const;
|
||||||
void start();
|
void start() Q_DECL_OVERRIDE;
|
||||||
QString clientName() const;
|
QString clientName() const;
|
||||||
|
|
||||||
protected Q_SLOTS:
|
protected Q_SLOTS:
|
||||||
@ -66,7 +66,7 @@ public:
|
|||||||
~Storage();
|
~Storage();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Plasma::ServiceJob *createJob(const QString &operation, QVariantMap ¶meters);
|
Plasma::ServiceJob *createJob(const QString &operation, QVariantMap ¶meters) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString m_clientName;
|
QString m_clientName;
|
||||||
|
@ -36,7 +36,7 @@ public:
|
|||||||
StorageThread(QObject *parent = 0);
|
StorageThread(QObject *parent = 0);
|
||||||
~StorageThread();
|
~StorageThread();
|
||||||
|
|
||||||
void run();
|
void run() Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
static Plasma::StorageThread *self();
|
static Plasma::StorageThread *self();
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ public:
|
|||||||
KColorScheme colorScheme;
|
KColorScheme colorScheme;
|
||||||
KColorScheme buttonColorScheme;
|
KColorScheme buttonColorScheme;
|
||||||
KColorScheme viewColorScheme;
|
KColorScheme viewColorScheme;
|
||||||
bool eventFilter(QObject *watched, QEvent *event);
|
bool eventFilter(QObject *watched, QEvent *event) Q_DECL_OVERRIDE;
|
||||||
KConfigGroup cfg;
|
KConfigGroup cfg;
|
||||||
QString defaultWallpaperTheme;
|
QString defaultWallpaperTheme;
|
||||||
QString defaultWallpaperSuffix;
|
QString defaultWallpaperSuffix;
|
||||||
|
@ -147,14 +147,14 @@ protected:
|
|||||||
/**
|
/**
|
||||||
* @return absolute path to the main script file for this plasmoid
|
* @return absolute path to the main script file for this plasmoid
|
||||||
*/
|
*/
|
||||||
QString mainScript() const;
|
QString mainScript() const Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the Package associated with this plasmoid which can
|
* @return the Package associated with this plasmoid which can
|
||||||
* be used to request resources, such as images and
|
* be used to request resources, such as images and
|
||||||
* interface files.
|
* interface files.
|
||||||
*/
|
*/
|
||||||
Package package() const;
|
Package package() const Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the KPluginInfo associated with this plasmoid
|
* @return the KPluginInfo associated with this plasmoid
|
||||||
|
@ -101,14 +101,14 @@ protected:
|
|||||||
/**
|
/**
|
||||||
* @return absolute path to the main script file for this plasmoid
|
* @return absolute path to the main script file for this plasmoid
|
||||||
*/
|
*/
|
||||||
QString mainScript() const;
|
QString mainScript() const Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the Package associated with this plasmoid which can
|
* @return the Package associated with this plasmoid which can
|
||||||
* be used to request resources, such as images and
|
* be used to request resources, such as images and
|
||||||
* interface files.
|
* interface files.
|
||||||
*/
|
*/
|
||||||
Package package() const;
|
Package package() const Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the KPluginInfo associated with this plasmoid
|
* @return the KPluginInfo associated with this plasmoid
|
||||||
|
@ -105,7 +105,7 @@ public:
|
|||||||
* Default implementation of start, which simply sets the results to false.
|
* Default implementation of start, which simply sets the results to false.
|
||||||
* This makes it easy to create a "failure" job.
|
* This makes it easy to create a "failure" job.
|
||||||
*/
|
*/
|
||||||
Q_INVOKABLE virtual void start();
|
Q_INVOKABLE void start() Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
|
@ -440,7 +440,7 @@ Q_SIGNALS:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
SvgPrivate *const d;
|
SvgPrivate *const d;
|
||||||
bool eventFilter(QObject *watched, QEvent *event);
|
bool eventFilter(QObject *watched, QEvent *event) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
Q_PRIVATE_SLOT(d, void themeChanged())
|
Q_PRIVATE_SLOT(d, void themeChanged())
|
||||||
Q_PRIVATE_SLOT(d, void colorsChanged())
|
Q_PRIVATE_SLOT(d, void colorsChanged())
|
||||||
|
@ -146,8 +146,8 @@ protected:
|
|||||||
KDeclarative::QmlObject *qmlObject();
|
KDeclarative::QmlObject *qmlObject();
|
||||||
|
|
||||||
//Reimplementation
|
//Reimplementation
|
||||||
void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry);
|
void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) Q_DECL_OVERRIDE;
|
||||||
virtual void itemChange(ItemChange change, const ItemChangeData &value);
|
void itemChange(ItemChange change, const ItemChangeData &value) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
AppletQuickItemPrivate *const d;
|
AppletQuickItemPrivate *const d;
|
||||||
|
@ -92,8 +92,8 @@ public:
|
|||||||
{
|
{
|
||||||
return rowCount();
|
return rowCount();
|
||||||
}
|
}
|
||||||
virtual int rowCount(const QModelIndex &index = QModelIndex()) const;
|
int rowCount(const QModelIndex &index = QModelIndex()) const Q_DECL_OVERRIDE;
|
||||||
virtual QVariant data(const QModelIndex &, int) const;
|
QVariant data(const QModelIndex &, int) const Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param row the row for which the data will be returned
|
* @param row the row for which the data will be returned
|
||||||
|
@ -77,8 +77,8 @@ Q_SIGNALS:
|
|||||||
void appletGlobalShortcutChanged();
|
void appletGlobalShortcutChanged();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void hideEvent(QHideEvent *ev);
|
void hideEvent(QHideEvent *ev) Q_DECL_OVERRIDE;
|
||||||
void resizeEvent(QResizeEvent *re);
|
void resizeEvent(QResizeEvent *re) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ConfigViewPrivate *const d;
|
ConfigViewPrivate *const d;
|
||||||
|
@ -229,14 +229,14 @@ protected:
|
|||||||
virtual void adjustGeometry(const QRect &geom);
|
virtual void adjustGeometry(const QRect &geom);
|
||||||
|
|
||||||
//Reimplementations
|
//Reimplementations
|
||||||
virtual void classBegin();
|
void classBegin() Q_DECL_OVERRIDE;
|
||||||
virtual void componentComplete();
|
void componentComplete() Q_DECL_OVERRIDE;
|
||||||
virtual void resizeEvent(QResizeEvent *re);
|
void resizeEvent(QResizeEvent *re) Q_DECL_OVERRIDE;
|
||||||
virtual void focusInEvent(QFocusEvent *ev);
|
void focusInEvent(QFocusEvent *ev) Q_DECL_OVERRIDE;
|
||||||
virtual void focusOutEvent(QFocusEvent *ev);
|
void focusOutEvent(QFocusEvent *ev) Q_DECL_OVERRIDE;
|
||||||
virtual void showEvent(QShowEvent *event);
|
void showEvent(QShowEvent *event) Q_DECL_OVERRIDE;
|
||||||
virtual void hideEvent(QHideEvent *event);
|
void hideEvent(QHideEvent *event) Q_DECL_OVERRIDE;
|
||||||
virtual bool event(QEvent *event);
|
bool event(QEvent *event) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class DialogPrivate;
|
friend class DialogPrivate;
|
||||||
|
@ -53,7 +53,7 @@ public:
|
|||||||
void removeAllowedPath(const QString &path);
|
void removeAllowedPath(const QString &path);
|
||||||
QStringList allowedPaths() const;
|
QStringList allowedPaths() const;
|
||||||
|
|
||||||
virtual QUrl intercept(const QUrl &path, QQmlAbstractUrlInterceptor::DataType type);
|
QUrl intercept(const QUrl &path, QQmlAbstractUrlInterceptor::DataType type) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
static inline QByteArray prefixForType(QQmlAbstractUrlInterceptor::DataType type, const QString &fileName)
|
static inline QByteArray prefixForType(QQmlAbstractUrlInterceptor::DataType type, const QString &fileName)
|
||||||
{
|
{
|
||||||
|
@ -28,19 +28,19 @@
|
|||||||
class LookAndFeelPackage : public Plasma::PackageStructure
|
class LookAndFeelPackage : public Plasma::PackageStructure
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void initPackage(Plasma::Package *package);
|
void initPackage(Plasma::Package *package) Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
class QmlWallpaperPackage : public Plasma::PackageStructure
|
class QmlWallpaperPackage : public Plasma::PackageStructure
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void initPackage(Plasma::Package *package);
|
void initPackage(Plasma::Package *package) Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
class LayoutTemplatePackage : public Plasma::PackageStructure
|
class LayoutTemplatePackage : public Plasma::PackageStructure
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
void initPackage(Plasma::Package *package);
|
void initPackage(Plasma::Package *package) Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // LOOKANDFEELPACKAGE_H
|
#endif // LOOKANDFEELPACKAGE_H
|
||||||
|
@ -33,7 +33,7 @@ public:
|
|||||||
static void init();
|
static void init();
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Plasma::Package internalLoadPackage(const QString &packageFormat, const QString &specialization);
|
Plasma::Package internalLoadPackage(const QString &packageFormat, const QString &specialization) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
These members are actually file-static in the .cpp because binary compat must be preserved
|
These members are actually file-static in the .cpp because binary compat must be preserved
|
||||||
|
@ -362,11 +362,11 @@ Q_SIGNALS:
|
|||||||
void globalShortcutChanged();
|
void globalShortcutChanged();
|
||||||
|
|
||||||
protected Q_SLOTS:
|
protected Q_SLOTS:
|
||||||
virtual void init();
|
void init() Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool event(QEvent *event);
|
bool event(QEvent *event) Q_DECL_OVERRIDE;
|
||||||
bool eventFilter(QObject *watched, QEvent *event);
|
bool eventFilter(QObject *watched, QEvent *event) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void destroyedChanged(bool destroyed);
|
void destroyedChanged(bool destroyed);
|
||||||
|
@ -150,10 +150,10 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void init();
|
void init() Q_DECL_OVERRIDE;
|
||||||
void mousePressEvent(QMouseEvent *event);
|
void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
|
||||||
void mouseReleaseEvent(QMouseEvent *event);
|
void mouseReleaseEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
|
||||||
void wheelEvent(QWheelEvent *event);
|
void wheelEvent(QWheelEvent *event) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
void addAppletActions(QMenu &desktopMenu, Plasma::Applet *applet, QEvent *event);
|
void addAppletActions(QMenu &desktopMenu, Plasma::Applet *applet, QEvent *event);
|
||||||
void addContainmentActions(QMenu &desktopMenu, QEvent *event);
|
void addContainmentActions(QMenu &desktopMenu, QEvent *event);
|
||||||
|
@ -38,15 +38,15 @@ public:
|
|||||||
|
|
||||||
QString filePath(const QString &type, const QString &file) const;
|
QString filePath(const QString &type, const QString &file) const;
|
||||||
|
|
||||||
QList<QAction *> contextualActions();
|
QList<QAction *> contextualActions() Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
void constraintsEvent(Plasma::Types::Constraints constraints);
|
void constraintsEvent(Plasma::Types::Constraints constraints) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
public Q_SLOTS:
|
public Q_SLOTS:
|
||||||
void executeAction(const QString &name);
|
void executeAction(const QString &name);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool init();
|
bool init() Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
Q_SIGNALS:
|
Q_SIGNALS:
|
||||||
void formFactorChanged();
|
void formFactorChanged();
|
||||||
|
@ -41,7 +41,7 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
void init();
|
void init();
|
||||||
bool sourceRequestEvent(const QString &source);
|
bool sourceRequestEvent(const QString &source) Q_DECL_OVERRIDE;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __TESTDATAENGINE_H__
|
#endif // __TESTDATAENGINE_H__
|
||||||
|
Loading…
Reference in New Issue
Block a user