Use nullptr + add explicit

This commit is contained in:
Montel Laurent 2017-12-13 07:35:58 +01:00
parent 6195342df2
commit 7f0c023d3f
69 changed files with 94 additions and 94 deletions

View File

@ -39,7 +39,7 @@ class SimpleCorona : public Plasma::Corona
Q_OBJECT
public:
explicit SimpleCorona(QObject * parent = 0);
explicit SimpleCorona(QObject * parent = nullptr);
~SimpleCorona();
QRect screenGeometry(int) const Q_DECL_OVERRIDE;
@ -51,7 +51,7 @@ class SimpleApplet : public Plasma::Applet
Q_OBJECT
public:
explicit SimpleApplet(QObject *parent = 0, const QString &serviceId = QString(), uint appletId = 0);
explicit SimpleApplet(QObject *parent = nullptr, const QString &serviceId = QString(), uint appletId = 0);
private:
QTimer m_timer;
};
@ -61,7 +61,7 @@ class SimpleContainment : public Plasma::Containment
Q_OBJECT
public:
explicit SimpleContainment(QObject *parent = 0, const QString &serviceId = QString(), uint appletId = 0);
explicit SimpleContainment(QObject *parent = nullptr, const QString &serviceId = QString(), uint appletId = 0);
private:
QTimer m_timer;
};
@ -71,7 +71,7 @@ class SimpleNoScreenContainment : public Plasma::Containment
Q_OBJECT
public:
explicit SimpleNoScreenContainment(QObject *parent = 0, const QString &serviceId = QString(), uint appletId = 0);
explicit SimpleNoScreenContainment(QObject *parent = nullptr, const QString &serviceId = QString(), uint appletId = 0);
};
class CoronaTest : public QObject

View File

@ -52,7 +52,7 @@ class DynamicTreeModel : public QAbstractItemModel
Q_OBJECT
public:
DynamicTreeModel(QObject *parent = 0);
DynamicTreeModel(QObject *parent = nullptr);
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
QModelIndex parent(const QModelIndex &index) const;
@ -99,7 +99,7 @@ class ModelChangeCommand : public QObject
Q_OBJECT
public:
explicit ModelChangeCommand(DynamicTreeModel *model, QObject *parent = 0);
explicit ModelChangeCommand(DynamicTreeModel *model, QObject *parent = nullptr);
virtual ~ModelChangeCommand() {}
@ -144,7 +144,7 @@ class ModelInsertCommand : public ModelChangeCommand
public:
explicit ModelInsertCommand(DynamicTreeModel *model, QObject *parent = 0);
explicit ModelInsertCommand(DynamicTreeModel *model, QObject *parent = nullptr);
virtual ~ModelInsertCommand() {}
virtual void doCommand();
@ -186,7 +186,7 @@ class ModelResetCommand : public ModelMoveCommand
{
Q_OBJECT
public:
explicit ModelResetCommand(DynamicTreeModel *model, QObject *parent = 0);
explicit ModelResetCommand(DynamicTreeModel *model, QObject *parent = nullptr);
virtual ~ModelResetCommand();
@ -202,7 +202,7 @@ class ModelResetCommandFixed : public ModelMoveCommand
{
Q_OBJECT
public:
explicit ModelResetCommandFixed(DynamicTreeModel *model, QObject *parent = 0);
explicit ModelResetCommandFixed(DynamicTreeModel *model, QObject *parent = nullptr);
virtual ~ModelResetCommandFixed();

View File

@ -51,7 +51,7 @@ class ModelTest : public QObject
Q_OBJECT
public:
explicit ModelTest(QAbstractItemModel *model, QObject *parent = 0);
explicit ModelTest(QAbstractItemModel *model, QObject *parent = nullptr);
private Q_SLOTS:
void nonDestructiveBasicTest();

View File

@ -40,7 +40,7 @@ class HttpContainer : public Plasma::DataContainer
Q_OBJECT
public:
HttpContainer(const QUrl &url, QObject *parent = 0);
HttpContainer(const QUrl &url, QObject *parent = nullptr);
void fetchUrl(bool reload = true);

View File

@ -35,7 +35,7 @@ class DataEngineTracker : QObject
Q_OBJECT
public:
DataEngineTracker(Plasma::DataEngine *engine, QObject *parent = 0);
DataEngineTracker(Plasma::DataEngine *engine, QObject *parent = nullptr);
public Q_SLOTS:
void dataUpdated(const QString &source, const Plasma::DataEngine::Data &data);

View File

@ -29,7 +29,7 @@ class CustomCorona : public Plasma::Corona
Q_OBJECT
public:
explicit CustomCorona(QObject * parent = 0);
explicit CustomCorona(QObject * parent = nullptr);
QRect screenGeometry(int id) const;
public Q_SLOTS:

View File

@ -137,7 +137,7 @@ public:
};
Q_ENUM(DateMatchingPrecision)
explicit Calendar(QObject *parent = 0);
explicit Calendar(QObject *parent = nullptr);
// Displayed date
QDate displayedDate() const;

View File

@ -47,7 +47,7 @@ public:
Q_ENUM(Type)
Q_DECLARE_FLAGS(Types, Type)
explicit CalendarData(QObject *parent = 0);
explicit CalendarData(QObject *parent = nullptr);
Q_SIGNALS:
void startDateChanged();

View File

@ -44,7 +44,7 @@ public:
yearNumber
};
explicit DaysModel(QObject *parent = 0);
explicit DaysModel(QObject *parent = nullptr);
virtual ~DaysModel();
void setSourceData(QList<DayData> *data);
int rowCount(const QModelIndex &parent) const Q_DECL_OVERRIDE;

View File

@ -38,7 +38,7 @@ class EventPluginsManager : public QObject
Q_PROPERTY(QStringList enabledPlugins READ enabledPlugins WRITE setEnabledPlugins NOTIFY pluginsChanged)
public:
EventPluginsManager(QObject *parent = 0);
explicit EventPluginsManager(QObject *parent = nullptr);
~EventPluginsManager();
QList<CalendarEvents::CalendarEventsPlugin*> plugins() const;

View File

@ -87,7 +87,7 @@ class ColorScope : public QQuickItem
public:
/// @cond INTERNAL_DOCS
ColorScope(QQuickItem *parent = 0, QObject *parentObject = 0);
explicit ColorScope(QQuickItem *parent = nullptr, QObject *parentObject = 0);
~ColorScope();
void setColorGroup(Plasma::Theme::ColorGroup group);

View File

@ -90,7 +90,7 @@ class SortFilterModel : public QSortFilterProxyModel
friend class DataModel;
public:
SortFilterModel(QObject *parent = 0);
SortFilterModel(QObject *parent = nullptr);
~SortFilterModel();
void setModel(QAbstractItemModel *source);
@ -182,7 +182,7 @@ class DataModel : public QAbstractItemModel
Q_PROPERTY(int count READ count NOTIFY countChanged)
public:
DataModel(QObject *parent = 0);
DataModel(QObject *parent = nullptr);
~DataModel();
void setDataSource(QObject *source);

View File

@ -56,7 +56,7 @@ public:
typedef QMap<QString, QVariant> Data;
DataSource(QObject *parent = 0);
DataSource(QObject *parent = nullptr);
void classBegin() Q_DECL_OVERRIDE;
void componentComplete() Q_DECL_OVERRIDE;
@ -124,7 +124,7 @@ public:
* All the data fetched by this dataengine.
* This is a map of maps. At the first level, there are the source names, at the second, they keys set by the DataEngine
*/
Q_PROPERTY(QQmlPropertyMap *data READ data CONSTANT);
Q_PROPERTY(QQmlPropertyMap *data READ data CONSTANT)
QQmlPropertyMap *data() const
{
return m_data;
@ -135,7 +135,7 @@ public:
* In order for a model to be present, besides being implemented in the DataEngine,
* The user has to be connected to its source, so the source name has to be present in the connectedSources property.
*/
Q_PROPERTY(QQmlPropertyMap *models READ models CONSTANT);
Q_PROPERTY(QQmlPropertyMap *models READ models CONSTANT)
QQmlPropertyMap *models() const
{
return m_models;

View File

@ -74,7 +74,7 @@ class FrameSvgItemMargins : public QObject
public:
FrameSvgItemMargins(Plasma::FrameSvg *frameSvg, QObject *parent = 0);
FrameSvgItemMargins(Plasma::FrameSvg *frameSvg, QObject *parent = nullptr);
qreal left() const;
qreal top() const;
@ -192,7 +192,7 @@ public:
Q_INVOKABLE bool hasElementPrefix(const QString &prefix) const;
/// @cond INTERNAL_DOCS
FrameSvgItem(QQuickItem *parent = 0);
FrameSvgItem(QQuickItem *parent = nullptr);
~FrameSvgItem();
void setImagePath(const QString &path);

View File

@ -124,7 +124,7 @@ class IconItem : public QQuickItem
Q_PROPERTY(int implicitWidth READ implicitWidth WRITE setImplicitWidth2 NOTIFY implicitWidthChanged2)
public:
IconItem(QQuickItem *parent = 0);
explicit IconItem(QQuickItem *parent = nullptr);
~IconItem();
void setSource(const QVariant &source);

View File

@ -85,7 +85,7 @@ class QuickTheme : public Plasma::Theme
Q_PROPERTY(QColor complementaryNegativeTextColor READ buttonNegativeTextColor NOTIFY themeChangedProxy)
public:
explicit QuickTheme(QObject *parent = 0);
explicit QuickTheme(QObject *parent = nullptr);
~QuickTheme();

View File

@ -53,7 +53,7 @@ class ServiceOperationStatus : public QObject
Q_PROPERTY(bool enabled READ isEnabled WRITE setEnabled NOTIFY enabledChanged)
public:
ServiceOperationStatus(QObject *parent = 0);
explicit ServiceOperationStatus(QObject *parent = nullptr);
~ServiceOperationStatus();
void setService(Plasma::Service *service);

View File

@ -68,7 +68,7 @@ class SvgItem : public QQuickItem
public:
/// @cond INTERNAL_DOCS
SvgItem(QQuickItem *parent = 0);
SvgItem(QQuickItem *parent = nullptr);
~SvgItem();
void setElementId(const QString &elementID);

View File

@ -127,7 +127,7 @@ class ToolTip : public QQuickItem
public:
/// @cond INTERNAL_DOCS
ToolTip(QQuickItem *parent = 0);
ToolTip(QQuickItem *parent = nullptr);
~ToolTip();
QQuickItem *mainItem() const;

View File

@ -43,7 +43,7 @@ class ToolTipDialog : public PlasmaQuick::Dialog
Q_OBJECT
public:
ToolTipDialog(QQuickItem *parent = 0);
ToolTipDialog(QQuickItem *parent = nullptr);
~ToolTipDialog();
QQuickItem *loadDefaultItem();

View File

@ -32,7 +32,7 @@ class SharedAppFilter : public QObject
{
Q_OBJECT
public:
SharedAppFilter(QObject *parent = 0);
SharedAppFilter(QObject *parent = nullptr);
~SharedAppFilter();
Q_SIGNALS:
@ -209,7 +209,7 @@ private Q_SLOTS:
void updateSpacing();
private:
Units(QObject *parent = 0);
Units(QObject *parent = nullptr);
Units(Units const&) = delete; // Copy construct
Units(Units&&) = delete; // Move construct
Units& operator=(Units const&) = delete; // Copy assign

View File

@ -82,7 +82,7 @@ class WindowThumbnail : public QQuickItem, public QAbstractNativeEventFilter
Q_PROPERTY(bool thumbnailAvailable READ thumbnailAvailable NOTIFY thumbnailAvailableChanged)
public:
WindowThumbnail(QQuickItem *parent = 0);
WindowThumbnail(QQuickItem *parent = nullptr);
virtual ~WindowThumbnail();
bool nativeEventFilter(const QByteArray &eventType, void *message, long int *result) Q_DECL_OVERRIDE;
QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *updatePaintNodeData) Q_DECL_OVERRIDE;

View File

@ -33,7 +33,7 @@ class FullScreenSheet : public FullScreenWindow
Q_PROPERTY(QString rejectButtonText READ rejectButtonText WRITE setRejectButtonText NOTIFY rejectButtonTextChanged)
public:
FullScreenSheet(QDeclarativeItem *parent = 0);
FullScreenSheet(QDeclarativeItem *parent = nullptr);
~FullScreenSheet();
QString title() const;

View File

@ -44,7 +44,7 @@ class FullScreenWindow : public QDeclarativeItem
Q_PROPERTY(DialogStatus::Status status READ status NOTIFY statusChanged)
public:
FullScreenWindow(QDeclarativeItem *parent = 0);
FullScreenWindow(QDeclarativeItem *parent = nullptr);
~FullScreenWindow();
QGraphicsObject *mainItem() const;

View File

@ -101,7 +101,7 @@ class QMenuProxy : public QObject
Q_PROPERTY(int maximumWidth READ maximumWidth WRITE setMaximumWidth RESET resetMaximumWidth NOTIFY maximumWidthChanged)
public:
QMenuProxy(QObject *parent = 0);
explicit QMenuProxy(QObject *parent = nullptr);
~QMenuProxy();
QQmlListProperty<QMenuItem> content();

View File

@ -48,7 +48,7 @@ class QMenuItem : public QQuickItem
Q_PROPERTY(bool checked READ checked WRITE setChecked NOTIFY toggled)
public:
QMenuItem(QQuickItem *parent = 0);
QMenuItem(QQuickItem *parent = nullptr);
QAction *action() const;
void setAction(QAction *a);

View File

@ -62,7 +62,7 @@ class QRangeModel : public QObject
Q_PROPERTY(bool inverted READ inverted WRITE setInverted NOTIFY invertedChanged)
public:
QRangeModel(QObject *parent = 0);
explicit QRangeModel(QObject *parent = nullptr);
virtual ~QRangeModel();
void setRange(qreal min, qreal max);

View File

@ -48,7 +48,7 @@ class FallbackComponent : public QObject
Q_PROPERTY(QStringList candidates READ candidates WRITE setCandidates NOTIFY candidatesChanged)
public:
FallbackComponent(QObject *parent = 0);
FallbackComponent(QObject *parent = nullptr);
/**
* This method must be called after the the basePath and the candidates property

View File

@ -52,7 +52,7 @@ class Application: public QObject
Q_PROPERTY(bool running READ running WRITE setRunning NOTIFY runningChanged)
public:
Application(QObject *parent = nullptr);
explicit Application(QObject *parent = nullptr);
~Application();
QString application() const;

View File

@ -46,7 +46,7 @@ class IconDialog: public QObject
Q_OBJECT
public:
IconDialog(QObject *parent = nullptr);
explicit IconDialog(QObject *parent = nullptr);
~IconDialog();
Q_INVOKABLE QString openDialog();

View File

@ -84,7 +84,7 @@ public:
* @param appletId a unique id used to differentiate between multiple
* instances of the same Applet type
*/
explicit Applet(QObject *parent = 0, const QString &serviceId = QString(), uint appletId = 0);
explicit Applet(QObject *parent = nullptr, const QString &serviceId = QString(), uint appletId = 0);
/**
* @param parent the QObject this applet is parented to
@ -95,7 +95,7 @@ public:
*
* @deprecated prefer using KPluginMetaData
*/
PLASMA_DEPRECATED explicit Applet(const KPluginInfo &info, QObject *parent = 0, uint appletId = 0);
PLASMA_DEPRECATED explicit Applet(const KPluginInfo &info, QObject *parent = nullptr, uint appletId = 0);
/**
* @param parent the QObject this applet is parented to
@ -104,7 +104,7 @@ public:
* instances of the same Applet type
* @since 5.27
*/
explicit Applet(const KPluginMetaData &metadata, QObject *parent = 0, uint appletId = 0);
explicit Applet(const KPluginMetaData &metadata, QObject *parent = nullptr, uint appletId = 0);
~Applet();

View File

@ -69,7 +69,7 @@ public:
* @param containmentId a unique id used to differentiate between multiple
* instances of the same Applet type
*/
explicit Containment(QObject *parent = 0,
explicit Containment(QObject *parent = nullptr,
const QString &serviceId = QString(),
uint containmentId = 0);

View File

@ -59,7 +59,7 @@ public:
/**
* Default constructor for an empty or null containmentactions
*/
explicit ContainmentActions(QObject *parent = 0);
explicit ContainmentActions(QObject *parent = nullptr);
~ContainmentActions();

View File

@ -46,7 +46,7 @@ class PLASMA_EXPORT Corona : public QObject
Q_PROPERTY(KPackage::Package kPackage READ kPackage NOTIFY kPackageChanged)
public:
explicit Corona(QObject *parent = 0);
explicit Corona(QObject *parent = nullptr);
~Corona();
#ifndef PLASMA_NO_DEPRECATED

View File

@ -73,7 +73,7 @@ public:
* Constructs a default DataContainer that has no name or data
* associated with it
**/
explicit DataContainer(QObject *parent = 0);
explicit DataContainer(QObject *parent = nullptr);
virtual ~DataContainer();
/**

View File

@ -73,9 +73,9 @@ public:
* @param parent The parent object.
* @param plugin plugin info that describes the engine
**/
explicit DataEngine(const KPluginInfo &plugin, QObject *parent = 0);
explicit DataEngine(const KPluginInfo &plugin, QObject *parent = nullptr);
explicit DataEngine(QObject *parent = 0, const QVariantList &args = QVariantList());
explicit DataEngine(QObject *parent = nullptr, const QVariantList &args = QVariantList());
~DataEngine();

View File

@ -103,7 +103,7 @@ public:
*
* @related Plasma::Theme
*/
explicit FrameSvg(QObject *parent = 0);
explicit FrameSvg(QObject *parent = nullptr);
~FrameSvg();
/**

View File

@ -42,7 +42,7 @@ class PLASMA_EXPORT PackageStructure : public QObject
public:
PLASMA_DEPRECATED explicit PackageStructure(QObject *parent = 0, const QVariantList &args = QVariantList());
PLASMA_DEPRECATED explicit PackageStructure(QObject *parent = nullptr, const QVariantList &args = QVariantList());
~PackageStructure();

View File

@ -32,7 +32,7 @@ class ChangeableMainScriptPackage : public KPackage::PackageStructure
{
Q_OBJECT
public:
ChangeableMainScriptPackage(QObject *parent = 0, const QVariantList &args = QVariantList()) : KPackage::PackageStructure(parent, args) {}
ChangeableMainScriptPackage(QObject *parent = nullptr, const QVariantList &args = QVariantList()) : KPackage::PackageStructure(parent, args) {}
void initPackage(KPackage::Package *package) Q_DECL_OVERRIDE;
void pathChanged(KPackage::Package *package) Q_DECL_OVERRIDE;
@ -45,7 +45,7 @@ class GenericPackage : public ChangeableMainScriptPackage
{
Q_OBJECT
public:
GenericPackage(QObject *parent = 0, const QVariantList &args = QVariantList()) : ChangeableMainScriptPackage(parent, args) {}
GenericPackage(QObject *parent = nullptr, const QVariantList &args = QVariantList()) : ChangeableMainScriptPackage(parent, args) {}
void initPackage(KPackage::Package *package) Q_DECL_OVERRIDE;
};

View File

@ -285,7 +285,7 @@ public:
Q_ENUM(BackgroundHints)
private:
Types(QObject *parent = 0);
Types(QObject *parent = nullptr);
};
/**

View File

@ -126,7 +126,7 @@ public:
*
* @return a Service object, unlike Plasma::Service::loadService, this can return null.
**/
Service *loadService(const QString &name, const QVariantList &args, QObject *parent = 0);
Service *loadService(const QString &name, const QVariantList &args, QObject *parent = nullptr);
/**
* Load a ContainmentActions plugin.
@ -398,7 +398,7 @@ protected:
*
* @return a Service object, unlike Plasma::Service::loadService, this can return null.
**/
virtual Service *internalLoadService(const QString &name, const QVariantList &args, QObject *parent = 0);
virtual Service *internalLoadService(const QString &name, const QVariantList &args, QObject *parent = nullptr);
/**
* A re-implementable method that allows subclasses to override

View File

@ -33,13 +33,13 @@ class ActionWidgetInterface : public ThemedWidgetInterface<T>
public:
ActionWidgetInterface(T *parent)
: ThemedWidgetInterface<T>(parent),
action(0)
action(nullptr)
{
}
virtual ~ActionWidgetInterface()
{
setAction(0);
setAction(nullptr);
}
virtual void changed()
@ -48,7 +48,7 @@ public:
void clearAction()
{
action = 0;
action = nullptr;
syncToAction();
changed();
}
@ -92,7 +92,7 @@ public:
}
}
QAction *action;
QAction *action = nullptr;
};
} // namespace Plasma

View File

@ -52,7 +52,7 @@ public:
bool appletHasValidAssociatedApplication(const Plasma::Applet *applet) const;
private:
AssociatedApplicationManager(QObject *parent = 0);
AssociatedApplicationManager(QObject *parent = nullptr);
~AssociatedApplicationManager();
AssociatedApplicationManagerPrivate *const d;

View File

@ -74,7 +74,7 @@ public:
* @param force whether to always prompt, even if recently prompted
*/
void installMissingComponent(const QString &type, const QString &name,
QWidget *parent = 0, bool force = false);
QWidget *parent = nullptr, bool force = false);
private:
/**

View File

@ -32,7 +32,7 @@ public:
package(0),
containment(0)
{
};
}
ContainmentActions *q;

View File

@ -34,7 +34,7 @@ class EffectWatcher: public QObject, public QAbstractNativeEventFilter
Q_OBJECT
public:
EffectWatcher(const QString &property, QObject *parent = 0);
EffectWatcher(const QString &property, QObject *parent = nullptr);
protected:
bool isEffectActive() const;

View File

@ -34,7 +34,7 @@ class PackageStructureWrapper : public KPackage::PackageStructure {
Q_OBJECT
public:
PackageStructureWrapper(Plasma::PackageStructure *structure, QObject *parent = 0, const QVariantList &args = QVariantList());
PackageStructureWrapper(Plasma::PackageStructure *structure, QObject *parent = nullptr, const QVariantList &args = QVariantList());
~PackageStructureWrapper();

View File

@ -41,7 +41,7 @@ protected:
private:
friend class TimerDriveSingleton;
explicit TimerDrive(QObject *parent = 0);
explicit TimerDrive(QObject *parent = nullptr);
~TimerDrive();
class Private;
Private *const d;

View File

@ -38,7 +38,7 @@ public:
StorageJob(const QString &destination,
const QString &operation,
const QVariantMap &parameters,
QObject *parent = 0);
QObject *parent = nullptr);
~StorageJob();
void setData(const QVariantMap &data);
QVariantMap data() const;
@ -62,7 +62,7 @@ class Storage : public Plasma::Service
Q_OBJECT
public:
Storage(QObject *parent = 0);
Storage(QObject *parent = nullptr);
~Storage();
protected:

View File

@ -33,7 +33,7 @@ class StorageThread : public QThread
{
Q_OBJECT
public:
StorageThread(QObject *parent = 0);
StorageThread(QObject *parent = nullptr);
~StorageThread();
void run() Q_DECL_OVERRIDE;

View File

@ -37,18 +37,18 @@ class SharedSvgRenderer : public QSvgRenderer, public QSharedData
public:
typedef QExplicitlySharedDataPointer<SharedSvgRenderer> Ptr;
SharedSvgRenderer(QObject *parent = 0);
SharedSvgRenderer(QObject *parent = nullptr);
SharedSvgRenderer(
const QString &filename,
const QString &styleSheet,
QHash<QString, QRectF> &interestingElements,
QObject *parent = 0);
QObject *parent = nullptr);
SharedSvgRenderer(
const QByteArray &contents,
const QString &styleSheet,
QHash<QString, QRectF> &interestingElements,
QObject *parent = 0);
QObject *parent = nullptr);
private:
bool load(

View File

@ -63,7 +63,7 @@ class ThemePrivate : public QObject
Q_OBJECT
public:
ThemePrivate(QObject *parent = 0);
ThemePrivate(QObject *parent = nullptr);
~ThemePrivate();
KConfigGroup &config();

View File

@ -57,7 +57,7 @@ public:
* such set up that requires the Applet itself should be done
* in the init() method.
*/
explicit AppletScript(QObject *parent = 0);
explicit AppletScript(QObject *parent = nullptr);
~AppletScript();
/**

View File

@ -49,7 +49,7 @@ public:
* such set up that requires the DataEngine itself should be done
* in the init() method.
*/
explicit DataEngineScript(QObject *parent = 0);
explicit DataEngineScript(QObject *parent = nullptr);
~DataEngineScript();
/**

View File

@ -59,7 +59,7 @@ public:
virtual bool init();
protected:
explicit ScriptEngine(QObject *parent = 0);
explicit ScriptEngine(QObject *parent = nullptr);
/**
* @return absolute path to the main script file for this plasmoid

View File

@ -135,7 +135,7 @@ public:
* @return a started ServiceJob; the consumer may connect to relevant
* signals before returning to the event loop
*/
Q_INVOKABLE ServiceJob *startOperationCall(const QVariantMap &description, QObject *parent = 0);
Q_INVOKABLE ServiceJob *startOperationCall(const QVariantMap &description, QObject *parent = nullptr);
/**
* Query to find if an operation is enabled or not.
@ -167,7 +167,7 @@ protected:
*
* @param parent the parent object for this service
*/
explicit Service(QObject *parent = 0);
explicit Service(QObject *parent = nullptr);
/**
* Constructor for plugin loading

View File

@ -66,7 +66,7 @@ public:
* @param parent the parent object for this service
*/
ServiceJob(const QString &destination, const QString &operation,
const QVariantMap &parameters, QObject *parent = 0);
const QVariantMap &parameters, QObject *parent = nullptr);
/**
* Destructor

View File

@ -85,7 +85,7 @@ public:
*
* @related Plasma::Theme
*/
explicit Svg(QObject *parent = 0);
explicit Svg(QObject *parent = nullptr);
~Svg();
/**

View File

@ -93,7 +93,7 @@ public:
* Default constructor. It will be the global theme configured in plasmarc
* @param parent the parent object
*/
explicit Theme(QObject *parent = 0);
explicit Theme(QObject *parent = nullptr);
/**
* Construct a theme. It will be a custom theme instance of themeName.
@ -101,7 +101,7 @@ public:
* @param parent the parent object
* @since 4.3
*/
explicit Theme(const QString &themeName, QObject *parent = 0);
explicit Theme(const QString &themeName, QObject *parent = nullptr);
~Theme();

View File

@ -93,7 +93,7 @@ class PLASMAQUICK_EXPORT AppletQuickItem : public QQuickItem
Q_PROPERTY(QObject *rootItem READ rootItem CONSTANT)
public:
AppletQuickItem(Plasma::Applet *applet, QQuickItem *parent = 0);
AppletQuickItem(Plasma::Applet *applet, QQuickItem *parent = nullptr);
~AppletQuickItem();
////API NOT SUPPOSED TO BE USED BY QML

View File

@ -73,7 +73,7 @@ public:
VisibleRole,
KCMRole
};
ConfigModel(QObject *parent = 0);
ConfigModel(QObject *parent = nullptr);
~ConfigModel();
/**

View File

@ -58,7 +58,7 @@ public:
* @param applet the applet of this ConfigView
* @param parent the QWindow in which this ConfigView is parented to
**/
ConfigView(Plasma::Applet *applet, QWindow *parent = 0);
ConfigView(Plasma::Applet *applet, QWindow *parent = nullptr);
virtual ~ConfigView();
virtual void init();

View File

@ -53,7 +53,7 @@ public:
* @param corona the corona of this view
* @param parent the QWindow this ContainmentView is parented to
**/
explicit ContainmentView(Plasma::Corona *corona, QWindow *parent = 0);
explicit ContainmentView(Plasma::Corona *corona, QWindow *parent = nullptr);
virtual ~ContainmentView();
/**

View File

@ -167,7 +167,7 @@ public:
};
Q_ENUM(BackgroundHints)
Dialog(QQuickItem *parent = 0);
Dialog(QQuickItem *parent = nullptr);
~Dialog();
//PROPERTIES ACCESSORS

View File

@ -37,7 +37,7 @@ class DialogShadows : public Plasma::Svg
Q_OBJECT
public:
explicit DialogShadows(QObject *parent = 0, const QString &prefix = QStringLiteral("dialogs/background"));
explicit DialogShadows(QObject *parent = nullptr, const QString &prefix = QStringLiteral("dialogs/background"));
~DialogShadows();
static DialogShadows *self();

View File

@ -49,7 +49,7 @@ class ConfigCategory : public QObject
Q_PROPERTY(bool visible READ visible WRITE setVisible NOTIFY visibleChanged)
public:
ConfigCategory(QObject *parent = 0);
ConfigCategory(QObject *parent = nullptr);
~ConfigCategory();
QString name() const;

View File

@ -56,7 +56,7 @@ public:
* @param corona the corona of this view
* @param parent the QWindow this View is parented to
**/
PLASMA_DEPRECATED explicit View(Plasma::Corona *corona, QWindow *parent = 0);
PLASMA_DEPRECATED explicit View(Plasma::Corona *corona, QWindow *parent = nullptr);
PLASMA_DEPRECATED virtual ~View();
/**

View File

@ -239,7 +239,7 @@ class AppletInterface : public PlasmaQuick::AppletQuickItem
Q_PROPERTY(QVariantList availableScreenRegion READ availableScreenRegion NOTIFY availableScreenRegionChanged)
public:
AppletInterface(DeclarativeAppletScript *script, const QVariantList &args = QVariantList(), QQuickItem *parent = 0);
AppletInterface(DeclarativeAppletScript *script, const QVariantList &args = QVariantList(), QQuickItem *parent = nullptr);
~AppletInterface();
//API not intended for the QML part

View File

@ -51,7 +51,7 @@ class WallpaperInterface : public QQuickItem
Q_PROPERTY(KDeclarative::ConfigPropertyMap *configuration READ configuration NOTIFY configurationChanged)
public:
WallpaperInterface(ContainmentInterface *parent = 0);
WallpaperInterface(ContainmentInterface *parent = nullptr);
~WallpaperInterface();
/**