Commit 6f226d43 authored by Laurent Montel's avatar Laurent Montel 😁

Use nullptr

parent 94836d42
......@@ -38,7 +38,7 @@ public:
EmailColumn ///< The preferred email of the contact.
};
explicit ContactCompletionModel(Monitor *monitor, QObject *parent = 0);
explicit ContactCompletionModel(Monitor *monitor, QObject *parent = nullptr);
virtual ~ContactCompletionModel();
QVariant entityData(const Item &item, int column, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
......
......@@ -38,7 +38,7 @@ class ContactLineEdit : public QLineEdit
public:
explicit ContactLineEdit(bool isReference, ContactCompletionModel::Columns column,
QWidget *parent = 0);
QWidget *parent = nullptr);
bool isReference() const;
Akonadi::Item completedItem() const;
......@@ -60,7 +60,7 @@ class ContactGroupEditorDelegate : public QStyledItemDelegate
Q_OBJECT
public:
explicit ContactGroupEditorDelegate(QAbstractItemView *view, QObject *parent = 0);
explicit ContactGroupEditorDelegate(QAbstractItemView *view, QObject *parent = nullptr);
~ContactGroupEditorDelegate();
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE;
......
......@@ -39,7 +39,7 @@ public:
AllEmailsRole
};
explicit ContactGroupModel(QObject *parent = 0);
explicit ContactGroupModel(QObject *parent = nullptr);
~ContactGroupModel();
void loadContactGroup(const KContacts::ContactGroup &contactGroup);
......
......@@ -40,7 +40,7 @@ public:
EmailAddressRole
};
explicit EmailAddressSelectionProxyModel(QObject *parent = 0);
explicit EmailAddressSelectionProxyModel(QObject *parent = nullptr);
~EmailAddressSelectionProxyModel();
QVariant data(const QModelIndex &proxyIndex, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
......
......@@ -33,7 +33,7 @@ class LeafExtensionProxyModel : public QSortFilterProxyModel
Q_OBJECT
public:
explicit LeafExtensionProxyModel(QObject *parent = 0);
explicit LeafExtensionProxyModel(QObject *parent = nullptr);
~LeafExtensionProxyModel();
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
......
......@@ -36,7 +36,7 @@ class TextBrowser : public QTextBrowser
{
Q_OBJECT
public:
explicit TextBrowser(QWidget *parent = 0);
explicit TextBrowser(QWidget *parent = nullptr);
private Q_SLOTS:
void slotCopyData();
protected:
......
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