Commit 280b15da authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_NULLPTR

parent e93c2346
......@@ -70,7 +70,7 @@ class BirthdaySortModel : public QSortFilterProxyModel
{
Q_OBJECT
public:
explicit BirthdaySortModel(QObject* parent = 0);
explicit BirthdaySortModel(QObject* parent = Q_NULLPTR);
void setPrefixSuffix(const QString& prefix, const QString& suffix);
......
......@@ -50,7 +50,7 @@ class CollectionListModel : public KDescendantsProxyModel
{
Q_OBJECT
public:
explicit CollectionListModel(QObject* parent = 0);
explicit CollectionListModel(QObject* parent = Q_NULLPTR);
void setEventTypeFilter(CalEvent::Type);
void setFilterWritable(bool writable);
void setFilterEnabled(bool enabled);
......@@ -113,7 +113,7 @@ class CollectionFilterCheckListModel : public QSortFilterProxyModel
{
Q_OBJECT
public:
explicit CollectionFilterCheckListModel(QObject* parent = 0);
explicit CollectionFilterCheckListModel(QObject* parent = Q_NULLPTR);
void setEventTypeFilter(CalEvent::Type);
Akonadi::Collection collection(int row) const;
Akonadi::Collection collection(const QModelIndex&) const;
......@@ -288,7 +288,7 @@ class CollectionControlModel : public Akonadi::FavoriteCollectionsModel
void collectionPopulated();
private:
explicit CollectionControlModel(QObject* parent = 0);
explicit CollectionControlModel(QObject* parent = Q_NULLPTR);
void findEnabledCollections(const Akonadi::EntityMimeTypeFilterModel*, const QModelIndex& parent, Akonadi::Collection::List&) const;
CalEvent::Types setEnabledStatus(const Akonadi::Collection&, CalEvent::Types, bool inserted);
static CalEvent::Types checkTypesToEnable(const Akonadi::Collection&, const Akonadi::Collection::List&, CalEvent::Types);
......
......@@ -42,7 +42,7 @@ class ItemListModel : public Akonadi::EntityMimeTypeFilterModel
/** Constructor.
* @param allowed the alarm types (active/archived/template) included in this model
*/
explicit ItemListModel(CalEvent::Types allowed, QObject* parent = 0);
explicit ItemListModel(CalEvent::Types allowed, QObject* parent = Q_NULLPTR);
CalEvent::Types includedTypes() const { return mAllowedTypes; }
KAEvent event(int row) const;
......
......@@ -68,7 +68,7 @@ template <class T>
class StackedGroupT : public QObject
{
public:
explicit StackedGroupT(QObject* parent = 0) : QObject(parent) {}
explicit StackedGroupT(QObject* parent = Q_NULLPTR) : QObject(parent) {}
void addWidget(StackedWidgetT<T>* w) { mWidgets += w; }
void removeWidget(StackedWidgetT<T>* w) { mWidgets.removeAll(w); }
virtual QSize minimumSizeHint() const;
......
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