Commit 62a794c6 authored by Laurent Montel's avatar Laurent Montel 😁

GIT_SILENT: use nullptr now

parent a27551ac
......@@ -32,7 +32,7 @@ class COISCEIM_WIDGET_EXPORT CoisceimWidget : public QWidget
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "org.kde.coisceim.CoisceimWidget")
public:
CoisceimWidget(QWidget *parent = Q_NULLPTR);
CoisceimWidget(QWidget *parent = nullptr);
Q_INVOKABLE void createTrip();
......
......@@ -33,7 +33,7 @@ class CreateFolderContentsWidget : public QStackedWidget
{
Q_OBJECT
public:
explicit CreateFolderContentsWidget(Trip *trip, int role, const QString &type, QWidget *parent = Q_NULLPTR);
explicit CreateFolderContentsWidget(Trip *trip, int role, const QString &type, QWidget *parent = nullptr);
void clear();
......
......@@ -39,7 +39,7 @@ class CreateTripWidget : public QWidget
{
Q_OBJECT
public:
explicit CreateTripWidget(Trip *trip, Akonadi::Monitor *monitor, QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
explicit CreateTripWidget(Trip *trip, Akonadi::Monitor *monitor, QWidget *parent = nullptr, Qt::WindowFlags f = 0);
private Q_SLOTS:
void tripSelected(const Akonadi::Item &item);
......
......@@ -36,7 +36,7 @@ class EventSelectorDialog : public QDialog
{
Q_OBJECT
public:
explicit EventSelectorDialog(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
explicit EventSelectorDialog(QWidget *parent = nullptr, Qt::WindowFlags f = 0);
Akonadi::Item selectedItem();
......@@ -48,7 +48,7 @@ class EventSelectorWidget : public QWidget
{
Q_OBJECT
public:
explicit EventSelectorWidget(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
explicit EventSelectorWidget(QWidget *parent = nullptr, Qt::WindowFlags f = 0);
void clear();
......
......@@ -37,7 +37,7 @@ class FolderContentsWidget : public QWidget
{
Q_OBJECT
public:
explicit FolderContentsWidget(Trip *trip, int role, const QString &type, QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
explicit FolderContentsWidget(Trip *trip, int role, const QString &type, QWidget *parent = nullptr, Qt::WindowFlags f = 0);
QItemSelectionModel *selectionModel() const;
......
......@@ -41,7 +41,7 @@ public:
TodoType,
NotesType
};
explicit ItemSelection(QItemSelectionModel *selModel1, QItemSelectionModel *selModel2, QItemSelectionModel *selModel3, QObject *parent = Q_NULLPTR);
explicit ItemSelection(QItemSelectionModel *selModel1, QItemSelectionModel *selModel2, QItemSelectionModel *selModel3, QObject *parent = nullptr);
QModelIndex index() const;
......
......@@ -51,7 +51,7 @@ class ItemViewerWidget : public QWidget
{
Q_OBJECT
public:
ItemViewerWidget(ItemSelection *selectionModel, QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
ItemViewerWidget(ItemSelection *selectionModel, QWidget *parent = nullptr, Qt::WindowFlags f = 0);
private Q_SLOTS:
void selectionChanged(const QModelIndex &index);
......
......@@ -35,7 +35,7 @@ class MixedTreeModel : public Akonadi::EntityTreeModel
{
Q_OBJECT
public:
MixedTreeModel(Akonadi::Monitor *monitor, QObject *parent = Q_NULLPTR);
MixedTreeModel(Akonadi::Monitor *monitor, QObject *parent = nullptr);
/* reimp */ int entityColumnCount(HeaderGroup headerGroup) const Q_DECL_OVERRIDE;
/* reimp */ QVariant entityHeaderData(int section, Qt::Orientation orientation, int role, HeaderGroup headerGroup) const Q_DECL_OVERRIDE;
......
......@@ -36,7 +36,7 @@ class NoteViewer : public QWidget
{
Q_OBJECT
public:
NoteViewer(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
NoteViewer(QWidget *parent = nullptr, Qt::WindowFlags f = 0);
void setIndex(const QPersistentModelIndex &index);
......
......@@ -47,8 +47,8 @@ public:
};
//Q_DECLARE_FLAGS(SelectionFlags, SelectionFlag)
explicit QMLListSelectionModel(QItemSelectionModel *selectionModel, QObject *parent = Q_NULLPTR);
explicit QMLListSelectionModel(QAbstractItemModel *model, QObject *parent = Q_NULLPTR);
explicit QMLListSelectionModel(QItemSelectionModel *selectionModel, QObject *parent = nullptr);
explicit QMLListSelectionModel(QAbstractItemModel *model, QObject *parent = nullptr);
QItemSelectionModel *selectionModel() const;
......
......@@ -32,7 +32,7 @@ class StackedWidgetView : public QStackedWidget
{
Q_OBJECT
public:
explicit StackedWidgetView(int widgetRole, QWidget *parent = Q_NULLPTR);
explicit StackedWidgetView(int widgetRole, QWidget *parent = nullptr);
void setModel(QAbstractItemModel *model);
void setSelectionModel(QItemSelectionModel *selectionModel);
......
......@@ -28,7 +28,7 @@ class TodoCheckableProxyModel : public KCheckableProxyModel
{
Q_OBJECT
public:
TodoCheckableProxyModel(QObject *parent = Q_NULLPTR);
TodoCheckableProxyModel(QObject *parent = nullptr);
void setSourceModel(QAbstractItemModel *sourceModel) Q_DECL_OVERRIDE;
......
......@@ -56,7 +56,7 @@ public:
TodoCollectionRole,
NotesCollectionRole
};
Trip(const QPersistentModelIndex &index, Akonadi::Monitor *monitor, TripComponentFactory *factory, QObject *parent = Q_NULLPTR);
Trip(const QPersistentModelIndex &index, Akonadi::Monitor *monitor, TripComponentFactory *factory, QObject *parent = nullptr);
QString eventName() const;
QString eventDescription() const;
......
......@@ -38,7 +38,7 @@ public:
TripRole = MixedTreeModel::UserRole + 1,
WidgetRole
};
explicit TripModel(Akonadi::Monitor *monitor, QObject *parent = Q_NULLPTR);
explicit TripModel(Akonadi::Monitor *monitor, QObject *parent = nullptr);
bool removeRows(int, int, const QModelIndex & = QModelIndex()) Q_DECL_OVERRIDE;
int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
......
......@@ -34,7 +34,7 @@ class TripWidget : public QWidget
{
Q_OBJECT
public:
TripWidget(Trip *trip, QWidget *parent = Q_NULLPTR);
TripWidget(Trip *trip, QWidget *parent = nullptr);
QString eventName() const;
......
......@@ -28,7 +28,7 @@
class CategorisedEntityModel : public MixedTreeModel
{
public:
CategorisedEntityModel(Akonadi::Monitor *monitor, QObject *parent = Q_NULLPTR)
CategorisedEntityModel(Akonadi::Monitor *monitor, QObject *parent = nullptr)
: MixedTreeModel(monitor, parent)
{
......
......@@ -32,7 +32,7 @@ class Checkable2 : public QWidget
{
Q_OBJECT
public:
Checkable2(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
Checkable2(QWidget *parent = nullptr, Qt::WindowFlags f = 0);
private:
QTreeView *m_itemView;
......
......@@ -40,7 +40,7 @@ class CollectionMonitoredWidget : public QWidget
{
Q_OBJECT
public:
CollectionMonitoredWidget(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
CollectionMonitoredWidget(QWidget *parent = nullptr, Qt::WindowFlags f = 0);
private Q_SLOTS:
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
......
......@@ -33,7 +33,7 @@ class DescTabWidget : public QWidget
{
Q_OBJECT
public:
DescTabWidget(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
DescTabWidget(QWidget *parent = nullptr, Qt::WindowFlags f = 0);
public Q_SLOTS:
void connectProxy();
......
......@@ -34,7 +34,7 @@ class FindingETW : public EntityTreeWidget
{
Q_OBJECT
public:
FindingETW(QWidget *parent = Q_NULLPTR);
FindingETW(QWidget *parent = nullptr);
void connectTreeToModel(QTreeView *tree, Akonadi::EntityTreeModel *model) Q_DECL_OVERRIDE;
......@@ -47,7 +47,7 @@ class EntityFindingWidget : public QWidget
{
Q_OBJECT
public:
EntityFindingWidget(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
EntityFindingWidget(QWidget *parent = nullptr, Qt::WindowFlags f = 0);
private Q_SLOTS:
......
......@@ -30,7 +30,7 @@ class EntityTreeModelFactory : public QObject
{
Q_OBJECT
public:
EntityTreeModelFactory(QObject *parent = Q_NULLPTR);
EntityTreeModelFactory(QObject *parent = nullptr);
void createFromRemoteId(const QString &remoteId);
......
......@@ -39,7 +39,7 @@ class EntityTreeWidget : public QWidget
{
Q_OBJECT
public:
EntityTreeWidget(QWidget *parent = Q_NULLPTR);
EntityTreeWidget(QWidget *parent = nullptr);
virtual ~EntityTreeWidget();
QTreeView *view() const;
......
......@@ -45,7 +45,7 @@ class ItemViewerWidget : public QWidget
{
Q_OBJECT
public:
ItemViewerWidget(QItemSelectionModel *selectionModel, QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
ItemViewerWidget(QItemSelectionModel *selectionModel, QWidget *parent = nullptr, Qt::WindowFlags f = 0);
private Q_SLOTS:
void selectionChanged(const QItemSelection selected, const QItemSelection &deselected);
......
......@@ -34,7 +34,7 @@ class MailModel : public EntityTreeModel
Q_OBJECT
public:
explicit MailModel(Monitor *monitor, QObject *parent = Q_NULLPTR);
explicit MailModel(Monitor *monitor, QObject *parent = nullptr);
virtual ~MailModel();
QVariant entityData(const Item &item, int column, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
......
......@@ -30,7 +30,7 @@ class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = Q_NULLPTR, Qt::WindowFlags flags = 0);
MainWindow(QWidget *parent = nullptr, Qt::WindowFlags flags = 0);
};
#endif
......@@ -35,7 +35,7 @@ class MixedTreeModel : public Akonadi::EntityTreeModel
{
Q_OBJECT
public:
MixedTreeModel(Akonadi::Monitor *monitor, QObject *parent = Q_NULLPTR);
MixedTreeModel(Akonadi::Monitor *monitor, QObject *parent = nullptr);
/* reimp */ int entityColumnCount(HeaderGroup headerGroup) const Q_DECL_OVERRIDE;
/* reimp */ QVariant entityHeaderData(int section, Qt::Orientation orientation, int role, HeaderGroup headerGroup) const Q_DECL_OVERRIDE;
......
......@@ -36,7 +36,7 @@ class NoteViewer : public QWidget
{
Q_OBJECT
public:
NoteViewer(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
NoteViewer(QWidget *parent = nullptr, Qt::WindowFlags f = 0);
void setIndex(const QPersistentModelIndex &index);
......
......@@ -37,7 +37,7 @@ class RecursiveItemListWidget : public QWidget
{
Q_OBJECT
public:
RecursiveItemListWidget(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
RecursiveItemListWidget(QWidget *parent = nullptr, Qt::WindowFlags f = 0);
private:
QAbstractItemView *m_listView;
......
......@@ -30,7 +30,7 @@ class Tab1Widget : public QWidget
{
Q_OBJECT
public:
explicit Tab1Widget(QWidget *parent = Q_NULLPTR);
explicit Tab1Widget(QWidget *parent = nullptr);
};
......
......@@ -37,7 +37,7 @@
class Tab2_5TreeWidget : public EntityTreeWidget
{
public:
Tab2_5TreeWidget(QWidget *parent = Q_NULLPTR)
Tab2_5TreeWidget(QWidget *parent = nullptr)
: EntityTreeWidget(parent)
{
}
......
......@@ -35,7 +35,7 @@ class Tab2_5Widget : public QWidget
{
Q_OBJECT
public:
Tab2_5Widget(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
Tab2_5Widget(QWidget *parent = nullptr, Qt::WindowFlags f = 0);
private Q_SLOTS:
void setMappedRootIndex(const QModelIndex &index);
......
......@@ -36,7 +36,7 @@
class Tab2TreeWidget : public EntityTreeWidget
{
public:
Tab2TreeWidget(QWidget *parent = Q_NULLPTR)
Tab2TreeWidget(QWidget *parent = nullptr)
: EntityTreeWidget(parent)
{
}
......
......@@ -35,7 +35,7 @@ class Tab2Widget : public QWidget
{
Q_OBJECT
public:
Tab2Widget(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
Tab2Widget(QWidget *parent = nullptr, Qt::WindowFlags f = 0);
private Q_SLOTS:
void setMappedRootIndex(const QModelIndex &index);
......
......@@ -39,7 +39,7 @@
class Tab3TreeWidget : public EntityTreeWidget
{
public:
Tab3TreeWidget(QWidget *parent = Q_NULLPTR)
Tab3TreeWidget(QWidget *parent = nullptr)
: EntityTreeWidget(parent)
{
}
......
......@@ -34,7 +34,7 @@ class Tab3Widget : public QWidget
{
Q_OBJECT
public:
Tab3Widget(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
Tab3Widget(QWidget *parent = nullptr, Qt::WindowFlags f = 0);
private:
QTreeView *m_itemView;
......
......@@ -39,7 +39,7 @@
class Tab4TreeWidget : public EntityTreeWidget
{
public:
Tab4TreeWidget(QWidget *parent = Q_NULLPTR)
Tab4TreeWidget(QWidget *parent = nullptr)
: EntityTreeWidget(parent)
{
}
......
......@@ -34,7 +34,7 @@ class Tab4Widget : public QWidget
{
Q_OBJECT
public:
Tab4Widget(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
Tab4Widget(QWidget *parent = nullptr, Qt::WindowFlags f = 0);
private:
QTreeView *m_itemView;
......
......@@ -43,7 +43,7 @@
class Tab5TreeWidget : public EntityTreeWidget
{
public:
Tab5TreeWidget(QWidget *parent = Q_NULLPTR)
Tab5TreeWidget(QWidget *parent = nullptr)
: EntityTreeWidget(parent)
{
}
......
......@@ -34,7 +34,7 @@ class Tab5Widget : public QWidget
{
Q_OBJECT
public:
Tab5Widget(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
Tab5Widget(QWidget *parent = nullptr, Qt::WindowFlags f = 0);
private:
KCategorizedView *m_itemView;
......
......@@ -43,7 +43,7 @@
class Tab6TreeWidget : public EntityTreeWidget
{
public:
Tab6TreeWidget(QWidget *parent = Q_NULLPTR)
Tab6TreeWidget(QWidget *parent = nullptr)
: EntityTreeWidget(parent)
{
}
......
......@@ -34,7 +34,7 @@ class Tab6Widget : public QWidget
{
Q_OBJECT
public:
Tab6Widget(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
Tab6Widget(QWidget *parent = nullptr, Qt::WindowFlags f = 0);
private:
QTreeView *m_itemView;
......
......@@ -59,7 +59,7 @@ public:
class Tab7TreeWidget : public EntityTreeWidget
{
public:
Tab7TreeWidget(QWidget *parent = Q_NULLPTR)
Tab7TreeWidget(QWidget *parent = nullptr)
: EntityTreeWidget(parent), m_model(0)
{
}
......
......@@ -39,7 +39,7 @@ class Tab7Widget : public QWidget
{
Q_OBJECT
public:
Tab7Widget(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
Tab7Widget(QWidget *parent = nullptr, Qt::WindowFlags f = 0);
private Q_SLOTS:
void initModel(Akonadi::EntityTreeModel *model);
......