Commit 31421a6e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use nullptr

parent d863086f
......@@ -38,7 +38,7 @@ class AppMenuModel : public QAbstractListModel, public QAbstractNativeEventFilte
Q_PROPERTY(bool menuAvailable READ menuAvailable WRITE setMenuAvailable NOTIFY menuAvailableChanged)
public:
explicit AppMenuModel(QObject *parent = 0);
explicit AppMenuModel(QObject *parent = nullptr);
~AppMenuModel();
enum AppMenuRole {
......
......@@ -34,7 +34,7 @@ class TimeZoneFilterProxy : public QSortFilterProxyModel
Q_PROPERTY(QString filterString WRITE setFilterString MEMBER m_filterString NOTIFY filterStringChanged)
public:
explicit TimeZoneFilterProxy(QObject *parent = 0);
explicit TimeZoneFilterProxy(QObject *parent = nullptr);
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;
void setFilterString(const QString &filterString);
......@@ -55,7 +55,7 @@ class TimeZoneModel : public QAbstractListModel
Q_PROPERTY(QStringList selectedTimeZones WRITE setSelectedTimeZones MEMBER m_selectedTimeZones NOTIFY selectedTimeZonesChanged)
public:
explicit TimeZoneModel(QObject *parent = 0);
explicit TimeZoneModel(QObject *parent = nullptr);
~TimeZoneModel() override;
enum Roles {
......
......@@ -31,7 +31,7 @@ class TimezonesI18n : public QObject
Q_OBJECT
public:
TimezonesI18n(QObject *parent = 0);
TimezonesI18n(QObject *parent = nullptr);
Q_INVOKABLE QString i18nCity(const QString &city);
Q_INVOKABLE QString i18nContinents(const QString &continent);
Q_INVOKABLE QString i18nCountry(QLocale::Country country);
......
......@@ -33,7 +33,7 @@ Q_OBJECT
Q_PROPERTY(bool dragActive READ dragActive NOTIFY dragActiveChanged)
public:
DragHelper(QObject *parent = 0);
DragHelper(QObject *parent = nullptr);
~DragHelper();
bool dragActive() const;
......
......@@ -48,7 +48,7 @@ public:
};
Q_ENUM(PositionOnScreen)
NotificationsHelper(QObject *parent = 0);
NotificationsHelper(QObject *parent = nullptr);
~NotificationsHelper() override;
Q_INVOKABLE void addNotificationPopup(QObject *win);
Q_INVOKABLE void closePopup(const QString &sourceName);
......
......@@ -44,7 +44,7 @@ class KeyboardLayout : public QObject
NOTIFY layoutsChanged)
public:
KeyboardLayout(QObject *parent = 0);
KeyboardLayout(QObject *parent = nullptr);
~KeyboardLayout() override;
QString currentLayout() const;
......
......@@ -93,7 +93,7 @@ public:
FilterDataRole = Qt::UserRole+2,
SeparatorRole = Qt::UserRole+3
};
DefaultFilterModel(QObject *parent = 0);
DefaultFilterModel(QObject *parent = nullptr);
QHash<int, QByteArray> roleNames() const override;
......@@ -130,7 +130,7 @@ class DefaultItemFilterProxyModel : public QSortFilterProxyModel
Q_PROPERTY(int count READ count NOTIFY countChanged)
public:
DefaultItemFilterProxyModel(QObject *parent = 0);
DefaultItemFilterProxyModel(QObject *parent = nullptr);
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
bool lessThan(const QModelIndex &left, const QModelIndex &right) const override;
......
......@@ -44,7 +44,7 @@ class WidgetAction : public QAction
Q_PROPERTY(bool separator READ isSeparator WRITE setSeparator NOTIFY separatorChanged)
public:
WidgetAction(QObject *parent = 0);
WidgetAction(QObject *parent = nullptr);
WidgetAction(const QIcon &icon, const QString &text, QObject *parent);
Q_SIGNALS:
......@@ -96,7 +96,7 @@ class WidgetExplorer : public QObject, public QQmlParserStatus
Q_PROPERTY(Plasma::Containment *containment READ containment WRITE setContainment NOTIFY containmentChanged)
public:
explicit WidgetExplorer(QObject *parent = 0);
explicit WidgetExplorer(QObject *parent = nullptr);
~WidgetExplorer() override;
QString application();
......
......@@ -33,7 +33,7 @@ class ActivityJob : public Plasma::ServiceJob
Q_OBJECT
public:
ActivityJob(KActivities::Controller *controller, const QString &id, const QString &operation, QMap<QString, QVariant> &parameters, QObject *parent = 0);
ActivityJob(KActivities::Controller *controller, const QString &id, const QString &operation, QMap<QString, QVariant> &parameters, QObject *parent = nullptr);
~ActivityJob() override;
protected:
......
......@@ -69,7 +69,7 @@ public:
Stopped = 2
};
JobView(QObject *parent = 0);
JobView(QObject *parent = nullptr);
~JobView() override;
uint jobId() const;
......
......@@ -31,7 +31,7 @@ class AppJob : public Plasma::ServiceJob
Q_OBJECT
public:
AppJob(AppSource *source, const QString &operation, QMap<QString, QVariant> &parameters, QObject *parent = 0);
AppJob(AppSource *source, const QString &operation, QMap<QString, QVariant> &parameters, QObject *parent = nullptr);
~AppJob() override;
protected:
......
......@@ -27,7 +27,7 @@ class ExecutableContainer : public Plasma::DataContainer
{
Q_OBJECT
public:
explicit ExecutableContainer(const QString& command, QObject *parent = 0);
explicit ExecutableContainer(const QString& command, QObject *parent = nullptr);
~ExecutableContainer() override;
protected Q_SLOTS:
......
......@@ -33,7 +33,7 @@ class MultiplexedService : public Plasma::Service
Q_OBJECT
public:
MultiplexedService(Multiplexer *multiplexer, QObject *parent = 0);
MultiplexedService(Multiplexer *multiplexer, QObject *parent = nullptr);
protected:
Plasma::ServiceJob *createJob(const QString &operation,
......
......@@ -33,7 +33,7 @@ class Multiplexer : public Plasma::DataContainer
public:
static const QLatin1String sourceName;
explicit Multiplexer(QObject *parent = 0);
explicit Multiplexer(QObject *parent = nullptr);
void addPlayer(PlayerContainer *container);
void removePlayer(const QString &name);
......
......@@ -28,7 +28,7 @@ class PackagekitService : public Plasma::Service
{
Q_OBJECT
public:
PackagekitService(QObject* parent = 0);
PackagekitService(QObject* parent = nullptr);
Plasma::ServiceJob* createJob(const QString& operation, QMap< QString, QVariant >& parameters) override;
};
......
......@@ -29,7 +29,7 @@ class PowerManagementJob : public Plasma::ServiceJob
public:
PowerManagementJob(const QString &operation, QMap<QString, QVariant> &parameters,
QObject *parent = 0);
QObject *parent = nullptr);
~PowerManagementJob() override;
protected:
......
......@@ -32,7 +32,7 @@ class PowerManagementService : public Plasma::Service
Q_OBJECT
public:
PowerManagementService(QObject *parent = 0);
PowerManagementService(QObject *parent = nullptr);
ServiceJob *createJob(const QString &operation, QMap<QString, QVariant> &parameters) override;
};
......
......@@ -35,7 +35,7 @@ class ShareProvider : public QObject
Q_OBJECT
public:
ShareProvider(KJSEmbed::Engine* engine, QObject *parent = 0);
ShareProvider(KJSEmbed::Engine* engine, QObject *parent = nullptr);
QString method() const;
void setMethod(const QString &method);
......
......@@ -52,7 +52,7 @@ class ShareJob : public Plasma::ServiceJob
public:
ShareJob(const QString &destination, const QString &operation,
QMap<QString, QVariant> &parameters, QObject *parent = 0);
QMap<QString, QVariant> &parameters, QObject *parent = nullptr);
~ShareJob() override;
void start() override;
......
......@@ -28,7 +28,7 @@ class DeviceSignalMapManager : public QObject
Q_OBJECT
public:
DeviceSignalMapManager(QObject *parent=0);
DeviceSignalMapManager(QObject *parent = nullptr);
~DeviceSignalMapManager() override;
void mapDevice(Solid::Battery *battery, const QString &udi);
......
Supports Markdown
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