Commit 0cba99ca authored by Laurent Montel's avatar Laurent Montel 😁

GIT_SILENT: use nullptr

parent e587fa63
......@@ -38,7 +38,7 @@ class AddressesLocationGrantleeFormater : public QObject
{
Q_OBJECT
public:
explicit AddressesLocationGrantleeFormater(QObject *parent = Q_NULLPTR);
explicit AddressesLocationGrantleeFormater(QObject *parent = nullptr);
~AddressesLocationGrantleeFormater();
QString formatAddresses(const KContacts::Address::List &addresses);
......
......@@ -34,7 +34,7 @@ class AddressesLocationWidget : public QSplitter
{
Q_OBJECT
public:
explicit AddressesLocationWidget(QWidget *parent = Q_NULLPTR);
explicit AddressesLocationWidget(QWidget *parent = nullptr);
~AddressesLocationWidget();
void loadContact(const KContacts::Addressee &contact);
......
......@@ -43,7 +43,7 @@ class AddressGrantleeObject : public QObject
Q_PROPERTY(QString country READ country)
Q_PROPERTY(bool preferredAddress READ preferredAddress)
public:
explicit AddressGrantleeObject(const KContacts::Address &address, int addressIndex, QObject *parent = Q_NULLPTR);
explicit AddressGrantleeObject(const KContacts::Address &address, int addressIndex, QObject *parent = nullptr);
~AddressGrantleeObject();
QString removeAddressAction() const;
......
......@@ -42,7 +42,7 @@ public:
ModifyAddress
};
explicit AddressLocationWidget(QWidget *parent = Q_NULLPTR);
explicit AddressLocationWidget(QWidget *parent = nullptr);
~AddressLocationWidget();
void setAddress(const KContacts::Address &address);
......
......@@ -41,7 +41,7 @@ public:
*
* @param parent The parent widget.
*/
explicit SelectAddressTypeComboBox(QWidget *parent = Q_NULLPTR);
explicit SelectAddressTypeComboBox(QWidget *parent = nullptr);
/**
* Destroys the address type combo.
......
......@@ -30,7 +30,7 @@ class AddressesLocationEnginePage : public QWebEnginePage
{
Q_OBJECT
public:
explicit AddressesLocationEnginePage(QObject *parent = Q_NULLPTR);
explicit AddressesLocationEnginePage(QObject *parent = nullptr);
~AddressesLocationEnginePage();
Q_SIGNALS:
......
......@@ -31,7 +31,7 @@ class AddressesLocationEngineViewer : public QWebEngineView
{
Q_OBJECT
public:
explicit AddressesLocationEngineViewer(QWidget *parent = Q_NULLPTR);
explicit AddressesLocationEngineViewer(QWidget *parent = nullptr);
~AddressesLocationEngineViewer();
KContacts::Address::List addresses() const;
......
......@@ -35,7 +35,7 @@ class BusinessEditorWidget : public QWidget
{
Q_OBJECT
public:
explicit BusinessEditorWidget(QWidget *parent = Q_NULLPTR);
explicit BusinessEditorWidget(QWidget *parent = nullptr);
~BusinessEditorWidget();
void loadContact(const KContacts::Addressee &contact);
void storeContact(KContacts::Addressee &contact);
......
......@@ -36,7 +36,7 @@ class FreeBusyEditWidget : public QWidget
Q_OBJECT
public:
explicit FreeBusyEditWidget(QWidget *parent = Q_NULLPTR);
explicit FreeBusyEditWidget(QWidget *parent = nullptr);
~FreeBusyEditWidget();
void loadContact(const KContacts::Addressee &contact);
......
......@@ -47,7 +47,7 @@ public:
*
* @param parent The parent widget.
*/
explicit ContactEditorWidget(QWidget *parent = Q_NULLPTR);
explicit ContactEditorWidget(QWidget *parent = nullptr);
ContactEditorWidget(DisplayMode displayMode, QWidget *parent);
......
......@@ -35,7 +35,7 @@ class CustomFieldEditorWidget : public QWidget
{
Q_OBJECT
public:
explicit CustomFieldEditorWidget(QWidget *parent = Q_NULLPTR);
explicit CustomFieldEditorWidget(QWidget *parent = nullptr);
~CustomFieldEditorWidget();
void setReadOnly(bool readOnly);
......
......@@ -30,7 +30,7 @@ namespace Akonadi
class CustomFieldsListDelegate : public QStyledItemDelegate
{
public:
explicit CustomFieldsListDelegate(QAbstractItemView *view, QObject *parent = Q_NULLPTR);
explicit CustomFieldsListDelegate(QAbstractItemView *view, QObject *parent = nullptr);
~CustomFieldsListDelegate();
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE;
......
......@@ -37,7 +37,7 @@ class CustomFieldsListWidget : public QWidget
{
Q_OBJECT
public:
explicit CustomFieldsListWidget(QWidget *parent = Q_NULLPTR);
explicit CustomFieldsListWidget(QWidget *parent = nullptr);
~CustomFieldsListWidget();
void storeContact(KContacts::Addressee &contact) const;
void loadContact(const KContacts::Addressee &contact);
......
......@@ -35,7 +35,7 @@ public:
ScopeRole
};
explicit CustomFieldsModel(QObject *parent = Q_NULLPTR);
explicit CustomFieldsModel(QObject *parent = nullptr);
~CustomFieldsModel();
void setCustomFields(const CustomField::List &addresses);
......
......@@ -39,7 +39,7 @@ class CustomFieldsWidget : public QWidget
{
Q_OBJECT
public:
explicit CustomFieldsWidget(QWidget *parent = Q_NULLPTR);
explicit CustomFieldsWidget(QWidget *parent = nullptr);
~CustomFieldsWidget();
void storeContact(KContacts::Addressee &contact) const;
void loadContact(const KContacts::Addressee &contact);
......
......@@ -30,7 +30,7 @@ class AkonadiContactSelectTypeCombobox : public Akonadi::AkonadiContactComboBox
{
Q_OBJECT
public:
explicit AkonadiContactSelectTypeCombobox(QWidget *parent = Q_NULLPTR);
explicit AkonadiContactSelectTypeCombobox(QWidget *parent = nullptr);
~AkonadiContactSelectTypeCombobox();
QStringList selectTypeList() const;
......
......@@ -39,7 +39,7 @@ class CategoriesEditWidget : public QWidget
Q_OBJECT
public:
explicit CategoriesEditWidget(QWidget *parent = Q_NULLPTR);
explicit CategoriesEditWidget(QWidget *parent = nullptr);
~CategoriesEditWidget();
void loadContact(const KContacts::Addressee &contact);
......
......@@ -51,7 +51,7 @@ public:
CustomName ///< Let the user input a display name
};
explicit DisplayNameEditWidget(QWidget *parent = Q_NULLPTR);
explicit DisplayNameEditWidget(QWidget *parent = nullptr);
~DisplayNameEditWidget();
void loadContact(const KContacts::Addressee &contact);
......
......@@ -44,7 +44,7 @@ class GeneralInfoWidget : public QWidget
{
Q_OBJECT
public:
explicit GeneralInfoWidget(QWidget *parent = Q_NULLPTR);
explicit GeneralInfoWidget(QWidget *parent = nullptr);
~GeneralInfoWidget();
void loadContact(const KContacts::Addressee &contact);
......
......@@ -35,7 +35,7 @@ class MailListWidget : public QWidget
{
Q_OBJECT
public:
explicit MailListWidget(QWidget *parent = Q_NULLPTR);
explicit MailListWidget(QWidget *parent = nullptr);
~MailListWidget();
void loadContact(const KContacts::Addressee &contact);
void storeContact(KContacts::Addressee &contact) const;
......
......@@ -34,7 +34,7 @@ class MailWidget : public QWidget
{
Q_OBJECT
public:
explicit MailWidget(QWidget *parent = Q_NULLPTR);
explicit MailWidget(QWidget *parent = nullptr);
~MailWidget();
void clearWidget();
......
......@@ -35,7 +35,7 @@ class MailWidgetLister : public KWidgetLister
{
Q_OBJECT
public:
explicit MailWidgetLister(QWidget *parent = Q_NULLPTR);
explicit MailWidgetLister(QWidget *parent = nullptr);
~MailWidgetLister();
void loadContact(const KContacts::Addressee &contact);
......
......@@ -35,7 +35,7 @@ class MessagingListWidget : public QWidget
{
Q_OBJECT
public:
explicit MessagingListWidget(QWidget *parent = Q_NULLPTR);
explicit MessagingListWidget(QWidget *parent = nullptr);
~MessagingListWidget();
void loadContact(const KContacts::Addressee &contact);
......
......@@ -35,7 +35,7 @@ class MessagingWidget : public QWidget
{
Q_OBJECT
public:
explicit MessagingWidget(QWidget *parent = Q_NULLPTR);
explicit MessagingWidget(QWidget *parent = nullptr);
~MessagingWidget();
void updateAddRemoveButton(bool addButtonEnabled);
......
......@@ -35,7 +35,7 @@ class MessagingWidgetLister : public KWidgetLister
{
Q_OBJECT
public:
explicit MessagingWidgetLister(QWidget *parent = Q_NULLPTR);
explicit MessagingWidgetLister(QWidget *parent = nullptr);
~MessagingWidgetLister();
void loadContact(const KContacts::Addressee &contact);
......
......@@ -34,7 +34,7 @@ class NameEditDialog : public QDialog
{
Q_OBJECT
public:
explicit NameEditDialog(QWidget *parent = Q_NULLPTR);
explicit NameEditDialog(QWidget *parent = nullptr);
void setFamilyName(const QString &name);
QString familyName() const;
......
......@@ -35,7 +35,7 @@ class NameWidget : public QWidget
{
Q_OBJECT
public:
explicit NameWidget(QWidget *parent = Q_NULLPTR);
explicit NameWidget(QWidget *parent = nullptr);
~NameWidget();
void loadContact(const KContacts::Addressee &contact);
......
......@@ -35,7 +35,7 @@ class NicknameWidget : public QWidget
{
Q_OBJECT
public:
explicit NicknameWidget(QWidget *parent = Q_NULLPTR);
explicit NicknameWidget(QWidget *parent = nullptr);
~NicknameWidget();
void loadContact(const KContacts::Addressee &contact);
void storeContact(KContacts::Addressee &contact) const;
......
......@@ -41,7 +41,7 @@ public:
*
* @param parent The parent widget.
*/
explicit PhoneComboBoxType(QWidget *parent = Q_NULLPTR);
explicit PhoneComboBoxType(QWidget *parent = nullptr);
/**
* Destroys the phone type combo.
......
......@@ -36,7 +36,7 @@ class PhoneListWidget : public QWidget
{
Q_OBJECT
public:
explicit PhoneListWidget(QWidget *parent = Q_NULLPTR);
explicit PhoneListWidget(QWidget *parent = nullptr);
~PhoneListWidget();
void loadContact(const KContacts::Addressee &contact);
void storeContact(KContacts::Addressee &contact) const;
......
......@@ -40,7 +40,7 @@ public:
* @param type The initial type of the phone number.
* @param parent The parent widget.
*/
explicit PhoneTypeDialog(KContacts::PhoneNumber::Type type, QWidget *parent = Q_NULLPTR);
explicit PhoneTypeDialog(KContacts::PhoneNumber::Type type, QWidget *parent = nullptr);
/**
* Returns the selected type.
......
......@@ -37,7 +37,7 @@ class PhoneWidget : public QWidget
{
Q_OBJECT
public:
explicit PhoneWidget(QWidget *parent = Q_NULLPTR);
explicit PhoneWidget(QWidget *parent = nullptr);
~PhoneWidget();
void updateAddRemoveButton(bool addButtonEnabled);
......
......@@ -35,7 +35,7 @@ class PhoneWidgetLister : public KWidgetLister
{
Q_OBJECT
public:
explicit PhoneWidgetLister(QWidget *parent = Q_NULLPTR);
explicit PhoneWidgetLister(QWidget *parent = nullptr);
~PhoneWidgetLister();
void loadContact(const KContacts::Addressee &contact);
......
......@@ -36,7 +36,7 @@ class WebListWidget : public QWidget
{
Q_OBJECT
public:
explicit WebListWidget(QWidget *parent = Q_NULLPTR);
explicit WebListWidget(QWidget *parent = nullptr);
~WebListWidget();
void loadContact(const KContacts::Addressee &contact);
void storeContact(KContacts::Addressee &contact) const;
......
......@@ -35,7 +35,7 @@ class WebWidget : public QWidget
{
Q_OBJECT
public:
explicit WebWidget(QWidget *parent = Q_NULLPTR);
explicit WebWidget(QWidget *parent = nullptr);
~WebWidget();
void updateAddRemoveButton(bool addButtonEnabled);
......
......@@ -35,7 +35,7 @@ class WebWidgetLister : public KWidgetLister
{
Q_OBJECT
public:
explicit WebWidgetLister(QWidget *parent = Q_NULLPTR);
explicit WebWidgetLister(QWidget *parent = nullptr);
~WebWidgetLister();
void loadContact(const KContacts::Addressee &contact);
......
......@@ -36,7 +36,7 @@ class DateView : public QLineEdit
Q_OBJECT
public:
explicit DateView(QWidget *parent = Q_NULLPTR);
explicit DateView(QWidget *parent = nullptr);
Q_SIGNALS:
void resetDate();
......@@ -59,7 +59,7 @@ public:
Anniversary
};
explicit DateEditWidget(Type type = General, QWidget *parent = Q_NULLPTR);
explicit DateEditWidget(Type type = General, QWidget *parent = nullptr);
~DateEditWidget();
void setDate(const QDate &date);
......
......@@ -66,7 +66,7 @@ public:
*/
explicit KDatePickerPopup(Items items = DatePicker,
const QDate &date = QDate::currentDate(),
QWidget *parent = Q_NULLPTR);
QWidget *parent = nullptr);
/**
@return A pointer to the private variable mDatePicker, an instance of
......
......@@ -36,7 +36,7 @@ class PersonalEditorWidget : public QWidget
{
Q_OBJECT
public:
explicit PersonalEditorWidget(QWidget *parent = Q_NULLPTR);
explicit PersonalEditorWidget(QWidget *parent = nullptr);
~PersonalEditorWidget();
void loadContact(const KContacts::Addressee &contact);
void storeContact(KContacts::Addressee &contact);
......
......@@ -30,7 +30,7 @@ class AkonadiContactComboBox : public QComboBox
{
Q_OBJECT
public:
explicit AkonadiContactComboBox(QWidget *parent = Q_NULLPTR);
explicit AkonadiContactComboBox(QWidget *parent = nullptr);
~AkonadiContactComboBox();
protected:
......
......@@ -44,7 +44,7 @@ public:
Logo
};
explicit ImageWidget(Type type, QWidget *parent = Q_NULLPTR);
explicit ImageWidget(Type type, QWidget *parent = nullptr);
~ImageWidget();
void loadContact(const KContacts::Addressee &contact);
......
......@@ -69,7 +69,7 @@ public:
* @param maxWidgets The maximum number of widgets to stay on the screen.
* @param parent The parent widget.
*/
explicit KWidgetLister(int minWidgets = 1, int maxWidgets = 8, QWidget *parent = Q_NULLPTR);
explicit KWidgetLister(int minWidgets = 1, int maxWidgets = 8, QWidget *parent = nullptr);
/**
* Destroys the widget lister.
......@@ -115,7 +115,7 @@ protected:
* from derived classes (@p mLayout is private).
* Make sure the parent of the QWidget to add is this KWidgetLister.
*/
virtual void addWidgetAtEnd(QWidget *widget = Q_NULLPTR);
virtual void addWidgetAtEnd(QWidget *widget = nullptr);
/**
* Removes a single (always the last) widget. Doesn't care if there
......@@ -169,7 +169,7 @@ protected:
/**
* Add widget after specific widget
*/
virtual void addWidgetAfterThisWidget(QWidget *currentWidget, QWidget *widget = Q_NULLPTR);
virtual void addWidgetAfterThisWidget(QWidget *currentWidget, QWidget *widget = nullptr);
private:
void init();
......
......@@ -31,7 +31,7 @@ class PreferredLineEditWidget : public KLineEdit
{
Q_OBJECT
public:
explicit PreferredLineEditWidget(QWidget *parent = Q_NULLPTR);
explicit PreferredLineEditWidget(QWidget *parent = nullptr);
~PreferredLineEditWidget();
bool preferred() const;
......
......@@ -73,7 +73,7 @@ public:
* @param group The contact group to expand.
* @param parent The parent object.
*/
explicit ContactGroupExpandJob(const KContacts::ContactGroup &group, QObject *parent = Q_NULLPTR);
explicit ContactGroupExpandJob(const KContacts::ContactGroup &group, QObject *parent = nullptr);
/**
* Creates a new contact group expand job.
......@@ -83,7 +83,7 @@ public:
*
* @since 4.5
*/
explicit ContactGroupExpandJob(const QString &name, QObject *parent = Q_NULLPTR);
explicit ContactGroupExpandJob(const QString &name, QObject *parent = nullptr);
/**
* Destroys the contact group expand job.
......
......@@ -67,7 +67,7 @@ public:
*
* @param parent The parent object.
*/
explicit ContactGroupSearchJob(QObject *parent = Q_NULLPTR);
explicit ContactGroupSearchJob(QObject *parent = nullptr);
/**
* Destroys the contact group search job.
......
......@@ -86,7 +86,7 @@ public:
*
* @param parent The parent object.
*/
explicit ContactSearchJob(QObject *parent = Q_NULLPTR);
explicit ContactSearchJob(QObject *parent = nullptr);
/**
* Destroys the contact search job.
......
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