diff --git a/libs/color/colord/KisColord.h b/libs/color/colord/KisColord.h --- a/libs/color/colord/KisColord.h +++ b/libs/color/colord/KisColord.h @@ -47,7 +47,7 @@ { Q_OBJECT public: - KisColord(QObject *parent = 0); + KisColord(QObject *parent = nullptr); ~KisColord() override; QStringList devices(const QString &type) const; diff --git a/libs/command/kis_command_utils.h b/libs/command/kis_command_utils.h --- a/libs/command/kis_command_utils.h +++ b/libs/command/kis_command_utils.h @@ -37,9 +37,9 @@ * the context of the stroke, not from the GUI thread. */ struct KRITACOMMAND_EXPORT AggregateCommand : public KUndo2Command { - AggregateCommand(KUndo2Command *parent = 0); + AggregateCommand(KUndo2Command *parent = nullptr); AggregateCommand(const KUndo2MagicString &text, - KUndo2Command *parent = 0); + KUndo2Command *parent = nullptr); void redo() override; void undo() override; @@ -78,7 +78,7 @@ struct KRITACOMMAND_EXPORT SkipFirstRedoWrapper : public KUndo2Command { - SkipFirstRedoWrapper(KUndo2Command *child = 0, KUndo2Command *parent = 0); + SkipFirstRedoWrapper(KUndo2Command *child = 0, KUndo2Command *parent = nullptr); void redo() override; void undo() override; @@ -89,8 +89,8 @@ struct KRITACOMMAND_EXPORT SkipFirstRedoBase : public KUndo2Command { - SkipFirstRedoBase(bool skipFirstRedo, KUndo2Command *parent = 0); - SkipFirstRedoBase(bool skipFirstRedo, const KUndo2MagicString &text, KUndo2Command *parent = 0); + SkipFirstRedoBase(bool skipFirstRedo, KUndo2Command *parent = nullptr); + SkipFirstRedoBase(bool skipFirstRedo, const KUndo2MagicString &text, KUndo2Command *parent = nullptr); void redo() override final; void undo() override final; @@ -112,8 +112,8 @@ FINALIZING // After redo; before undo. }; - FlipFlopCommand(State initialState, KUndo2Command *parent = 0); - FlipFlopCommand(bool finalizing = false, KUndo2Command *parent = 0); + FlipFlopCommand(State initialState, KUndo2Command *parent = nullptr); + FlipFlopCommand(bool finalizing = false, KUndo2Command *parent = nullptr); void redo() override; // partA -> redo command -> partB void undo() override; // partB -> undo command -> partA @@ -131,7 +131,7 @@ }; struct KRITACOMMAND_EXPORT CompositeCommand : public KUndo2Command { - CompositeCommand(KUndo2Command *parent = 0); + CompositeCommand(KUndo2Command *parent = nullptr); ~CompositeCommand() override; void addCommand(KUndo2Command *cmd); diff --git a/libs/command/kundo2group.h b/libs/command/kundo2group.h --- a/libs/command/kundo2group.h +++ b/libs/command/kundo2group.h @@ -59,7 +59,7 @@ Q_DECLARE_PRIVATE(KUndo2Group) public: - explicit KUndo2Group(QObject *parent = 0); + explicit KUndo2Group(QObject *parent = nullptr); ~KUndo2Group() override; void addStack(KUndo2QStack *stack); diff --git a/libs/command/kundo2model.h b/libs/command/kundo2model.h --- a/libs/command/kundo2model.h +++ b/libs/command/kundo2model.h @@ -68,7 +68,7 @@ { Q_OBJECT public: - explicit KUndo2Model(QObject *parent = 0); + explicit KUndo2Model(QObject *parent = nullptr); KUndo2QStack *stack() const; diff --git a/libs/command/kundo2stack.h b/libs/command/kundo2stack.h --- a/libs/command/kundo2stack.h +++ b/libs/command/kundo2stack.h @@ -100,8 +100,8 @@ int timedID; public: - explicit KUndo2Command(KUndo2Command *parent = 0); - explicit KUndo2Command(const KUndo2MagicString &text, KUndo2Command *parent = 0); + explicit KUndo2Command(KUndo2Command *parent = nullptr); + explicit KUndo2Command(const KUndo2MagicString &text, KUndo2Command *parent = nullptr); virtual ~KUndo2Command(); virtual void undo(); @@ -170,7 +170,7 @@ Q_PROPERTY(int undoLimit READ undoLimit WRITE setUndoLimit) public: - explicit KUndo2QStack(QObject *parent = 0); + explicit KUndo2QStack(QObject *parent = nullptr); ~KUndo2QStack() override; void clear(); @@ -259,7 +259,7 @@ class KRITACOMMAND_EXPORT KUndo2Stack : public KUndo2QStack { public: - explicit KUndo2Stack(QObject *parent = 0); + explicit KUndo2Stack(QObject *parent = nullptr); // functions from KUndoStack QAction* createRedoAction(KActionCollection* actionCollection, const QString& actionName = QString()); diff --git a/libs/command/kundo2stack_p.h b/libs/command/kundo2stack_p.h --- a/libs/command/kundo2stack_p.h +++ b/libs/command/kundo2stack_p.h @@ -80,7 +80,7 @@ { Q_OBJECT public: - KUndo2Action(const QString &textTemplate, const QString &defaultText, QObject *parent = 0); + KUndo2Action(const QString &textTemplate, const QString &defaultText, QObject *parent = nullptr); public Q_SLOTS: void setPrefixedText(const QString &text); private: diff --git a/libs/command/kundo2view.h b/libs/command/kundo2view.h --- a/libs/command/kundo2view.h +++ b/libs/command/kundo2view.h @@ -78,10 +78,10 @@ Q_PROPERTY(QIcon cleanIcon READ cleanIcon WRITE setCleanIcon) public: - explicit KUndo2View(QWidget *parent = 0); - explicit KUndo2View(KUndo2QStack *stack, QWidget *parent = 0); + explicit KUndo2View(QWidget *parent = nullptr); + explicit KUndo2View(KUndo2QStack *stack, QWidget *parent = nullptr); #ifndef QT_NO_UNDOGROUP - explicit KUndo2View(KUndo2Group *group, QWidget *parent = 0); + explicit KUndo2View(KUndo2Group *group, QWidget *parent = nullptr); #endif ~KUndo2View() override; diff --git a/libs/flake/KoCanvasController.h b/libs/flake/KoCanvasController.h --- a/libs/flake/KoCanvasController.h +++ b/libs/flake/KoCanvasController.h @@ -336,7 +336,7 @@ Q_OBJECT Q_DISABLE_COPY(KoCanvasControllerProxyObject) public: - explicit KoCanvasControllerProxyObject(KoCanvasController *canvasController, QObject *parent = 0); + explicit KoCanvasControllerProxyObject(KoCanvasController *canvasController, QObject *parent = nullptr); public: diff --git a/libs/flake/KoCanvasControllerWidget.h b/libs/flake/KoCanvasControllerWidget.h --- a/libs/flake/KoCanvasControllerWidget.h +++ b/libs/flake/KoCanvasControllerWidget.h @@ -46,7 +46,7 @@ * @param actionCollection the action collection for this widget * @param parent the parent this widget will belong to */ - explicit KoCanvasControllerWidget(KActionCollection * actionCollection, QWidget *parent = 0); + explicit KoCanvasControllerWidget(KActionCollection * actionCollection, QWidget *parent = nullptr); ~KoCanvasControllerWidget() override; /** diff --git a/libs/flake/KoCanvasResourceProvider.h b/libs/flake/KoCanvasResourceProvider.h --- a/libs/flake/KoCanvasResourceProvider.h +++ b/libs/flake/KoCanvasResourceProvider.h @@ -99,7 +99,7 @@ * Constructor. * @param parent the parent QObject, used for memory management. */ - explicit KoCanvasResourceProvider(QObject *parent = 0); + explicit KoCanvasResourceProvider(QObject *parent = nullptr); ~KoCanvasResourceProvider() override; public Q_SLOTS: diff --git a/libs/flake/KoDocumentResourceManager.h b/libs/flake/KoDocumentResourceManager.h --- a/libs/flake/KoDocumentResourceManager.h +++ b/libs/flake/KoDocumentResourceManager.h @@ -95,7 +95,7 @@ * Constructor. * @param parent the parent QObject, used for memory management. */ - explicit KoDocumentResourceManager(QObject *parent = 0); + explicit KoDocumentResourceManager(QObject *parent = nullptr); ~KoDocumentResourceManager() override; /** diff --git a/libs/flake/KoFilterEffectConfigWidgetBase.h b/libs/flake/KoFilterEffectConfigWidgetBase.h --- a/libs/flake/KoFilterEffectConfigWidgetBase.h +++ b/libs/flake/KoFilterEffectConfigWidgetBase.h @@ -30,7 +30,7 @@ { Q_OBJECT public: - explicit KoFilterEffectConfigWidgetBase(QWidget *parent = 0); + explicit KoFilterEffectConfigWidgetBase(QWidget *parent = nullptr); ~KoFilterEffectConfigWidgetBase() override {}; /// Sets the filter effect to be edited by the config widget diff --git a/libs/flake/KoImageCollection.h b/libs/flake/KoImageCollection.h --- a/libs/flake/KoImageCollection.h +++ b/libs/flake/KoImageCollection.h @@ -38,7 +38,7 @@ Q_OBJECT public: /// constructor - explicit KoImageCollection(QObject *parent = 0); + explicit KoImageCollection(QObject *parent = nullptr); ~KoImageCollection() override; /// reimplemented diff --git a/libs/flake/KoMarkerCollection.h b/libs/flake/KoMarkerCollection.h --- a/libs/flake/KoMarkerCollection.h +++ b/libs/flake/KoMarkerCollection.h @@ -35,7 +35,7 @@ { Q_OBJECT public: - explicit KoMarkerCollection(QObject *parent = 0); + explicit KoMarkerCollection(QObject *parent = nullptr); ~KoMarkerCollection() override; QList markers() const; diff --git a/libs/flake/KoSelectedShapesProxy.h b/libs/flake/KoSelectedShapesProxy.h --- a/libs/flake/KoSelectedShapesProxy.h +++ b/libs/flake/KoSelectedShapesProxy.h @@ -35,7 +35,7 @@ { Q_OBJECT public: - explicit KoSelectedShapesProxy(QObject *parent = 0); + explicit KoSelectedShapesProxy(QObject *parent = nullptr); /** * Returns a pointer to a currently active shape selection. Don't connect to the diff --git a/libs/flake/KoShapeController.h b/libs/flake/KoShapeController.h --- a/libs/flake/KoShapeController.h +++ b/libs/flake/KoShapeController.h @@ -75,7 +75,7 @@ * @return command which will insert the shape into the document or 0 if the * insertion was cancelled. The command is not yet executed. */ - KUndo2Command* addShape(KoShape *shape, KoShapeContainer *parentShape, KUndo2Command *parent = 0); + KUndo2Command* addShape(KoShape *shape, KoShapeContainer *parentShape, KUndo2Command *parent = nullptr); /** * @brief Add a shape to the document, skipping any dialogs or other user interaction. @@ -86,7 +86,7 @@ * * @return command which will insert the shape into the document. The command is not yet executed. */ - KUndo2Command* addShapeDirect(KoShape *shape, KoShapeContainer *parentShape, KUndo2Command *parent = 0); + KUndo2Command* addShapeDirect(KoShape *shape, KoShapeContainer *parentShape, KUndo2Command *parent = nullptr); /** * @brief Add shapes to the document, skipping any dialogs or other user interaction. @@ -97,7 +97,7 @@ * * @return command which will insert the shapes into the document. The command is not yet executed. */ - KUndo2Command* addShapesDirect(const QList shape, KoShapeContainer *parentShape, KUndo2Command *parent = 0); + KUndo2Command* addShapesDirect(const QList shape, KoShapeContainer *parentShape, KUndo2Command *parent = nullptr); /** * @brief Remove a shape from the document. @@ -108,7 +108,7 @@ * @return command which will remove the shape from the document. * The command is not yet executed. */ - KUndo2Command* removeShape(KoShape *shape, KUndo2Command *parent = 0); + KUndo2Command* removeShape(KoShape *shape, KUndo2Command *parent = nullptr); /** * Remove a shape from the document. @@ -119,7 +119,7 @@ * @return command which will remove the shape from the document. * The command is not yet executed. */ - KUndo2Command* removeShapes(const QList &shapes, KUndo2Command *parent = 0); + KUndo2Command* removeShapes(const QList &shapes, KUndo2Command *parent = nullptr); /** * @brief Set the KoShapeControllerBase used to add/remove shapes. diff --git a/libs/flake/KoShapeFillResourceConnector.h b/libs/flake/KoShapeFillResourceConnector.h --- a/libs/flake/KoShapeFillResourceConnector.h +++ b/libs/flake/KoShapeFillResourceConnector.h @@ -28,7 +28,7 @@ { Q_OBJECT public: - explicit KoShapeFillResourceConnector(QObject *parent = 0); + explicit KoShapeFillResourceConnector(QObject *parent = nullptr); ~KoShapeFillResourceConnector(); void connectToCanvas(KoCanvasBase *canvas); diff --git a/libs/flake/KoShapeUserData.h b/libs/flake/KoShapeUserData.h --- a/libs/flake/KoShapeUserData.h +++ b/libs/flake/KoShapeUserData.h @@ -47,7 +47,7 @@ Q_OBJECT public: /// Constructor - explicit KoShapeUserData(QObject *parent = 0); + explicit KoShapeUserData(QObject *parent = nullptr); ~KoShapeUserData() override; virtual KoShapeUserData* clone() const = 0; diff --git a/libs/flake/KoToolProxy.h b/libs/flake/KoToolProxy.h --- a/libs/flake/KoToolProxy.h +++ b/libs/flake/KoToolProxy.h @@ -65,7 +65,7 @@ * @param canvas Each canvas has 1 toolProxy. Pass the parent here. * @param parent a parent QObject for memory management purposes. */ - explicit KoToolProxy(KoCanvasBase *canvas, QObject *parent = 0); + explicit KoToolProxy(KoCanvasBase *canvas, QObject *parent = nullptr); ~KoToolProxy() override; /// Forwarded to the current KoToolBase diff --git a/libs/flake/KoToolSelection.h b/libs/flake/KoToolSelection.h --- a/libs/flake/KoToolSelection.h +++ b/libs/flake/KoToolSelection.h @@ -36,7 +36,7 @@ * Constructor. * @param parent a parent for memory management purposes. */ - explicit KoToolSelection(QObject *parent = 0); + explicit KoToolSelection(QObject *parent = nullptr); ~KoToolSelection() override; /// return true if the tool currently has something selected that can be copied or deleted. diff --git a/libs/flake/commands/KoConnectionShapeTypeCommand.h b/libs/flake/commands/KoConnectionShapeTypeCommand.h --- a/libs/flake/commands/KoConnectionShapeTypeCommand.h +++ b/libs/flake/commands/KoConnectionShapeTypeCommand.h @@ -33,7 +33,7 @@ * @param type the connection type * @param parent the optional parent command */ - KoConnectionShapeTypeCommand(KoConnectionShape *connection, KoConnectionShape::Type type, KUndo2Command *parent = 0); + KoConnectionShapeTypeCommand(KoConnectionShape *connection, KoConnectionShape::Type type, KUndo2Command *parent = nullptr); /// redo the command void redo() override; /// revert the actions done in redo diff --git a/libs/flake/commands/KoMultiPathPointJoinCommand.h b/libs/flake/commands/KoMultiPathPointJoinCommand.h --- a/libs/flake/commands/KoMultiPathPointJoinCommand.h +++ b/libs/flake/commands/KoMultiPathPointJoinCommand.h @@ -28,7 +28,7 @@ const KoPathPointData &pointData2, KoShapeControllerBase *controller, KoSelection *selection, - KUndo2Command *parent = 0); + KUndo2Command *parent = nullptr); protected: KUndo2Command *createMergeCommand(const KoPathPointData &pointData1, diff --git a/libs/flake/commands/KoMultiPathPointMergeCommand.h b/libs/flake/commands/KoMultiPathPointMergeCommand.h --- a/libs/flake/commands/KoMultiPathPointMergeCommand.h +++ b/libs/flake/commands/KoMultiPathPointMergeCommand.h @@ -37,7 +37,7 @@ const KoPathPointData &pointData2, KoShapeControllerBase *controller, KoSelection *selection, - KUndo2Command *parent = 0); + KUndo2Command *parent = nullptr); ~KoMultiPathPointMergeCommand() override; void undo() override; diff --git a/libs/flake/commands/KoParameterHandleMoveCommand.h b/libs/flake/commands/KoParameterHandleMoveCommand.h --- a/libs/flake/commands/KoParameterHandleMoveCommand.h +++ b/libs/flake/commands/KoParameterHandleMoveCommand.h @@ -41,7 +41,7 @@ * @param keyModifiers the key modifiers used while moving. * @param parent the parent command if this is a compound undo command. */ - KoParameterHandleMoveCommand(KoParameterShape *shape, int handleId, const QPointF &startPoint, const QPointF &endPoint, Qt::KeyboardModifiers keyModifiers, KUndo2Command *parent = 0); + KoParameterHandleMoveCommand(KoParameterShape *shape, int handleId, const QPointF &startPoint, const QPointF &endPoint, Qt::KeyboardModifiers keyModifiers, KUndo2Command *parent = nullptr); ~KoParameterHandleMoveCommand() override; /// redo the command diff --git a/libs/flake/commands/KoParameterToPathCommand.h b/libs/flake/commands/KoParameterToPathCommand.h --- a/libs/flake/commands/KoParameterToPathCommand.h +++ b/libs/flake/commands/KoParameterToPathCommand.h @@ -38,13 +38,13 @@ * @param shape the shape this command works on * @param parent the parent command if this is a compound undo command. */ - explicit KoParameterToPathCommand(KoParameterShape *shape, KUndo2Command *parent = 0); + explicit KoParameterToPathCommand(KoParameterShape *shape, KUndo2Command *parent = nullptr); /** * Constructor. * @param shapes the list of shapes this command works on * @param parent the parent command if this is a compound undo command. */ - explicit KoParameterToPathCommand(const QList &shapes, KUndo2Command *parent = 0); + explicit KoParameterToPathCommand(const QList &shapes, KUndo2Command *parent = nullptr); ~KoParameterToPathCommand() override; /// redo the command diff --git a/libs/flake/commands/KoPathBaseCommand.h b/libs/flake/commands/KoPathBaseCommand.h --- a/libs/flake/commands/KoPathBaseCommand.h +++ b/libs/flake/commands/KoPathBaseCommand.h @@ -33,13 +33,13 @@ /** * @param parent the parent command used for macro commands */ - explicit KoPathBaseCommand(KUndo2Command *parent = 0); + explicit KoPathBaseCommand(KUndo2Command *parent = nullptr); /** initialize the base command with a single shape * @param shape the shape * @param parent the parent command used for macro commands */ - explicit KoPathBaseCommand(KoPathShape *shape, KUndo2Command *parent = 0); + explicit KoPathBaseCommand(KoPathShape *shape, KUndo2Command *parent = nullptr); protected: /** diff --git a/libs/flake/commands/KoPathBreakAtPointCommand.h b/libs/flake/commands/KoPathBreakAtPointCommand.h --- a/libs/flake/commands/KoPathBreakAtPointCommand.h +++ b/libs/flake/commands/KoPathBreakAtPointCommand.h @@ -40,7 +40,7 @@ * @param pointDataList List of point data where the path should be split. * @param parent the parent command used for macro commands */ - explicit KoPathBreakAtPointCommand(const QList &pointDataList, KUndo2Command *parent = 0); + explicit KoPathBreakAtPointCommand(const QList &pointDataList, KUndo2Command *parent = nullptr); ~KoPathBreakAtPointCommand() override; /// redo the command diff --git a/libs/flake/commands/KoPathCombineCommand.h b/libs/flake/commands/KoPathCombineCommand.h --- a/libs/flake/commands/KoPathCombineCommand.h +++ b/libs/flake/commands/KoPathCombineCommand.h @@ -39,7 +39,7 @@ * @param paths the list of paths to combine * @param parent the parent command used for macro commands */ - KoPathCombineCommand(KoShapeControllerBase *controller, const QList &paths, KUndo2Command *parent = 0); + KoPathCombineCommand(KoShapeControllerBase *controller, const QList &paths, KUndo2Command *parent = nullptr); ~KoPathCombineCommand() override; /// redo the command void redo() override; diff --git a/libs/flake/commands/KoPathControlPointMoveCommand.h b/libs/flake/commands/KoPathControlPointMoveCommand.h --- a/libs/flake/commands/KoPathControlPointMoveCommand.h +++ b/libs/flake/commands/KoPathControlPointMoveCommand.h @@ -40,7 +40,7 @@ * @param parent the parent command used for macro commands */ KoPathControlPointMoveCommand(const KoPathPointData &pointData, const QPointF &offset, - KoPathPoint::PointType pointType, KUndo2Command *parent = 0); + KoPathPoint::PointType pointType, KUndo2Command *parent = nullptr); /// redo the command void redo() override; /// revert the actions done in redo diff --git a/libs/flake/commands/KoPathFillRuleCommand.h b/libs/flake/commands/KoPathFillRuleCommand.h --- a/libs/flake/commands/KoPathFillRuleCommand.h +++ b/libs/flake/commands/KoPathFillRuleCommand.h @@ -37,7 +37,7 @@ * @param fillRule the new fill rule * @param parent the parent command used for macro commands */ - KoPathFillRuleCommand(const QList &shapes, Qt::FillRule fillRule, KUndo2Command *parent = 0); + KoPathFillRuleCommand(const QList &shapes, Qt::FillRule fillRule, KUndo2Command *parent = nullptr); ~KoPathFillRuleCommand() override; /// redo the command void redo() override; diff --git a/libs/flake/commands/KoPathPointInsertCommand.h b/libs/flake/commands/KoPathPointInsertCommand.h --- a/libs/flake/commands/KoPathPointInsertCommand.h +++ b/libs/flake/commands/KoPathPointInsertCommand.h @@ -44,7 +44,7 @@ * @param insertPosition the position to insert at [0..1] * @param parent the parent command used for macro commands */ - KoPathPointInsertCommand(const QList &pointDataList, qreal insertPosition, KUndo2Command *parent = 0); + KoPathPointInsertCommand(const QList &pointDataList, qreal insertPosition, KUndo2Command *parent = nullptr); ~KoPathPointInsertCommand() override; /// redo the command diff --git a/libs/flake/commands/KoPathPointMergeCommand.h b/libs/flake/commands/KoPathPointMergeCommand.h --- a/libs/flake/commands/KoPathPointMergeCommand.h +++ b/libs/flake/commands/KoPathPointMergeCommand.h @@ -39,7 +39,7 @@ * @param pointData2 the data of the second point to merge * @param parent the parent command used for macro commands */ - KoPathPointMergeCommand(const KoPathPointData &pointData1, const KoPathPointData &pointData2, KUndo2Command *parent = 0); + KoPathPointMergeCommand(const KoPathPointData &pointData1, const KoPathPointData &pointData2, KUndo2Command *parent = nullptr); ~KoPathPointMergeCommand() override; /// redo the command diff --git a/libs/flake/commands/KoPathPointMoveCommand.h b/libs/flake/commands/KoPathPointMoveCommand.h --- a/libs/flake/commands/KoPathPointMoveCommand.h +++ b/libs/flake/commands/KoPathPointMoveCommand.h @@ -41,15 +41,15 @@ * @param offset the offset by which the point is moved in document coordinates * @param parent the parent command used for macro commands */ - KoPathPointMoveCommand(const QList &pointData, const QPointF &offset, KUndo2Command *parent = 0); + KoPathPointMoveCommand(const QList &pointData, const QPointF &offset, KUndo2Command *parent = nullptr); /** * Command to move path points. * @param pointData the path points to move * @param offsets the offsets by which the points are moved in document coordinates * @param parent the parent command used for macro commands */ - KoPathPointMoveCommand(const QList &pointData, const QList &offsets, KUndo2Command *parent = 0); + KoPathPointMoveCommand(const QList &pointData, const QList &offsets, KUndo2Command *parent = nullptr); ~KoPathPointMoveCommand() override; diff --git a/libs/flake/commands/KoPathPointRemoveCommand.h b/libs/flake/commands/KoPathPointRemoveCommand.h --- a/libs/flake/commands/KoPathPointRemoveCommand.h +++ b/libs/flake/commands/KoPathPointRemoveCommand.h @@ -44,7 +44,7 @@ * @param shapeController shape controller in charge * @param parent the parent command used for macro commands */ - static KUndo2Command *createCommand(const QList &pointDataList, KoShapeController *shapeController, KUndo2Command *parent = 0); + static KUndo2Command *createCommand(const QList &pointDataList, KoShapeController *shapeController, KUndo2Command *parent = nullptr); /** * @brief Command to remove a points from path shapes @@ -54,7 +54,7 @@ * @param pointDataList List of point data to remove. * @param parent the parent command used for macro commands */ - explicit KoPathPointRemoveCommand(const QList &pointDataList, KUndo2Command *parent = 0); + explicit KoPathPointRemoveCommand(const QList &pointDataList, KUndo2Command *parent = nullptr); ~KoPathPointRemoveCommand() override; /// redo the command diff --git a/libs/flake/commands/KoPathPointTypeCommand.h b/libs/flake/commands/KoPathPointTypeCommand.h --- a/libs/flake/commands/KoPathPointTypeCommand.h +++ b/libs/flake/commands/KoPathPointTypeCommand.h @@ -46,7 +46,7 @@ * @param pointType the new point type to set * @param parent the parent command used for macro commands */ - KoPathPointTypeCommand(const QList &pointDataList, PointType pointType, KUndo2Command *parent = 0); + KoPathPointTypeCommand(const QList &pointDataList, PointType pointType, KUndo2Command *parent = nullptr); ~KoPathPointTypeCommand() override; /// redo the command diff --git a/libs/flake/commands/KoPathReverseCommand.h b/libs/flake/commands/KoPathReverseCommand.h --- a/libs/flake/commands/KoPathReverseCommand.h +++ b/libs/flake/commands/KoPathReverseCommand.h @@ -35,7 +35,7 @@ * @param paths the list of paths to reverse * @param parent the parent command used for macro commands */ - explicit KoPathReverseCommand(const QList &paths, KUndo2Command *parent = 0); + explicit KoPathReverseCommand(const QList &paths, KUndo2Command *parent = nullptr); ~KoPathReverseCommand() override; /// redo the command void redo() override; diff --git a/libs/flake/commands/KoPathSegmentBreakCommand.h b/libs/flake/commands/KoPathSegmentBreakCommand.h --- a/libs/flake/commands/KoPathSegmentBreakCommand.h +++ b/libs/flake/commands/KoPathSegmentBreakCommand.h @@ -36,7 +36,7 @@ * @param pointData describing the point * @param parent the parent command used for macro commands */ - explicit KoPathSegmentBreakCommand(const KoPathPointData &pointData, KUndo2Command *parent = 0); + explicit KoPathSegmentBreakCommand(const KoPathPointData &pointData, KUndo2Command *parent = nullptr); ~KoPathSegmentBreakCommand() override; /// redo the command diff --git a/libs/flake/commands/KoPathSegmentTypeCommand.h b/libs/flake/commands/KoPathSegmentTypeCommand.h --- a/libs/flake/commands/KoPathSegmentTypeCommand.h +++ b/libs/flake/commands/KoPathSegmentTypeCommand.h @@ -44,15 +44,15 @@ * @param segmentType to which the segment should be changed to * @param parent the parent command used for macro commands */ - KoPathSegmentTypeCommand(const KoPathPointData &pointData, SegmentType segmentType, KUndo2Command *parent = 0); + KoPathSegmentTypeCommand(const KoPathPointData &pointData, SegmentType segmentType, KUndo2Command *parent = nullptr); /** * Command for changing the segment type ( curve/line ) * @param pointDataList List of point data identifying the segments that should be changed. * @param segmentType to which the segments should be changed to * @param parent the parent command used for macro commands */ - KoPathSegmentTypeCommand(const QList &pointDataList, SegmentType segmentType, KUndo2Command *parent = 0); + KoPathSegmentTypeCommand(const QList &pointDataList, SegmentType segmentType, KUndo2Command *parent = nullptr); ~KoPathSegmentTypeCommand() override; /// redo the command diff --git a/libs/flake/commands/KoPathShapeMarkerCommand.h b/libs/flake/commands/KoPathShapeMarkerCommand.h --- a/libs/flake/commands/KoPathShapeMarkerCommand.h +++ b/libs/flake/commands/KoPathShapeMarkerCommand.h @@ -43,7 +43,7 @@ * @param position the position - start or end - of the marker on the shape * @param parent the parent command used for macro commands */ - KoPathShapeMarkerCommand(const QList &shapes, KoMarker *marker, KoFlake::MarkerPosition position, KUndo2Command *parent = 0); + KoPathShapeMarkerCommand(const QList &shapes, KoMarker *marker, KoFlake::MarkerPosition position, KUndo2Command *parent = nullptr); ~KoPathShapeMarkerCommand() override; diff --git a/libs/flake/commands/KoShapeAlignCommand.h b/libs/flake/commands/KoShapeAlignCommand.h --- a/libs/flake/commands/KoShapeAlignCommand.h +++ b/libs/flake/commands/KoShapeAlignCommand.h @@ -49,7 +49,7 @@ * @param boundingRect the rect the shape will be aligned in * @param parent the parent command used for macro commands */ - KoShapeAlignCommand(const QList &shapes, Align align, const QRectF &boundingRect, KUndo2Command *parent = 0); + KoShapeAlignCommand(const QList &shapes, Align align, const QRectF &boundingRect, KUndo2Command *parent = nullptr); ~KoShapeAlignCommand() override; /// redo the command void redo() override; diff --git a/libs/flake/commands/KoShapeBackgroundCommand.h b/libs/flake/commands/KoShapeBackgroundCommand.h --- a/libs/flake/commands/KoShapeBackgroundCommand.h +++ b/libs/flake/commands/KoShapeBackgroundCommand.h @@ -40,23 +40,23 @@ * @param fill the new shape background * @param parent the parent command used for macro commands */ - KoShapeBackgroundCommand(const QList &shapes, QSharedPointer fill, KUndo2Command *parent = 0); + KoShapeBackgroundCommand(const QList &shapes, QSharedPointer fill, KUndo2Command *parent = nullptr); /** * Command to set a new shape background. * @param shape a single shape that should get the new background. * @param fill the new shape background * @param parent the parent command used for macro commands */ - KoShapeBackgroundCommand(KoShape *shape, QSharedPointer fill, KUndo2Command *parent = 0); + KoShapeBackgroundCommand(KoShape *shape, QSharedPointer fill, KUndo2Command *parent = nullptr); /** * Command to set new shape backgrounds. * @param shapes a set of all the shapes that should get a new background. * @param fills the new backgrounds, one for each shape * @param parent the parent command used for macro commands */ - KoShapeBackgroundCommand(const QList &shapes, const QList > &fills, KUndo2Command *parent = 0); + KoShapeBackgroundCommand(const QList &shapes, const QList > &fills, KUndo2Command *parent = nullptr); ~KoShapeBackgroundCommand() override; /// redo the command diff --git a/libs/flake/commands/KoShapeClipCommand.h b/libs/flake/commands/KoShapeClipCommand.h --- a/libs/flake/commands/KoShapeClipCommand.h +++ b/libs/flake/commands/KoShapeClipCommand.h @@ -39,16 +39,16 @@ * @param clipPathShapes the path shapes to be used a clipping path * @param parent the parent command used for macro commands */ - KoShapeClipCommand(KoShapeControllerBase *controller, const QList &shapes, const QList &clipPathShapes, KUndo2Command *parent = 0); + KoShapeClipCommand(KoShapeControllerBase *controller, const QList &shapes, const QList &clipPathShapes, KUndo2Command *parent = nullptr); /** * Command to set a new shape clipping path for a single shape * @param controller the controller to used for deleting. * @param shape a single shape that should get the new shadow. * @param clipPathShapes the path shapes to be used a clipping path * @param parent the parent command used for macro commands */ - KoShapeClipCommand(KoShapeControllerBase *controller, KoShape *shape, const QList &clipPathShapes, KUndo2Command *parent = 0); + KoShapeClipCommand(KoShapeControllerBase *controller, KoShape *shape, const QList &clipPathShapes, KUndo2Command *parent = nullptr); /// Destroys the command ~KoShapeClipCommand() override; diff --git a/libs/flake/commands/KoShapeConnectionChangeCommand.h b/libs/flake/commands/KoShapeConnectionChangeCommand.h --- a/libs/flake/commands/KoShapeConnectionChangeCommand.h +++ b/libs/flake/commands/KoShapeConnectionChangeCommand.h @@ -39,7 +39,7 @@ */ KoShapeConnectionChangeCommand(KoConnectionShape *connection, KoConnectionShape::HandleId connectionHandle, KoShape *oldConnectedShape, int oldConnectionPointId, - KoShape *newConnectedShape, int newConnectionPointId, KUndo2Command *parent = 0); + KoShape *newConnectedShape, int newConnectionPointId, KUndo2Command *parent = nullptr); /// Destroys the command ~KoShapeConnectionChangeCommand() override; diff --git a/libs/flake/commands/KoShapeCreateCommand.h b/libs/flake/commands/KoShapeCreateCommand.h --- a/libs/flake/commands/KoShapeCreateCommand.h +++ b/libs/flake/commands/KoShapeCreateCommand.h @@ -39,7 +39,7 @@ */ KoShapeCreateCommand(KoShapeControllerBase *controller, KoShape *shape, KoShapeContainer *parentShape = 0, - KUndo2Command *parent = 0); + KUndo2Command *parent = nullptr); /** * Command used on creation of new shapes @@ -49,7 +49,7 @@ */ KoShapeCreateCommand(KoShapeControllerBase *controller, const QList shape, KoShapeContainer *parentShape = 0, - KUndo2Command *parent = 0); + KUndo2Command *parent = nullptr); ~KoShapeCreateCommand() override; /// redo the command diff --git a/libs/flake/commands/KoShapeDeleteCommand.h b/libs/flake/commands/KoShapeDeleteCommand.h --- a/libs/flake/commands/KoShapeDeleteCommand.h +++ b/libs/flake/commands/KoShapeDeleteCommand.h @@ -38,14 +38,14 @@ * @param shape a single shape that should be deleted. * @param parent the parent command used for macro commands */ - KoShapeDeleteCommand(KoShapeControllerBase *controller, KoShape *shape, KUndo2Command *parent = 0); + KoShapeDeleteCommand(KoShapeControllerBase *controller, KoShape *shape, KUndo2Command *parent = nullptr); /** * Command to delete a set of shapes by means of a shape controller. * @param controller the controller to used for deleting. * @param shapes a set of all the shapes that should be deleted. * @param parent the parent command used for macro commands */ - KoShapeDeleteCommand(KoShapeControllerBase *controller, const QList &shapes, KUndo2Command *parent = 0); + KoShapeDeleteCommand(KoShapeControllerBase *controller, const QList &shapes, KUndo2Command *parent = nullptr); ~KoShapeDeleteCommand() override; /// redo the command void redo() override; diff --git a/libs/flake/commands/KoShapeDistributeCommand.h b/libs/flake/commands/KoShapeDistributeCommand.h --- a/libs/flake/commands/KoShapeDistributeCommand.h +++ b/libs/flake/commands/KoShapeDistributeCommand.h @@ -52,7 +52,7 @@ * @param parent the parent command used for macro commands */ KoShapeDistributeCommand(const QList &shapes, Distribute distribute, - const QRectF &boundingRect, KUndo2Command *parent = 0); + const QRectF &boundingRect, KUndo2Command *parent = nullptr); ~KoShapeDistributeCommand() override; /// redo the command void redo() override; diff --git a/libs/flake/commands/KoShapeGroupCommand.h b/libs/flake/commands/KoShapeGroupCommand.h --- a/libs/flake/commands/KoShapeGroupCommand.h +++ b/libs/flake/commands/KoShapeGroupCommand.h @@ -38,7 +38,7 @@ public: /** * Create command to group a set of shapes into a predefined container. - * This uses the KoShapeGroupCommand(KoShapeGroup *container, const QList &shapes, KUndo2Command *parent = 0); + * This uses the KoShapeGroupCommand(KoShapeGroup *container, const QList &shapes, KUndo2Command *parent = nullptr); * constructor. * The createCommand will make sure that the group will have the z-index and the parent of the top most shape in the group. * @@ -55,16 +55,16 @@ * @param shouldNormalize shows whether the shapes should be normalized by the container * @param parent the parent command used for macro commands */ - KoShapeGroupCommand(KoShapeContainer *container, const QList &shapes, bool shouldNormalize, KUndo2Command *parent = 0); + KoShapeGroupCommand(KoShapeContainer *container, const QList &shapes, bool shouldNormalize, KUndo2Command *parent = nullptr); /** * Command to group a set of shapes into a predefined container. * Convenience constructor since KoShapeGroup does not allow clipping. * @param container the group to group the shapes under. * @param parent the parent command if the resulting command is a compound undo command. * @param shapes a list of all the shapes that should be grouped. */ - KoShapeGroupCommand(KoShapeContainer *container, const QList &shapes, KUndo2Command *parent = 0); + KoShapeGroupCommand(KoShapeContainer *container, const QList &shapes, KUndo2Command *parent = nullptr); ~KoShapeGroupCommand() override; /// redo the command diff --git a/libs/flake/commands/KoShapeKeepAspectRatioCommand.h b/libs/flake/commands/KoShapeKeepAspectRatioCommand.h --- a/libs/flake/commands/KoShapeKeepAspectRatioCommand.h +++ b/libs/flake/commands/KoShapeKeepAspectRatioCommand.h @@ -38,7 +38,7 @@ * @param newKeepAspectRatio the new setting * @param parent the parent command */ - KoShapeKeepAspectRatioCommand(const QList &shapes, bool newKeepAspectRatio, KUndo2Command* parent = 0); + KoShapeKeepAspectRatioCommand(const QList &shapes, bool newKeepAspectRatio, KUndo2Command* parent = nullptr); ~KoShapeKeepAspectRatioCommand() override; /// Execute the command diff --git a/libs/flake/commands/KoShapeLockCommand.h b/libs/flake/commands/KoShapeLockCommand.h --- a/libs/flake/commands/KoShapeLockCommand.h +++ b/libs/flake/commands/KoShapeLockCommand.h @@ -38,7 +38,7 @@ * @param parent the parent command used for macro commands */ KoShapeLockCommand(const QList &shapes, const QList &oldLock, const QList &newLock, - KUndo2Command *parent = 0); + KUndo2Command *parent = nullptr); ~KoShapeLockCommand() override; /// redo the command diff --git a/libs/flake/commands/KoShapeMoveCommand.h b/libs/flake/commands/KoShapeMoveCommand.h --- a/libs/flake/commands/KoShapeMoveCommand.h +++ b/libs/flake/commands/KoShapeMoveCommand.h @@ -44,9 +44,9 @@ * @param parent the parent command used for macro commands */ KoShapeMoveCommand(const QList &shapes, QList &previousPositions, QList &newPositions, - KoFlake::AnchorPosition anchor = KoFlake::Center, KUndo2Command *parent = 0); + KoFlake::AnchorPosition anchor = KoFlake::Center, KUndo2Command *parent = nullptr); - KoShapeMoveCommand(const QList &shapes, const QPointF &offset, KUndo2Command *parent = 0); + KoShapeMoveCommand(const QList &shapes, const QPointF &offset, KUndo2Command *parent = nullptr); ~KoShapeMoveCommand() override; /// redo the command diff --git a/libs/flake/commands/KoShapeRenameCommand.h b/libs/flake/commands/KoShapeRenameCommand.h --- a/libs/flake/commands/KoShapeRenameCommand.h +++ b/libs/flake/commands/KoShapeRenameCommand.h @@ -30,7 +30,7 @@ class KRITAFLAKE_EXPORT KoShapeRenameCommand : public KUndo2Command { public: - KoShapeRenameCommand(KoShape *shape, const QString &newName, KUndo2Command *parent = 0); + KoShapeRenameCommand(KoShape *shape, const QString &newName, KUndo2Command *parent = nullptr); ~KoShapeRenameCommand() override; /// redo the command diff --git a/libs/flake/commands/KoShapeReorderCommand.h b/libs/flake/commands/KoShapeReorderCommand.h --- a/libs/flake/commands/KoShapeReorderCommand.h +++ b/libs/flake/commands/KoShapeReorderCommand.h @@ -53,8 +53,8 @@ * this list naturally must have the same amount of items as the shapes set. * @param parent the parent command used for macro commands */ - KoShapeReorderCommand(const QList &shapes, QList &newIndexes, KUndo2Command *parent = 0); - KoShapeReorderCommand(const QList &shapes, KUndo2Command *parent = 0); + KoShapeReorderCommand(const QList &shapes, QList &newIndexes, KUndo2Command *parent = nullptr); + KoShapeReorderCommand(const QList &shapes, KUndo2Command *parent = nullptr); ~KoShapeReorderCommand() override; /// An enum for defining what kind of reordering to use. @@ -75,7 +75,7 @@ * @return command for reordering the shapes or 0 if no reordering happened */ static KoShapeReorderCommand *createCommand(const QList &shapes, KoShapeManager *manager, - MoveShapeType move, KUndo2Command *parent = 0); + MoveShapeType move, KUndo2Command *parent = nullptr); /** * @brief mergeInShape adjust zIndex of all the \p shapes and \p newShape to @@ -91,7 +91,7 @@ * @return command for reordering the shapes or 0 if no reordering happened */ static KoShapeReorderCommand *mergeInShape(QList shapes, KoShape *newShape, - KUndo2Command *parent = 0); + KUndo2Command *parent = nullptr); /** * Recalculates the attached z-indexes of \p shapes so that all indexes go diff --git a/libs/flake/commands/KoShapeResizeCommand.h b/libs/flake/commands/KoShapeResizeCommand.h --- a/libs/flake/commands/KoShapeResizeCommand.h +++ b/libs/flake/commands/KoShapeResizeCommand.h @@ -39,7 +39,7 @@ qreal scaleX, qreal scaleY, const QPointF &absoluteStillPoint, bool useGLobalMode, bool usePostScaling, const QTransform &postScalingCoveringTransform, - KUndo2Command *parent = 0); + KUndo2Command *parent = nullptr); ~KoShapeResizeCommand() override; void redoImpl() override; diff --git a/libs/flake/commands/KoShapeRunAroundCommand.h b/libs/flake/commands/KoShapeRunAroundCommand.h --- a/libs/flake/commands/KoShapeRunAroundCommand.h +++ b/libs/flake/commands/KoShapeRunAroundCommand.h @@ -29,7 +29,7 @@ class KRITAFLAKE_EXPORT KoShapeRunAroundCommand : public KUndo2Command { public: - KoShapeRunAroundCommand(KoShape *shape, KoShape::TextRunAroundSide side, int runThrough, qreal distanceLeft, qreal distanceTop, qreal distanceRight, qreal distanceBottom, qreal threshold, KoShape::TextRunAroundContour contour, KUndo2Command *parent = 0); + KoShapeRunAroundCommand(KoShape *shape, KoShape::TextRunAroundSide side, int runThrough, qreal distanceLeft, qreal distanceTop, qreal distanceRight, qreal distanceBottom, qreal threshold, KoShape::TextRunAroundContour contour, KUndo2Command *parent = nullptr); ~KoShapeRunAroundCommand() override; /// redo the command diff --git a/libs/flake/commands/KoShapeShadowCommand.h b/libs/flake/commands/KoShapeShadowCommand.h --- a/libs/flake/commands/KoShapeShadowCommand.h +++ b/libs/flake/commands/KoShapeShadowCommand.h @@ -37,23 +37,23 @@ * @param shadow the new shadow, the same for all given shapes * @param parent the parent command used for macro commands */ - KoShapeShadowCommand(const QList & shapes, KoShapeShadow *shadow, KUndo2Command *parent = 0); + KoShapeShadowCommand(const QList & shapes, KoShapeShadow *shadow, KUndo2Command *parent = nullptr); /** * Command to set new shape shadows. * @param shapes a set of all the shapes that should get a new shadow. * @param shadows the new shadows, one for each shape * @param parent the parent command used for macro commands */ - KoShapeShadowCommand(const QList &shapes, const QList &shadows, KUndo2Command *parent = 0); + KoShapeShadowCommand(const QList &shapes, const QList &shadows, KUndo2Command *parent = nullptr); /** * Command to set a new shape shadow. * @param shape a single shape that should get the new shadow. * @param shadow the new shadow * @param parent the parent command used for macro commands */ - KoShapeShadowCommand(KoShape *shape, KoShapeShadow *shadow, KUndo2Command *parent = 0); + KoShapeShadowCommand(KoShape *shape, KoShapeShadow *shadow, KUndo2Command *parent = nullptr); ~KoShapeShadowCommand() override; /// redo the command diff --git a/libs/flake/commands/KoShapeShearCommand.h b/libs/flake/commands/KoShapeShearCommand.h --- a/libs/flake/commands/KoShapeShearCommand.h +++ b/libs/flake/commands/KoShapeShearCommand.h @@ -45,7 +45,7 @@ * @param newShearYs a list with the same amount of items as shapes with the new values. * @param parent the parent command used for macro commands */ - KoShapeShearCommand(const QList &shapes, const QList &previousShearXs, const QList &previousShearYs, const QList &newShearXs, const QList &newShearYs, KUndo2Command *parent = 0); + KoShapeShearCommand(const QList &shapes, const QList &previousShearXs, const QList &previousShearYs, const QList &newShearXs, const QList &newShearYs, KUndo2Command *parent = nullptr); ~KoShapeShearCommand() override; /// redo the command diff --git a/libs/flake/commands/KoShapeSizeCommand.h b/libs/flake/commands/KoShapeSizeCommand.h --- a/libs/flake/commands/KoShapeSizeCommand.h +++ b/libs/flake/commands/KoShapeSizeCommand.h @@ -40,7 +40,7 @@ * @param parent the parent command used for macro commands */ KoShapeSizeCommand(const QList &shapes, const QList &previousSizes, - const QList &newSizes, KUndo2Command *parent = 0); + const QList &newSizes, KUndo2Command *parent = nullptr); ~KoShapeSizeCommand() override; /// redo the command diff --git a/libs/flake/commands/KoShapeStrokeCommand.h b/libs/flake/commands/KoShapeStrokeCommand.h --- a/libs/flake/commands/KoShapeStrokeCommand.h +++ b/libs/flake/commands/KoShapeStrokeCommand.h @@ -42,23 +42,23 @@ * @param stroke the new stroke, the same for all given shapes * @param parent the parent command used for macro commands */ - KoShapeStrokeCommand(const QList &shapes, KoShapeStrokeModelSP stroke, KUndo2Command *parent = 0); + KoShapeStrokeCommand(const QList &shapes, KoShapeStrokeModelSP stroke, KUndo2Command *parent = nullptr); /** * Command to set new shape strokes. * @param shapes a set of all the shapes that should get a new stroke. * @param strokes the new strokes, one for each shape * @param parent the parent command used for macro commands */ - KoShapeStrokeCommand(const QList &shapes, const QList &strokes, KUndo2Command *parent = 0); + KoShapeStrokeCommand(const QList &shapes, const QList &strokes, KUndo2Command *parent = nullptr); /** * Command to set a new shape stroke. * @param shape a single shape that should get the new stroke. * @param stroke the new stroke * @param parent the parent command used for macro commands */ - KoShapeStrokeCommand(KoShape* shape, KoShapeStrokeModelSP stroke, KUndo2Command *parent = 0); + KoShapeStrokeCommand(KoShape* shape, KoShapeStrokeModelSP stroke, KUndo2Command *parent = nullptr); ~KoShapeStrokeCommand() override; /// redo the command diff --git a/libs/flake/commands/KoShapeTransformCommand.h b/libs/flake/commands/KoShapeTransformCommand.h --- a/libs/flake/commands/KoShapeTransformCommand.h +++ b/libs/flake/commands/KoShapeTransformCommand.h @@ -43,7 +43,7 @@ * @see KoShape::transformation() * @see KoShape::setTransformation() */ - KoShapeTransformCommand(const QList &shapes, const QList &oldState, const QList &newState, KUndo2Command * parent = 0); + KoShapeTransformCommand(const QList &shapes, const QList &oldState, const QList &newState, KUndo2Command * parent = nullptr); ~KoShapeTransformCommand() override; /// redo the command void redo() override; diff --git a/libs/flake/commands/KoShapeTransparencyCommand.h b/libs/flake/commands/KoShapeTransparencyCommand.h --- a/libs/flake/commands/KoShapeTransparencyCommand.h +++ b/libs/flake/commands/KoShapeTransparencyCommand.h @@ -37,23 +37,23 @@ * @param transparency the new shape transparency * @param parent the parent command used for macro commands */ - KoShapeTransparencyCommand(const QList &shapes, qreal transparency, KUndo2Command *parent = 0); + KoShapeTransparencyCommand(const QList &shapes, qreal transparency, KUndo2Command *parent = nullptr); /** * Command to set a new shape transparency. * @param shape a single shape that should get the new transparency. * @param transparency the new shape transparency * @param parent the parent command used for macro commands */ - KoShapeTransparencyCommand(KoShape *shape, qreal transparency, KUndo2Command *parent = 0); + KoShapeTransparencyCommand(KoShape *shape, qreal transparency, KUndo2Command *parent = nullptr); /** * Command to set new shape transparencies. * @param shapes a set of all the shapes that should get a new transparency. * @param fills the new transparencies, one for each shape * @param parent the parent command used for macro commands */ - KoShapeTransparencyCommand(const QList &shapes, const QList &transparencies, KUndo2Command *parent = 0); + KoShapeTransparencyCommand(const QList &shapes, const QList &transparencies, KUndo2Command *parent = nullptr); ~KoShapeTransparencyCommand() override; /// redo the command diff --git a/libs/flake/commands/KoShapeUnclipCommand.h b/libs/flake/commands/KoShapeUnclipCommand.h --- a/libs/flake/commands/KoShapeUnclipCommand.h +++ b/libs/flake/commands/KoShapeUnclipCommand.h @@ -37,15 +37,15 @@ * @param shapes a set of all the shapes to remove the clip path from. * @param parent the parent command used for macro commands */ - KoShapeUnclipCommand(KoShapeControllerBase *controller, const QList &shapes, KUndo2Command *parent = 0); + KoShapeUnclipCommand(KoShapeControllerBase *controller, const QList &shapes, KUndo2Command *parent = nullptr); /** * Command to remove clip path from a single shape. * @param controller the controller to used for adding the clip shapes. * @param shape a single shape to remove the clip path from. * @param parent the parent command used for macro commands */ - KoShapeUnclipCommand(KoShapeControllerBase *controller, KoShape *shape, KUndo2Command *parent = 0); + KoShapeUnclipCommand(KoShapeControllerBase *controller, KoShape *shape, KUndo2Command *parent = nullptr); /// Destroys the command ~KoShapeUnclipCommand() override; diff --git a/libs/flake/commands/KoShapeUngroupCommand.h b/libs/flake/commands/KoShapeUngroupCommand.h --- a/libs/flake/commands/KoShapeUngroupCommand.h +++ b/libs/flake/commands/KoShapeUngroupCommand.h @@ -41,7 +41,7 @@ * @param parent the parent command used for macro commands */ KoShapeUngroupCommand(KoShapeContainer *container, const QList &shapes, - const QList &topLevelShapes = QList(), KUndo2Command *parent = 0); + const QList &topLevelShapes = QList(), KUndo2Command *parent = nullptr); ~KoShapeUngroupCommand(); /// redo the command diff --git a/libs/flake/commands/KoSubpathJoinCommand.h b/libs/flake/commands/KoSubpathJoinCommand.h --- a/libs/flake/commands/KoSubpathJoinCommand.h +++ b/libs/flake/commands/KoSubpathJoinCommand.h @@ -40,7 +40,7 @@ * @param pointData2 the data of the second point to join * @param parent the parent command used for macro commands */ - KoSubpathJoinCommand(const KoPathPointData &pointData1, const KoPathPointData &pointData2, KUndo2Command *parent = 0); + KoSubpathJoinCommand(const KoPathPointData &pointData1, const KoPathPointData &pointData2, KUndo2Command *parent = nullptr); ~KoSubpathJoinCommand() override; /// redo the command diff --git a/libs/flake/commands/KoSubpathRemoveCommand.h b/libs/flake/commands/KoSubpathRemoveCommand.h --- a/libs/flake/commands/KoSubpathRemoveCommand.h +++ b/libs/flake/commands/KoSubpathRemoveCommand.h @@ -36,7 +36,7 @@ * @param subpathIndex the index. See KoPathShape::removeSubpath() * @param parent the parent command if the resulting command is a compound undo command. */ - KoSubpathRemoveCommand(KoPathShape *pathShape, int subpathIndex, KUndo2Command *parent = 0); + KoSubpathRemoveCommand(KoPathShape *pathShape, int subpathIndex, KUndo2Command *parent = nullptr); ~KoSubpathRemoveCommand() override; /// redo the command diff --git a/libs/flake/tests/SvgParserTestingUtils.h b/libs/flake/tests/SvgParserTestingUtils.h --- a/libs/flake/tests/SvgParserTestingUtils.h +++ b/libs/flake/tests/SvgParserTestingUtils.h @@ -58,7 +58,7 @@ shapes = parser.parseSvg(root, &fragmentSize); } - KoShape* findShape(const QString &name, KoShape *parent = 0) { + KoShape* findShape(const QString &name, KoShape *parent = nullptr) { if (parent && parent->name() == name) { return parent; } diff --git a/libs/flake/tests/TestShapeGroupCommand.cpp b/libs/flake/tests/TestShapeGroupCommand.cpp --- a/libs/flake/tests/TestShapeGroupCommand.cpp +++ b/libs/flake/tests/TestShapeGroupCommand.cpp @@ -333,7 +333,7 @@ QCOMPARE(toplevelShape2->outlineRect(), QRectF(0, 0, 50, 50)); } -KoShapeGroupCommand * createAddCommand(KoShapeContainer *container, const QList &shapes, KUndo2Command *parent = 0) +KoShapeGroupCommand * createAddCommand(KoShapeContainer *container, const QList &shapes, KUndo2Command *parent = nullptr) { QList orderedShapes(shapes); std::stable_sort(orderedShapes.begin(), orderedShapes.end(), KoShape::compareShapeZIndex); diff --git a/libs/flake/tools/KoZoomToolWidget.h b/libs/flake/tools/KoZoomToolWidget.h --- a/libs/flake/tools/KoZoomToolWidget.h +++ b/libs/flake/tools/KoZoomToolWidget.h @@ -29,7 +29,7 @@ { Q_OBJECT public: - explicit KoZoomToolWidget(KoZoomTool* tool, QWidget *parent = 0); + explicit KoZoomToolWidget(KoZoomTool* tool, QWidget *parent = nullptr); ~KoZoomToolWidget() override; protected: diff --git a/libs/flake/tools/PathToolOptionWidget.h b/libs/flake/tools/PathToolOptionWidget.h --- a/libs/flake/tools/PathToolOptionWidget.h +++ b/libs/flake/tools/PathToolOptionWidget.h @@ -40,7 +40,7 @@ }; Q_DECLARE_FLAGS(Types, Type) - explicit PathToolOptionWidget(KoPathTool *tool, QWidget *parent = 0); + explicit PathToolOptionWidget(KoPathTool *tool, QWidget *parent = nullptr); ~PathToolOptionWidget() override; public Q_SLOTS: diff --git a/libs/global/kis_acyclic_signal_connector.h b/libs/global/kis_acyclic_signal_connector.h --- a/libs/global/kis_acyclic_signal_connector.h +++ b/libs/global/kis_acyclic_signal_connector.h @@ -69,7 +69,7 @@ public: - KisAcyclicSignalConnector(QObject *parent = 0); + KisAcyclicSignalConnector(QObject *parent = nullptr); ~KisAcyclicSignalConnector(); void connectForwardDouble(QObject *sender, const char *signal, diff --git a/libs/global/kis_signal_compressor.h b/libs/global/kis_signal_compressor.h --- a/libs/global/kis_signal_compressor.h +++ b/libs/global/kis_signal_compressor.h @@ -69,7 +69,7 @@ public: KisSignalCompressor(); - KisSignalCompressor(int delay, Mode mode, QObject *parent = 0); + KisSignalCompressor(int delay, Mode mode, QObject *parent = nullptr); bool isActive() const; void setMode(Mode mode); void setDelay(int delay); diff --git a/libs/image/brushengine/kis_paintop_settings_update_proxy.h b/libs/image/brushengine/kis_paintop_settings_update_proxy.h --- a/libs/image/brushengine/kis_paintop_settings_update_proxy.h +++ b/libs/image/brushengine/kis_paintop_settings_update_proxy.h @@ -28,7 +28,7 @@ Q_OBJECT public: - KisPaintopSettingsUpdateProxy(QObject *parent = 0); + KisPaintopSettingsUpdateProxy(QObject *parent = nullptr); ~KisPaintopSettingsUpdateProxy() override; void notifySettingsChanged(); diff --git a/libs/image/commands/KisDeselectActiveSelectionCommand.h b/libs/image/commands/KisDeselectActiveSelectionCommand.h --- a/libs/image/commands/KisDeselectActiveSelectionCommand.h +++ b/libs/image/commands/KisDeselectActiveSelectionCommand.h @@ -24,7 +24,7 @@ class KRITAIMAGE_EXPORT KisDeselectActiveSelectionCommand : public KisDeselectGlobalSelectionCommand { public: - KisDeselectActiveSelectionCommand(KisSelectionSP activeSelection, KisImageWSP image, KUndo2Command * parent = 0); + KisDeselectActiveSelectionCommand(KisSelectionSP activeSelection, KisImageWSP image, KUndo2Command * parent = nullptr); ~KisDeselectActiveSelectionCommand() override; void redo() override; diff --git a/libs/image/commands/KisReselectActiveSelectionCommand.h b/libs/image/commands/KisReselectActiveSelectionCommand.h --- a/libs/image/commands/KisReselectActiveSelectionCommand.h +++ b/libs/image/commands/KisReselectActiveSelectionCommand.h @@ -25,7 +25,7 @@ class KRITAIMAGE_EXPORT KisReselectActiveSelectionCommand : public KisReselectGlobalSelectionCommand { public: - KisReselectActiveSelectionCommand(KisNodeSP activeNode, KisImageWSP image, KUndo2Command * parent = 0); + KisReselectActiveSelectionCommand(KisNodeSP activeNode, KisImageWSP image, KUndo2Command * parent = nullptr); void redo() override; void undo() override; diff --git a/libs/image/commands/kis_deselect_global_selection_command.h b/libs/image/commands/kis_deselect_global_selection_command.h --- a/libs/image/commands/kis_deselect_global_selection_command.h +++ b/libs/image/commands/kis_deselect_global_selection_command.h @@ -33,7 +33,7 @@ * @param image the image * @param parent the parent command */ - KisDeselectGlobalSelectionCommand(KisImageWSP image, KUndo2Command * parent = 0); + KisDeselectGlobalSelectionCommand(KisImageWSP image, KUndo2Command * parent = nullptr); ~KisDeselectGlobalSelectionCommand() override; void redo() override; diff --git a/libs/image/commands/kis_image_command.h b/libs/image/commands/kis_image_command.h --- a/libs/image/commands/kis_image_command.h +++ b/libs/image/commands/kis_image_command.h @@ -41,7 +41,7 @@ * @param image The image the command will be working on. * @param parent The parent command. */ - KisImageCommand(const KUndo2MagicString& name, KisImageWSP image, KUndo2Command *parent = 0); + KisImageCommand(const KUndo2MagicString& name, KisImageWSP image, KUndo2Command *parent = nullptr); ~KisImageCommand() override; protected: diff --git a/libs/image/commands/kis_image_layer_remove_command_impl.h b/libs/image/commands/kis_image_layer_remove_command_impl.h --- a/libs/image/commands/kis_image_layer_remove_command_impl.h +++ b/libs/image/commands/kis_image_layer_remove_command_impl.h @@ -38,7 +38,7 @@ * @param image The image the command will be working on. * @param node the node to remove */ - KisImageLayerRemoveCommandImpl(KisImageWSP image, KisNodeSP node, KUndo2Command *parent = 0); + KisImageLayerRemoveCommandImpl(KisImageWSP image, KisNodeSP node, KUndo2Command *parent = nullptr); ~KisImageLayerRemoveCommandImpl() override; void redo() override; diff --git a/libs/image/commands/kis_reselect_global_selection_command.h b/libs/image/commands/kis_reselect_global_selection_command.h --- a/libs/image/commands/kis_reselect_global_selection_command.h +++ b/libs/image/commands/kis_reselect_global_selection_command.h @@ -32,7 +32,7 @@ * @param image the image * @param parent the parent command */ - KisReselectGlobalSelectionCommand(KisImageWSP image, KUndo2Command * parent = 0); + KisReselectGlobalSelectionCommand(KisImageWSP image, KUndo2Command * parent = nullptr); ~KisReselectGlobalSelectionCommand() override; void redo() override; diff --git a/libs/image/commands_new/kis_change_projection_color_command.h b/libs/image/commands_new/kis_change_projection_color_command.h --- a/libs/image/commands_new/kis_change_projection_color_command.h +++ b/libs/image/commands_new/kis_change_projection_color_command.h @@ -30,7 +30,7 @@ class KRITAIMAGE_EXPORT KisChangeProjectionColorCommand : public KUndo2Command { public: - KisChangeProjectionColorCommand(KisImageSP image, const KoColor &newColor, KUndo2Command *parent = 0); + KisChangeProjectionColorCommand(KisImageSP image, const KoColor &newColor, KUndo2Command *parent = nullptr); ~KisChangeProjectionColorCommand() override; void redo() override; diff --git a/libs/image/commands_new/kis_image_resize_command.h b/libs/image/commands_new/kis_image_resize_command.h --- a/libs/image/commands_new/kis_image_resize_command.h +++ b/libs/image/commands_new/kis_image_resize_command.h @@ -30,7 +30,7 @@ class KRITAIMAGE_EXPORT KisImageResizeCommand : public KUndo2Command { public: - KisImageResizeCommand(KisImageWSP image, const QSize& newRect, KUndo2Command *parent = 0); + KisImageResizeCommand(KisImageWSP image, const QSize& newRect, KUndo2Command *parent = nullptr); void redo() override; void undo() override; diff --git a/libs/image/commands_new/kis_image_set_resolution_command.h b/libs/image/commands_new/kis_image_set_resolution_command.h --- a/libs/image/commands_new/kis_image_set_resolution_command.h +++ b/libs/image/commands_new/kis_image_set_resolution_command.h @@ -28,7 +28,7 @@ class KRITAIMAGE_EXPORT KisImageSetResolutionCommand : public KUndo2Command { public: - KisImageSetResolutionCommand(KisImageWSP image, qreal newXRes, qreal newYRes, KUndo2Command *parent = 0); + KisImageSetResolutionCommand(KisImageWSP image, qreal newXRes, qreal newYRes, KUndo2Command *parent = nullptr); void undo() override; void redo() override; diff --git a/libs/image/commands_new/kis_move_command_common.h b/libs/image/commands_new/kis_move_command_common.h --- a/libs/image/commands_new/kis_move_command_common.h +++ b/libs/image/commands_new/kis_move_command_common.h @@ -36,7 +36,7 @@ class KRITAIMAGE_EXPORT KisMoveCommandCommon : public KUndo2Command { public: - KisMoveCommandCommon(ObjectSP object, const QPoint& oldPos, const QPoint& newPos, KUndo2Command *parent = 0) + KisMoveCommandCommon(ObjectSP object, const QPoint& oldPos, const QPoint& newPos, KUndo2Command *parent = nullptr) : KUndo2Command(kundo2_i18n("Move"), parent), m_oldPos(oldPos), m_newPos(newPos), diff --git a/libs/image/commands_new/kis_node_move_command2.h b/libs/image/commands_new/kis_node_move_command2.h --- a/libs/image/commands_new/kis_node_move_command2.h +++ b/libs/image/commands_new/kis_node_move_command2.h @@ -24,7 +24,7 @@ class KRITAIMAGE_EXPORT KisNodeMoveCommand2 : public KisMoveCommandCommon { public: - KisNodeMoveCommand2(KisNodeSP object, const QPoint& oldPos, const QPoint& newPos, KUndo2Command *parent = 0); + KisNodeMoveCommand2(KisNodeSP object, const QPoint& oldPos, const QPoint& newPos, KUndo2Command *parent = nullptr); void undo() override; void redo() override; diff --git a/libs/image/commands_new/kis_processing_command.h b/libs/image/commands_new/kis_processing_command.h --- a/libs/image/commands_new/kis_processing_command.h +++ b/libs/image/commands_new/kis_processing_command.h @@ -28,7 +28,7 @@ class KRITAIMAGE_EXPORT KisProcessingCommand : public KUndo2Command { public: - KisProcessingCommand(KisProcessingVisitorSP visitor, KisNodeSP node, KUndo2Command *parent = 0); + KisProcessingCommand(KisProcessingVisitorSP visitor, KisNodeSP node, KUndo2Command *parent = nullptr); void undo() override; void redo() override; diff --git a/libs/image/commands_new/kis_selection_move_command2.h b/libs/image/commands_new/kis_selection_move_command2.h --- a/libs/image/commands_new/kis_selection_move_command2.h +++ b/libs/image/commands_new/kis_selection_move_command2.h @@ -27,7 +27,7 @@ class KRITAIMAGE_EXPORT KisSelectionMoveCommand2 : public KisMoveCommandCommon { public: - KisSelectionMoveCommand2(KisSelectionSP object, const QPoint& oldPos, const QPoint& newPos, KUndo2Command *parent = 0); + KisSelectionMoveCommand2(KisSelectionSP object, const QPoint& oldPos, const QPoint& newPos, KUndo2Command *parent = nullptr); void undo() override; void redo() override; diff --git a/libs/image/commands_new/kis_set_layer_style_command.h b/libs/image/commands_new/kis_set_layer_style_command.h --- a/libs/image/commands_new/kis_set_layer_style_command.h +++ b/libs/image/commands_new/kis_set_layer_style_command.h @@ -28,7 +28,7 @@ class KRITAIMAGE_EXPORT KisSetLayerStyleCommand : public KUndo2Command { public: - KisSetLayerStyleCommand(KisLayerSP layer, KisPSDLayerStyleSP oldStyle, KisPSDLayerStyleSP newStyle, KUndo2Command *parent = 0); + KisSetLayerStyleCommand(KisLayerSP layer, KisPSDLayerStyleSP oldStyle, KisPSDLayerStyleSP newStyle, KUndo2Command *parent = nullptr); void undo() override; void redo() override; diff --git a/libs/image/commands_new/kis_switch_current_time_command.h b/libs/image/commands_new/kis_switch_current_time_command.h --- a/libs/image/commands_new/kis_switch_current_time_command.h +++ b/libs/image/commands_new/kis_switch_current_time_command.h @@ -30,7 +30,7 @@ class KRITAIMAGE_EXPORT KisSwitchCurrentTimeCommand : public KUndo2Command { public: - KisSwitchCurrentTimeCommand(KisImageAnimationInterface *animation, int oldTime, int newTime, KUndo2Command *parent = 0); + KisSwitchCurrentTimeCommand(KisImageAnimationInterface *animation, int oldTime, int newTime, KUndo2Command *parent = nullptr); ~KisSwitchCurrentTimeCommand() override; void redo() override; diff --git a/libs/image/commands_new/kis_transaction_based_command.h b/libs/image/commands_new/kis_transaction_based_command.h --- a/libs/image/commands_new/kis_transaction_based_command.h +++ b/libs/image/commands_new/kis_transaction_based_command.h @@ -25,7 +25,7 @@ class KRITAIMAGE_EXPORT KisTransactionBasedCommand : public KUndo2Command { public: - KisTransactionBasedCommand(const KUndo2MagicString &text = KUndo2MagicString(), KUndo2Command *parent = 0); + KisTransactionBasedCommand(const KUndo2MagicString &text = KUndo2MagicString(), KUndo2Command *parent = nullptr); ~KisTransactionBasedCommand() override; diff --git a/libs/image/kis_idle_watcher.h b/libs/image/kis_idle_watcher.h --- a/libs/image/kis_idle_watcher.h +++ b/libs/image/kis_idle_watcher.h @@ -32,7 +32,7 @@ { Q_OBJECT public: - KisIdleWatcher(int delay, QObject* parent = 0); + KisIdleWatcher(int delay, QObject* parent = nullptr); ~KisIdleWatcher() override; bool isIdle() const; diff --git a/libs/image/kis_layer_utils.h b/libs/image/kis_layer_utils.h --- a/libs/image/kis_layer_utils.h +++ b/libs/image/kis_layer_utils.h @@ -115,7 +115,7 @@ KisNodeSP activeBefore, KisNodeSP activeAfter, KisImageSP image, - bool finalize, KUndo2Command *parent = 0); + bool finalize, KUndo2Command *parent = nullptr); void partB() override; private: @@ -165,7 +165,7 @@ class KRITAIMAGE_EXPORT KisSimpleUpdateCommand : public KisCommandUtils::FlipFlopCommand { public: - KisSimpleUpdateCommand(KisNodeList nodes, bool finalize, KUndo2Command *parent = 0); + KisSimpleUpdateCommand(KisNodeList nodes, bool finalize, KUndo2Command *parent = nullptr); void partB() override; static void updateNodes(const KisNodeList &nodes); private: diff --git a/libs/image/kis_paint_device.cc b/libs/image/kis_paint_device.cc --- a/libs/image/kis_paint_device.cc +++ b/libs/image/kis_paint_device.cc @@ -901,7 +901,7 @@ class DeviceChangeColorSpaceCommand : public KUndo2Command { public: - DeviceChangeColorSpaceCommand(KisPaintDeviceSP device, KUndo2Command *parent = 0) + DeviceChangeColorSpaceCommand(KisPaintDeviceSP device, KUndo2Command *parent = nullptr) : KUndo2Command(parent), m_firstRun(true), m_device(device) diff --git a/libs/image/kis_queues_progress_updater.h b/libs/image/kis_queues_progress_updater.h --- a/libs/image/kis_queues_progress_updater.h +++ b/libs/image/kis_queues_progress_updater.h @@ -30,7 +30,7 @@ Q_OBJECT public: - KisQueuesProgressUpdater(KoProgressProxy *progressProxy, QObject *parent = 0); + KisQueuesProgressUpdater(KoProgressProxy *progressProxy, QObject *parent = nullptr); ~KisQueuesProgressUpdater() override; void updateProgress(int queueSizeMetric, const QString &jobName); diff --git a/libs/image/kis_timed_signal_threshold.h b/libs/image/kis_timed_signal_threshold.h --- a/libs/image/kis_timed_signal_threshold.h +++ b/libs/image/kis_timed_signal_threshold.h @@ -34,7 +34,7 @@ { Q_OBJECT public: - KisTimedSignalThreshold(int delay, int cancelDelay = -1, QObject *parent = 0); + KisTimedSignalThreshold(int delay, int cancelDelay = -1, QObject *parent = nullptr); ~KisTimedSignalThreshold() override; public Q_SLOTS: diff --git a/libs/image/kis_transaction.h b/libs/image/kis_transaction.h --- a/libs/image/kis_transaction.h +++ b/libs/image/kis_transaction.h @@ -122,12 +122,12 @@ class KisSelectionTransaction : public KisTransaction { public: - KisSelectionTransaction(KisPixelSelectionSP pixelSelection, KUndo2Command* parent = 0) + KisSelectionTransaction(KisPixelSelectionSP pixelSelection, KUndo2Command* parent = nullptr) { m_transactionData = new KisTransactionData(KUndo2MagicString(), pixelSelection, false, parent); } - KisSelectionTransaction(const KUndo2MagicString& name, KisPixelSelectionSP pixelSelection, KUndo2Command* parent = 0) + KisSelectionTransaction(const KUndo2MagicString& name, KisPixelSelectionSP pixelSelection, KUndo2Command* parent = nullptr) { m_transactionData = new KisTransactionData(name, pixelSelection, false, parent); } diff --git a/libs/image/kis_undo_adapter.h b/libs/image/kis_undo_adapter.h --- a/libs/image/kis_undo_adapter.h +++ b/libs/image/kis_undo_adapter.h @@ -30,7 +30,7 @@ Q_OBJECT public: - KisUndoAdapter(KisUndoStore *undoStore, QObject *parent = 0); + KisUndoAdapter(KisUndoStore *undoStore, QObject *parent = nullptr); ~KisUndoAdapter() override; public: diff --git a/libs/image/kis_update_scheduler.h b/libs/image/kis_update_scheduler.h --- a/libs/image/kis_update_scheduler.h +++ b/libs/image/kis_update_scheduler.h @@ -39,7 +39,7 @@ Q_OBJECT public: - KisUpdateScheduler(KisProjectionUpdateListener *projectionUpdateListener, QObject *parent = 0); + KisUpdateScheduler(KisProjectionUpdateListener *projectionUpdateListener, QObject *parent = nullptr); ~KisUpdateScheduler() override; /** diff --git a/libs/image/kis_updater_context.h b/libs/image/kis_updater_context.h --- a/libs/image/kis_updater_context.h +++ b/libs/image/kis_updater_context.h @@ -42,7 +42,7 @@ static const int useIdealThreadCountTag; public: - KisUpdaterContext(qint32 threadCount = useIdealThreadCountTag, QObject *parent = 0); + KisUpdaterContext(qint32 threadCount = useIdealThreadCountTag, QObject *parent = nullptr); ~KisUpdaterContext() override; diff --git a/libs/image/tests/kimageframe.h b/libs/image/tests/kimageframe.h --- a/libs/image/tests/kimageframe.h +++ b/libs/image/tests/kimageframe.h @@ -24,7 +24,7 @@ { Q_OBJECT public: - KImageFrame(QWidget* parent = 0); + KImageFrame(QWidget* parent = nullptr); ~KImageFrame() override {} public Q_SLOTS: diff --git a/libs/image/tests/kis_random_generator_demo.h b/libs/image/tests/kis_random_generator_demo.h --- a/libs/image/tests/kis_random_generator_demo.h +++ b/libs/image/tests/kis_random_generator_demo.h @@ -42,7 +42,7 @@ { Q_OBJECT public: - KisRandomGeneratorDemo(QWidget* parent = 0); + KisRandomGeneratorDemo(QWidget* parent = nullptr); ~KisRandomGeneratorDemo() override; public Q_SLOTS: diff --git a/libs/libkis/Canvas.h b/libs/libkis/Canvas.h --- a/libs/libkis/Canvas.h +++ b/libs/libkis/Canvas.h @@ -36,7 +36,7 @@ Q_OBJECT public: - explicit Canvas(KoCanvasBase *canvas, QObject *parent = 0); + explicit Canvas(KoCanvasBase *canvas, QObject *parent = nullptr); ~Canvas() override; bool operator==(const Canvas &other) const; diff --git a/libs/libkis/Channel.h b/libs/libkis/Channel.h --- a/libs/libkis/Channel.h +++ b/libs/libkis/Channel.h @@ -36,7 +36,7 @@ Q_OBJECT public: - explicit Channel(KisNodeSP node, KoChannelInfo *channel, QObject *parent = 0); + explicit Channel(KisNodeSP node, KoChannelInfo *channel, QObject *parent = nullptr); ~Channel() override; bool operator==(const Channel &other) const; diff --git a/libs/libkis/CloneLayer.h b/libs/libkis/CloneLayer.h --- a/libs/libkis/CloneLayer.h +++ b/libs/libkis/CloneLayer.h @@ -40,15 +40,15 @@ Q_DISABLE_COPY(CloneLayer) public: - explicit CloneLayer(KisImageSP image, QString name, KisLayerSP source, QObject *parent = 0); + explicit CloneLayer(KisImageSP image, QString name, KisLayerSP source, QObject *parent = nullptr); /** * @brief CloneLayer * function for wrapping a preexisting node into a clonelayer object. * @param layer the clone layer * @param parent the parent QObject */ - explicit CloneLayer(KisCloneLayerSP layer, QObject *parent = 0); + explicit CloneLayer(KisCloneLayerSP layer, QObject *parent = nullptr); ~CloneLayer() override; public Q_SLOTS: diff --git a/libs/libkis/Document.h b/libs/libkis/Document.h --- a/libs/libkis/Document.h +++ b/libs/libkis/Document.h @@ -45,7 +45,7 @@ Q_DISABLE_COPY(Document) public: - explicit Document(KisDocument *document, QObject *parent = 0); + explicit Document(KisDocument *document, QObject *parent = nullptr); ~Document() override; bool operator==(const Document &other) const; diff --git a/libs/libkis/Extension.h b/libs/libkis/Extension.h --- a/libs/libkis/Extension.h +++ b/libs/libkis/Extension.h @@ -67,7 +67,7 @@ * Create a new extension. The extension will be * owned by @p parent. */ - explicit Extension(QObject *parent = 0); + explicit Extension(QObject *parent = nullptr); ~Extension() override; /** diff --git a/libs/libkis/FileLayer.h b/libs/libkis/FileLayer.h --- a/libs/libkis/FileLayer.h +++ b/libs/libkis/FileLayer.h @@ -46,8 +46,8 @@ const QString baseName=QString(), const QString fileName=QString(), const QString scalingMethod=QString(), - QObject *parent = 0); - explicit FileLayer(KisFileLayerSP layer, QObject *parent = 0); + QObject *parent = nullptr); + explicit FileLayer(KisFileLayerSP layer, QObject *parent = nullptr); ~FileLayer() override; public Q_SLOTS: diff --git a/libs/libkis/FillLayer.h b/libs/libkis/FillLayer.h --- a/libs/libkis/FillLayer.h +++ b/libs/libkis/FillLayer.h @@ -55,8 +55,8 @@ * @param selection a selection object, can be empty * @param parent */ - explicit FillLayer(KisImageSP image, QString name, KisFilterConfigurationSP filterConfig, Selection &selection, QObject *parent = 0); - explicit FillLayer(KisGeneratorLayerSP layer, QObject *parent = 0); + explicit FillLayer(KisImageSP image, QString name, KisFilterConfigurationSP filterConfig, Selection &selection, QObject *parent = nullptr); + explicit FillLayer(KisGeneratorLayerSP layer, QObject *parent = nullptr); ~FillLayer() override; public Q_SLOTS: diff --git a/libs/libkis/FilterLayer.h b/libs/libkis/FilterLayer.h --- a/libs/libkis/FilterLayer.h +++ b/libs/libkis/FilterLayer.h @@ -48,8 +48,8 @@ Q_DISABLE_COPY(FilterLayer) public: - explicit FilterLayer(KisImageSP image, QString name, Filter &filter, Selection &selection, QObject *parent = 0); - explicit FilterLayer(KisAdjustmentLayerSP layer, QObject *parent = 0); + explicit FilterLayer(KisImageSP image, QString name, Filter &filter, Selection &selection, QObject *parent = nullptr); + explicit FilterLayer(KisAdjustmentLayerSP layer, QObject *parent = nullptr); ~FilterLayer() override; public Q_SLOTS: diff --git a/libs/libkis/FilterMask.h b/libs/libkis/FilterMask.h --- a/libs/libkis/FilterMask.h +++ b/libs/libkis/FilterMask.h @@ -43,7 +43,7 @@ Q_DISABLE_COPY(FilterMask) public: - explicit FilterMask(KisImageSP image, QString name, Filter &filter, QObject *parent = 0); + explicit FilterMask(KisImageSP image, QString name, Filter &filter, QObject *parent = nullptr); explicit FilterMask(KisImageSP image, KisFilterMaskSP mask, QObject *parent=0); ~FilterMask() override; public Q_SLOTS: diff --git a/libs/libkis/GroupLayer.h b/libs/libkis/GroupLayer.h --- a/libs/libkis/GroupLayer.h +++ b/libs/libkis/GroupLayer.h @@ -44,8 +44,8 @@ Q_DISABLE_COPY(GroupLayer) public: - explicit GroupLayer(KisImageSP image, QString name, QObject *parent = 0); - explicit GroupLayer(KisGroupLayerSP layer, QObject *parent = 0); + explicit GroupLayer(KisImageSP image, QString name, QObject *parent = nullptr); + explicit GroupLayer(KisGroupLayerSP layer, QObject *parent = nullptr); ~GroupLayer() override; public Q_SLOTS: diff --git a/libs/libkis/GroupShape.h b/libs/libkis/GroupShape.h --- a/libs/libkis/GroupShape.h +++ b/libs/libkis/GroupShape.h @@ -34,8 +34,8 @@ Q_OBJECT public: - explicit GroupShape(QObject *parent = 0); - GroupShape(KoShapeGroup *shape, QObject *parent = 0); + explicit GroupShape(QObject *parent = nullptr); + GroupShape(KoShapeGroup *shape, QObject *parent = nullptr); ~GroupShape(); public Q_SLOTS: diff --git a/libs/libkis/InfoObject.h b/libs/libkis/InfoObject.h --- a/libs/libkis/InfoObject.h +++ b/libs/libkis/InfoObject.h @@ -38,7 +38,7 @@ /** * Create a new, empty InfoObject. */ - explicit InfoObject(QObject *parent = 0); + explicit InfoObject(QObject *parent = nullptr); ~InfoObject() override; bool operator==(const InfoObject &other) const; diff --git a/libs/libkis/Krita.h b/libs/libkis/Krita.h --- a/libs/libkis/Krita.h +++ b/libs/libkis/Krita.h @@ -41,7 +41,7 @@ Q_OBJECT public: - explicit Krita(QObject *parent = 0); + explicit Krita(QObject *parent = nullptr); ~Krita() override; public Q_SLOTS: diff --git a/libs/libkis/ManagedColor.h b/libs/libkis/ManagedColor.h --- a/libs/libkis/ManagedColor.h +++ b/libs/libkis/ManagedColor.h @@ -63,13 +63,13 @@ * @brief ManagedColor * Create a ManagedColor that is black and transparent. */ - explicit ManagedColor(QObject *parent = 0); + explicit ManagedColor(QObject *parent = nullptr); /** * @brief ManagedColor create a managed color with the given color space properties. * @see setColorModel() for more details. */ - ManagedColor(const QString &colorModel, const QString &colorDepth, const QString &colorProfile, QObject *parent = 0); - ManagedColor(KoColor color, QObject *parent = 0); + ManagedColor(const QString &colorModel, const QString &colorDepth, const QString &colorProfile, QObject *parent = nullptr); + ManagedColor(KoColor color, QObject *parent = nullptr); ~ManagedColor() override; bool operator==(const ManagedColor &other) const; diff --git a/libs/libkis/Node.h b/libs/libkis/Node.h --- a/libs/libkis/Node.h +++ b/libs/libkis/Node.h @@ -36,7 +36,7 @@ Q_DISABLE_COPY(Node) public: - explicit Node(KisImageSP image, KisNodeSP node, QObject *parent = 0); + explicit Node(KisImageSP image, KisNodeSP node, QObject *parent = nullptr); ~Node() override; bool operator==(const Node &other) const; bool operator!=(const Node &other) const; diff --git a/libs/libkis/Notifier.h b/libs/libkis/Notifier.h --- a/libs/libkis/Notifier.h +++ b/libs/libkis/Notifier.h @@ -38,7 +38,7 @@ Q_PROPERTY(bool Active READ active WRITE setActive) public: - explicit Notifier(QObject *parent = 0); + explicit Notifier(QObject *parent = nullptr); ~Notifier() override; /** diff --git a/libs/libkis/Palette.cpp b/libs/libkis/Palette.cpp --- a/libs/libkis/Palette.cpp +++ b/libs/libkis/Palette.cpp @@ -115,7 +115,7 @@ int col = index % columnCount(); int tmp = index; int row = (index - col) / columnCount(); - KisSwatchGroup *groupFoundIn = Q_NULLPTR; + KisSwatchGroup *groupFoundIn = nullptr; Q_FOREACH(const QString &name, groupNames()) { KisSwatchGroup *g = d->palette->getGroup(name); tmp -= g->rowCount() * columnCount(); diff --git a/libs/libkis/PaletteView.h b/libs/libkis/PaletteView.h --- a/libs/libkis/PaletteView.h +++ b/libs/libkis/PaletteView.h @@ -44,7 +44,7 @@ { Q_OBJECT public: - PaletteView(QWidget *parent = 0); + PaletteView(QWidget *parent = nullptr); ~PaletteView(); public Q_SLOTS: /** diff --git a/libs/libkis/PresetChooser.h b/libs/libkis/PresetChooser.h --- a/libs/libkis/PresetChooser.h +++ b/libs/libkis/PresetChooser.h @@ -38,7 +38,7 @@ { Q_OBJECT public: - PresetChooser(QWidget *parent = 0); + PresetChooser(QWidget *parent = nullptr); ~PresetChooser() override {} public Q_SLOTS: diff --git a/libs/libkis/Resource.h b/libs/libkis/Resource.h --- a/libs/libkis/Resource.h +++ b/libs/libkis/Resource.h @@ -44,7 +44,7 @@ Q_OBJECT public: - explicit Resource(KoResource *resource, QObject *parent = 0); + explicit Resource(KoResource *resource, QObject *parent = nullptr); ~Resource() override; bool operator==(const Resource &other) const; bool operator!=(const Resource &other) const; diff --git a/libs/libkis/Selection.h b/libs/libkis/Selection.h --- a/libs/libkis/Selection.h +++ b/libs/libkis/Selection.h @@ -49,12 +49,12 @@ /** * For internal use only. */ - Selection(KisSelectionSP selection, QObject *parent = 0); + Selection(KisSelectionSP selection, QObject *parent = nullptr); /** * Create a new, empty selection object. */ - explicit Selection(QObject *parent = 0); + explicit Selection(QObject *parent = nullptr); ~Selection() override; bool operator==(const Selection &other) const; diff --git a/libs/libkis/SelectionMask.h b/libs/libkis/SelectionMask.h --- a/libs/libkis/SelectionMask.h +++ b/libs/libkis/SelectionMask.h @@ -41,8 +41,8 @@ Q_DISABLE_COPY(SelectionMask) public: - explicit SelectionMask(KisImageSP image, QString name, QObject *parent = 0); - explicit SelectionMask(KisImageSP image, KisSelectionMaskSP mask, QObject *parent = 0); + explicit SelectionMask(KisImageSP image, QString name, QObject *parent = nullptr); + explicit SelectionMask(KisImageSP image, KisSelectionMaskSP mask, QObject *parent = nullptr); ~SelectionMask() override; public Q_SLOTS: diff --git a/libs/libkis/Shape.h b/libs/libkis/Shape.h --- a/libs/libkis/Shape.h +++ b/libs/libkis/Shape.h @@ -52,7 +52,7 @@ Q_DISABLE_COPY(Shape) public: - explicit Shape(KoShape *shape, QObject *parent = 0); + explicit Shape(KoShape *shape, QObject *parent = nullptr); ~Shape(); public Q_SLOTS: diff --git a/libs/libkis/VectorLayer.h b/libs/libkis/VectorLayer.h --- a/libs/libkis/VectorLayer.h +++ b/libs/libkis/VectorLayer.h @@ -46,8 +46,8 @@ Q_DISABLE_COPY(VectorLayer) public: - explicit VectorLayer(KoShapeControllerBase* shapeController, KisImageSP image, QString name, QObject *parent = 0); - explicit VectorLayer(KisShapeLayerSP layer, QObject *parent = 0); + explicit VectorLayer(KoShapeControllerBase* shapeController, KisImageSP image, QString name, QObject *parent = nullptr); + explicit VectorLayer(KisShapeLayerSP layer, QObject *parent = nullptr); ~VectorLayer() override; public Q_SLOTS: diff --git a/libs/libkis/View.h b/libs/libkis/View.h --- a/libs/libkis/View.h +++ b/libs/libkis/View.h @@ -38,7 +38,7 @@ Q_DISABLE_COPY(View) public: - explicit View(KisView *view, QObject *parent = 0); + explicit View(KisView *view, QObject *parent = nullptr); ~View() override; bool operator==(const View &other) const; diff --git a/libs/libkis/Window.h b/libs/libkis/Window.h --- a/libs/libkis/Window.h +++ b/libs/libkis/Window.h @@ -36,7 +36,7 @@ Q_OBJECT public: - explicit Window(KisMainWindow *window, QObject *parent = 0); + explicit Window(KisMainWindow *window, QObject *parent = nullptr); ~Window() override; bool operator==(const Window &other) const; diff --git a/libs/libqml/DocumentListModel.h b/libs/libqml/DocumentListModel.h --- a/libs/libqml/DocumentListModel.h +++ b/libs/libqml/DocumentListModel.h @@ -34,7 +34,7 @@ Q_PROPERTY(DocumentType filter READ filter WRITE setFilter) public: - DocumentListModel(QObject *parent = 0); + DocumentListModel(QObject *parent = nullptr); ~DocumentListModel(); QHash roleNames() const; diff --git a/libs/libqml/DocumentManager.h b/libs/libqml/DocumentManager.h --- a/libs/libqml/DocumentManager.h +++ b/libs/libqml/DocumentManager.h @@ -58,7 +58,7 @@ void documentSaved(); private: - explicit DocumentManager(QObject *parent = 0); + explicit DocumentManager(QObject *parent = nullptr); virtual ~DocumentManager(); class Private; diff --git a/libs/libqml/KisSketchView.h b/libs/libqml/KisSketchView.h --- a/libs/libqml/KisSketchView.h +++ b/libs/libqml/KisSketchView.h @@ -40,7 +40,7 @@ // Q_PROPERTY(int imageWidth READ imageWidth NOTIFY imageSizeChanged) public: - explicit KisSketchView(QQuickItem* parent = 0); + explicit KisSketchView(QQuickItem* parent = nullptr); virtual ~KisSketchView(); QObject* selectionManager() const; diff --git a/libs/libqml/ProgressProxy.h b/libs/libqml/ProgressProxy.h --- a/libs/libqml/ProgressProxy.h +++ b/libs/libqml/ProgressProxy.h @@ -30,7 +30,7 @@ Q_PROPERTY(QString taskName READ taskName NOTIFY taskNameChanged) public: - ProgressProxy(QObject* parent = 0); + ProgressProxy(QObject* parent = nullptr); virtual ~ProgressProxy(); QString taskName() const; diff --git a/libs/libqml/PropertyContainer.h b/libs/libqml/PropertyContainer.h --- a/libs/libqml/PropertyContainer.h +++ b/libs/libqml/PropertyContainer.h @@ -33,7 +33,7 @@ { Q_OBJECT public: - PropertyContainer(QString name, QObject* parent = 0); + PropertyContainer(QString name, QObject* parent = nullptr); virtual ~PropertyContainer(); // As QObject already as setProperty and property() functions, we must diff --git a/libs/libqml/RecentFileManager.h b/libs/libqml/RecentFileManager.h --- a/libs/libqml/RecentFileManager.h +++ b/libs/libqml/RecentFileManager.h @@ -29,7 +29,7 @@ { Q_OBJECT public: - explicit RecentFileManager(QObject *parent = 0); + explicit RecentFileManager(QObject *parent = nullptr); ~RecentFileManager(); /// @return the size of the recent files list diff --git a/libs/libqml/Settings.h b/libs/libqml/Settings.h --- a/libs/libqml/Settings.h +++ b/libs/libqml/Settings.h @@ -40,7 +40,7 @@ Q_PROPERTY(QString lastPreset READ lastPreset NOTIFY lastPresetChanged) public: - explicit Settings( QObject* parent = 0); + explicit Settings( QObject* parent = nullptr); virtual ~Settings(); void setTheme(Theme *theme); diff --git a/libs/libqml/SketchInputContext.h b/libs/libqml/SketchInputContext.h --- a/libs/libqml/SketchInputContext.h +++ b/libs/libqml/SketchInputContext.h @@ -26,7 +26,7 @@ class KRITA_SKETCH_EXPORT SketchInputContext : public QInputContext { public: - explicit SketchInputContext(QObject* parent = 0); + explicit SketchInputContext(QObject* parent = nullptr); virtual ~SketchInputContext(); virtual bool isComposing() const; diff --git a/libs/libqml/Theme.h b/libs/libqml/Theme.h --- a/libs/libqml/Theme.h +++ b/libs/libqml/Theme.h @@ -115,7 +115,7 @@ public: static Theme *instance(); - explicit Theme(QObject* parent = 0); + explicit Theme(QObject* parent = nullptr); virtual ~Theme(); /** diff --git a/libs/libqml/VirtualKeyboardController.h b/libs/libqml/VirtualKeyboardController.h --- a/libs/libqml/VirtualKeyboardController.h +++ b/libs/libqml/VirtualKeyboardController.h @@ -37,7 +37,7 @@ void hideKeyboard(); private: - explicit VirtualKeyboardController(QObject* parent = 0); + explicit VirtualKeyboardController(QObject* parent = nullptr); virtual ~VirtualKeyboardController(); static VirtualKeyboardController* sm_instance; diff --git a/libs/libqml/plugins/draganddrop/DeclarativeDragDropEvent.h b/libs/libqml/plugins/draganddrop/DeclarativeDragDropEvent.h --- a/libs/libqml/plugins/draganddrop/DeclarativeDragDropEvent.h +++ b/libs/libqml/plugins/draganddrop/DeclarativeDragDropEvent.h @@ -95,8 +95,8 @@ public: - DeclarativeDragDropEvent(QDropEvent* e, DeclarativeDropArea* parent = 0); - DeclarativeDragDropEvent(QDragLeaveEvent* e, DeclarativeDropArea* parent = 0); + DeclarativeDragDropEvent(QDropEvent* e, DeclarativeDropArea* parent = nullptr); + DeclarativeDragDropEvent(QDragLeaveEvent* e, DeclarativeDropArea* parent = nullptr); int x() const { return m_x; } int y() const { return m_y; } diff --git a/libs/libqml/plugins/kritasketchplugin/ColorSelectorItem.h b/libs/libqml/plugins/kritasketchplugin/ColorSelectorItem.h --- a/libs/libqml/plugins/kritasketchplugin/ColorSelectorItem.h +++ b/libs/libqml/plugins/kritasketchplugin/ColorSelectorItem.h @@ -31,7 +31,7 @@ // This is a heuristic assistance property - if this is set to false, the item will not be painted Q_PROPERTY(bool shown READ shown WRITE setShown NOTIFY shownChanged) public: - explicit ColorSelectorItem(QQuickItem* parent = 0); + explicit ColorSelectorItem(QQuickItem* parent = nullptr); virtual ~ColorSelectorItem(); virtual void paint(QPainter* painter); diff --git a/libs/libqml/plugins/kritasketchplugin/Constants.h b/libs/libqml/plugins/kritasketchplugin/Constants.h --- a/libs/libqml/plugins/kritasketchplugin/Constants.h +++ b/libs/libqml/plugins/kritasketchplugin/Constants.h @@ -39,7 +39,7 @@ Q_PROPERTY(qreal HugeFontSize READ hugeFontSize NOTIFY gridSizeChanged) public: - Constants(QObject* parent = 0); + Constants(QObject* parent = nullptr); int animationDuration() const; qreal gridHeight() const; diff --git a/libs/libqml/plugins/kritasketchplugin/CurveEditorItem.h b/libs/libqml/plugins/kritasketchplugin/CurveEditorItem.h --- a/libs/libqml/plugins/kritasketchplugin/CurveEditorItem.h +++ b/libs/libqml/plugins/kritasketchplugin/CurveEditorItem.h @@ -32,7 +32,7 @@ Q_PROPERTY(KisCubicCurve curve READ curve WRITE setCurve NOTIFY curveChanged); Q_PROPERTY(bool pointSelected READ pointSelected NOTIFY pointSelectedChanged); public: - explicit CurveEditorItem(QQuickItem* parent = 0); + explicit CurveEditorItem(QQuickItem* parent = nullptr); virtual ~CurveEditorItem(); virtual void paint(QPainter* p); diff --git a/libs/libqml/plugins/kritasketchplugin/ImageBuilder.h b/libs/libqml/plugins/kritasketchplugin/ImageBuilder.h --- a/libs/libqml/plugins/kritasketchplugin/ImageBuilder.h +++ b/libs/libqml/plugins/kritasketchplugin/ImageBuilder.h @@ -26,7 +26,7 @@ { Q_OBJECT public: - explicit ImageBuilder(QObject* parent = 0); + explicit ImageBuilder(QObject* parent = nullptr); virtual ~ImageBuilder(); Q_INVOKABLE QString createBlankImage(int width, int height, int resolution); diff --git a/libs/libqml/plugins/kritasketchplugin/KritaNamespace.h b/libs/libqml/plugins/kritasketchplugin/KritaNamespace.h --- a/libs/libqml/plugins/kritasketchplugin/KritaNamespace.h +++ b/libs/libqml/plugins/kritasketchplugin/KritaNamespace.h @@ -33,7 +33,7 @@ Q_PROPERTY(QObject* ProgressProxy READ progressProxy CONSTANT) public: - explicit KritaNamespace(QObject* parent = 0); + explicit KritaNamespace(QObject* parent = nullptr); virtual ~KritaNamespace(); QObject *imageBuilder() const; diff --git a/libs/libqml/plugins/kritasketchplugin/MouseTracker.h b/libs/libqml/plugins/kritasketchplugin/MouseTracker.h --- a/libs/libqml/plugins/kritasketchplugin/MouseTracker.h +++ b/libs/libqml/plugins/kritasketchplugin/MouseTracker.h @@ -31,7 +31,7 @@ { Q_OBJECT public: - explicit MouseTracker(QObject* parent = 0); + explicit MouseTracker(QObject* parent = nullptr); virtual ~MouseTracker(); public Q_SLOTS: diff --git a/libs/libqml/plugins/kritasketchplugin/PanelConfiguration.h b/libs/libqml/plugins/kritasketchplugin/PanelConfiguration.h --- a/libs/libqml/plugins/kritasketchplugin/PanelConfiguration.h +++ b/libs/libqml/plugins/kritasketchplugin/PanelConfiguration.h @@ -33,7 +33,7 @@ Q_INTERFACES(QQmlParserStatus) public: - explicit PanelConfiguration(QObject* parent = 0); + explicit PanelConfiguration(QObject* parent = nullptr); virtual ~PanelConfiguration(); virtual void componentComplete(); diff --git a/libs/libqml/plugins/kritasketchplugin/PropertyContainer.h b/libs/libqml/plugins/kritasketchplugin/PropertyContainer.h --- a/libs/libqml/plugins/kritasketchplugin/PropertyContainer.h +++ b/libs/libqml/plugins/kritasketchplugin/PropertyContainer.h @@ -33,7 +33,7 @@ { Q_OBJECT public: - PropertyContainer(QString name, QObject* parent = 0); + PropertyContainer(QString name, QObject* parent = nullptr); virtual ~PropertyContainer(); // As QObject already as setProperty and property() functions, we must diff --git a/libs/libqml/plugins/kritasketchplugin/SimpleTouchArea.h b/libs/libqml/plugins/kritasketchplugin/SimpleTouchArea.h --- a/libs/libqml/plugins/kritasketchplugin/SimpleTouchArea.h +++ b/libs/libqml/plugins/kritasketchplugin/SimpleTouchArea.h @@ -25,7 +25,7 @@ { Q_OBJECT public: - explicit SimpleTouchArea(QQuickItem* parent = 0); + explicit SimpleTouchArea(QQuickItem* parent = nullptr); virtual ~SimpleTouchArea(); Q_SIGNALS: diff --git a/libs/libqml/plugins/kritasketchplugin/ToolManager.h b/libs/libqml/plugins/kritasketchplugin/ToolManager.h --- a/libs/libqml/plugins/kritasketchplugin/ToolManager.h +++ b/libs/libqml/plugins/kritasketchplugin/ToolManager.h @@ -30,7 +30,7 @@ Q_PROPERTY(QObject* view READ view WRITE setView NOTIFY viewChanged) Q_PROPERTY(QObject* currentTool READ currentTool NOTIFY currentToolChanged); public: - explicit ToolManager(QQuickItem* parent = 0); + explicit ToolManager(QQuickItem* parent = nullptr); virtual ~ToolManager(); QObject* view() const; diff --git a/libs/libqml/plugins/kritasketchplugin/models/ColorDepthModel.h b/libs/libqml/plugins/kritasketchplugin/models/ColorDepthModel.h --- a/libs/libqml/plugins/kritasketchplugin/models/ColorDepthModel.h +++ b/libs/libqml/plugins/kritasketchplugin/models/ColorDepthModel.h @@ -32,7 +32,7 @@ TextRole = Qt::UserRole + 1, }; - explicit ColorDepthModel(QObject* parent = 0); + explicit ColorDepthModel(QObject* parent = nullptr); virtual ~ColorDepthModel(); QHash roleNames() const; virtual QVariant data(const QModelIndex& index, int role) const; diff --git a/libs/libqml/plugins/kritasketchplugin/models/ColorModelModel.h b/libs/libqml/plugins/kritasketchplugin/models/ColorModelModel.h --- a/libs/libqml/plugins/kritasketchplugin/models/ColorModelModel.h +++ b/libs/libqml/plugins/kritasketchplugin/models/ColorModelModel.h @@ -31,7 +31,7 @@ TextRole = Qt::UserRole + 1, }; - ColorModelModel(QObject* parent = 0); + ColorModelModel(QObject* parent = nullptr); ~ColorModelModel(); QHash roleNames() const; virtual int rowCount(const QModelIndex& parent) const; diff --git a/libs/libqml/plugins/kritasketchplugin/models/ColorProfileModel.h b/libs/libqml/plugins/kritasketchplugin/models/ColorProfileModel.h --- a/libs/libqml/plugins/kritasketchplugin/models/ColorProfileModel.h +++ b/libs/libqml/plugins/kritasketchplugin/models/ColorProfileModel.h @@ -34,7 +34,7 @@ TextRole = Qt::UserRole + 1, }; - explicit ColorProfileModel(QObject* parent = 0); + explicit ColorProfileModel(QObject* parent = nullptr); virtual ~ColorProfileModel(); QHash roleNames() const; virtual QVariant data(const QModelIndex& index, int role) const; diff --git a/libs/libqml/plugins/kritasketchplugin/models/CompositeOpModel.h b/libs/libqml/plugins/kritasketchplugin/models/CompositeOpModel.h --- a/libs/libqml/plugins/kritasketchplugin/models/CompositeOpModel.h +++ b/libs/libqml/plugins/kritasketchplugin/models/CompositeOpModel.h @@ -48,7 +48,7 @@ TextRole = Qt::UserRole + 1, IsCategoryRole }; - explicit CompositeOpModel(QObject* parent = 0); + explicit CompositeOpModel(QObject* parent = nullptr); virtual ~CompositeOpModel(); QHash roleNames() const; virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; diff --git a/libs/libqml/plugins/kritasketchplugin/models/FileSystemModel.h b/libs/libqml/plugins/kritasketchplugin/models/FileSystemModel.h --- a/libs/libqml/plugins/kritasketchplugin/models/FileSystemModel.h +++ b/libs/libqml/plugins/kritasketchplugin/models/FileSystemModel.h @@ -44,7 +44,7 @@ FileDateRole }; - explicit FileSystemModel(QObject* parent = 0); + explicit FileSystemModel(QObject* parent = nullptr); virtual ~FileSystemModel(); virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; diff --git a/libs/libqml/plugins/kritasketchplugin/models/FiltersCategoryModel.h b/libs/libqml/plugins/kritasketchplugin/models/FiltersCategoryModel.h --- a/libs/libqml/plugins/kritasketchplugin/models/FiltersCategoryModel.h +++ b/libs/libqml/plugins/kritasketchplugin/models/FiltersCategoryModel.h @@ -34,7 +34,7 @@ enum FiltersCategoryModelRoles { TextRole = Qt::UserRole + 1 }; - explicit FiltersCategoryModel(QObject* parent = 0); + explicit FiltersCategoryModel(QObject* parent = nullptr); virtual ~FiltersCategoryModel(); QHash roleNames() const; virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; diff --git a/libs/libqml/plugins/kritasketchplugin/models/FiltersModel.h b/libs/libqml/plugins/kritasketchplugin/models/FiltersModel.h --- a/libs/libqml/plugins/kritasketchplugin/models/FiltersModel.h +++ b/libs/libqml/plugins/kritasketchplugin/models/FiltersModel.h @@ -30,7 +30,7 @@ enum FiltersModelRoles { TextRole = Qt::UserRole + 1 }; - explicit FiltersModel(QObject* parent = 0); + explicit FiltersModel(QObject* parent = nullptr); virtual ~FiltersModel(); QHash roleNames() const; virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; diff --git a/libs/libqml/plugins/kritasketchplugin/models/KeyboardModel.h b/libs/libqml/plugins/kritasketchplugin/models/KeyboardModel.h --- a/libs/libqml/plugins/kritasketchplugin/models/KeyboardModel.h +++ b/libs/libqml/plugins/kritasketchplugin/models/KeyboardModel.h @@ -56,7 +56,7 @@ }; Q_ENUMS(KeyType) - explicit KeyboardModel(QObject* parent = 0); + explicit KeyboardModel(QObject* parent = nullptr); virtual ~KeyboardModel(); QHash roleNames() const; diff --git a/libs/libqml/plugins/kritasketchplugin/models/LayerCompositeDetails.h b/libs/libqml/plugins/kritasketchplugin/models/LayerCompositeDetails.h --- a/libs/libqml/plugins/kritasketchplugin/models/LayerCompositeDetails.h +++ b/libs/libqml/plugins/kritasketchplugin/models/LayerCompositeDetails.h @@ -26,7 +26,7 @@ { Q_OBJECT public: - explicit LayerCompositeDetails(QObject* parent = 0); + explicit LayerCompositeDetails(QObject* parent = nullptr); virtual ~LayerCompositeDetails(); }; diff --git a/libs/libqml/plugins/kritasketchplugin/models/LayerModel.h b/libs/libqml/plugins/kritasketchplugin/models/LayerModel.h --- a/libs/libqml/plugins/kritasketchplugin/models/LayerModel.h +++ b/libs/libqml/plugins/kritasketchplugin/models/LayerModel.h @@ -65,7 +65,7 @@ CanMoveUpRole, CanMoveDownRole }; - explicit LayerModel(QObject* parent = 0); + explicit LayerModel(QObject* parent = nullptr); virtual ~LayerModel(); QHash roleNames() const; QObject* view() const; diff --git a/libs/libqml/plugins/kritasketchplugin/models/PaletteColorsModel.h b/libs/libqml/plugins/kritasketchplugin/models/PaletteColorsModel.h --- a/libs/libqml/plugins/kritasketchplugin/models/PaletteColorsModel.h +++ b/libs/libqml/plugins/kritasketchplugin/models/PaletteColorsModel.h @@ -33,7 +33,7 @@ TextRole }; - explicit PaletteColorsModel(QObject *parent = 0); + explicit PaletteColorsModel(QObject *parent = nullptr); virtual ~PaletteColorsModel(); QHash roleNames() const; virtual int rowCount(const QModelIndex &parent) const; diff --git a/libs/libqml/plugins/kritasketchplugin/models/PaletteModel.h b/libs/libqml/plugins/kritasketchplugin/models/PaletteModel.h --- a/libs/libqml/plugins/kritasketchplugin/models/PaletteModel.h +++ b/libs/libqml/plugins/kritasketchplugin/models/PaletteModel.h @@ -30,7 +30,7 @@ ImageRole = Qt::UserRole + 1, TextRole }; - explicit PaletteModel(QObject *parent = 0); + explicit PaletteModel(QObject *parent = nullptr); virtual ~PaletteModel(); QHash roleNames() const; virtual int rowCount(const QModelIndex &parent) const; diff --git a/libs/libqml/plugins/kritasketchplugin/models/PresetModel.h b/libs/libqml/plugins/kritasketchplugin/models/PresetModel.h --- a/libs/libqml/plugins/kritasketchplugin/models/PresetModel.h +++ b/libs/libqml/plugins/kritasketchplugin/models/PresetModel.h @@ -33,7 +33,7 @@ NameRole }; - explicit PresetModel(QObject *parent = 0); + explicit PresetModel(QObject *parent = nullptr); virtual ~PresetModel(); QHash roleNames() const; virtual int rowCount(const QModelIndex &parent) const; diff --git a/libs/libqml/plugins/kritasketchplugin/models/RecentImagesModel.h b/libs/libqml/plugins/kritasketchplugin/models/RecentImagesModel.h --- a/libs/libqml/plugins/kritasketchplugin/models/RecentImagesModel.h +++ b/libs/libqml/plugins/kritasketchplugin/models/RecentImagesModel.h @@ -34,7 +34,7 @@ DateRole }; - explicit RecentImagesModel(QObject *parent = 0); + explicit RecentImagesModel(QObject *parent = nullptr); virtual ~RecentImagesModel(); QHash roleNames() const; virtual int rowCount(const QModelIndex &parent) const; diff --git a/libs/libqml/plugins/kritasketchplugin/models/TemplatesModel.h b/libs/libqml/plugins/kritasketchplugin/models/TemplatesModel.h --- a/libs/libqml/plugins/kritasketchplugin/models/TemplatesModel.h +++ b/libs/libqml/plugins/kritasketchplugin/models/TemplatesModel.h @@ -38,7 +38,7 @@ GroupName, GroupFolded }; - explicit TemplatesModel(QObject* parent = 0); + explicit TemplatesModel(QObject* parent = nullptr); virtual ~TemplatesModel(); QHash roleNames() const; virtual QVariant data(const QModelIndex& index, int role) const; diff --git a/libs/odf/KoDocumentInfo.h b/libs/odf/KoDocumentInfo.h --- a/libs/odf/KoDocumentInfo.h +++ b/libs/odf/KoDocumentInfo.h @@ -56,8 +56,8 @@ * The constructor * @param parent a pointer to the parent object */ - explicit KoDocumentInfo(QObject *parent = 0); - explicit KoDocumentInfo(const KoDocumentInfo &rhs, QObject *parent = 0); + explicit KoDocumentInfo(QObject *parent = nullptr); + explicit KoDocumentInfo(const KoDocumentInfo &rhs, QObject *parent = nullptr); /** The destructor */ ~KoDocumentInfo() override; diff --git a/libs/pigment/resources/KoColorSet.cpp b/libs/pigment/resources/KoColorSet.cpp --- a/libs/pigment/resources/KoColorSet.cpp +++ b/libs/pigment/resources/KoColorSet.cpp @@ -116,7 +116,7 @@ /// Create an copied palette KoColorSet::KoColorSet(const KoColorSet& rhs) - : QObject(Q_NULLPTR) + : QObject(nullptr) , KoResource(rhs) , d(new Private(this)) { @@ -431,7 +431,7 @@ KisSwatchGroup *KoColorSet::getGroup(const QString &name) { if (!d->groups.contains(name)) { - return Q_NULLPTR; + return nullptr; } return &(d->groups[name]); } diff --git a/libs/ui/KisActionPlugin.h b/libs/ui/KisActionPlugin.h --- a/libs/ui/KisActionPlugin.h +++ b/libs/ui/KisActionPlugin.h @@ -36,7 +36,7 @@ { Q_OBJECT public: - KisActionPlugin(QObject *parent = 0); + KisActionPlugin(QObject *parent = nullptr); ~KisActionPlugin() override; protected: diff --git a/libs/ui/KisAsyncAnimationRendererBase.h b/libs/ui/KisAsyncAnimationRendererBase.h --- a/libs/ui/KisAsyncAnimationRendererBase.h +++ b/libs/ui/KisAsyncAnimationRendererBase.h @@ -38,7 +38,7 @@ { Q_OBJECT public: - explicit KisAsyncAnimationRendererBase(QObject *parent = 0); + explicit KisAsyncAnimationRendererBase(QObject *parent = nullptr); virtual ~KisAsyncAnimationRendererBase(); /** diff --git a/libs/ui/KisAutoSaveRecoveryDialog.h b/libs/ui/KisAutoSaveRecoveryDialog.h --- a/libs/ui/KisAutoSaveRecoveryDialog.h +++ b/libs/ui/KisAutoSaveRecoveryDialog.h @@ -32,7 +32,7 @@ Q_OBJECT public: - explicit KisAutoSaveRecoveryDialog(const QStringList &filenames, QWidget *parent = 0); + explicit KisAutoSaveRecoveryDialog(const QStringList &filenames, QWidget *parent = nullptr); ~KisAutoSaveRecoveryDialog() override; QStringList recoverableFiles(); diff --git a/libs/ui/KisChangeCloneLayersCommand.h b/libs/ui/KisChangeCloneLayersCommand.h --- a/libs/ui/KisChangeCloneLayersCommand.h +++ b/libs/ui/KisChangeCloneLayersCommand.h @@ -26,7 +26,7 @@ { public: - KisChangeCloneLayersCommand(QList cloneLayers, KisLayerSP newSource, KUndo2Command *parent = 0); + KisChangeCloneLayersCommand(QList cloneLayers, KisLayerSP newSource, KUndo2Command *parent = nullptr); void undo() override; void redo() override; diff --git a/libs/ui/KisImportExportFilter.h b/libs/ui/KisImportExportFilter.h --- a/libs/ui/KisImportExportFilter.h +++ b/libs/ui/KisImportExportFilter.h @@ -160,7 +160,7 @@ /** * This is the constructor your filter has to call, obviously. */ - KisImportExportFilter(QObject *parent = 0); + KisImportExportFilter(QObject *parent = nullptr); QString filename() const; QString realFilename() const; diff --git a/libs/ui/KisMouseClickEater.h b/libs/ui/KisMouseClickEater.h --- a/libs/ui/KisMouseClickEater.h +++ b/libs/ui/KisMouseClickEater.h @@ -29,7 +29,7 @@ public: KisMouseClickEater(Qt::MouseButtons buttons, int clicksToEat = 1, - QObject *parent = 0); + QObject *parent = nullptr); ~KisMouseClickEater(); diff --git a/libs/ui/KisMultiFeedRSSModel.h b/libs/ui/KisMultiFeedRSSModel.h --- a/libs/ui/KisMultiFeedRSSModel.h +++ b/libs/ui/KisMultiFeedRSSModel.h @@ -66,7 +66,7 @@ Q_OBJECT Q_PROPERTY(int articleCount READ articleCount WRITE setArticleCount NOTIFY articleCountChanged) public: - explicit MultiFeedRssModel(QObject *parent = 0); + explicit MultiFeedRssModel(QObject *parent = nullptr); ~MultiFeedRssModel() override; QHash roleNames() const override; void addFeed(const QString& feed); diff --git a/libs/ui/KisNetworkAccessManager.h b/libs/ui/KisNetworkAccessManager.h --- a/libs/ui/KisNetworkAccessManager.h +++ b/libs/ui/KisNetworkAccessManager.h @@ -28,7 +28,7 @@ { Q_OBJECT public: - KisNetworkAccessManager(QObject *parent = 0); + KisNetworkAccessManager(QObject *parent = nullptr); public Q_SLOTS: void getUrl(const QUrl &url); diff --git a/libs/ui/KisNodeDisplayModeAdapter.h b/libs/ui/KisNodeDisplayModeAdapter.h --- a/libs/ui/KisNodeDisplayModeAdapter.h +++ b/libs/ui/KisNodeDisplayModeAdapter.h @@ -26,7 +26,7 @@ { Q_OBJECT public: - KisNodeDisplayModeAdapter(QObject *parent = 0); + KisNodeDisplayModeAdapter(QObject *parent = nullptr); bool showRootNode() const; void setShowRootNode(bool value); diff --git a/libs/ui/KisPaletteEditor.h b/libs/ui/KisPaletteEditor.h --- a/libs/ui/KisPaletteEditor.h +++ b/libs/ui/KisPaletteEditor.h @@ -46,7 +46,7 @@ struct PaletteInfo; public: - explicit KisPaletteEditor(QObject *parent = Q_NULLPTR); + explicit KisPaletteEditor(QObject *parent = nullptr); ~KisPaletteEditor(); void setPaletteModel(KisPaletteModel *model); diff --git a/libs/ui/KisPaletteEditor.cpp b/libs/ui/KisPaletteEditor.cpp --- a/libs/ui/KisPaletteEditor.cpp +++ b/libs/ui/KisPaletteEditor.cpp @@ -123,7 +123,7 @@ void KisPaletteEditor::importPalette() { - KoFileDialog dialog(Q_NULLPTR, KoFileDialog::OpenFile, "Open Palette"); + KoFileDialog dialog(nullptr, KoFileDialog::OpenFile, "Open Palette"); dialog.setDefaultDir(QDir::homePath()); dialog.setMimeTypeFilters(QStringList() << "krita/x-colorset" << "application/x-gimp-color-palette"); QString filename = dialog.filename(); diff --git a/libs/ui/KisReferenceImage.h b/libs/ui/KisReferenceImage.h --- a/libs/ui/KisReferenceImage.h +++ b/libs/ui/KisReferenceImage.h @@ -46,7 +46,7 @@ QVector oldSaturations; qreal newSaturation; - explicit SetSaturationCommand(const QList &images, qreal newSaturation, KUndo2Command *parent = 0); + explicit SetSaturationCommand(const QList &images, qreal newSaturation, KUndo2Command *parent = nullptr); void undo() override; void redo() override; }; diff --git a/libs/ui/KisRemoteFileFetcher.h b/libs/ui/KisRemoteFileFetcher.h --- a/libs/ui/KisRemoteFileFetcher.h +++ b/libs/ui/KisRemoteFileFetcher.h @@ -37,7 +37,7 @@ { Q_OBJECT public: - explicit KisRemoteFileFetcher(QObject *parent = 0); + explicit KisRemoteFileFetcher(QObject *parent = nullptr); ~KisRemoteFileFetcher() override; bool fetchFile(const QUrl &remote, QIODevice *io); diff --git a/libs/ui/KisTemplateCreateDia.h b/libs/ui/KisTemplateCreateDia.h --- a/libs/ui/KisTemplateCreateDia.h +++ b/libs/ui/KisTemplateCreateDia.h @@ -47,7 +47,7 @@ public: static void createTemplate(const QString &templatesResourcePath, const char *suffix, - KisDocument *document, QWidget *parent = 0); + KisDocument *document, QWidget *parent = nullptr); private Q_SLOTS: void slotOk(); diff --git a/libs/ui/KisUndoActionsUpdateManager.h b/libs/ui/KisUndoActionsUpdateManager.h --- a/libs/ui/KisUndoActionsUpdateManager.h +++ b/libs/ui/KisUndoActionsUpdateManager.h @@ -29,7 +29,7 @@ { Q_OBJECT public: - KisUndoActionsUpdateManager(QAction *undoAction, QAction *redoAction, QObject *parent = 0); + KisUndoActionsUpdateManager(QAction *undoAction, QAction *redoAction, QObject *parent = nullptr); void setCurrentDocument(KisDocument *document); diff --git a/libs/ui/KisView.h b/libs/ui/KisView.h --- a/libs/ui/KisView.h +++ b/libs/ui/KisView.h @@ -75,7 +75,7 @@ /** * Creates a new view for the document. */ - KisView(KisDocument *document, KoCanvasResourceProvider *resourceManager, KActionCollection *actionCollection, QWidget *parent = 0); + KisView(KisDocument *document, KoCanvasResourceProvider *resourceManager, KActionCollection *actionCollection, QWidget *parent = nullptr); ~KisView() override; // Temporary while teasing apart view and mainwindow diff --git a/libs/ui/KisView_p.h b/libs/ui/KisView_p.h --- a/libs/ui/KisView_p.h +++ b/libs/ui/KisView_p.h @@ -33,7 +33,7 @@ { Q_OBJECT public: - explicit UnitActionGroup(KisDocument *document, bool addPixelUnit, QObject* parent = 0) + explicit UnitActionGroup(KisDocument *document, bool addPixelUnit, QObject* parent = nullptr) : QActionGroup(parent) , m_document(document) , m_listOptions(addPixelUnit ? KoUnit::ListAll : KoUnit::HidePixel) diff --git a/libs/ui/actions/KisTransformToolActivationCommand.h b/libs/ui/actions/KisTransformToolActivationCommand.h --- a/libs/ui/actions/KisTransformToolActivationCommand.h +++ b/libs/ui/actions/KisTransformToolActivationCommand.h @@ -28,7 +28,7 @@ { Q_OBJECT public: - KisTransformToolActivationCommand(KisViewManager* view, KUndo2Command * parent = 0); + KisTransformToolActivationCommand(KisViewManager* view, KUndo2Command * parent = nullptr); ~KisTransformToolActivationCommand() override; void redo() override; diff --git a/libs/ui/brushhud/kis_dlg_brush_hud_config.h b/libs/ui/brushhud/kis_dlg_brush_hud_config.h --- a/libs/ui/brushhud/kis_dlg_brush_hud_config.h +++ b/libs/ui/brushhud/kis_dlg_brush_hud_config.h @@ -34,7 +34,7 @@ Q_OBJECT public: - explicit KisDlgConfigureBrushHud(KisPaintOpPresetSP preset, QWidget *parent = 0); + explicit KisDlgConfigureBrushHud(KisPaintOpPresetSP preset, QWidget *parent = nullptr); ~KisDlgConfigureBrushHud() override; private Q_SLOTS: diff --git a/libs/ui/canvas/kis_display_filter.h b/libs/ui/canvas/kis_display_filter.h --- a/libs/ui/canvas/kis_display_filter.h +++ b/libs/ui/canvas/kis_display_filter.h @@ -34,7 +34,7 @@ { Q_OBJECT public: - explicit KisDisplayFilter(QObject *parent = 0); + explicit KisDisplayFilter(QObject *parent = nullptr); virtual QString program() const = 0; virtual GLuint lutTexture() const = 0; diff --git a/libs/ui/canvas/kis_guides_manager.h b/libs/ui/canvas/kis_guides_manager.h --- a/libs/ui/canvas/kis_guides_manager.h +++ b/libs/ui/canvas/kis_guides_manager.h @@ -34,7 +34,7 @@ { Q_OBJECT public: - KisGuidesManager(QObject *parent = 0); + KisGuidesManager(QObject *parent = nullptr); ~KisGuidesManager() override; void setup(KisActionManager *actionManager); diff --git a/libs/ui/canvas/kis_tool_proxy.h b/libs/ui/canvas/kis_tool_proxy.h --- a/libs/ui/canvas/kis_tool_proxy.h +++ b/libs/ui/canvas/kis_tool_proxy.h @@ -34,7 +34,7 @@ }; public: - KisToolProxy(KoCanvasBase *canvas, QObject *parent = 0); + KisToolProxy(KoCanvasBase *canvas, QObject *parent = nullptr); void initializeImage(KisImageSP image); void forwardHoverEvent(QEvent *event); diff --git a/libs/ui/dialogs/KisDlgChangeCloneSource.h b/libs/ui/dialogs/KisDlgChangeCloneSource.h --- a/libs/ui/dialogs/KisDlgChangeCloneSource.h +++ b/libs/ui/dialogs/KisDlgChangeCloneSource.h @@ -32,7 +32,7 @@ Q_OBJECT public: - KisDlgChangeCloneSource(QList layers, KisViewManager *view, QWidget *parent = 0); + KisDlgChangeCloneSource(QList layers, KisViewManager *view, QWidget *parent = nullptr); ~KisDlgChangeCloneSource() override; diff --git a/libs/ui/dialogs/KisDlgCustomTabletResolution.h b/libs/ui/dialogs/KisDlgCustomTabletResolution.h --- a/libs/ui/dialogs/KisDlgCustomTabletResolution.h +++ b/libs/ui/dialogs/KisDlgCustomTabletResolution.h @@ -40,7 +40,7 @@ void accept(); public: - explicit KisDlgCustomTabletResolution(QWidget *parent = 0); + explicit KisDlgCustomTabletResolution(QWidget *parent = nullptr); ~KisDlgCustomTabletResolution(); static QRect calcNativeScreenRect(); diff --git a/libs/ui/dialogs/KisNewWindowLayoutDialog.h b/libs/ui/dialogs/KisNewWindowLayoutDialog.h --- a/libs/ui/dialogs/KisNewWindowLayoutDialog.h +++ b/libs/ui/dialogs/KisNewWindowLayoutDialog.h @@ -25,7 +25,7 @@ class KisNewWindowLayoutDialog : public QDialog, Ui::DlgNewWindowLayout { public: - KisNewWindowLayoutDialog(QWidget *parent = 0); + KisNewWindowLayoutDialog(QWidget *parent = nullptr); void setName(const QString &name); QString name() const; diff --git a/libs/ui/dialogs/kis_about_application.h b/libs/ui/dialogs/kis_about_application.h --- a/libs/ui/dialogs/kis_about_application.h +++ b/libs/ui/dialogs/kis_about_application.h @@ -24,7 +24,7 @@ { Q_OBJECT public: - explicit KisAboutApplication(QWidget *parent = 0); + explicit KisAboutApplication(QWidget *parent = nullptr); }; diff --git a/libs/ui/dialogs/kis_delayed_save_dialog.h b/libs/ui/dialogs/kis_delayed_save_dialog.h --- a/libs/ui/dialogs/kis_delayed_save_dialog.h +++ b/libs/ui/dialogs/kis_delayed_save_dialog.h @@ -45,7 +45,7 @@ }; public: - explicit KisDelayedSaveDialog(KisImageSP image, Type type, int busyWait, QWidget *parent = 0); + explicit KisDelayedSaveDialog(KisImageSP image, Type type, int busyWait, QWidget *parent = nullptr); ~KisDelayedSaveDialog() override; void blockIfImageIsBusy(); diff --git a/libs/ui/dialogs/kis_dlg_adjustment_layer.h b/libs/ui/dialogs/kis_dlg_adjustment_layer.h --- a/libs/ui/dialogs/kis_dlg_adjustment_layer.h +++ b/libs/ui/dialogs/kis_dlg_adjustment_layer.h @@ -55,7 +55,7 @@ const QString & layerName, const QString & caption, KisViewManager *view, - QWidget *parent = 0); + QWidget *parent = nullptr); ~KisDlgAdjustmentLayer() override; KisFilterConfigurationSP filterConfiguration() const; QString layerName() const; diff --git a/libs/ui/dialogs/kis_dlg_file_layer.h b/libs/ui/dialogs/kis_dlg_file_layer.h --- a/libs/ui/dialogs/kis_dlg_file_layer.h +++ b/libs/ui/dialogs/kis_dlg_file_layer.h @@ -44,7 +44,7 @@ * @param name the proposed name for this layer * @param parent the widget parent of this dialog */ - KisDlgFileLayer(const QString &basePath, const QString &name, QWidget *parent = 0); + KisDlgFileLayer(const QString &basePath, const QString &name, QWidget *parent = nullptr); QString fileName() const; QString layerName() const; KisFileLayer::ScalingMethod scaleToImageResolution() const; diff --git a/libs/ui/dialogs/kis_dlg_filter.h b/libs/ui/dialogs/kis_dlg_filter.h --- a/libs/ui/dialogs/kis_dlg_filter.h +++ b/libs/ui/dialogs/kis_dlg_filter.h @@ -34,7 +34,7 @@ public: - KisDlgFilter(KisViewManager *view, KisNodeSP node, KisFilterManager *filterManager, QWidget *parent = 0); + KisDlgFilter(KisViewManager *view, KisNodeSP node, KisFilterManager *filterManager, QWidget *parent = nullptr); ~KisDlgFilter() override; diff --git a/libs/ui/dialogs/kis_dlg_layer_style.h b/libs/ui/dialogs/kis_dlg_layer_style.h --- a/libs/ui/dialogs/kis_dlg_layer_style.h +++ b/libs/ui/dialogs/kis_dlg_layer_style.h @@ -237,7 +237,7 @@ { Q_OBJECT public: - explicit KisDlgLayerStyle(KisPSDLayerStyleSP layerStyle, KisCanvasResourceProvider *resourceProvider, QWidget *parent = 0); + explicit KisDlgLayerStyle(KisPSDLayerStyleSP layerStyle, KisCanvasResourceProvider *resourceProvider, QWidget *parent = nullptr); ~KisDlgLayerStyle() override; KisPSDLayerStyleSP style() const; diff --git a/libs/ui/dialogs/kis_dlg_png_import.h b/libs/ui/dialogs/kis_dlg_png_import.h --- a/libs/ui/dialogs/kis_dlg_png_import.h +++ b/libs/ui/dialogs/kis_dlg_png_import.h @@ -30,7 +30,7 @@ Q_OBJECT public: - KisDlgPngImport(const QString &path, const QString &colorModelID, const QString &colorDepthID, QWidget *parent = 0); + KisDlgPngImport(const QString &path, const QString &colorModelID, const QString &colorDepthID, QWidget *parent = nullptr); QString profile() const; private: diff --git a/libs/ui/flake/kis_dummies_facade.h b/libs/ui/flake/kis_dummies_facade.h --- a/libs/ui/flake/kis_dummies_facade.h +++ b/libs/ui/flake/kis_dummies_facade.h @@ -33,7 +33,7 @@ Q_OBJECT public: - KisDummiesFacade(QObject *parent = 0); + KisDummiesFacade(QObject *parent = nullptr); ~KisDummiesFacade() override; bool hasDummyForNode(KisNodeSP node) const override; diff --git a/libs/ui/flake/kis_dummies_facade_base.h b/libs/ui/flake/kis_dummies_facade_base.h --- a/libs/ui/flake/kis_dummies_facade_base.h +++ b/libs/ui/flake/kis_dummies_facade_base.h @@ -39,7 +39,7 @@ Q_OBJECT public: - KisDummiesFacadeBase(QObject *parent = 0); + KisDummiesFacadeBase(QObject *parent = nullptr); ~KisDummiesFacadeBase() override; void setImage(KisImageWSP image); diff --git a/libs/ui/input/config/kis_action_shortcuts_model.h b/libs/ui/input/config/kis_action_shortcuts_model.h --- a/libs/ui/input/config/kis_action_shortcuts_model.h +++ b/libs/ui/input/config/kis_action_shortcuts_model.h @@ -46,7 +46,7 @@ /** * Constructor. */ - explicit KisActionShortcutsModel(QObject *parent = 0); + explicit KisActionShortcutsModel(QObject *parent = nullptr); /** * Destructor. */ diff --git a/libs/ui/input/config/kis_input_button.h b/libs/ui/input/config/kis_input_button.h --- a/libs/ui/input/config/kis_input_button.h +++ b/libs/ui/input/config/kis_input_button.h @@ -48,7 +48,7 @@ /** * Constructor. */ - explicit KisInputButton(QWidget *parent = 0); + explicit KisInputButton(QWidget *parent = nullptr); /** * Destructor. */ diff --git a/libs/ui/input/config/kis_input_editor_delegate.h b/libs/ui/input/config/kis_input_editor_delegate.h --- a/libs/ui/input/config/kis_input_editor_delegate.h +++ b/libs/ui/input/config/kis_input_editor_delegate.h @@ -29,7 +29,7 @@ { Q_OBJECT public: - KisInputEditorDelegate(QObject *parent = 0); + KisInputEditorDelegate(QObject *parent = nullptr); ~KisInputEditorDelegate() override; QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &index) const override; diff --git a/libs/ui/input/config/kis_input_mode_delegate.h b/libs/ui/input/config/kis_input_mode_delegate.h --- a/libs/ui/input/config/kis_input_mode_delegate.h +++ b/libs/ui/input/config/kis_input_mode_delegate.h @@ -30,7 +30,7 @@ { Q_OBJECT public: - explicit KisInputModeDelegate(QObject *parent = 0); + explicit KisInputModeDelegate(QObject *parent = nullptr); ~KisInputModeDelegate() override; QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &) const override; diff --git a/libs/ui/input/config/kis_input_profile_model.h b/libs/ui/input/config/kis_input_profile_model.h --- a/libs/ui/input/config/kis_input_profile_model.h +++ b/libs/ui/input/config/kis_input_profile_model.h @@ -29,7 +29,7 @@ { Q_OBJECT public: - KisInputProfileModel(QObject *parent = 0); + KisInputProfileModel(QObject *parent = nullptr); ~KisInputProfileModel() override; bool setData(const QModelIndex &index, const QVariant &value, int = Qt::EditRole) override; diff --git a/libs/ui/input/config/kis_input_type_delegate.h b/libs/ui/input/config/kis_input_type_delegate.h --- a/libs/ui/input/config/kis_input_type_delegate.h +++ b/libs/ui/input/config/kis_input_type_delegate.h @@ -29,7 +29,7 @@ { Q_OBJECT public: - explicit KisInputTypeDelegate(QObject *parent = 0); + explicit KisInputTypeDelegate(QObject *parent = nullptr); ~KisInputTypeDelegate() override; QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &, const QModelIndex &) const override; diff --git a/libs/ui/input/config/kis_key_input_editor.h b/libs/ui/input/config/kis_key_input_editor.h --- a/libs/ui/input/config/kis_key_input_editor.h +++ b/libs/ui/input/config/kis_key_input_editor.h @@ -34,7 +34,7 @@ { Q_OBJECT public: - KisKeyInputEditor(QWidget *parent = 0); + KisKeyInputEditor(QWidget *parent = nullptr); ~KisKeyInputEditor() override; QList keys() const; diff --git a/libs/ui/input/config/kis_mouse_input_editor.h b/libs/ui/input/config/kis_mouse_input_editor.h --- a/libs/ui/input/config/kis_mouse_input_editor.h +++ b/libs/ui/input/config/kis_mouse_input_editor.h @@ -34,7 +34,7 @@ { Q_OBJECT public: - KisMouseInputEditor(QWidget *parent = 0); + KisMouseInputEditor(QWidget *parent = nullptr); ~KisMouseInputEditor() override; QList keys() const; diff --git a/libs/ui/input/config/kis_wheel_input_editor.h b/libs/ui/input/config/kis_wheel_input_editor.h --- a/libs/ui/input/config/kis_wheel_input_editor.h +++ b/libs/ui/input/config/kis_wheel_input_editor.h @@ -36,7 +36,7 @@ { Q_OBJECT public: - KisWheelInputEditor(QWidget *parent = 0); + KisWheelInputEditor(QWidget *parent = nullptr); ~KisWheelInputEditor() override; QList keys() const; diff --git a/libs/ui/input/kis_input_profile.h b/libs/ui/input/kis_input_profile.h --- a/libs/ui/input/kis_input_profile.h +++ b/libs/ui/input/kis_input_profile.h @@ -38,7 +38,7 @@ /** * Constructor. */ - KisInputProfile(QObject *parent = 0); + KisInputProfile(QObject *parent = nullptr); /** * Destructor. */ diff --git a/libs/ui/input/kis_input_profile_manager.h b/libs/ui/input/kis_input_profile_manager.h --- a/libs/ui/input/kis_input_profile_manager.h +++ b/libs/ui/input/kis_input_profile_manager.h @@ -36,7 +36,7 @@ { Q_OBJECT public: - KisInputProfileManager(QObject *parent = 0); + KisInputProfileManager(QObject *parent = nullptr); ~KisInputProfileManager() override; Q_DISABLE_COPY(KisInputProfileManager) diff --git a/libs/ui/kis_abstract_perspective_grid.h b/libs/ui/kis_abstract_perspective_grid.h --- a/libs/ui/kis_abstract_perspective_grid.h +++ b/libs/ui/kis_abstract_perspective_grid.h @@ -31,7 +31,7 @@ Q_OBJECT public: - KisAbstractPerspectiveGrid(QObject * parent = 0); + KisAbstractPerspectiveGrid(QObject * parent = nullptr); ~KisAbstractPerspectiveGrid() override {} diff --git a/libs/ui/kis_action.h b/libs/ui/kis_action.h --- a/libs/ui/kis_action.h +++ b/libs/ui/kis_action.h @@ -82,9 +82,9 @@ }; Q_DECLARE_FLAGS(ActivationConditions, ActivationCondition) - explicit KisAction(QObject* parent = 0); - KisAction(const QString& text, QObject* parent = 0); - KisAction(const QIcon& icon, const QString& text, QObject* parent = 0); + explicit KisAction(QObject* parent = nullptr); + KisAction(const QString& text, QObject* parent = nullptr); + KisAction(const QIcon& icon, const QString& text, QObject* parent = nullptr); ~KisAction() override; void setDefaultShortcut(const QKeySequence & shortcut); diff --git a/libs/ui/kis_aspect_ratio_locker.h b/libs/ui/kis_aspect_ratio_locker.h --- a/libs/ui/kis_aspect_ratio_locker.h +++ b/libs/ui/kis_aspect_ratio_locker.h @@ -33,7 +33,7 @@ { Q_OBJECT public: - KisAspectRatioLocker(QObject *parent = 0); + KisAspectRatioLocker(QObject *parent = nullptr); ~KisAspectRatioLocker() override; template diff --git a/libs/ui/kis_categorized_list_model.h b/libs/ui/kis_categorized_list_model.h --- a/libs/ui/kis_categorized_list_model.h +++ b/libs/ui/kis_categorized_list_model.h @@ -74,7 +74,7 @@ typedef typename SpecificCategoriesMapper::DataItem DataItem; public: - KisCategorizedListModel(QObject *parent = 0) + KisCategorizedListModel(QObject *parent = nullptr) : __CategorizedListModelBase(parent) { connect(&m_mapper, SIGNAL(rowChanged(int)), SLOT(slotRowChanged(int))); // helps with category expand menu diff --git a/libs/ui/kis_gui_context_command_p.h b/libs/ui/kis_gui_context_command_p.h --- a/libs/ui/kis_gui_context_command_p.h +++ b/libs/ui/kis_gui_context_command_p.h @@ -26,7 +26,7 @@ { Q_OBJECT public: - KisGuiContextCommandDelegate(QObject *parent = 0); + KisGuiContextCommandDelegate(QObject *parent = nullptr); public Q_SLOTS: void executeCommand(KUndo2Command *command, bool undo); diff --git a/libs/ui/kis_highlighted_button.h b/libs/ui/kis_highlighted_button.h --- a/libs/ui/kis_highlighted_button.h +++ b/libs/ui/kis_highlighted_button.h @@ -23,7 +23,7 @@ class HighlightedButtonBase : public BaseButton { public: - HighlightedButtonBase(QWidget *parent = 0) : BaseButton(parent) {} + HighlightedButtonBase(QWidget *parent = nullptr) : BaseButton(parent) {} protected: void checkStateSet() override { BaseButton::checkStateSet(); diff --git a/libs/ui/kis_multinode_property.h b/libs/ui/kis_multinode_property.h --- a/libs/ui/kis_multinode_property.h +++ b/libs/ui/kis_multinode_property.h @@ -428,7 +428,7 @@ KisNodeList nodes, const QList &oldValues, ValueType newValue, - KUndo2Command *parent = 0) + KUndo2Command *parent = nullptr) : KUndo2Command(parent), m_propAdapter(propAdapter), m_nodes(nodes), diff --git a/libs/ui/kis_node_juggler_compressed.cpp b/libs/ui/kis_node_juggler_compressed.cpp --- a/libs/ui/kis_node_juggler_compressed.cpp +++ b/libs/ui/kis_node_juggler_compressed.cpp @@ -232,7 +232,7 @@ class UpdateMovedNodesCommand : public KisCommandUtils::FlipFlopCommand { public: - UpdateMovedNodesCommand(BatchMoveUpdateDataSP updateData, bool finalize, KUndo2Command *parent = 0) + UpdateMovedNodesCommand(BatchMoveUpdateDataSP updateData, bool finalize, KUndo2Command *parent = nullptr) : FlipFlopCommand(finalize, parent), m_updateData(updateData) { @@ -270,7 +270,7 @@ public: ActivateSelectionMasksCommand(const QList &activeBefore, const QList &activeAfter, - bool finalize, KUndo2Command *parent = 0) + bool finalize, KUndo2Command *parent = nullptr) : FlipFlopCommand(finalize, parent), m_activeBefore(activeBefore), m_activeAfter(activeAfter) diff --git a/libs/ui/kis_paintop_settings_widget.h b/libs/ui/kis_paintop_settings_widget.h --- a/libs/ui/kis_paintop_settings_widget.h +++ b/libs/ui/kis_paintop_settings_widget.h @@ -38,7 +38,7 @@ public: - KisPaintOpSettingsWidget(QWidget * parent = 0); + KisPaintOpSettingsWidget(QWidget * parent = nullptr); ~KisPaintOpSettingsWidget() override; diff --git a/libs/ui/kis_popup_palette.h b/libs/ui/kis_popup_palette.h --- a/libs/ui/kis_popup_palette.h +++ b/libs/ui/kis_popup_palette.h @@ -52,7 +52,7 @@ public: KisPopupPalette(KisViewManager*, KisCoordinatesConverter* ,KisFavoriteResourceManager*, const KoColorDisplayRendererInterface *displayRenderer, - KisCanvasResourceProvider *provider, QWidget *parent = 0); + KisCanvasResourceProvider *provider, QWidget *parent = nullptr); ~KisPopupPalette() override; QSize sizeHint() const override; diff --git a/libs/ui/kis_safe_document_loader.h b/libs/ui/kis_safe_document_loader.h --- a/libs/ui/kis_safe_document_loader.h +++ b/libs/ui/kis_safe_document_loader.h @@ -28,7 +28,7 @@ private: friend class KisFileLayer; - KisSafeDocumentLoader(const QString &path = "", QObject *parent = 0); + KisSafeDocumentLoader(const QString &path = "", QObject *parent = nullptr); ~KisSafeDocumentLoader() override; void setPath(const QString &path); diff --git a/libs/ui/operations/kis_operation_ui_widget.h b/libs/ui/operations/kis_operation_ui_widget.h --- a/libs/ui/operations/kis_operation_ui_widget.h +++ b/libs/ui/operations/kis_operation_ui_widget.h @@ -31,7 +31,7 @@ { public: - explicit KisOperationUIWidget(const QString& caption, QWidget* parent = 0); + explicit KisOperationUIWidget(const QString& caption, QWidget* parent = nullptr); ~KisOperationUIWidget() override; /** diff --git a/libs/ui/tests/modeltest.h b/libs/ui/tests/modeltest.h --- a/libs/ui/tests/modeltest.h +++ b/libs/ui/tests/modeltest.h @@ -33,7 +33,7 @@ Q_OBJECT public: - ModelTest(QAbstractItemModel *model, QObject *parent = 0); + ModelTest(QAbstractItemModel *model, QObject *parent = nullptr); private Q_SLOTS: void nonDestructiveBasicTest(); diff --git a/libs/ui/thememanager.h b/libs/ui/thememanager.h --- a/libs/ui/thememanager.h +++ b/libs/ui/thememanager.h @@ -52,7 +52,7 @@ * @param theme the currently active theme: the palette will not be changed to this theme * @param parent */ - explicit ThemeManager(const QString &theme = "", QObject *parent = 0); + explicit ThemeManager(const QString &theme = "", QObject *parent = nullptr); ~ThemeManager() override; QString currentThemeName() const; diff --git a/libs/ui/utils/kis_document_aware_spin_box_unit_manager.h b/libs/ui/utils/kis_document_aware_spin_box_unit_manager.h --- a/libs/ui/utils/kis_document_aware_spin_box_unit_manager.h +++ b/libs/ui/utils/kis_document_aware_spin_box_unit_manager.h @@ -50,7 +50,7 @@ static void setDocumentAwarnessToExistingUnitSpinBox(KisDoubleParseUnitSpinBox* spinBox, bool setUnitFromOutsideToggle = false); //! \brief create a unitSpinBox that is already document aware. - static KisDoubleParseUnitSpinBox* createUnitSpinBoxWithDocumentAwarness(QWidget* parent = 0); + static KisDoubleParseUnitSpinBox* createUnitSpinBoxWithDocumentAwarness(QWidget* parent = nullptr); KisDocumentAwareSpinBoxUnitManager(QObject *parent = 0, int pPixDir = PIX_DIR_X); diff --git a/libs/ui/widgets/KisMemoryReportButton.h b/libs/ui/widgets/KisMemoryReportButton.h --- a/libs/ui/widgets/KisMemoryReportButton.h +++ b/libs/ui/widgets/KisMemoryReportButton.h @@ -26,7 +26,7 @@ { Q_OBJECT public: - explicit KisMemoryReportButton(QWidget *parent = 0); + explicit KisMemoryReportButton(QWidget *parent = nullptr); void setMaximumMemory(qint64 max); diff --git a/libs/ui/widgets/KisNewsWidget.h b/libs/ui/widgets/KisNewsWidget.h --- a/libs/ui/widgets/KisNewsWidget.h +++ b/libs/ui/widgets/KisNewsWidget.h @@ -30,7 +30,7 @@ { Q_OBJECT public: - KisNewsDelegate(QObject *parent = 0); + KisNewsDelegate(QObject *parent = nullptr); void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override; }; diff --git a/libs/ui/widgets/KisScreenColorPicker.h b/libs/ui/widgets/KisScreenColorPicker.h --- a/libs/ui/widgets/KisScreenColorPicker.h +++ b/libs/ui/widgets/KisScreenColorPicker.h @@ -36,7 +36,7 @@ { Q_OBJECT public: - explicit KisScreenColorPicker(bool showInfoLabel = false, QWidget *parent = 0); + explicit KisScreenColorPicker(bool showInfoLabel = false, QWidget *parent = nullptr); ~KisScreenColorPicker() override; KoColor currentColor(); @@ -48,7 +48,7 @@ /// reloads icon(s) when theme is updated void updateIcons() override; - static KisScreenColorPicker *createScreenColorPicker(QWidget *parent = 0) {return new KisScreenColorPicker(parent);} + static KisScreenColorPicker *createScreenColorPicker(QWidget *parent = nullptr) {return new KisScreenColorPicker(parent);} Q_SIGNALS: void sigNewColorPicked(KoColor c); @@ -73,7 +73,7 @@ class KisScreenColorPickingEventFilter : public QObject { public: - explicit KisScreenColorPickingEventFilter(KisScreenColorPicker *w, QObject *parent = 0); + explicit KisScreenColorPickingEventFilter(KisScreenColorPicker *w, QObject *parent = nullptr); bool eventFilter(QObject *, QEvent *event) override; private: diff --git a/libs/ui/widgets/KisSelectionPropertySlider.h b/libs/ui/widgets/KisSelectionPropertySlider.h --- a/libs/ui/widgets/KisSelectionPropertySlider.h +++ b/libs/ui/widgets/KisSelectionPropertySlider.h @@ -32,7 +32,7 @@ Q_OBJECT public: - explicit KisSelectionPropertySliderBase(QWidget* parent = 0); + explicit KisSelectionPropertySliderBase(QWidget* parent = nullptr); ~KisSelectionPropertySliderBase() override; void setPrefixes(const QString &normalPrefix, const QString &mixedPrefix); @@ -72,7 +72,7 @@ class KRITAUI_EXPORT KisSelectionPropertySlider : public KisSelectionPropertySliderBase { public: - explicit KisSelectionPropertySlider(QWidget *parent = 0) + explicit KisSelectionPropertySlider(QWidget *parent = nullptr) : KisSelectionPropertySliderBase(parent) {} diff --git a/libs/ui/widgets/KoStrokeConfigWidget.cpp b/libs/ui/widgets/KoStrokeConfigWidget.cpp --- a/libs/ui/widgets/KoStrokeConfigWidget.cpp +++ b/libs/ui/widgets/KoStrokeConfigWidget.cpp @@ -77,7 +77,7 @@ class CapNJoinMenu : public QMenu { public: - CapNJoinMenu(QWidget *parent = 0); + CapNJoinMenu(QWidget *parent = nullptr); QSize sizeHint() const override; KisDoubleParseUnitSpinBox *miterLimit; diff --git a/libs/ui/widgets/kis_cmb_contour.h b/libs/ui/widgets/kis_cmb_contour.h --- a/libs/ui/widgets/kis_cmb_contour.h +++ b/libs/ui/widgets/kis_cmb_contour.h @@ -24,7 +24,7 @@ { Q_OBJECT public: - explicit KisCmbContour(QWidget *parent = 0); + explicit KisCmbContour(QWidget *parent = nullptr); Q_SIGNALS: diff --git a/libs/ui/widgets/kis_cmb_gradient.h b/libs/ui/widgets/kis_cmb_gradient.h --- a/libs/ui/widgets/kis_cmb_gradient.h +++ b/libs/ui/widgets/kis_cmb_gradient.h @@ -31,7 +31,7 @@ { Q_OBJECT public: - explicit KisCmbGradient(QWidget *parent = 0); + explicit KisCmbGradient(QWidget *parent = nullptr); void setGradient(KoAbstractGradient *gradient); KoAbstractGradient *gradient() const; diff --git a/libs/ui/widgets/kis_elided_label.h b/libs/ui/widgets/kis_elided_label.h --- a/libs/ui/widgets/kis_elided_label.h +++ b/libs/ui/widgets/kis_elided_label.h @@ -35,7 +35,7 @@ class KRITAUI_EXPORT KisElidedLabel : public QLabel { public: - KisElidedLabel(const QString &text, Qt::TextElideMode mode, QWidget *parent = 0); + KisElidedLabel(const QString &text, Qt::TextElideMode mode, QWidget *parent = nullptr); ~KisElidedLabel() override; void setLongText(const QString &text); diff --git a/libs/ui/widgets/kis_paintop_presets_chooser_popup.h b/libs/ui/widgets/kis_paintop_presets_chooser_popup.h --- a/libs/ui/widgets/kis_paintop_presets_chooser_popup.h +++ b/libs/ui/widgets/kis_paintop_presets_chooser_popup.h @@ -32,7 +32,7 @@ { Q_OBJECT public: - KisPaintOpPresetsChooserPopup(QWidget * parent = 0); + KisPaintOpPresetsChooserPopup(QWidget * parent = nullptr); ~KisPaintOpPresetsChooserPopup() override; void showButtons(bool show); diff --git a/libs/ui/widgets/kis_paintop_presets_popup.h b/libs/ui/widgets/kis_paintop_presets_popup.h --- a/libs/ui/widgets/kis_paintop_presets_popup.h +++ b/libs/ui/widgets/kis_paintop_presets_popup.h @@ -49,7 +49,7 @@ KisPaintOpPresetsPopup(KisCanvasResourceProvider * resourceProvider, KisFavoriteResourceManager* favoriteResourceManager, KisPresetSaveWidget* savePresetWidget, - QWidget * parent = 0); + QWidget * parent = nullptr); ~KisPaintOpPresetsPopup() override; diff --git a/libs/ui/widgets/kis_pattern_chooser.h b/libs/ui/widgets/kis_pattern_chooser.h --- a/libs/ui/widgets/kis_pattern_chooser.h +++ b/libs/ui/widgets/kis_pattern_chooser.h @@ -31,7 +31,7 @@ Q_OBJECT public: - KisPatternChooser(QWidget *parent = 0); + KisPatternChooser(QWidget *parent = nullptr); ~KisPatternChooser() override; /// Gets the currently selected resource diff --git a/libs/ui/widgets/kis_preset_chooser.cpp b/libs/ui/widgets/kis_preset_chooser.cpp --- a/libs/ui/widgets/kis_preset_chooser.cpp +++ b/libs/ui/widgets/kis_preset_chooser.cpp @@ -52,7 +52,7 @@ class KisPresetDelegate : public QAbstractItemDelegate { public: - KisPresetDelegate(QObject * parent = 0) : QAbstractItemDelegate(parent), m_showText(false), m_useDirtyPresets(false) {} + KisPresetDelegate(QObject * parent = nullptr) : QAbstractItemDelegate(parent), m_showText(false), m_useDirtyPresets(false) {} ~KisPresetDelegate() override {} /// reimplemented void paint(QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const override; diff --git a/libs/ui/widgets/kis_progress_widget.h b/libs/ui/widgets/kis_progress_widget.h --- a/libs/ui/widgets/kis_progress_widget.h +++ b/libs/ui/widgets/kis_progress_widget.h @@ -42,7 +42,7 @@ Q_OBJECT public: - KisProgressWidget(QWidget* parent = 0); + KisProgressWidget(QWidget* parent = nullptr); ~KisProgressWidget() override; public: diff --git a/libs/ui/widgets/kis_scratch_pad.h b/libs/ui/widgets/kis_scratch_pad.h --- a/libs/ui/widgets/kis_scratch_pad.h +++ b/libs/ui/widgets/kis_scratch_pad.h @@ -60,7 +60,7 @@ void setupScratchPad(KisCanvasResourceProvider* resourceProvider, const QColor &defaultColor); - KisScratchPad(QWidget *parent = 0); + KisScratchPad(QWidget *parent = nullptr); ~KisScratchPad() override; /// set the specified rect as the area taken for @see cutoutOverlay diff --git a/libs/ui/widgets/kis_slider_spin_box.h b/libs/ui/widgets/kis_slider_spin_box.h --- a/libs/ui/widgets/kis_slider_spin_box.h +++ b/libs/ui/widgets/kis_slider_spin_box.h @@ -122,7 +122,7 @@ Q_PROPERTY( int minimum READ minimum WRITE setMinimum ) Q_PROPERTY( int maximum READ maximum WRITE setMaximum ) public: - KisSliderSpinBox(QWidget* parent = 0); + KisSliderSpinBox(QWidget* parent = nullptr); ~KisSliderSpinBox() override; void setRange(int minimum, int maximum); @@ -157,7 +157,7 @@ Q_OBJECT Q_DECLARE_PRIVATE(KisDoubleSliderSpinBox) public: - KisDoubleSliderSpinBox(QWidget* parent = 0); + KisDoubleSliderSpinBox(QWidget* parent = nullptr); ~KisDoubleSliderSpinBox() override; void setRange(qreal minimum, qreal maximum, int decimals = 0); diff --git a/libs/ui/widgets/kis_tool_button.h b/libs/ui/widgets/kis_tool_button.h --- a/libs/ui/widgets/kis_tool_button.h +++ b/libs/ui/widgets/kis_tool_button.h @@ -34,7 +34,7 @@ { Q_OBJECT public: - explicit KisToolButton(QWidget *parent = 0); + explicit KisToolButton(QWidget *parent = nullptr); protected: void mousePressEvent(QMouseEvent *e) override; diff --git a/libs/ui/widgets/kis_tool_options_popup.h b/libs/ui/widgets/kis_tool_options_popup.h --- a/libs/ui/widgets/kis_tool_options_popup.h +++ b/libs/ui/widgets/kis_tool_options_popup.h @@ -26,7 +26,7 @@ { Q_OBJECT public: - explicit KisToolOptionsPopup(QWidget *parent = 0); + explicit KisToolOptionsPopup(QWidget *parent = nullptr); ~KisToolOptionsPopup() override; bool detached() const; diff --git a/libs/ui/widgets/kis_workspace_chooser.h b/libs/ui/widgets/kis_workspace_chooser.h --- a/libs/ui/widgets/kis_workspace_chooser.h +++ b/libs/ui/widgets/kis_workspace_chooser.h @@ -35,7 +35,7 @@ { Q_OBJECT public: - KisWorkspaceChooser(KisViewManager * view, QWidget* parent = 0); + KisWorkspaceChooser(KisViewManager * view, QWidget* parent = nullptr); ~KisWorkspaceChooser() override; private Q_SLOTS: diff --git a/libs/ui/widgets/kis_workspace_chooser.cpp b/libs/ui/widgets/kis_workspace_chooser.cpp --- a/libs/ui/widgets/kis_workspace_chooser.cpp +++ b/libs/ui/widgets/kis_workspace_chooser.cpp @@ -49,7 +49,7 @@ class KisWorkspaceDelegate : public QAbstractItemDelegate { public: - KisWorkspaceDelegate(QObject * parent = 0) : QAbstractItemDelegate(parent) {} + KisWorkspaceDelegate(QObject * parent = nullptr) : QAbstractItemDelegate(parent) {} ~KisWorkspaceDelegate() override {} /// reimplemented void paint(QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const override; diff --git a/libs/widgets/KisColorSelectorInterface.h b/libs/widgets/KisColorSelectorInterface.h --- a/libs/widgets/KisColorSelectorInterface.h +++ b/libs/widgets/KisColorSelectorInterface.h @@ -30,7 +30,7 @@ class KRITAWIDGETS_EXPORT KisColorSelectorInterface : public QWidget { Q_OBJECT public: - KisColorSelectorInterface(QWidget *parent = 0) + KisColorSelectorInterface(QWidget *parent = nullptr) : QWidget(parent) {} ~KisColorSelectorInterface() override {} diff --git a/libs/widgets/KisColorsetChooser.h b/libs/widgets/KisColorsetChooser.h --- a/libs/widgets/KisColorsetChooser.h +++ b/libs/widgets/KisColorsetChooser.h @@ -36,7 +36,7 @@ { Q_OBJECT public: - KisColorsetChooser(QWidget* parent = 0); + KisColorsetChooser(QWidget* parent = nullptr); ~KisColorsetChooser() override; Q_SIGNALS: diff --git a/libs/widgets/KisDlgInternalColorSelector.h b/libs/widgets/KisDlgInternalColorSelector.h --- a/libs/widgets/KisDlgInternalColorSelector.h +++ b/libs/widgets/KisDlgInternalColorSelector.h @@ -98,7 +98,7 @@ * @param parent parent widget. * @param caption the dialog caption. */ - static KoColor getModalColorDialog(const KoColor color, QWidget* parent = Q_NULLPTR, QString caption = QString()); + static KoColor getModalColorDialog(const KoColor color, QWidget* parent = nullptr, QString caption = QString()); /** * @brief getCurrentColor diff --git a/libs/widgets/KisGradientSlider.h b/libs/widgets/KisGradientSlider.h --- a/libs/widgets/KisGradientSlider.h +++ b/libs/widgets/KisGradientSlider.h @@ -46,7 +46,7 @@ } eCursor; public: - KisGradientSlider(QWidget *parent = 0); + KisGradientSlider(QWidget *parent = nullptr); ~KisGradientSlider() override; diff --git a/libs/widgets/KisPaletteComboBox.h b/libs/widgets/KisPaletteComboBox.h --- a/libs/widgets/KisPaletteComboBox.h +++ b/libs/widgets/KisPaletteComboBox.h @@ -46,7 +46,7 @@ typedef QHash PosIdxMapType; public: - explicit KisPaletteComboBox(QWidget *parent = Q_NULLPTR); + explicit KisPaletteComboBox(QWidget *parent = nullptr); ~KisPaletteComboBox(); Q_SIGNALS: diff --git a/libs/widgets/KisPaletteComboBox.cpp b/libs/widgets/KisPaletteComboBox.cpp --- a/libs/widgets/KisPaletteComboBox.cpp +++ b/libs/widgets/KisPaletteComboBox.cpp @@ -30,7 +30,7 @@ KisPaletteComboBox::KisPaletteComboBox(QWidget *parent) : KisSqueezedComboBox(parent) - , m_model(Q_NULLPTR) + , m_model(nullptr) { setEditable(true); setInsertPolicy(NoInsert); diff --git a/libs/widgets/KisPaletteDelegate.h b/libs/widgets/KisPaletteDelegate.h --- a/libs/widgets/KisPaletteDelegate.h +++ b/libs/widgets/KisPaletteDelegate.h @@ -29,7 +29,7 @@ private: static const int BORDER_WIDTH; public: - KisPaletteDelegate(QObject * parent = 0); + KisPaletteDelegate(QObject * parent = nullptr); ~KisPaletteDelegate() override; void setCrossedKeyword(const QString &value) diff --git a/libs/widgets/KisPaletteModel.h b/libs/widgets/KisPaletteModel.h --- a/libs/widgets/KisPaletteModel.h +++ b/libs/widgets/KisPaletteModel.h @@ -43,7 +43,7 @@ { Q_OBJECT public: - explicit KisPaletteModel(QObject* parent = Q_NULLPTR); + explicit KisPaletteModel(QObject* parent = nullptr); ~KisPaletteModel() override; enum AdditionalRoles { diff --git a/libs/widgets/KisPaletteModel.cpp b/libs/widgets/KisPaletteModel.cpp --- a/libs/widgets/KisPaletteModel.cpp +++ b/libs/widgets/KisPaletteModel.cpp @@ -33,7 +33,7 @@ KisPaletteModel::KisPaletteModel(QObject* parent) : QAbstractTableModel(parent) - , m_colorSet(Q_NULLPTR) + , m_colorSet(nullptr) , m_displayRenderer(KoDumbColorDisplayRenderer::instance()) { connect(this, SIGNAL(sigPaletteModified()), SLOT(slotPaletteModified())); diff --git a/libs/widgets/KisScreenColorPickerBase.h b/libs/widgets/KisScreenColorPickerBase.h --- a/libs/widgets/KisScreenColorPickerBase.h +++ b/libs/widgets/KisScreenColorPickerBase.h @@ -28,7 +28,7 @@ { Q_OBJECT public: - KisScreenColorPickerBase(QWidget *parent = 0) : QWidget(parent) { } + KisScreenColorPickerBase(QWidget *parent = nullptr) : QWidget(parent) { } virtual ~KisScreenColorPickerBase() { } /// reloads icon(s) when theme is updated virtual void updateIcons() = 0; diff --git a/libs/widgets/KisVisualColorSelector.h b/libs/widgets/KisVisualColorSelector.h --- a/libs/widgets/KisVisualColorSelector.h +++ b/libs/widgets/KisVisualColorSelector.h @@ -45,7 +45,7 @@ Q_OBJECT public: - explicit KisVisualColorSelector(QWidget *parent = 0); + explicit KisVisualColorSelector(QWidget *parent = nullptr); ~KisVisualColorSelector() override; /** diff --git a/libs/widgets/KoAnchorSelectionWidget.h b/libs/widgets/KoAnchorSelectionWidget.h --- a/libs/widgets/KoAnchorSelectionWidget.h +++ b/libs/widgets/KoAnchorSelectionWidget.h @@ -29,7 +29,7 @@ { Q_OBJECT public: - explicit KoAnchorSelectionWidget(QWidget *parent = 0); + explicit KoAnchorSelectionWidget(QWidget *parent = nullptr); ~KoAnchorSelectionWidget() override; KoFlake::AnchorPosition value() const; diff --git a/libs/widgets/KoColorPopupAction.h b/libs/widgets/KoColorPopupAction.h --- a/libs/widgets/KoColorPopupAction.h +++ b/libs/widgets/KoColorPopupAction.h @@ -42,7 +42,7 @@ * * @param parent The parent for this action. */ - explicit KoColorPopupAction(QObject *parent = 0); + explicit KoColorPopupAction(QObject *parent = nullptr); /** * Destructor diff --git a/libs/widgets/KoLineStyleItemDelegate_p.h b/libs/widgets/KoLineStyleItemDelegate_p.h --- a/libs/widgets/KoLineStyleItemDelegate_p.h +++ b/libs/widgets/KoLineStyleItemDelegate_p.h @@ -25,7 +25,7 @@ class KoLineStyleItemDelegate : public QAbstractItemDelegate { public: - explicit KoLineStyleItemDelegate(QObject *parent = 0); + explicit KoLineStyleItemDelegate(QObject *parent = nullptr); ~KoLineStyleItemDelegate() override {} void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override; diff --git a/libs/widgets/KoLineStyleModel_p.h b/libs/widgets/KoLineStyleModel_p.h --- a/libs/widgets/KoLineStyleModel_p.h +++ b/libs/widgets/KoLineStyleModel_p.h @@ -27,7 +27,7 @@ class KoLineStyleModel : public QAbstractListModel { public: - explicit KoLineStyleModel(QObject *parent = 0); + explicit KoLineStyleModel(QObject *parent = nullptr); ~KoLineStyleModel() override {} int rowCount(const QModelIndex &parent = QModelIndex()) const override; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; diff --git a/libs/widgets/KoLineStyleSelector.h b/libs/widgets/KoLineStyleSelector.h --- a/libs/widgets/KoLineStyleSelector.h +++ b/libs/widgets/KoLineStyleSelector.h @@ -30,7 +30,7 @@ { Q_OBJECT public: - explicit KoLineStyleSelector(QWidget *parent = 0); + explicit KoLineStyleSelector(QWidget *parent = nullptr); ~KoLineStyleSelector() override; /** diff --git a/libs/widgets/KoMarkerItemDelegate.h b/libs/widgets/KoMarkerItemDelegate.h --- a/libs/widgets/KoMarkerItemDelegate.h +++ b/libs/widgets/KoMarkerItemDelegate.h @@ -30,7 +30,7 @@ class KoMarkerItemDelegate : public QAbstractItemDelegate { public: - explicit KoMarkerItemDelegate(KoFlake::MarkerPosition position, QObject *parent = 0); + explicit KoMarkerItemDelegate(KoFlake::MarkerPosition position, QObject *parent = nullptr); ~KoMarkerItemDelegate() override; void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; diff --git a/libs/widgets/KoMarkerModel.h b/libs/widgets/KoMarkerModel.h --- a/libs/widgets/KoMarkerModel.h +++ b/libs/widgets/KoMarkerModel.h @@ -30,7 +30,7 @@ class KoMarkerModel : public QAbstractListModel { public: - KoMarkerModel(const QList markers, KoFlake::MarkerPosition position, QObject *parent = 0); + KoMarkerModel(const QList markers, KoFlake::MarkerPosition position, QObject *parent = nullptr); ~KoMarkerModel() override; int rowCount(const QModelIndex &parent = QModelIndex()) const override; diff --git a/libs/widgets/KoMarkerSelector.h b/libs/widgets/KoMarkerSelector.h --- a/libs/widgets/KoMarkerSelector.h +++ b/libs/widgets/KoMarkerSelector.h @@ -32,7 +32,7 @@ { Q_OBJECT public: - explicit KoMarkerSelector(KoFlake::MarkerPosition position, QWidget *parent = 0); + explicit KoMarkerSelector(KoFlake::MarkerPosition position, QWidget *parent = nullptr); ~KoMarkerSelector() override; // set the current marker style diff --git a/libs/widgets/KoPagePreviewWidget.h b/libs/widgets/KoPagePreviewWidget.h --- a/libs/widgets/KoPagePreviewWidget.h +++ b/libs/widgets/KoPagePreviewWidget.h @@ -33,7 +33,7 @@ class KRITAWIDGETS_EXPORT KoPagePreviewWidget : public QWidget { Q_OBJECT public: - explicit KoPagePreviewWidget(QWidget *parent = 0); + explicit KoPagePreviewWidget(QWidget *parent = nullptr); ~KoPagePreviewWidget() override; protected: diff --git a/libs/widgets/KoResourceItemChooserContextMenu.h b/libs/widgets/KoResourceItemChooserContextMenu.h --- a/libs/widgets/KoResourceItemChooserContextMenu.h +++ b/libs/widgets/KoResourceItemChooserContextMenu.h @@ -34,7 +34,7 @@ { Q_OBJECT public: - explicit ContextMenuExistingTagAction( KoResource * resource, QString tag, QObject* parent = 0); + explicit ContextMenuExistingTagAction( KoResource * resource, QString tag, QObject* parent = nullptr); ~ContextMenuExistingTagAction() override; Q_SIGNALS: diff --git a/libs/widgets/KoResourceItemDelegate.h b/libs/widgets/KoResourceItemDelegate.h --- a/libs/widgets/KoResourceItemDelegate.h +++ b/libs/widgets/KoResourceItemDelegate.h @@ -29,7 +29,7 @@ class KRITAWIDGETS_EXPORT KoResourceItemDelegate : public QAbstractItemDelegate { public: - explicit KoResourceItemDelegate(QObject *parent = 0); + explicit KoResourceItemDelegate(QObject *parent = nullptr); ~KoResourceItemDelegate() override {} /// reimplemented void paint( QPainter *, const QStyleOptionViewItem &, const QModelIndex & ) const override; diff --git a/libs/widgets/KoResourceItemView.h b/libs/widgets/KoResourceItemView.h --- a/libs/widgets/KoResourceItemView.h +++ b/libs/widgets/KoResourceItemView.h @@ -38,7 +38,7 @@ public: - explicit KoResourceItemView(QWidget *parent = 0); + explicit KoResourceItemView(QWidget *parent = nullptr); ~KoResourceItemView() override { disconnect(); } /// reimplemented diff --git a/libs/widgets/KoResourceModel.h b/libs/widgets/KoResourceModel.h --- a/libs/widgets/KoResourceModel.h +++ b/libs/widgets/KoResourceModel.h @@ -35,7 +35,7 @@ { Q_OBJECT public: - explicit KoResourceModel(QSharedPointer resourceAdapter, QObject * parent = 0); + explicit KoResourceModel(QSharedPointer resourceAdapter, QObject * parent = nullptr); ~KoResourceModel() override; /// reimplemented diff --git a/libs/widgets/KoResourcePopupAction.h b/libs/widgets/KoResourcePopupAction.h --- a/libs/widgets/KoResourcePopupAction.h +++ b/libs/widgets/KoResourcePopupAction.h @@ -43,7 +43,7 @@ * @param gradientResourceAdapter pointer to the gradient or pattern * @param parent The parent for this action. */ - explicit KoResourcePopupAction(QSharedPointergradientResourceAdapter, QObject *parent = 0); + explicit KoResourcePopupAction(QSharedPointergradientResourceAdapter, QObject *parent = nullptr); /** * Destructor diff --git a/libs/widgets/KoResourceServerAdapter.h b/libs/widgets/KoResourceServerAdapter.h --- a/libs/widgets/KoResourceServerAdapter.h +++ b/libs/widgets/KoResourceServerAdapter.h @@ -34,7 +34,7 @@ { Q_OBJECT public: - KoAbstractResourceServerAdapter(QObject *parent = 0); + KoAbstractResourceServerAdapter(QObject *parent = nullptr); ~KoAbstractResourceServerAdapter() override; virtual void connectToResourceServer() = 0; @@ -95,7 +95,7 @@ typedef KoResourceServer ServerType; typedef typename Policy::PointerType PointerType; public: - KoResourceServerAdapter(ServerType* resourceServer, QObject *parent = 0) + KoResourceServerAdapter(ServerType* resourceServer, QObject *parent = nullptr) : KoAbstractResourceServerAdapter(parent) , m_resourceServer(resourceServer) , m_sortingEnabled(false) diff --git a/libs/widgets/KoStrokeConfigWidget.cpp b/libs/widgets/KoStrokeConfigWidget.cpp --- a/libs/widgets/KoStrokeConfigWidget.cpp +++ b/libs/widgets/KoStrokeConfigWidget.cpp @@ -72,7 +72,7 @@ class CapNJoinMenu : public QMenu { public: - CapNJoinMenu(QWidget *parent = 0); + CapNJoinMenu(QWidget *parent = nullptr); QSize sizeHint() const override; KisDoubleParseUnitSpinBox *miterLimit; diff --git a/libs/widgets/KoTableView.h b/libs/widgets/KoTableView.h --- a/libs/widgets/KoTableView.h +++ b/libs/widgets/KoTableView.h @@ -41,7 +41,7 @@ FIXED_ROWS /// The number of rows is fixed }; - explicit KoTableView(QWidget *parent = 0); + explicit KoTableView(QWidget *parent = nullptr); ~KoTableView() override {} /** reimplemented diff --git a/libs/widgets/KoTagToolButton.h b/libs/widgets/KoTagToolButton.h --- a/libs/widgets/KoTagToolButton.h +++ b/libs/widgets/KoTagToolButton.h @@ -33,7 +33,7 @@ Q_OBJECT private: - explicit KoTagToolButton(QWidget* parent = 0); + explicit KoTagToolButton(QWidget* parent = nullptr); ~KoTagToolButton() override; void readOnlyMode(bool activate); void setUndeletionCandidate(const QString &deletedTagName); diff --git a/libs/widgets/KoToolBoxLayout_p.h b/libs/widgets/KoToolBoxLayout_p.h --- a/libs/widgets/KoToolBoxLayout_p.h +++ b/libs/widgets/KoToolBoxLayout_p.h @@ -138,7 +138,7 @@ SeparatorTop = 0x0001,/* SeparatorBottom = 0x0002, SeparatorRight = 0x0004,*/ SeparatorLeft = 0x0008 }; Q_DECLARE_FLAGS(Separators, SeparatorFlag) - explicit Section(QWidget *parent = 0) + explicit Section(QWidget *parent = nullptr) : QWidget(parent), m_layout(new SectionLayout(this)) { diff --git a/libs/widgets/KoToolDocker.h b/libs/widgets/KoToolDocker.h --- a/libs/widgets/KoToolDocker.h +++ b/libs/widgets/KoToolDocker.h @@ -38,7 +38,7 @@ { Q_OBJECT public: - explicit KoToolDocker(QWidget *parent = 0); + explicit KoToolDocker(QWidget *parent = nullptr); ~KoToolDocker() override; void resetWidgets(); diff --git a/libs/widgets/KoUnitDoubleSpinBox.h b/libs/widgets/KoUnitDoubleSpinBox.h --- a/libs/widgets/KoUnitDoubleSpinBox.h +++ b/libs/widgets/KoUnitDoubleSpinBox.h @@ -53,7 +53,7 @@ * the default unit of points. * @param parent the parent widget */ - explicit KoUnitDoubleSpinBox( QWidget *parent = 0); + explicit KoUnitDoubleSpinBox( QWidget *parent = nullptr); ~KoUnitDoubleSpinBox() override; /** diff --git a/libs/widgets/KoVBox.h b/libs/widgets/KoVBox.h --- a/libs/widgets/KoVBox.h +++ b/libs/widgets/KoVBox.h @@ -44,7 +44,7 @@ /** * Creates a new hbox. */ - explicit KoVBox(QWidget *parent = 0); + explicit KoVBox(QWidget *parent = nullptr); /** * Destructor. diff --git a/libs/widgets/KoZoomController.h b/libs/widgets/KoZoomController.h --- a/libs/widgets/KoZoomController.h +++ b/libs/widgets/KoZoomController.h @@ -71,7 +71,7 @@ KoZoomController(KoCanvasController *controller, KoZoomHandler *zoomHandler, KActionCollection *actionCollection, - QObject *parent = 0); + QObject *parent = nullptr); /// destructor ~KoZoomController() override; diff --git a/libs/widgets/KoZoomInput.h b/libs/widgets/KoZoomInput.h --- a/libs/widgets/KoZoomInput.h +++ b/libs/widgets/KoZoomInput.h @@ -25,7 +25,7 @@ { Q_OBJECT public: - explicit KoZoomInput(QWidget* parent = 0); + explicit KoZoomInput(QWidget* parent = nullptr); ~KoZoomInput() override; void setZoomLevels(const QStringList& levels); diff --git a/libs/widgets/kis_color_button.h b/libs/widgets/kis_color_button.h --- a/libs/widgets/kis_color_button.h +++ b/libs/widgets/kis_color_button.h @@ -52,17 +52,17 @@ /** * Creates a color button. */ - explicit KisColorButton(QWidget *parent = 0); + explicit KisColorButton(QWidget *parent = nullptr); /** * Creates a color button with an initial color @p c. */ - explicit KisColorButton(const KoColor &c, QWidget *parent = 0); + explicit KisColorButton(const KoColor &c, QWidget *parent = nullptr); /** * Creates a color button with an initial color @p c and default color @p defaultColor. */ - KisColorButton(const KoColor &c, const KoColor &defaultColor, QWidget *parent = 0); + KisColorButton(const KoColor &c, const KoColor &defaultColor, QWidget *parent = nullptr); ~KisColorButton() override; diff --git a/libs/widgets/kis_file_name_requester.h b/libs/widgets/kis_file_name_requester.h --- a/libs/widgets/kis_file_name_requester.h +++ b/libs/widgets/kis_file_name_requester.h @@ -44,7 +44,7 @@ Q_OBJECT public: - explicit KisFileNameRequester(QWidget *parent = 0); + explicit KisFileNameRequester(QWidget *parent = nullptr); ~KisFileNameRequester() override; void setStartDir(const QString &path); diff --git a/libs/widgets/kis_palette_view.h b/libs/widgets/kis_palette_view.h --- a/libs/widgets/kis_palette_view.h +++ b/libs/widgets/kis_palette_view.h @@ -42,7 +42,7 @@ private: static int MININUM_ROW_HEIGHT; public: - explicit KisPaletteView(QWidget *parent = Q_NULLPTR); + explicit KisPaletteView(QWidget *parent = nullptr); ~KisPaletteView() override; void setPaletteModel(KisPaletteModel *model); diff --git a/libs/widgets/kis_palette_view.cpp b/libs/widgets/kis_palette_view.cpp --- a/libs/widgets/kis_palette_view.cpp +++ b/libs/widgets/kis_palette_view.cpp @@ -231,7 +231,7 @@ void KisPaletteView::setPaletteModel(KisPaletteModel *model) { if (m_d->model) { - disconnect(m_d->model, Q_NULLPTR, this, Q_NULLPTR); + disconnect(m_d->model, nullptr, this, nullptr); } m_d->model = model; setModel(model); diff --git a/libs/widgetutils/KoGroupButton.h b/libs/widgetutils/KoGroupButton.h --- a/libs/widgetutils/KoGroupButton.h +++ b/libs/widgetutils/KoGroupButton.h @@ -48,12 +48,12 @@ GroupCenter //!< The button is on the center of the group, so it would have separators on both sides }; - explicit KoGroupButton(GroupPosition position, QWidget* parent = 0); + explicit KoGroupButton(GroupPosition position, QWidget* parent = nullptr); /** * Creates button with no NoGroup position. */ - explicit KoGroupButton(QWidget* parent = 0); + explicit KoGroupButton(QWidget* parent = nullptr); ~KoGroupButton() override; diff --git a/libs/widgetutils/KoProgressBar.h b/libs/widgetutils/KoProgressBar.h --- a/libs/widgetutils/KoProgressBar.h +++ b/libs/widgetutils/KoProgressBar.h @@ -34,7 +34,7 @@ Q_OBJECT public: - explicit KoProgressBar(QWidget *parent = 0); + explicit KoProgressBar(QWidget *parent = nullptr); ~KoProgressBar() override; diff --git a/libs/widgetutils/config/kcolorschememanager.h b/libs/widgetutils/config/kcolorschememanager.h --- a/libs/widgetutils/config/kcolorschememanager.h +++ b/libs/widgetutils/config/kcolorschememanager.h @@ -61,7 +61,7 @@ { Q_OBJECT public: - explicit KColorSchemeManager(QObject *parent = 0); + explicit KColorSchemeManager(QObject *parent = nullptr); ~KColorSchemeManager() override; /** diff --git a/libs/widgetutils/config/kcolorschememanager_p.h b/libs/widgetutils/config/kcolorschememanager_p.h --- a/libs/widgetutils/config/kcolorschememanager_p.h +++ b/libs/widgetutils/config/kcolorschememanager_p.h @@ -32,7 +32,7 @@ { Q_OBJECT public: - explicit KColorSchemeModel(QObject *parent = 0); + explicit KColorSchemeModel(QObject *parent = nullptr); ~KColorSchemeModel() override; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; int rowCount(const QModelIndex &parent = QModelIndex()) const override; diff --git a/libs/widgetutils/config/klanguagebutton.h b/libs/widgetutils/config/klanguagebutton.h --- a/libs/widgetutils/config/klanguagebutton.h +++ b/libs/widgetutils/config/klanguagebutton.h @@ -53,15 +53,15 @@ * * @param parent the parent of the button */ - explicit KLanguageButton(QWidget *parent = 0); + explicit KLanguageButton(QWidget *parent = nullptr); /** * Constructs a button with static text. * * @param text the text of the button * @param parent the parent of the button */ - explicit KLanguageButton(const QString &text, QWidget *parent = 0); + explicit KLanguageButton(const QString &text, QWidget *parent = nullptr); /** * Deconstructor diff --git a/libs/widgetutils/kis_action_registry.h b/libs/widgetutils/kis_action_registry.h --- a/libs/widgetutils/kis_action_registry.h +++ b/libs/widgetutils/kis_action_registry.h @@ -79,7 +79,7 @@ * * N.B. this action will not be saved in the registry. */ - QAction *makeQAction(const QString &name, QObject *parent = 0); + QAction *makeQAction(const QString &name, QObject *parent = nullptr); /** * Fills the standard QAction properties of an action. diff --git a/libs/widgetutils/kis_double_parse_spin_box.h b/libs/widgetutils/kis_double_parse_spin_box.h --- a/libs/widgetutils/kis_double_parse_spin_box.h +++ b/libs/widgetutils/kis_double_parse_spin_box.h @@ -35,7 +35,7 @@ Q_OBJECT public: - KisDoubleParseSpinBox(QWidget* parent = 0); + KisDoubleParseSpinBox(QWidget* parent = nullptr); ~KisDoubleParseSpinBox() override; //KisDoubleParseSpinBox may be used polymorphycally as a QDoubleSpinBox. double valueFromText(const QString & text) const override; diff --git a/libs/widgetutils/kis_double_parse_unit_spin_box.h b/libs/widgetutils/kis_double_parse_unit_spin_box.h --- a/libs/widgetutils/kis_double_parse_unit_spin_box.h +++ b/libs/widgetutils/kis_double_parse_unit_spin_box.h @@ -37,7 +37,7 @@ Q_OBJECT public: - KisDoubleParseUnitSpinBox(QWidget* parent = 0); + KisDoubleParseUnitSpinBox(QWidget* parent = nullptr); ~KisDoubleParseUnitSpinBox() override; void setUnitManager(KisSpinBoxUnitManager* unitManager); diff --git a/libs/widgetutils/kis_int_parse_spin_box.h b/libs/widgetutils/kis_int_parse_spin_box.h --- a/libs/widgetutils/kis_int_parse_spin_box.h +++ b/libs/widgetutils/kis_int_parse_spin_box.h @@ -35,7 +35,7 @@ Q_OBJECT public: - KisIntParseSpinBox(QWidget *parent = 0); + KisIntParseSpinBox(QWidget *parent = nullptr); ~KisIntParseSpinBox() override; int valueFromText(const QString & text) const override; diff --git a/libs/widgetutils/kis_spin_box_unit_manager.h b/libs/widgetutils/kis_spin_box_unit_manager.h --- a/libs/widgetutils/kis_spin_box_unit_manager.h +++ b/libs/widgetutils/kis_spin_box_unit_manager.h @@ -102,7 +102,7 @@ Q_DECLARE_FLAGS(Constrains, Constrain) - explicit KisSpinBoxUnitManager(QObject *parent = 0); + explicit KisSpinBoxUnitManager(QObject *parent = nullptr); ~KisSpinBoxUnitManager() override; int getUnitDimensionType() const; diff --git a/libs/widgetutils/xmlgui/KisShortcutsDialog.h b/libs/widgetutils/xmlgui/KisShortcutsDialog.h --- a/libs/widgetutils/xmlgui/KisShortcutsDialog.h +++ b/libs/widgetutils/xmlgui/KisShortcutsDialog.h @@ -117,7 +117,7 @@ explicit KisShortcutsDialog(KisShortcutsEditor::ActionTypes types = defaultActionTypes, KisShortcutsEditor::LetterShortcuts allowLetterShortcuts \ = KisShortcutsEditor::LetterShortcutsAllowed, - QWidget *parent = 0); + QWidget *parent = nullptr); ~KisShortcutsDialog() override; diff --git a/libs/widgetutils/xmlgui/kaboutkdedialog_p.h b/libs/widgetutils/xmlgui/kaboutkdedialog_p.h --- a/libs/widgetutils/xmlgui/kaboutkdedialog_p.h +++ b/libs/widgetutils/xmlgui/kaboutkdedialog_p.h @@ -54,7 +54,7 @@ * @param parent The parent of the dialog box. You should use the * toplevel window so that the dialog becomes centered. */ - explicit KAboutKdeDialog(QWidget *parent = 0); + explicit KAboutKdeDialog(QWidget *parent = nullptr); private: class Private; diff --git a/libs/widgetutils/xmlgui/kactioncategory.h b/libs/widgetutils/xmlgui/kactioncategory.h --- a/libs/widgetutils/xmlgui/kactioncategory.h +++ b/libs/widgetutils/xmlgui/kactioncategory.h @@ -101,7 +101,7 @@ /** * Default constructor */ - explicit KActionCategory(const QString &text, KActionCollection *parent = 0); + explicit KActionCategory(const QString &text, KActionCollection *parent = nullptr); /** * Destructor diff --git a/libs/widgetutils/xmlgui/kcheckaccelerators.cpp b/libs/widgetutils/xmlgui/kcheckaccelerators.cpp --- a/libs/widgetutils/xmlgui/kcheckaccelerators.cpp +++ b/libs/widgetutils/xmlgui/kcheckaccelerators.cpp @@ -49,7 +49,7 @@ { Q_OBJECT public: - explicit KCheckAcceleratorsInitializer(QObject *parent = Q_NULLPTR) + explicit KCheckAcceleratorsInitializer(QObject *parent = nullptr) : QObject(parent) { } diff --git a/libs/widgetutils/xmlgui/kedittoolbar.h b/libs/widgetutils/xmlgui/kedittoolbar.h --- a/libs/widgetutils/xmlgui/kedittoolbar.h +++ b/libs/widgetutils/xmlgui/kedittoolbar.h @@ -89,7 +89,7 @@ * @param parent The usual parent for the dialog. */ explicit KEditToolBar(KXMLGUIFactory *factory, - QWidget *parent = 0); + QWidget *parent = nullptr); /// destructor ~KEditToolBar() override; diff --git a/libs/widgetutils/xmlgui/kedittoolbar_p.h b/libs/widgetutils/xmlgui/kedittoolbar_p.h --- a/libs/widgetutils/xmlgui/kedittoolbar_p.h +++ b/libs/widgetutils/xmlgui/kedittoolbar_p.h @@ -37,7 +37,7 @@ { Q_OBJECT public: - ToolBarListWidget(QWidget *parent = 0); + ToolBarListWidget(QWidget *parent = nullptr); void makeVisible(QListWidgetItem *item) { @@ -83,7 +83,7 @@ { Q_OBJECT public: - explicit IconTextEditDialog(QWidget *parent = 0); + explicit IconTextEditDialog(QWidget *parent = nullptr); public: void setIconText(const QString &text); diff --git a/libs/widgetutils/xmlgui/kkeysequencewidget.h b/libs/widgetutils/xmlgui/kkeysequencewidget.h --- a/libs/widgetutils/xmlgui/kkeysequencewidget.h +++ b/libs/widgetutils/xmlgui/kkeysequencewidget.h @@ -79,7 +79,7 @@ /** * Constructor. */ - explicit KKeySequenceWidget(QWidget *parent = 0); + explicit KKeySequenceWidget(QWidget *parent = nullptr); /** * Destructs the widget. diff --git a/libs/widgetutils/xmlgui/kshortcutwidget.h b/libs/widgetutils/xmlgui/kshortcutwidget.h --- a/libs/widgetutils/xmlgui/kshortcutwidget.h +++ b/libs/widgetutils/xmlgui/kshortcutwidget.h @@ -36,7 +36,7 @@ Q_OBJECT Q_PROPERTY(bool modifierlessAllowed READ isModifierlessAllowed WRITE setModifierlessAllowed) public: - KShortcutWidget(QWidget *parent = 0); + KShortcutWidget(QWidget *parent = nullptr); ~KShortcutWidget() override; void setModifierlessAllowed(bool allow); diff --git a/libs/widgetutils/xmlgui/kswitchlanguagedialog_p.h b/libs/widgetutils/xmlgui/kswitchlanguagedialog_p.h --- a/libs/widgetutils/xmlgui/kswitchlanguagedialog_p.h +++ b/libs/widgetutils/xmlgui/kswitchlanguagedialog_p.h @@ -52,7 +52,7 @@ * @param parent The parent of the dialog box. You should use the * toplevel window so that the dialog becomes centered. */ - KSwitchLanguageDialog(QWidget *parent = 0); + KSwitchLanguageDialog(QWidget *parent = nullptr); ~KSwitchLanguageDialog() override; diff --git a/libs/widgetutils/xmlgui/kxmlguifactory.h b/libs/widgetutils/xmlgui/kxmlguifactory.h --- a/libs/widgetutils/xmlgui/kxmlguifactory.h +++ b/libs/widgetutils/xmlgui/kxmlguifactory.h @@ -72,7 +72,7 @@ * Note that the ownership of the given KXMLGUIBuilder object won't be transferred to this * KXMLGUIFactory, so you have to take care of deleting it properly. */ - explicit KXMLGUIFactory(KXMLGUIBuilder *builder, QObject *parent = 0); + explicit KXMLGUIFactory(KXMLGUIBuilder *builder, QObject *parent = nullptr); /** * Destructor diff --git a/plugins/assistants/Assistants/PerspectiveAssistant.h b/plugins/assistants/Assistants/PerspectiveAssistant.h --- a/plugins/assistants/Assistants/PerspectiveAssistant.h +++ b/plugins/assistants/Assistants/PerspectiveAssistant.h @@ -31,7 +31,7 @@ { Q_OBJECT public: - PerspectiveAssistant(QObject * parent = 0); + PerspectiveAssistant(QObject * parent = nullptr); QPointF adjustPosition(const QPointF& point, const QPointF& strokeBegin) override; void endStroke() override; QPointF buttonPosition() const override; diff --git a/plugins/dockers/advancedcolorselector/kis_color_history.h b/plugins/dockers/advancedcolorselector/kis_color_history.h --- a/plugins/dockers/advancedcolorselector/kis_color_history.h +++ b/plugins/dockers/advancedcolorselector/kis_color_history.h @@ -27,7 +27,7 @@ { Q_OBJECT public: - explicit KisColorHistory(QWidget *parent = 0); + explicit KisColorHistory(QWidget *parent = nullptr); void setCanvas(KisCanvas2 *canvas) override; void unsetCanvas() override; diff --git a/plugins/dockers/advancedcolorselector/kis_color_patches.h b/plugins/dockers/advancedcolorselector/kis_color_patches.h --- a/plugins/dockers/advancedcolorselector/kis_color_patches.h +++ b/plugins/dockers/advancedcolorselector/kis_color_patches.h @@ -29,7 +29,7 @@ { Q_OBJECT public: - explicit KisColorPatches(QString configPrefix, QWidget *parent = 0); + explicit KisColorPatches(QString configPrefix, QWidget *parent = nullptr); enum Direction { Horizontal, Vertical }; public Q_SLOTS: diff --git a/plugins/dockers/advancedcolorselector/kis_color_selector.h b/plugins/dockers/advancedcolorselector/kis_color_selector.h --- a/plugins/dockers/advancedcolorselector/kis_color_selector.h +++ b/plugins/dockers/advancedcolorselector/kis_color_selector.h @@ -34,7 +34,7 @@ Q_OBJECT public: - KisColorSelector(KisColorSelectorConfiguration conf, QWidget* parent = 0); + KisColorSelector(KisColorSelectorConfiguration conf, QWidget* parent = nullptr); KisColorSelector(QWidget* parent=0); KisColorSelectorBase* createPopup() const override; diff --git a/plugins/dockers/advancedcolorselector/kis_color_selector_base.h b/plugins/dockers/advancedcolorselector/kis_color_selector_base.h --- a/plugins/dockers/advancedcolorselector/kis_color_selector_base.h +++ b/plugins/dockers/advancedcolorselector/kis_color_selector_base.h @@ -41,7 +41,7 @@ Q_OBJECT public: enum Move {MoveToMousePosition, DontMove}; - explicit KisColorSelectorBase(QWidget *parent = 0); + explicit KisColorSelectorBase(QWidget *parent = nullptr); ~KisColorSelectorBase() override; void setPopupBehaviour(bool onMouseOver, bool onMouseClick); diff --git a/plugins/dockers/advancedcolorselector/kis_color_selector_container.h b/plugins/dockers/advancedcolorselector/kis_color_selector_container.h --- a/plugins/dockers/advancedcolorselector/kis_color_selector_container.h +++ b/plugins/dockers/advancedcolorselector/kis_color_selector_container.h @@ -33,7 +33,7 @@ { Q_OBJECT public: - explicit KisColorSelectorContainer(QWidget *parent = 0); + explicit KisColorSelectorContainer(QWidget *parent = nullptr); void setCanvas(KisCanvas2* canvas); void unsetCanvas(); bool doesAtleastOneDocumentExist(); diff --git a/plugins/dockers/advancedcolorselector/kis_color_selector_ng_docker_widget.h b/plugins/dockers/advancedcolorselector/kis_color_selector_ng_docker_widget.h --- a/plugins/dockers/advancedcolorselector/kis_color_selector_ng_docker_widget.h +++ b/plugins/dockers/advancedcolorselector/kis_color_selector_ng_docker_widget.h @@ -38,7 +38,7 @@ { Q_OBJECT public: - explicit KisColorSelectorNgDockerWidget(QWidget *parent = 0); + explicit KisColorSelectorNgDockerWidget(QWidget *parent = nullptr); void setCanvas(KisCanvas2* canvas); void unsetCanvas(); public Q_SLOTS: diff --git a/plugins/dockers/advancedcolorselector/kis_color_selector_settings.h b/plugins/dockers/advancedcolorselector/kis_color_selector_settings.h --- a/plugins/dockers/advancedcolorselector/kis_color_selector_settings.h +++ b/plugins/dockers/advancedcolorselector/kis_color_selector_settings.h @@ -31,7 +31,7 @@ class KisColorSelectorSettings : public KisPreferenceSet { Q_OBJECT public: - KisColorSelectorSettings(QWidget *parent = 0); + KisColorSelectorSettings(QWidget *parent = nullptr); ~KisColorSelectorSettings() override; QString id() override; @@ -86,7 +86,7 @@ class KisColorSelectorSettingsDialog : public QDialog { Q_OBJECT public: - KisColorSelectorSettingsDialog(QWidget *parent = 0); + KisColorSelectorSettingsDialog(QWidget *parent = nullptr); private: KisColorSelectorSettings* m_widget; }; diff --git a/plugins/dockers/advancedcolorselector/kis_common_colors.h b/plugins/dockers/advancedcolorselector/kis_common_colors.h --- a/plugins/dockers/advancedcolorselector/kis_common_colors.h +++ b/plugins/dockers/advancedcolorselector/kis_common_colors.h @@ -29,7 +29,7 @@ { Q_OBJECT public: - explicit KisCommonColors(QWidget *parent = 0); + explicit KisCommonColors(QWidget *parent = nullptr); void setCanvas(KisCanvas2 *canvas) override; void unsetCanvas() override {} KisColorSelectorBase* createPopup() const override; diff --git a/plugins/dockers/advancedcolorselector/kis_minimal_shade_selector.h b/plugins/dockers/advancedcolorselector/kis_minimal_shade_selector.h --- a/plugins/dockers/advancedcolorselector/kis_minimal_shade_selector.h +++ b/plugins/dockers/advancedcolorselector/kis_minimal_shade_selector.h @@ -31,7 +31,7 @@ { Q_OBJECT public: - explicit KisMinimalShadeSelector(QWidget *parent = 0); + explicit KisMinimalShadeSelector(QWidget *parent = nullptr); ~KisMinimalShadeSelector() override; void unsetCanvas() override; void setCanvas(KisCanvas2* canvas) override; diff --git a/plugins/dockers/advancedcolorselector/kis_my_paint_shade_selector.h b/plugins/dockers/advancedcolorselector/kis_my_paint_shade_selector.h --- a/plugins/dockers/advancedcolorselector/kis_my_paint_shade_selector.h +++ b/plugins/dockers/advancedcolorselector/kis_my_paint_shade_selector.h @@ -35,7 +35,7 @@ { Q_OBJECT public: - KisMyPaintShadeSelector(QWidget *parent = 0); + KisMyPaintShadeSelector(QWidget *parent = nullptr); void mousePressEvent(QMouseEvent *) override; void mouseMoveEvent(QMouseEvent *) override; diff --git a/plugins/dockers/advancedcolorselector/kis_shade_selector_line.h b/plugins/dockers/advancedcolorselector/kis_shade_selector_line.h --- a/plugins/dockers/advancedcolorselector/kis_shade_selector_line.h +++ b/plugins/dockers/advancedcolorselector/kis_shade_selector_line.h @@ -46,7 +46,7 @@ public: explicit KisShadeSelectorLine(KisColorSelectorBaseProxy *parentProxy, - QWidget *parent = 0); + QWidget *parent = nullptr); explicit KisShadeSelectorLine(qreal hueDelta, qreal satDelta, qreal valDelta, KisColorSelectorBaseProxy *parentProxy, QWidget *parent = 0, qreal hueShift = 0, qreal satShift = 0, qreal valShift = 0); diff --git a/plugins/dockers/advancedcolorselector/kis_shade_selector_line_combo_box.h b/plugins/dockers/advancedcolorselector/kis_shade_selector_line_combo_box.h --- a/plugins/dockers/advancedcolorselector/kis_shade_selector_line_combo_box.h +++ b/plugins/dockers/advancedcolorselector/kis_shade_selector_line_combo_box.h @@ -28,7 +28,7 @@ { Q_OBJECT public: - explicit KisShadeSelectorLineComboBox(QWidget *parent = 0); + explicit KisShadeSelectorLineComboBox(QWidget *parent = nullptr); ~KisShadeSelectorLineComboBox() override; void hidePopup() override; void showPopup() override; diff --git a/plugins/dockers/advancedcolorselector/kis_shade_selector_lines_settings.h b/plugins/dockers/advancedcolorselector/kis_shade_selector_lines_settings.h --- a/plugins/dockers/advancedcolorselector/kis_shade_selector_lines_settings.h +++ b/plugins/dockers/advancedcolorselector/kis_shade_selector_lines_settings.h @@ -26,7 +26,7 @@ { Q_OBJECT public: - explicit KisShadeSelectorLinesSettings(QWidget *parent = 0); + explicit KisShadeSelectorLinesSettings(QWidget *parent = nullptr); QString toString() const; void fromString(const QString& stri); diff --git a/plugins/dockers/animation/onion_skins_docker.h b/plugins/dockers/animation/onion_skins_docker.h --- a/plugins/dockers/animation/onion_skins_docker.h +++ b/plugins/dockers/animation/onion_skins_docker.h @@ -37,7 +37,7 @@ Q_OBJECT public: - explicit OnionSkinsDocker(QWidget *parent = 0); + explicit OnionSkinsDocker(QWidget *parent = nullptr); ~OnionSkinsDocker() override; QString observerName() override { return "OnionSkinsDocker"; } diff --git a/plugins/dockers/animation/timeline_insert_keyframe_dialog.h b/plugins/dockers/animation/timeline_insert_keyframe_dialog.h --- a/plugins/dockers/animation/timeline_insert_keyframe_dialog.h +++ b/plugins/dockers/animation/timeline_insert_keyframe_dialog.h @@ -37,7 +37,7 @@ QRadioButton *rightAfter; public: - TimelineInsertKeyframeDialog(QWidget *parent = 0); + TimelineInsertKeyframeDialog(QWidget *parent = nullptr); bool promptUserSettings(int &count, int &timing, TimelineDirection &out_direction); diff --git a/plugins/dockers/animation/timeline_ruler_header.h b/plugins/dockers/animation/timeline_ruler_header.h --- a/plugins/dockers/animation/timeline_ruler_header.h +++ b/plugins/dockers/animation/timeline_ruler_header.h @@ -29,7 +29,7 @@ { Q_OBJECT public: - TimelineRulerHeader(QWidget *parent = 0); + TimelineRulerHeader(QWidget *parent = nullptr); ~TimelineRulerHeader() override; void setFramePerSecond(int fps); diff --git a/plugins/dockers/arrangedocker/arrange_docker_widget.h b/plugins/dockers/arrangedocker/arrange_docker_widget.h --- a/plugins/dockers/arrangedocker/arrange_docker_widget.h +++ b/plugins/dockers/arrangedocker/arrange_docker_widget.h @@ -33,7 +33,7 @@ Q_OBJECT public: - explicit ArrangeDockerWidget(QWidget *parent = 0); + explicit ArrangeDockerWidget(QWidget *parent = nullptr); ~ArrangeDockerWidget() override; void setActionCollection(KActionCollection *collection); diff --git a/plugins/dockers/channeldocker/channelmodel.h b/plugins/dockers/channeldocker/channelmodel.h --- a/plugins/dockers/channeldocker/channelmodel.h +++ b/plugins/dockers/channeldocker/channelmodel.h @@ -32,7 +32,7 @@ { Q_OBJECT public: - ChannelModel(QObject* parent = 0); + ChannelModel(QObject* parent = nullptr); ~ChannelModel() override; QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; diff --git a/plugins/dockers/compositiondocker/compositionmodel.h b/plugins/dockers/compositiondocker/compositionmodel.h --- a/plugins/dockers/compositiondocker/compositionmodel.h +++ b/plugins/dockers/compositiondocker/compositionmodel.h @@ -27,7 +27,7 @@ { Q_OBJECT public: - CompositionModel(QObject* parent = 0); + CompositionModel(QObject* parent = nullptr); ~CompositionModel() override; QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; diff --git a/plugins/dockers/gamutmask/KisGamutMaskChooser.cpp b/plugins/dockers/gamutmask/KisGamutMaskChooser.cpp --- a/plugins/dockers/gamutmask/KisGamutMaskChooser.cpp +++ b/plugins/dockers/gamutmask/KisGamutMaskChooser.cpp @@ -38,7 +38,7 @@ class KisGamutMaskDelegate: public QAbstractItemDelegate { public: - KisGamutMaskDelegate(QObject * parent = 0) : QAbstractItemDelegate(parent) + KisGamutMaskDelegate(QObject * parent = nullptr) : QAbstractItemDelegate(parent) , m_mode(KisGamutMaskChooser::ViewMode::THUMBNAIL) {} ~KisGamutMaskDelegate() override {} diff --git a/plugins/dockers/griddocker/grid_config_widget.h b/plugins/dockers/griddocker/grid_config_widget.h --- a/plugins/dockers/griddocker/grid_config_widget.h +++ b/plugins/dockers/griddocker/grid_config_widget.h @@ -33,7 +33,7 @@ Q_OBJECT public: - explicit GridConfigWidget(QWidget *parent = 0); + explicit GridConfigWidget(QWidget *parent = nullptr); ~GridConfigWidget() override; void setGridConfig(const KisGridConfig &value); diff --git a/plugins/dockers/historydocker/DlgConfigureHistoryDock.h b/plugins/dockers/historydocker/DlgConfigureHistoryDock.h --- a/plugins/dockers/historydocker/DlgConfigureHistoryDock.h +++ b/plugins/dockers/historydocker/DlgConfigureHistoryDock.h @@ -30,7 +30,7 @@ { Q_OBJECT public: - DlgConfigureHistoryDock(KisUndoView *view, KUndo2QStack *stack, QWidget *parent = 0); + DlgConfigureHistoryDock(KisUndoView *view, KUndo2QStack *stack, QWidget *parent = nullptr); private: KUndo2QStack *m_stack; }; diff --git a/plugins/dockers/historydocker/KisUndoModel.h b/plugins/dockers/historydocker/KisUndoModel.h --- a/plugins/dockers/historydocker/KisUndoModel.h +++ b/plugins/dockers/historydocker/KisUndoModel.h @@ -70,7 +70,7 @@ { Q_OBJECT public: - KisUndoModel(QObject *parent = 0); + KisUndoModel(QObject *parent = nullptr); KUndo2QStack *stack() const; diff --git a/plugins/dockers/historydocker/KisUndoView.h b/plugins/dockers/historydocker/KisUndoView.h --- a/plugins/dockers/historydocker/KisUndoView.h +++ b/plugins/dockers/historydocker/KisUndoView.h @@ -83,10 +83,10 @@ Q_PROPERTY(QIcon cleanIcon READ cleanIcon WRITE setCleanIcon) public: - explicit KisUndoView(QWidget *parent = 0); - explicit KisUndoView(KUndo2QStack *stack, QWidget *parent = 0); + explicit KisUndoView(QWidget *parent = nullptr); + explicit KisUndoView(KUndo2QStack *stack, QWidget *parent = nullptr); #ifndef QT_NO_UNDOGROUP - explicit KisUndoView(KUndo2Group *group, QWidget *parent = 0); + explicit KisUndoView(KUndo2Group *group, QWidget *parent = nullptr); #endif ~KisUndoView() override; diff --git a/plugins/dockers/layerdocker/NodeDelegate.h b/plugins/dockers/layerdocker/NodeDelegate.h --- a/plugins/dockers/layerdocker/NodeDelegate.h +++ b/plugins/dockers/layerdocker/NodeDelegate.h @@ -37,7 +37,7 @@ Q_OBJECT public: - explicit NodeDelegate(NodeView *view, QObject *parent = 0); + explicit NodeDelegate(NodeView *view, QObject *parent = nullptr); ~NodeDelegate() override; void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override; diff --git a/plugins/dockers/layerdocker/NodeView.h b/plugins/dockers/layerdocker/NodeView.h --- a/plugins/dockers/layerdocker/NodeView.h +++ b/plugins/dockers/layerdocker/NodeView.h @@ -56,7 +56,7 @@ /** * Create a new NodeView. */ - explicit NodeView(QWidget *parent = 0); + explicit NodeView(QWidget *parent = nullptr); ~NodeView() override; /// how items should be displayed diff --git a/plugins/dockers/lut/ocio_display_filter.h b/plugins/dockers/lut/ocio_display_filter.h --- a/plugins/dockers/lut/ocio_display_filter.h +++ b/plugins/dockers/lut/ocio_display_filter.h @@ -39,7 +39,7 @@ { Q_OBJECT public: - explicit OcioDisplayFilter(KisExposureGammaCorrectionInterface *interface, QObject *parent = 0); + explicit OcioDisplayFilter(KisExposureGammaCorrectionInterface *interface, QObject *parent = nullptr); ~OcioDisplayFilter(); void filter(quint8 *pixels, quint32 numPixels); diff --git a/plugins/dockers/overview/overviewwidget.h b/plugins/dockers/overview/overviewwidget.h --- a/plugins/dockers/overview/overviewwidget.h +++ b/plugins/dockers/overview/overviewwidget.h @@ -65,7 +65,7 @@ Q_OBJECT public: - OverviewWidget(QWidget * parent = 0); + OverviewWidget(QWidget * parent = nullptr); ~OverviewWidget() override; diff --git a/plugins/dockers/palettedocker/palettedocker_dock.cpp b/plugins/dockers/palettedocker/palettedocker_dock.cpp --- a/plugins/dockers/palettedocker/palettedocker_dock.cpp +++ b/plugins/dockers/palettedocker/palettedocker_dock.cpp @@ -67,10 +67,10 @@ , m_ui(new Ui_WdgPaletteDock()) , m_model(new KisPaletteModel(this)) , m_paletteChooser(new KisPaletteListWidget(this)) - , m_view(Q_NULLPTR) - , m_resourceProvider(Q_NULLPTR) + , m_view(nullptr) + , m_resourceProvider(nullptr) , m_rServer(KoResourceServerProvider::instance()->paletteServer()) - , m_activeDocument(Q_NULLPTR) + , m_activeDocument(nullptr) , m_paletteEditor(new KisPaletteEditor) , m_actAdd(new QAction(KisIconUtils::loadIcon("list-add"), i18n("Add a color"))) , m_actRemove(new QAction(KisIconUtils::loadIcon("edit-delete"), i18n("Delete color"))) @@ -196,7 +196,7 @@ void PaletteDockerDock::setCanvas(KoCanvasBase *canvas) { - setEnabled(canvas != Q_NULLPTR); + setEnabled(canvas != nullptr); if (canvas) { KisCanvas2 *cv = qobject_cast(canvas); m_ui->paletteView->setDisplayRenderer(cv->displayColorConverter()->displayRendererInterface()); @@ -220,24 +220,24 @@ } if (!m_currentColorSet) { - slotSetColorSet(Q_NULLPTR); + slotSetColorSet(nullptr); } } void PaletteDockerDock::unsetCanvas() { setEnabled(false); - m_ui->paletteView->setDisplayRenderer(Q_NULLPTR); - m_paletteEditor->setView(Q_NULLPTR); + m_ui->paletteView->setDisplayRenderer(nullptr); + m_paletteEditor->setView(nullptr); for (KoResource *r : m_rServer->resources()) { KoColorSet *c = static_cast(r); if (!c->isGlobal()) { m_rServer->removeResourceFromServer(c); } } if (!m_currentColorSet) { - slotSetColorSet(Q_NULLPTR); + slotSetColorSet(nullptr); } } diff --git a/plugins/dockers/svgcollectiondocker/SvgSymbolCollectionDocker.h b/plugins/dockers/svgcollectiondocker/SvgSymbolCollectionDocker.h --- a/plugins/dockers/svgcollectiondocker/SvgSymbolCollectionDocker.h +++ b/plugins/dockers/svgcollectiondocker/SvgSymbolCollectionDocker.h @@ -37,7 +37,7 @@ { Q_OBJECT public: - explicit SvgCollectionModel(QObject *parent = 0); + explicit SvgCollectionModel(QObject *parent = nullptr); QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; int rowCount(const QModelIndex &parent = QModelIndex()) const override; QMimeData *mimeData(const QModelIndexList &indexes) const override; @@ -69,7 +69,7 @@ Q_OBJECT public: - explicit SvgSymbolCollectionDocker(QWidget *parent = 0); + explicit SvgSymbolCollectionDocker(QWidget *parent = nullptr); /// reimplemented void setCanvas(KoCanvasBase *canvas) override; diff --git a/plugins/dockers/tasksetdocker/tasksetdocker_dock.cpp b/plugins/dockers/tasksetdocker/tasksetdocker_dock.cpp --- a/plugins/dockers/tasksetdocker/tasksetdocker_dock.cpp +++ b/plugins/dockers/tasksetdocker/tasksetdocker_dock.cpp @@ -45,7 +45,7 @@ class KisTasksetDelegate : public QStyledItemDelegate { public: - KisTasksetDelegate(QObject * parent = 0) : QStyledItemDelegate(parent) {} + KisTasksetDelegate(QObject * parent = nullptr) : QStyledItemDelegate(parent) {} ~KisTasksetDelegate() override {} /// reimplemented QSize sizeHint(const QStyleOptionViewItem & option, const QModelIndex & index) const override { @@ -57,7 +57,7 @@ class KisTasksetResourceDelegate : public QStyledItemDelegate { public: - KisTasksetResourceDelegate(QObject * parent = 0) : QStyledItemDelegate(parent) {} + KisTasksetResourceDelegate(QObject * parent = nullptr) : QStyledItemDelegate(parent) {} ~KisTasksetResourceDelegate() override {} /// reimplemented void paint(QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const override; diff --git a/plugins/dockers/tasksetdocker/tasksetmodel.h b/plugins/dockers/tasksetdocker/tasksetmodel.h --- a/plugins/dockers/tasksetdocker/tasksetmodel.h +++ b/plugins/dockers/tasksetdocker/tasksetmodel.h @@ -27,7 +27,7 @@ { Q_OBJECT public: - TasksetModel(QObject* parent = 0); + TasksetModel(QObject* parent = nullptr); ~TasksetModel() override; QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; diff --git a/plugins/dockers/throttle/Throttle.h b/plugins/dockers/throttle/Throttle.h --- a/plugins/dockers/throttle/Throttle.h +++ b/plugins/dockers/throttle/Throttle.h @@ -29,7 +29,7 @@ Q_PROPERTY(int threadCount READ threadCount WRITE setThreadCount NOTIFY threadCountChanged) Q_PROPERTY(int maxThreadCount READ maxThreadCount) public: - ThreadManager(QObject *parent = 0); + ThreadManager(QObject *parent = nullptr); ~ThreadManager() override; void setThreadCount(int threadCount); diff --git a/plugins/extensions/animationrenderer/DlgAnimationRenderer.h b/plugins/extensions/animationrenderer/DlgAnimationRenderer.h --- a/plugins/extensions/animationrenderer/DlgAnimationRenderer.h +++ b/plugins/extensions/animationrenderer/DlgAnimationRenderer.h @@ -53,7 +53,7 @@ public: - DlgAnimationRenderer(KisDocument *doc, QWidget *parent = 0); + DlgAnimationRenderer(KisDocument *doc, QWidget *parent = nullptr); ~DlgAnimationRenderer() override; KisAnimationRenderingOptions getEncoderOptions() const; diff --git a/plugins/extensions/animationrenderer/video_export_options_dialog.h b/plugins/extensions/animationrenderer/video_export_options_dialog.h --- a/plugins/extensions/animationrenderer/video_export_options_dialog.h +++ b/plugins/extensions/animationrenderer/video_export_options_dialog.h @@ -47,7 +47,7 @@ }; public: - explicit VideoExportOptionsDialog(ContainerType containerType, QWidget *parent = 0); + explicit VideoExportOptionsDialog(ContainerType containerType, QWidget *parent = nullptr); ~VideoExportOptionsDialog() override; void setSupportsHDR(bool value); diff --git a/plugins/extensions/buginfo/dlg_buginfo.h b/plugins/extensions/buginfo/dlg_buginfo.h --- a/plugins/extensions/buginfo/dlg_buginfo.h +++ b/plugins/extensions/buginfo/dlg_buginfo.h @@ -38,7 +38,7 @@ { Q_OBJECT public: - DlgBugInfo(QWidget * parent = 0); + DlgBugInfo(QWidget * parent = nullptr); ~DlgBugInfo() override; private: WdgBugInfo *m_page; diff --git a/plugins/extensions/clonesarray/dlg_clonesarray.h b/plugins/extensions/clonesarray/dlg_clonesarray.h --- a/plugins/extensions/clonesarray/dlg_clonesarray.h +++ b/plugins/extensions/clonesarray/dlg_clonesarray.h @@ -46,7 +46,7 @@ Q_OBJECT public: - DlgClonesArray(KisViewManager *viewManager, QWidget * parent = 0); + DlgClonesArray(KisViewManager *viewManager, QWidget * parent = nullptr); ~DlgClonesArray() override; private Q_SLOTS: diff --git a/plugins/extensions/colorrange/dlg_colorrange.h b/plugins/extensions/colorrange/dlg_colorrange.h --- a/plugins/extensions/colorrange/dlg_colorrange.h +++ b/plugins/extensions/colorrange/dlg_colorrange.h @@ -67,7 +67,7 @@ public: - DlgColorRange(KisViewManager *viewManager, QWidget *parent = 0); + DlgColorRange(KisViewManager *viewManager, QWidget *parent = nullptr); ~DlgColorRange() override; private Q_SLOTS: diff --git a/plugins/extensions/imagesize/kcanvaspreview.h b/plugins/extensions/imagesize/kcanvaspreview.h --- a/plugins/extensions/imagesize/kcanvaspreview.h +++ b/plugins/extensions/imagesize/kcanvaspreview.h @@ -27,7 +27,7 @@ Q_OBJECT public: - KCanvasPreview(QWidget * parent = 0); + KCanvasPreview(QWidget * parent = nullptr); ~KCanvasPreview() override; diff --git a/plugins/extensions/pykrita/plugin/pyqtpluginsettings.h b/plugins/extensions/pykrita/plugin/pyqtpluginsettings.h --- a/plugins/extensions/pykrita/plugin/pyqtpluginsettings.h +++ b/plugins/extensions/pykrita/plugin/pyqtpluginsettings.h @@ -32,7 +32,7 @@ Q_OBJECT public: - PyQtPluginSettings(PythonPluginManager *pluginManager, QWidget *parent = 0); + PyQtPluginSettings(PythonPluginManager *pluginManager, QWidget *parent = nullptr); ~PyQtPluginSettings(); virtual QString id(); diff --git a/plugins/extensions/pykrita/sip/krita/ManagedColor.sip b/plugins/extensions/pykrita/sip/krita/ManagedColor.sip --- a/plugins/extensions/pykrita/sip/krita/ManagedColor.sip +++ b/plugins/extensions/pykrita/sip/krita/ManagedColor.sip @@ -5,7 +5,7 @@ %End ManagedColor(const ManagedColor & __0); public: - ManagedColor(const QString &colorModel, const QString &colorDepth, const QString &colorProfile, QObject *parent = 0); + ManagedColor(const QString &colorModel, const QString &colorDepth, const QString &colorProfile, QObject *parent = nullptr); bool operator==(const ManagedColor &other) const; QColor colorForCanvas(Canvas *canvas) const; QString colorDepth() const; diff --git a/plugins/extensions/pykrita/sip/krita/PaletteView.sip b/plugins/extensions/pykrita/sip/krita/PaletteView.sip --- a/plugins/extensions/pykrita/sip/krita/PaletteView.sip +++ b/plugins/extensions/pykrita/sip/krita/PaletteView.sip @@ -5,7 +5,7 @@ %End PaletteView(const PaletteView & __0); public: - PaletteView(QWidget *parent = 0); + PaletteView(QWidget *parent = nullptr); ~PaletteView(); public Q_SLOTS: void setPalette(Palette *palette); diff --git a/plugins/extensions/pykrita/sip/krita/PresetChooser.sip b/plugins/extensions/pykrita/sip/krita/PresetChooser.sip --- a/plugins/extensions/pykrita/sip/krita/PresetChooser.sip +++ b/plugins/extensions/pykrita/sip/krita/PresetChooser.sip @@ -5,7 +5,7 @@ %End public: - PresetChooser(QWidget *parent = 0); + PresetChooser(QWidget *parent = nullptr); public Q_SLOTS: diff --git a/plugins/extensions/qmic/PluginSettings.h b/plugins/extensions/qmic/PluginSettings.h --- a/plugins/extensions/qmic/PluginSettings.h +++ b/plugins/extensions/qmic/PluginSettings.h @@ -28,7 +28,7 @@ Q_OBJECT public: - PluginSettings(QWidget *parent = 0); + PluginSettings(QWidget *parent = nullptr); ~PluginSettings(); virtual QString id(); diff --git a/plugins/extensions/resourcemanager/dlg_bundle_manager.h b/plugins/extensions/resourcemanager/dlg_bundle_manager.h --- a/plugins/extensions/resourcemanager/dlg_bundle_manager.h +++ b/plugins/extensions/resourcemanager/dlg_bundle_manager.h @@ -38,7 +38,7 @@ { Q_OBJECT public: - explicit DlgBundleManager(ResourceManager *resourceManager, KisActionManager* actionMgr, QWidget *parent = 0); + explicit DlgBundleManager(ResourceManager *resourceManager, KisActionManager* actionMgr, QWidget *parent = nullptr); private Q_SLOTS: diff --git a/plugins/extensions/resourcemanager/dlg_create_bundle.h b/plugins/extensions/resourcemanager/dlg_create_bundle.h --- a/plugins/extensions/resourcemanager/dlg_create_bundle.h +++ b/plugins/extensions/resourcemanager/dlg_create_bundle.h @@ -33,7 +33,7 @@ Q_OBJECT public: - explicit DlgCreateBundle(KisResourceBundle *bundle = 0, QWidget *parent = 0); + explicit DlgCreateBundle(KisResourceBundle *bundle = 0, QWidget *parent = nullptr); ~DlgCreateBundle() override; QString bundleName() const; diff --git a/plugins/filters/noisefilter/kis_wdg_noise.h b/plugins/filters/noisefilter/kis_wdg_noise.h --- a/plugins/filters/noisefilter/kis_wdg_noise.h +++ b/plugins/filters/noisefilter/kis_wdg_noise.h @@ -30,7 +30,7 @@ { Q_OBJECT public: - KisWdgNoise(KisFilter* nfilter, QWidget* parent = 0); + KisWdgNoise(KisFilter* nfilter, QWidget* parent = nullptr); ~KisWdgNoise() override; public: inline const Ui_WdgNoiseOptions* widget() const { diff --git a/plugins/filters/randompickfilter/kis_wdg_random_pick.h b/plugins/filters/randompickfilter/kis_wdg_random_pick.h --- a/plugins/filters/randompickfilter/kis_wdg_random_pick.h +++ b/plugins/filters/randompickfilter/kis_wdg_random_pick.h @@ -30,7 +30,7 @@ { Q_OBJECT public: - KisWdgRandomPick(KisFilter* nfilter, QWidget* parent = 0); + KisWdgRandomPick(KisFilter* nfilter, QWidget* parent = nullptr); ~KisWdgRandomPick() override; public: inline const Ui_WdgRandomPickOptions* widget() const { diff --git a/plugins/filters/wavefilter/kis_wdg_wave.h b/plugins/filters/wavefilter/kis_wdg_wave.h --- a/plugins/filters/wavefilter/kis_wdg_wave.h +++ b/plugins/filters/wavefilter/kis_wdg_wave.h @@ -30,7 +30,7 @@ { Q_OBJECT public: - KisWdgWave(KisFilter* nfilter, QWidget* parent = 0); + KisWdgWave(KisFilter* nfilter, QWidget* parent = nullptr); ~KisWdgWave() override; public: inline const Ui_WdgWaveOptions* widget() const { diff --git a/plugins/flake/artistictextshape/ArtisticTextShapeOnPathWidget.h b/plugins/flake/artistictextshape/ArtisticTextShapeOnPathWidget.h --- a/plugins/flake/artistictextshape/ArtisticTextShapeOnPathWidget.h +++ b/plugins/flake/artistictextshape/ArtisticTextShapeOnPathWidget.h @@ -34,7 +34,7 @@ Q_OBJECT public: - explicit ArtisticTextShapeOnPathWidget(ArtisticTextTool *tool, QWidget *parent = 0); + explicit ArtisticTextShapeOnPathWidget(ArtisticTextTool *tool, QWidget *parent = nullptr); ~ArtisticTextShapeOnPathWidget() override; public Q_SLOTS: diff --git a/plugins/flake/artistictextshape/ArtisticTextToolSelection.h b/plugins/flake/artistictextshape/ArtisticTextToolSelection.h --- a/plugins/flake/artistictextshape/ArtisticTextToolSelection.h +++ b/plugins/flake/artistictextshape/ArtisticTextToolSelection.h @@ -33,7 +33,7 @@ class ArtisticTextToolSelection : public KoToolSelection { public: - explicit ArtisticTextToolSelection(KoCanvasBase *canvas, QObject *parent = 0); + explicit ArtisticTextToolSelection(KoCanvasBase *canvas, QObject *parent = nullptr); ~ArtisticTextToolSelection() override; // reimplemented from KoToolSelection diff --git a/plugins/flake/artistictextshape/AttachTextToPathCommand.h b/plugins/flake/artistictextshape/AttachTextToPathCommand.h --- a/plugins/flake/artistictextshape/AttachTextToPathCommand.h +++ b/plugins/flake/artistictextshape/AttachTextToPathCommand.h @@ -29,7 +29,7 @@ class AttachTextToPathCommand : public KUndo2Command { public: - AttachTextToPathCommand(ArtisticTextShape *textShape, KoPathShape *pathShape, KUndo2Command *parent = 0); + AttachTextToPathCommand(ArtisticTextShape *textShape, KoPathShape *pathShape, KUndo2Command *parent = nullptr); /// reimplemented from KUndo2Command void redo() override; /// reimplemented from KUndo2Command diff --git a/plugins/flake/artistictextshape/ChangeTextFontCommand.h b/plugins/flake/artistictextshape/ChangeTextFontCommand.h --- a/plugins/flake/artistictextshape/ChangeTextFontCommand.h +++ b/plugins/flake/artistictextshape/ChangeTextFontCommand.h @@ -30,8 +30,8 @@ class ChangeTextFontCommand : public KUndo2Command { public: - ChangeTextFontCommand(ArtisticTextShape *shape, const QFont &font, KUndo2Command *parent = 0); - ChangeTextFontCommand(ArtisticTextShape *shape, int from, int count, const QFont &font, KUndo2Command *parent = 0); + ChangeTextFontCommand(ArtisticTextShape *shape, const QFont &font, KUndo2Command *parent = nullptr); + ChangeTextFontCommand(ArtisticTextShape *shape, int from, int count, const QFont &font, KUndo2Command *parent = nullptr); void undo() override; void redo() override; diff --git a/plugins/flake/artistictextshape/ChangeTextOffsetCommand.h b/plugins/flake/artistictextshape/ChangeTextOffsetCommand.h --- a/plugins/flake/artistictextshape/ChangeTextOffsetCommand.h +++ b/plugins/flake/artistictextshape/ChangeTextOffsetCommand.h @@ -27,7 +27,7 @@ class ChangeTextOffsetCommand : public KUndo2Command { public: - ChangeTextOffsetCommand(ArtisticTextShape *textShape, qreal oldOffset, qreal newOffset, KUndo2Command *parent = 0); + ChangeTextOffsetCommand(ArtisticTextShape *textShape, qreal oldOffset, qreal newOffset, KUndo2Command *parent = nullptr); /// reimplemented from KUndo2Command void redo() override; /// reimplemented from KUndo2Command diff --git a/plugins/flake/artistictextshape/DetachTextFromPathCommand.h b/plugins/flake/artistictextshape/DetachTextFromPathCommand.h --- a/plugins/flake/artistictextshape/DetachTextFromPathCommand.h +++ b/plugins/flake/artistictextshape/DetachTextFromPathCommand.h @@ -29,7 +29,7 @@ class DetachTextFromPathCommand : public KUndo2Command { public: - explicit DetachTextFromPathCommand(ArtisticTextShape *textShape, KUndo2Command *parent = 0); + explicit DetachTextFromPathCommand(ArtisticTextShape *textShape, KUndo2Command *parent = nullptr); /// reimplemented from KUndo2Command void redo() override; /// reimplemented from KUndo2Command diff --git a/plugins/flake/artistictextshape/ReplaceTextRangeCommand.h b/plugins/flake/artistictextshape/ReplaceTextRangeCommand.h --- a/plugins/flake/artistictextshape/ReplaceTextRangeCommand.h +++ b/plugins/flake/artistictextshape/ReplaceTextRangeCommand.h @@ -31,9 +31,9 @@ class ReplaceTextRangeCommand : public KUndo2Command { public: - ReplaceTextRangeCommand(ArtisticTextShape *shape, const QString &text, int from, int count, ArtisticTextTool *tool, KUndo2Command *parent = 0); - ReplaceTextRangeCommand(ArtisticTextShape *shape, const ArtisticTextRange &text, int from, int count, ArtisticTextTool *tool, KUndo2Command *parent = 0); - ReplaceTextRangeCommand(ArtisticTextShape *shape, const QList &text, int from, int count, ArtisticTextTool *tool, KUndo2Command *parent = 0); + ReplaceTextRangeCommand(ArtisticTextShape *shape, const QString &text, int from, int count, ArtisticTextTool *tool, KUndo2Command *parent = nullptr); + ReplaceTextRangeCommand(ArtisticTextShape *shape, const ArtisticTextRange &text, int from, int count, ArtisticTextTool *tool, KUndo2Command *parent = nullptr); + ReplaceTextRangeCommand(ArtisticTextShape *shape, const QList &text, int from, int count, ArtisticTextTool *tool, KUndo2Command *parent = nullptr); void redo() override; void undo() override; diff --git a/plugins/flake/pathshapes/ellipse/EllipseShapeConfigCommand.h b/plugins/flake/pathshapes/ellipse/EllipseShapeConfigCommand.h --- a/plugins/flake/pathshapes/ellipse/EllipseShapeConfigCommand.h +++ b/plugins/flake/pathshapes/ellipse/EllipseShapeConfigCommand.h @@ -35,7 +35,7 @@ * @param endAngle the end angle * @param parent the optional parent command */ - EllipseShapeConfigCommand(EllipseShape *ellipse, EllipseShape::EllipseType type, qreal startAngle, qreal startEndAngle, KUndo2Command *parent = 0); + EllipseShapeConfigCommand(EllipseShape *ellipse, EllipseShape::EllipseType type, qreal startAngle, qreal startEndAngle, KUndo2Command *parent = nullptr); /// redo the command void redo() override; /// revert the actions done in redo diff --git a/plugins/flake/pathshapes/rectangle/RectangleShapeConfigCommand.h b/plugins/flake/pathshapes/rectangle/RectangleShapeConfigCommand.h --- a/plugins/flake/pathshapes/rectangle/RectangleShapeConfigCommand.h +++ b/plugins/flake/pathshapes/rectangle/RectangleShapeConfigCommand.h @@ -35,7 +35,7 @@ * @param cornerRadiusY the y corner radius * @param parent the optional parent command */ - RectangleShapeConfigCommand(RectangleShape *rectangle, qreal cornerRadiusX, qreal cornerRadiusY, KUndo2Command *parent = 0); + RectangleShapeConfigCommand(RectangleShape *rectangle, qreal cornerRadiusX, qreal cornerRadiusY, KUndo2Command *parent = nullptr); /// redo the command void redo() override; /// revert the actions done in redo diff --git a/plugins/flake/pathshapes/spiral/SpiralShapeConfigCommand.h b/plugins/flake/pathshapes/spiral/SpiralShapeConfigCommand.h --- a/plugins/flake/pathshapes/spiral/SpiralShapeConfigCommand.h +++ b/plugins/flake/pathshapes/spiral/SpiralShapeConfigCommand.h @@ -34,7 +34,7 @@ * @param fade the fade parameter * @param parent the optional parent command */ - SpiralShapeConfigCommand(SpiralShape *spiral, SpiralShape::SpiralType type, bool clockWise, qreal fade, KUndo2Command *parent = 0); + SpiralShapeConfigCommand(SpiralShape *spiral, SpiralShape::SpiralType type, bool clockWise, qreal fade, KUndo2Command *parent = nullptr); /// redo the command void redo() override; /// revert the actions done in redo diff --git a/plugins/flake/pathshapes/star/StarShapeConfigCommand.h b/plugins/flake/pathshapes/star/StarShapeConfigCommand.h --- a/plugins/flake/pathshapes/star/StarShapeConfigCommand.h +++ b/plugins/flake/pathshapes/star/StarShapeConfigCommand.h @@ -37,7 +37,7 @@ * @param convex indicates whether the star is convex or not * @param parent the optional parent command */ - StarShapeConfigCommand(StarShape *star, uint cornerCount, qreal innerRadius, qreal outerRadius, bool convex, KUndo2Command *parent = 0); + StarShapeConfigCommand(StarShape *star, uint cornerCount, qreal innerRadius, qreal outerRadius, bool convex, KUndo2Command *parent = nullptr); /// redo the command void redo() override; /// revert the actions done in redo diff --git a/plugins/flake/textshape/TextDocumentStructureModel.h b/plugins/flake/textshape/TextDocumentStructureModel.h --- a/plugins/flake/textshape/TextDocumentStructureModel.h +++ b/plugins/flake/textshape/TextDocumentStructureModel.h @@ -52,7 +52,7 @@ }; public: - explicit TextDocumentStructureModel(QObject *parent = 0); + explicit TextDocumentStructureModel(QObject *parent = nullptr); virtual ~TextDocumentStructureModel(); public: // QAbstractItemModel API diff --git a/plugins/flake/textshape/TextEditingPluginContainer.h b/plugins/flake/textshape/TextEditingPluginContainer.h --- a/plugins/flake/textshape/TextEditingPluginContainer.h +++ b/plugins/flake/textshape/TextEditingPluginContainer.h @@ -37,7 +37,7 @@ ResourceId = 345681743 }; - explicit TextEditingPluginContainer(QObject *parent = 0); + explicit TextEditingPluginContainer(QObject *parent = nullptr); ~TextEditingPluginContainer() override; KoTextEditingPlugin *spellcheck() const; diff --git a/plugins/flake/textshape/commands/AcceptChangeCommand.h b/plugins/flake/textshape/commands/AcceptChangeCommand.h --- a/plugins/flake/textshape/commands/AcceptChangeCommand.h +++ b/plugins/flake/textshape/commands/AcceptChangeCommand.h @@ -32,7 +32,7 @@ { Q_OBJECT public: - AcceptChangeCommand(int changeId, const QList > &changeRanges, QTextDocument *document, KUndo2Command *parent = 0); + AcceptChangeCommand(int changeId, const QList > &changeRanges, QTextDocument *document, KUndo2Command *parent = nullptr); ~AcceptChangeCommand() override; void redo() override; diff --git a/plugins/flake/textshape/commands/ChangeListLevelCommand.h b/plugins/flake/textshape/commands/ChangeListLevelCommand.h --- a/plugins/flake/textshape/commands/ChangeListLevelCommand.h +++ b/plugins/flake/textshape/commands/ChangeListLevelCommand.h @@ -46,7 +46,7 @@ * @param coef indicates by how many levels the list item should be displaced * @param parent the parent undo command for macro functionality */ - ChangeListLevelCommand(const QTextCursor &cursor, CommandType type, int coef, KUndo2Command *parent = 0); + ChangeListLevelCommand(const QTextCursor &cursor, CommandType type, int coef, KUndo2Command *parent = nullptr); ~ChangeListLevelCommand() override; diff --git a/plugins/flake/textshape/commands/RejectChangeCommand.h b/plugins/flake/textshape/commands/RejectChangeCommand.h --- a/plugins/flake/textshape/commands/RejectChangeCommand.h +++ b/plugins/flake/textshape/commands/RejectChangeCommand.h @@ -33,7 +33,7 @@ { Q_OBJECT public: - RejectChangeCommand(int changeId, const QList > &changeRanges, QTextDocument *document, KUndo2Command *parent = 0); + RejectChangeCommand(int changeId, const QList > &changeRanges, QTextDocument *document, KUndo2Command *parent = nullptr); ~RejectChangeCommand() override; void redo() override; diff --git a/plugins/flake/textshape/commands/ShowChangesCommand.h b/plugins/flake/textshape/commands/ShowChangesCommand.h --- a/plugins/flake/textshape/commands/ShowChangesCommand.h +++ b/plugins/flake/textshape/commands/ShowChangesCommand.h @@ -40,7 +40,7 @@ Q_OBJECT public: - ShowChangesCommand(bool showChanges, QTextDocument *document, KoCanvasBase *canvas, KUndo2Command *parent = 0); + ShowChangesCommand(bool showChanges, QTextDocument *document, KoCanvasBase *canvas, KUndo2Command *parent = nullptr); ~ShowChangesCommand() override; void undo() override; diff --git a/plugins/flake/textshape/dialogs/AbstractStylesModel.h b/plugins/flake/textshape/dialogs/AbstractStylesModel.h --- a/plugins/flake/textshape/dialogs/AbstractStylesModel.h +++ b/plugins/flake/textshape/dialogs/AbstractStylesModel.h @@ -61,7 +61,7 @@ TitleString }; - explicit AbstractStylesModel(QObject *parent = 0); + explicit AbstractStylesModel(QObject *parent = nullptr); /** Re-implement from QAbstractItemModel. * diff --git a/plugins/flake/textshape/dialogs/BibliographyConfigureDialog.h b/plugins/flake/textshape/dialogs/BibliographyConfigureDialog.h --- a/plugins/flake/textshape/dialogs/BibliographyConfigureDialog.h +++ b/plugins/flake/textshape/dialogs/BibliographyConfigureDialog.h @@ -34,7 +34,7 @@ Q_OBJECT public: - explicit BibliographyConfigureDialog(const QTextDocument *document, QWidget *parent = 0); + explicit BibliographyConfigureDialog(const QTextDocument *document, QWidget *parent = nullptr); public Q_SLOTS: void addSortKey(); diff --git a/plugins/flake/textshape/dialogs/BibliographyPreview.h b/plugins/flake/textshape/dialogs/BibliographyPreview.h --- a/plugins/flake/textshape/dialogs/BibliographyPreview.h +++ b/plugins/flake/textshape/dialogs/BibliographyPreview.h @@ -34,7 +34,7 @@ { Q_OBJECT public: - explicit BibliographyPreview(QWidget *parent = 0); + explicit BibliographyPreview(QWidget *parent = nullptr); ~BibliographyPreview() override; void setStyleManager(KoStyleManager *styleManager); /// sets the size of the generated preview pixmap if not set then it takes the widget's size diff --git a/plugins/flake/textshape/dialogs/ChangeConfigureDialog.h b/plugins/flake/textshape/dialogs/ChangeConfigureDialog.h --- a/plugins/flake/textshape/dialogs/ChangeConfigureDialog.h +++ b/plugins/flake/textshape/dialogs/ChangeConfigureDialog.h @@ -26,7 +26,7 @@ class ColorDisplayLabel: public QLabel { public: - explicit ColorDisplayLabel(QWidget *parent = 0); + explicit ColorDisplayLabel(QWidget *parent = nullptr); ~ColorDisplayLabel() override; void paintEvent(QPaintEvent *event) override; const QColor &color() const; @@ -50,7 +50,7 @@ } ChangeType; public: - ChangeConfigureDialog(const QColor &insertionColor, const QColor &deletionColor, const QColor &formatChangeColor, const QString &authorName, KoChangeTracker::ChangeSaveFormat changeSaveFormat, QWidget *parent = 0); + ChangeConfigureDialog(const QColor &insertionColor, const QColor &deletionColor, const QColor &formatChangeColor, const QString &authorName, KoChangeTracker::ChangeSaveFormat changeSaveFormat, QWidget *parent = nullptr); ~ChangeConfigureDialog() override; const QColor &getInsertionBgColor(); diff --git a/plugins/flake/textshape/dialogs/ChangeTrackingOptionsWidget.h b/plugins/flake/textshape/dialogs/ChangeTrackingOptionsWidget.h --- a/plugins/flake/textshape/dialogs/ChangeTrackingOptionsWidget.h +++ b/plugins/flake/textshape/dialogs/ChangeTrackingOptionsWidget.h @@ -26,7 +26,7 @@ { Q_OBJECT public: - explicit ChangeTrackingOptionsWidget(TextTool *tool, QWidget *parent = 0); + explicit ChangeTrackingOptionsWidget(TextTool *tool, QWidget *parent = nullptr); private Q_SLOTS: void recordChangesChanged(int isChecked); diff --git a/plugins/flake/textshape/dialogs/CharacterGeneral.h b/plugins/flake/textshape/dialogs/CharacterGeneral.h --- a/plugins/flake/textshape/dialogs/CharacterGeneral.h +++ b/plugins/flake/textshape/dialogs/CharacterGeneral.h @@ -37,7 +37,7 @@ { Q_OBJECT public: - explicit CharacterGeneral(QWidget *parent = 0); + explicit CharacterGeneral(QWidget *parent = nullptr); void setStyle(KoCharacterStyle *style); void hideStyleName(bool hide); diff --git a/plugins/flake/textshape/dialogs/CharacterHighlighting.h b/plugins/flake/textshape/dialogs/CharacterHighlighting.h --- a/plugins/flake/textshape/dialogs/CharacterHighlighting.h +++ b/plugins/flake/textshape/dialogs/CharacterHighlighting.h @@ -34,7 +34,7 @@ Q_OBJECT public: - explicit CharacterHighlighting(bool uniqueFormat, QWidget *parent = 0); + explicit CharacterHighlighting(bool uniqueFormat, QWidget *parent = nullptr); ~CharacterHighlighting() override {} void setDisplay(KoCharacterStyle *style); diff --git a/plugins/flake/textshape/dialogs/DockerStylesComboModel.h b/plugins/flake/textshape/dialogs/DockerStylesComboModel.h --- a/plugins/flake/textshape/dialogs/DockerStylesComboModel.h +++ b/plugins/flake/textshape/dialogs/DockerStylesComboModel.h @@ -37,7 +37,7 @@ UnusedStyleId = -32001 }; - explicit DockerStylesComboModel(QObject *parent = 0); + explicit DockerStylesComboModel(QObject *parent = nullptr); Qt::ItemFlags flags(const QModelIndex &index) const override; diff --git a/plugins/flake/textshape/dialogs/FontDecorations.h b/plugins/flake/textshape/dialogs/FontDecorations.h --- a/plugins/flake/textshape/dialogs/FontDecorations.h +++ b/plugins/flake/textshape/dialogs/FontDecorations.h @@ -30,7 +30,7 @@ Q_OBJECT public: - explicit FontDecorations(bool uniqueFormat, QWidget *parent = 0); + explicit FontDecorations(bool uniqueFormat, QWidget *parent = nullptr); ~FontDecorations() override {} void setDisplay(KoCharacterStyle *style); diff --git a/plugins/flake/textshape/dialogs/FontDia.h b/plugins/flake/textshape/dialogs/FontDia.h --- a/plugins/flake/textshape/dialogs/FontDia.h +++ b/plugins/flake/textshape/dialogs/FontDia.h @@ -34,7 +34,7 @@ { Q_OBJECT public: - explicit FontDia(KoTextEditor *cursor, QWidget *parent = 0); + explicit FontDia(KoTextEditor *cursor, QWidget *parent = nullptr); protected Q_SLOTS: void styleChanged(bool state = true); diff --git a/plugins/flake/textshape/dialogs/FormattingButton.h b/plugins/flake/textshape/dialogs/FormattingButton.h --- a/plugins/flake/textshape/dialogs/FormattingButton.h +++ b/plugins/flake/textshape/dialogs/FormattingButton.h @@ -35,7 +35,7 @@ { Q_OBJECT public: - explicit FormattingButton(QWidget *parent = 0); + explicit FormattingButton(QWidget *parent = nullptr); void setNumColumns(int columns); void setItemsBackground(const QColor &color); diff --git a/plugins/flake/textshape/dialogs/FormattingPreview.h b/plugins/flake/textshape/dialogs/FormattingPreview.h --- a/plugins/flake/textshape/dialogs/FormattingPreview.h +++ b/plugins/flake/textshape/dialogs/FormattingPreview.h @@ -36,7 +36,7 @@ Q_OBJECT public: - explicit FormattingPreview(QWidget *parent = 0); + explicit FormattingPreview(QWidget *parent = nullptr); ~FormattingPreview() override; public Q_SLOTS: diff --git a/plugins/flake/textshape/dialogs/ListLevelChooser.h b/plugins/flake/textshape/dialogs/ListLevelChooser.h --- a/plugins/flake/textshape/dialogs/ListLevelChooser.h +++ b/plugins/flake/textshape/dialogs/ListLevelChooser.h @@ -27,7 +27,7 @@ { Q_OBJECT public: - explicit ListLevelChooser(const int offset, QWidget *parent = 0); + explicit ListLevelChooser(const int offset, QWidget *parent = nullptr); protected: void paintEvent(QPaintEvent *event) override; diff --git a/plugins/flake/textshape/dialogs/ListsSpinBox.h b/plugins/flake/textshape/dialogs/ListsSpinBox.h --- a/plugins/flake/textshape/dialogs/ListsSpinBox.h +++ b/plugins/flake/textshape/dialogs/ListsSpinBox.h @@ -28,7 +28,7 @@ { Q_OBJECT public: - explicit ListsSpinBox(QWidget *parent = 0); + explicit ListsSpinBox(QWidget *parent = nullptr); void setCounterType(KoListStyle::Style type); QString textFromValue(int value) const override; diff --git a/plugins/flake/textshape/dialogs/ParagraphDecorations.h b/plugins/flake/textshape/dialogs/ParagraphDecorations.h --- a/plugins/flake/textshape/dialogs/ParagraphDecorations.h +++ b/plugins/flake/textshape/dialogs/ParagraphDecorations.h @@ -30,7 +30,7 @@ Q_OBJECT public: - explicit ParagraphDecorations(QWidget *parent = 0); + explicit ParagraphDecorations(QWidget *parent = nullptr); ~ParagraphDecorations() override {} void setDisplay(KoParagraphStyle *style); diff --git a/plugins/flake/textshape/dialogs/ParagraphDropCaps.h b/plugins/flake/textshape/dialogs/ParagraphDropCaps.h --- a/plugins/flake/textshape/dialogs/ParagraphDropCaps.h +++ b/plugins/flake/textshape/dialogs/ParagraphDropCaps.h @@ -38,7 +38,7 @@ Q_OBJECT public: - explicit ParagraphDropCaps(QWidget *parent = 0); + explicit ParagraphDropCaps(QWidget *parent = nullptr); void setDisplay(KoParagraphStyle *style); void save(KoParagraphStyle *style); diff --git a/plugins/flake/textshape/dialogs/ParagraphGeneral.h b/plugins/flake/textshape/dialogs/ParagraphGeneral.h --- a/plugins/flake/textshape/dialogs/ParagraphGeneral.h +++ b/plugins/flake/textshape/dialogs/ParagraphGeneral.h @@ -41,7 +41,7 @@ { Q_OBJECT public: - explicit ParagraphGeneral(QWidget *parent = 0); + explicit ParagraphGeneral(QWidget *parent = nullptr); void setStyle(KoParagraphStyle *style, int level = 0); void setUnit(const KoUnit &unit); diff --git a/plugins/flake/textshape/dialogs/ParagraphSettingsDialog.h b/plugins/flake/textshape/dialogs/ParagraphSettingsDialog.h --- a/plugins/flake/textshape/dialogs/ParagraphSettingsDialog.h +++ b/plugins/flake/textshape/dialogs/ParagraphSettingsDialog.h @@ -34,7 +34,7 @@ { Q_OBJECT public: - explicit ParagraphSettingsDialog(TextTool *tool, KoTextEditor *editor, QWidget *parent = 0); + explicit ParagraphSettingsDialog(TextTool *tool, KoTextEditor *editor, QWidget *parent = nullptr); ~ParagraphSettingsDialog() override; void setUnit(const KoUnit &unit); diff --git a/plugins/flake/textshape/dialogs/QuickTableButton.h b/plugins/flake/textshape/dialogs/QuickTableButton.h --- a/plugins/flake/textshape/dialogs/QuickTableButton.h +++ b/plugins/flake/textshape/dialogs/QuickTableButton.h @@ -28,7 +28,7 @@ { Q_OBJECT public: - explicit QuickTableButton(QWidget *parent = 0); + explicit QuickTableButton(QWidget *parent = nullptr); void emitCreate(int rows, int columns); void addAction(QAction *action); diff --git a/plugins/flake/textshape/dialogs/SectionFormatDialog.cpp b/plugins/flake/textshape/dialogs/SectionFormatDialog.cpp --- a/plugins/flake/textshape/dialogs/SectionFormatDialog.cpp +++ b/plugins/flake/textshape/dialogs/SectionFormatDialog.cpp @@ -32,7 +32,7 @@ class SectionFormatDialog::ProxyModel : public QIdentityProxyModel { public: - ProxyModel(KoSectionModel *model, QObject *parent = 0) + ProxyModel(KoSectionModel *model, QObject *parent = nullptr) : QIdentityProxyModel(parent) { setSourceModel(model); diff --git a/plugins/flake/textshape/dialogs/SimpleCharacterWidget.h b/plugins/flake/textshape/dialogs/SimpleCharacterWidget.h --- a/plugins/flake/textshape/dialogs/SimpleCharacterWidget.h +++ b/plugins/flake/textshape/dialogs/SimpleCharacterWidget.h @@ -39,7 +39,7 @@ { Q_OBJECT public: - explicit SimpleCharacterWidget(TextTool *tool, QWidget *parent = 0); + explicit SimpleCharacterWidget(TextTool *tool, QWidget *parent = nullptr); ~SimpleCharacterWidget() override; void setInitialUsedStyles(QVector list); diff --git a/plugins/flake/textshape/dialogs/SimpleInsertWidget.h b/plugins/flake/textshape/dialogs/SimpleInsertWidget.h --- a/plugins/flake/textshape/dialogs/SimpleInsertWidget.h +++ b/plugins/flake/textshape/dialogs/SimpleInsertWidget.h @@ -32,7 +32,7 @@ { Q_OBJECT public: - explicit SimpleInsertWidget(TextTool *tool, QWidget *parent = 0); + explicit SimpleInsertWidget(TextTool *tool, QWidget *parent = nullptr); public Q_SLOTS: void setStyleManager(KoStyleManager *sm); diff --git a/plugins/flake/textshape/dialogs/SimpleParagraphWidget.h b/plugins/flake/textshape/dialogs/SimpleParagraphWidget.h --- a/plugins/flake/textshape/dialogs/SimpleParagraphWidget.h +++ b/plugins/flake/textshape/dialogs/SimpleParagraphWidget.h @@ -42,7 +42,7 @@ { Q_OBJECT public: - explicit SimpleParagraphWidget(TextTool *tool, QWidget *parent = 0); + explicit SimpleParagraphWidget(TextTool *tool, QWidget *parent = nullptr); ~SimpleParagraphWidget() override; void setInitialUsedStyles(QVector list); diff --git a/plugins/flake/textshape/dialogs/SimpleTableWidget.h b/plugins/flake/textshape/dialogs/SimpleTableWidget.h --- a/plugins/flake/textshape/dialogs/SimpleTableWidget.h +++ b/plugins/flake/textshape/dialogs/SimpleTableWidget.h @@ -35,7 +35,7 @@ { Q_OBJECT public: - explicit SimpleTableWidget(TextTool *tool, QWidget *parent = 0); + explicit SimpleTableWidget(TextTool *tool, QWidget *parent = nullptr); public Q_SLOTS: void setStyleManager(KoStyleManager *sm); diff --git a/plugins/flake/textshape/dialogs/StyleManager.h b/plugins/flake/textshape/dialogs/StyleManager.h --- a/plugins/flake/textshape/dialogs/StyleManager.h +++ b/plugins/flake/textshape/dialogs/StyleManager.h @@ -38,7 +38,7 @@ { Q_OBJECT public: - explicit StyleManager(QWidget *parent = 0); + explicit StyleManager(QWidget *parent = nullptr); ~StyleManager() override; void setStyleManager(KoStyleManager *sm); diff --git a/plugins/flake/textshape/dialogs/StyleManagerWelcome.h b/plugins/flake/textshape/dialogs/StyleManagerWelcome.h --- a/plugins/flake/textshape/dialogs/StyleManagerWelcome.h +++ b/plugins/flake/textshape/dialogs/StyleManagerWelcome.h @@ -28,7 +28,7 @@ { Q_OBJECT public: - explicit StyleManagerWelcome(QWidget *parent = 0); + explicit StyleManagerWelcome(QWidget *parent = nullptr); private: Ui::StyleManagerWelcome widget; diff --git a/plugins/flake/textshape/dialogs/StylesComboPreview.h b/plugins/flake/textshape/dialogs/StylesComboPreview.h --- a/plugins/flake/textshape/dialogs/StylesComboPreview.h +++ b/plugins/flake/textshape/dialogs/StylesComboPreview.h @@ -36,7 +36,7 @@ Q_PROPERTY(bool showAddButton READ isAddButtonShown WRITE setAddButtonShown) public: - explicit StylesComboPreview(QWidget *parent = 0); + explicit StylesComboPreview(QWidget *parent = nullptr); ~StylesComboPreview() override; QSize availableSize() const; diff --git a/plugins/flake/textshape/dialogs/StylesFilteredModelBase.h b/plugins/flake/textshape/dialogs/StylesFilteredModelBase.h --- a/plugins/flake/textshape/dialogs/StylesFilteredModelBase.h +++ b/plugins/flake/textshape/dialogs/StylesFilteredModelBase.h @@ -40,7 +40,7 @@ { Q_OBJECT public: - explicit StylesFilteredModelBase(QObject *parent = 0); + explicit StylesFilteredModelBase(QObject *parent = nullptr); /** Re-implement from QAbstractItemModel. */ diff --git a/plugins/flake/textshape/dialogs/StylesManagerModel.h b/plugins/flake/textshape/dialogs/StylesManagerModel.h --- a/plugins/flake/textshape/dialogs/StylesManagerModel.h +++ b/plugins/flake/textshape/dialogs/StylesManagerModel.h @@ -33,7 +33,7 @@ StylePointer = Qt::UserRole + 1, }; - explicit StylesManagerModel(QObject *parent = 0); + explicit StylesManagerModel(QObject *parent = nullptr); QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; int rowCount(const QModelIndex &parent = QModelIndex()) const override; diff --git a/plugins/flake/textshape/dialogs/StylesModel.h b/plugins/flake/textshape/dialogs/StylesModel.h --- a/plugins/flake/textshape/dialogs/StylesModel.h +++ b/plugins/flake/textshape/dialogs/StylesModel.h @@ -57,7 +57,7 @@ NoneStyleId = -1 }; - explicit StylesModel(KoStyleManager *styleManager, AbstractStylesModel::Type modelType, QObject *parent = 0); + explicit StylesModel(KoStyleManager *styleManager, AbstractStylesModel::Type modelType, QObject *parent = nullptr); ~StylesModel() override; /** Re-implemented from QAbstractItemModel. */ diff --git a/plugins/flake/textshape/dialogs/StylesSortFilterProxyModel.h b/plugins/flake/textshape/dialogs/StylesSortFilterProxyModel.h --- a/plugins/flake/textshape/dialogs/StylesSortFilterProxyModel.h +++ b/plugins/flake/textshape/dialogs/StylesSortFilterProxyModel.h @@ -25,7 +25,7 @@ class StylesSortFilterProxyModel : public QSortFilterProxyModel { public: - explicit StylesSortFilterProxyModel(QObject *parent = 0); + explicit StylesSortFilterProxyModel(QObject *parent = nullptr); protected: bool lessThan(const QModelIndex &left, const QModelIndex &right) const override; diff --git a/plugins/flake/textshape/dialogs/TableOfContentsConfigure.h b/plugins/flake/textshape/dialogs/TableOfContentsConfigure.h --- a/plugins/flake/textshape/dialogs/TableOfContentsConfigure.h +++ b/plugins/flake/textshape/dialogs/TableOfContentsConfigure.h @@ -44,8 +44,8 @@ Q_OBJECT public: - explicit TableOfContentsConfigure(KoTextEditor *editor, QTextBlock block, QWidget *parent = 0); - TableOfContentsConfigure(KoTextEditor *editor, KoTableOfContentsGeneratorInfo *info, QWidget *parent = 0); + explicit TableOfContentsConfigure(KoTextEditor *editor, QTextBlock block, QWidget *parent = nullptr); + TableOfContentsConfigure(KoTextEditor *editor, KoTableOfContentsGeneratorInfo *info, QWidget *parent = nullptr); ~TableOfContentsConfigure() override; KoTableOfContentsGeneratorInfo *currentToCData(); diff --git a/plugins/flake/textshape/dialogs/TableOfContentsPreview.h b/plugins/flake/textshape/dialogs/TableOfContentsPreview.h --- a/plugins/flake/textshape/dialogs/TableOfContentsPreview.h +++ b/plugins/flake/textshape/dialogs/TableOfContentsPreview.h @@ -34,7 +34,7 @@ { Q_OBJECT public: - explicit TableOfContentsPreview(QWidget *parent = 0); + explicit TableOfContentsPreview(QWidget *parent = nullptr); ~TableOfContentsPreview() override; void setStyleManager(KoStyleManager *styleManager); /// sets the size of the generated preview pixmap if not set then it takes the widget's size diff --git a/plugins/flake/textshape/dialogs/TableOfContentsStyleConfigure.h b/plugins/flake/textshape/dialogs/TableOfContentsStyleConfigure.h --- a/plugins/flake/textshape/dialogs/TableOfContentsStyleConfigure.h +++ b/plugins/flake/textshape/dialogs/TableOfContentsStyleConfigure.h @@ -40,7 +40,7 @@ Q_OBJECT public: - explicit TableOfContentsStyleConfigure(KoStyleManager *manager, QWidget *parent = 0); + explicit TableOfContentsStyleConfigure(KoStyleManager *manager, QWidget *parent = nullptr); ~TableOfContentsStyleConfigure() override; void initializeUi(KoTableOfContentsGeneratorInfo *info); diff --git a/plugins/flake/textshape/dialogs/TrackedChangeManager.h b/plugins/flake/textshape/dialogs/TrackedChangeManager.h --- a/plugins/flake/textshape/dialogs/TrackedChangeManager.h +++ b/plugins/flake/textshape/dialogs/TrackedChangeManager.h @@ -33,7 +33,7 @@ { Q_OBJECT public: - explicit TrackedChangeManager(QWidget *parent = 0); + explicit TrackedChangeManager(QWidget *parent = nullptr); ~TrackedChangeManager() override; void setModel(TrackedChangeModel *model); diff --git a/plugins/flake/textshape/dialogs/TrackedChangeModel.h b/plugins/flake/textshape/dialogs/TrackedChangeModel.h --- a/plugins/flake/textshape/dialogs/TrackedChangeModel.h +++ b/plugins/flake/textshape/dialogs/TrackedChangeModel.h @@ -47,7 +47,7 @@ class ModelItem { public: - explicit ModelItem(ModelItem *parent = 0); + explicit ModelItem(ModelItem *parent = nullptr); ~ModelItem(); void setChangeId(int changeId); @@ -80,7 +80,7 @@ Q_OBJECT public: - explicit TrackedChangeModel(QTextDocument *document, QObject *parent = 0); + explicit TrackedChangeModel(QTextDocument *document, QObject *parent = nullptr); ~TrackedChangeModel() override; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; diff --git a/plugins/flake/textshape/dialogs/ValidParentStylesProxyModel.h b/plugins/flake/textshape/dialogs/ValidParentStylesProxyModel.h --- a/plugins/flake/textshape/dialogs/ValidParentStylesProxyModel.h +++ b/plugins/flake/textshape/dialogs/ValidParentStylesProxyModel.h @@ -44,7 +44,7 @@ { Q_OBJECT public: - explicit ValidParentStylesProxyModel(QObject *parent = 0); + explicit ValidParentStylesProxyModel(QObject *parent = nullptr); void setStyleManager(KoStyleManager *manager); //it is needed to travel the style's parenting chain in order to assess if the currentChildStyle is suitable for being a parent void setCurrentChildStyleId(int styleId); diff --git a/plugins/flake/textshape/kotext/Documentation/Howto-undoRedoCommands.txt b/plugins/flake/textshape/kotext/Documentation/Howto-undoRedoCommands.txt --- a/plugins/flake/textshape/kotext/Documentation/Howto-undoRedoCommands.txt +++ b/plugins/flake/textshape/kotext/Documentation/Howto-undoRedoCommands.txt @@ -42,7 +42,7 @@ { public: - MyCommand(MyCommandParameters, KUndo2Command* parent = 0); + MyCommand(MyCommandParameters, KUndo2Command* parent = nullptr); virtual ~MyCommand(); virtual void undo(); diff --git a/plugins/flake/textshape/kotext/KoDocumentRdfBase.h b/plugins/flake/textshape/kotext/KoDocumentRdfBase.h --- a/plugins/flake/textshape/kotext/KoDocumentRdfBase.h +++ b/plugins/flake/textshape/kotext/KoDocumentRdfBase.h @@ -57,7 +57,7 @@ Q_OBJECT public: - explicit KoDocumentRdfBase(QObject *parent = 0); + explicit KoDocumentRdfBase(QObject *parent = nullptr); ~KoDocumentRdfBase() override; /** diff --git a/plugins/flake/textshape/kotext/KoInlineTextObjectManager.h b/plugins/flake/textshape/kotext/KoInlineTextObjectManager.h --- a/plugins/flake/textshape/kotext/KoInlineTextObjectManager.h +++ b/plugins/flake/textshape/kotext/KoInlineTextObjectManager.h @@ -50,7 +50,7 @@ }; /// Constructor - explicit KoInlineTextObjectManager(QObject *parent = 0); + explicit KoInlineTextObjectManager(QObject *parent = nullptr); ~KoInlineTextObjectManager() override; /** diff --git a/plugins/flake/textshape/kotext/KoTextEditor.h b/plugins/flake/textshape/kotext/KoTextEditor.h --- a/plugins/flake/textshape/kotext/KoTextEditor.h +++ b/plugins/flake/textshape/kotext/KoTextEditor.h @@ -228,7 +228,7 @@ * @param parent a parent command for the commands created by this methods. If present, the commands * will not be added to the document's undo stack automatically. */ - void insertInlineObject(KoInlineObject *inliner, KUndo2Command *parent = 0); + void insertInlineObject(KoInlineObject *inliner, KUndo2Command *parent = nullptr); /** * update the position of all inline objects from the given start point to the given end point. @@ -290,7 +290,7 @@ * change the current block's list properties */ void setListProperties(const KoListLevelProperties &llp, - ChangeListFlags flags = ChangeListFlags(ModifyExistingList | MergeWithAdjacentList), KUndo2Command *parent = 0); + ChangeListFlags flags = ChangeListFlags(ModifyExistingList | MergeWithAdjacentList), KUndo2Command *parent = nullptr); // ------------------------------------------------------------- // Wrapped QTextCursor methods @@ -337,7 +337,7 @@ * @param previous should be true if act like backspace * @param parent the parent command used for stacking */ - void deleteChar(bool previous, KUndo2Command *parent = 0); + void deleteChar(bool previous, KUndo2Command *parent = nullptr); bool hasComplexSelection() const; diff --git a/plugins/flake/textshape/kotext/KoTextEditor_undo.cpp b/plugins/flake/textshape/kotext/KoTextEditor_undo.cpp --- a/plugins/flake/textshape/kotext/KoTextEditor_undo.cpp +++ b/plugins/flake/textshape/kotext/KoTextEditor_undo.cpp @@ -83,7 +83,7 @@ class UndoTextCommand : public KUndo2Command { public: - UndoTextCommand(QTextDocument *document, KoTextEditor::Private *p, KUndo2Command *parent = 0) + UndoTextCommand(QTextDocument *document, KoTextEditor::Private *p, KUndo2Command *parent = nullptr) : KUndo2Command(kundo2_i18n("Text"), parent), m_document(document) , m_p(p) diff --git a/plugins/flake/textshape/kotext/KoTextRangeManager.h b/plugins/flake/textshape/kotext/KoTextRangeManager.h --- a/plugins/flake/textshape/kotext/KoTextRangeManager.h +++ b/plugins/flake/textshape/kotext/KoTextRangeManager.h @@ -39,7 +39,7 @@ Q_OBJECT public: /// Constructor - explicit KoTextRangeManager(QObject *parent = 0); + explicit KoTextRangeManager(QObject *parent = nullptr); ~KoTextRangeManager() override; QList textRanges() const; diff --git a/plugins/flake/textshape/kotext/KoTextTableTemplate.h b/plugins/flake/textshape/kotext/KoTextTableTemplate.h --- a/plugins/flake/textshape/kotext/KoTextTableTemplate.h +++ b/plugins/flake/textshape/kotext/KoTextTableTemplate.h @@ -77,7 +77,7 @@ void setOddRows(int styleId); /// Constructor - explicit KoTextTableTemplate(QObject *parent = 0); + explicit KoTextTableTemplate(QObject *parent = nullptr); /// Destructor ~KoTextTableTemplate() override; diff --git a/plugins/flake/textshape/kotext/changetracker/KoChangeTracker.h b/plugins/flake/textshape/kotext/changetracker/KoChangeTracker.h --- a/plugins/flake/textshape/kotext/changetracker/KoChangeTracker.h +++ b/plugins/flake/textshape/kotext/changetracker/KoChangeTracker.h @@ -52,7 +52,7 @@ UNKNOWN = 9999 }; - explicit KoChangeTracker(QObject *parent = 0); + explicit KoChangeTracker(QObject *parent = nullptr); ~KoChangeTracker() override; void setRecordChanges(bool enabled); diff --git a/plugins/flake/textshape/kotext/commands/AddAnnotationCommand.h b/plugins/flake/textshape/kotext/commands/AddAnnotationCommand.h --- a/plugins/flake/textshape/kotext/commands/AddAnnotationCommand.h +++ b/plugins/flake/textshape/kotext/commands/AddAnnotationCommand.h @@ -28,7 +28,7 @@ class AddAnnotationCommand : public AddTextRangeCommand { public: - explicit AddAnnotationCommand(KoAnnotation *range, KUndo2Command *parent = 0); + explicit AddAnnotationCommand(KoAnnotation *range, KUndo2Command *parent = nullptr); ~AddAnnotationCommand() override; void undo() override; diff --git a/plugins/flake/textshape/kotext/commands/AddTextRangeCommand.h b/plugins/flake/textshape/kotext/commands/AddTextRangeCommand.h --- a/plugins/flake/textshape/kotext/commands/AddTextRangeCommand.h +++ b/plugins/flake/textshape/kotext/commands/AddTextRangeCommand.h @@ -27,7 +27,7 @@ class AddTextRangeCommand : public KUndo2Command { public: - explicit AddTextRangeCommand(KoTextRange *range, KUndo2Command *parent = 0); + explicit AddTextRangeCommand(KoTextRange *range, KUndo2Command *parent = nullptr); ~AddTextRangeCommand() override; void undo() override; diff --git a/plugins/flake/textshape/kotext/commands/ChangeListCommand.h b/plugins/flake/textshape/kotext/commands/ChangeListCommand.h --- a/plugins/flake/textshape/kotext/commands/ChangeListCommand.h +++ b/plugins/flake/textshape/kotext/commands/ChangeListCommand.h @@ -49,7 +49,7 @@ ChangeListCommand(const QTextCursor &cursor, const KoListLevelProperties &levelProperties, KoTextEditor::ChangeListFlags flags, - KUndo2Command *parent = 0); + KUndo2Command *parent = nullptr); /** * Change the list command. @@ -61,7 +61,7 @@ */ ChangeListCommand(const QTextCursor &cursor, KoListStyle *style, int level, KoTextEditor::ChangeListFlags flags, - KUndo2Command *parent = 0); + KUndo2Command *parent = nullptr); ~ChangeListCommand() override; /// redo the command diff --git a/plugins/flake/textshape/kotext/commands/ChangeTrackedDeleteCommand.h b/plugins/flake/textshape/kotext/commands/ChangeTrackedDeleteCommand.h --- a/plugins/flake/textshape/kotext/commands/ChangeTrackedDeleteCommand.h +++ b/plugins/flake/textshape/kotext/commands/ChangeTrackedDeleteCommand.h @@ -42,7 +42,7 @@ ChangeTrackedDeleteCommand(DeleteMode mode, QTextDocument *document, KoShapeController *shapeController, - KUndo2Command* parent = 0); + KUndo2Command* parent = nullptr); virtual ~ChangeTrackedDeleteCommand(); virtual void undo(); diff --git a/plugins/flake/textshape/kotext/commands/ChangeTrackedDeleteCommand.cpp b/plugins/flake/textshape/kotext/commands/ChangeTrackedDeleteCommand.cpp --- a/plugins/flake/textshape/kotext/commands/ChangeTrackedDeleteCommand.cpp +++ b/plugins/flake/textshape/kotext/commands/ChangeTrackedDeleteCommand.cpp @@ -327,7 +327,7 @@ class UndoTextCommand : public KUndo2Command { public: - UndoTextCommand(QTextDocument *document, KUndo2Command *parent = 0) + UndoTextCommand(QTextDocument *document, KUndo2Command *parent = nullptr) : KUndo2Command(kundo2_i18n("Text"), parent), m_document(document) {} diff --git a/plugins/flake/textshape/kotext/commands/DeleteCommand.h b/plugins/flake/textshape/kotext/commands/DeleteCommand.h --- a/plugins/flake/textshape/kotext/commands/DeleteCommand.h +++ b/plugins/flake/textshape/kotext/commands/DeleteCommand.h @@ -46,7 +46,7 @@ NextChar }; - DeleteCommand(DeleteMode mode, QTextDocument *document, KoShapeController *shapeController, KUndo2Command* parent = 0); + DeleteCommand(DeleteMode mode, QTextDocument *document, KoShapeController *shapeController, KUndo2Command* parent = nullptr); ~DeleteCommand() override; void undo() override; diff --git a/plugins/flake/textshape/kotext/commands/DeleteCommand.cpp b/plugins/flake/textshape/kotext/commands/DeleteCommand.cpp --- a/plugins/flake/textshape/kotext/commands/DeleteCommand.cpp +++ b/plugins/flake/textshape/kotext/commands/DeleteCommand.cpp @@ -513,7 +513,7 @@ class UndoTextCommand : public KUndo2Command { public: - UndoTextCommand(QTextDocument *document, KUndo2Command *parent = 0) + UndoTextCommand(QTextDocument *document, KUndo2Command *parent = nullptr) : KUndo2Command(kundo2_i18n("Text"), parent), m_document(document) {} diff --git a/plugins/flake/textshape/kotext/commands/DeleteTableColumnCommand.h b/plugins/flake/textshape/kotext/commands/DeleteTableColumnCommand.h --- a/plugins/flake/textshape/kotext/commands/DeleteTableColumnCommand.h +++ b/plugins/flake/textshape/kotext/commands/DeleteTableColumnCommand.h @@ -32,7 +32,7 @@ { public: - DeleteTableColumnCommand(KoTextEditor *te, QTextTable *t, KUndo2Command *parent = 0); + DeleteTableColumnCommand(KoTextEditor *te, QTextTable *t, KUndo2Command *parent = nullptr); void undo() override; void redo() override; diff --git a/plugins/flake/textshape/kotext/commands/DeleteTableRowCommand.h b/plugins/flake/textshape/kotext/commands/DeleteTableRowCommand.h --- a/plugins/flake/textshape/kotext/commands/DeleteTableRowCommand.h +++ b/plugins/flake/textshape/kotext/commands/DeleteTableRowCommand.h @@ -32,7 +32,7 @@ { public: - DeleteTableRowCommand(KoTextEditor *te, QTextTable *t, KUndo2Command *parent = 0); + DeleteTableRowCommand(KoTextEditor *te, QTextTable *t, KUndo2Command *parent = nullptr); void undo() override; void redo() override; diff --git a/plugins/flake/textshape/kotext/commands/InsertDeleteChangesCommand.h b/plugins/flake/textshape/kotext/commands/InsertDeleteChangesCommand.h --- a/plugins/flake/textshape/kotext/commands/InsertDeleteChangesCommand.h +++ b/plugins/flake/textshape/kotext/commands/InsertDeleteChangesCommand.h @@ -28,7 +28,7 @@ class InsertDeleteChangesCommand : public KUndo2Command { public: - explicit InsertDeleteChangesCommand(QTextDocument *document, KUndo2Command *parent = 0); + explicit InsertDeleteChangesCommand(QTextDocument *document, KUndo2Command *parent = nullptr); void redo(); private: diff --git a/plugins/flake/textshape/kotext/commands/InsertTableColumnCommand.h b/plugins/flake/textshape/kotext/commands/InsertTableColumnCommand.h --- a/plugins/flake/textshape/kotext/commands/InsertTableColumnCommand.h +++ b/plugins/flake/textshape/kotext/commands/InsertTableColumnCommand.h @@ -31,7 +31,7 @@ { public: - InsertTableColumnCommand(KoTextEditor *te, QTextTable *t, bool right, KUndo2Command *parent = 0); + InsertTableColumnCommand(KoTextEditor *te, QTextTable *t, bool right, KUndo2Command *parent = nullptr); void undo() override; void redo() override; diff --git a/plugins/flake/textshape/kotext/commands/InsertTableRowCommand.h b/plugins/flake/textshape/kotext/commands/InsertTableRowCommand.h --- a/plugins/flake/textshape/kotext/commands/InsertTableRowCommand.h +++ b/plugins/flake/textshape/kotext/commands/InsertTableRowCommand.h @@ -31,7 +31,7 @@ { public: - InsertTableRowCommand(KoTextEditor *te, QTextTable *t, bool below, KUndo2Command *parent = 0); + InsertTableRowCommand(KoTextEditor *te, QTextTable *t, bool below, KUndo2Command *parent = nullptr); void undo() override; void redo() override; diff --git a/plugins/flake/textshape/kotext/commands/ListItemNumberingCommand.h b/plugins/flake/textshape/kotext/commands/ListItemNumberingCommand.h --- a/plugins/flake/textshape/kotext/commands/ListItemNumberingCommand.h +++ b/plugins/flake/textshape/kotext/commands/ListItemNumberingCommand.h @@ -36,7 +36,7 @@ * @param numbered indicates if the block is an numbered list item * @param parent the parent undo command for macro functionality */ - ListItemNumberingCommand(const QTextBlock &block, bool numbered, KUndo2Command *parent = 0); + ListItemNumberingCommand(const QTextBlock &block, bool numbered, KUndo2Command *parent = nullptr); ~ListItemNumberingCommand() override; diff --git a/plugins/flake/textshape/kotext/commands/ParagraphFormattingCommand.h b/plugins/flake/textshape/kotext/commands/ParagraphFormattingCommand.h --- a/plugins/flake/textshape/kotext/commands/ParagraphFormattingCommand.h +++ b/plugins/flake/textshape/kotext/commands/ParagraphFormattingCommand.h @@ -38,7 +38,7 @@ const QTextCharFormat &characterFormat, const QTextBlockFormat &blockFormat, const KoListLevelProperties &llp, - KUndo2Command *parent = 0); + KUndo2Command *parent = nullptr); ~ParagraphFormattingCommand() override; diff --git a/plugins/flake/textshape/kotext/commands/RemoveDeleteChangesCommand.h b/plugins/flake/textshape/kotext/commands/RemoveDeleteChangesCommand.h --- a/plugins/flake/textshape/kotext/commands/RemoveDeleteChangesCommand.h +++ b/plugins/flake/textshape/kotext/commands/RemoveDeleteChangesCommand.h @@ -28,7 +28,7 @@ class RemoveDeleteChangesCommand : public KUndo2Command { public: - explicit RemoveDeleteChangesCommand(QTextDocument *document, KUndo2Command *parent = 0); + explicit RemoveDeleteChangesCommand(QTextDocument *document, KUndo2Command *parent = nullptr); void redo(); private: diff --git a/plugins/flake/textshape/kotext/commands/ResizeTableCommand.h b/plugins/flake/textshape/kotext/commands/ResizeTableCommand.h --- a/plugins/flake/textshape/kotext/commands/ResizeTableCommand.h +++ b/plugins/flake/textshape/kotext/commands/ResizeTableCommand.h @@ -30,7 +30,7 @@ class ResizeTableCommand : public KUndo2Command { public: - ResizeTableCommand(QTextTable *t, bool horizontal, int band, qreal size, KUndo2Command *parent = 0); + ResizeTableCommand(QTextTable *t, bool horizontal, int band, qreal size, KUndo2Command *parent = nullptr); ~ResizeTableCommand() override; void undo() override; diff --git a/plugins/flake/textshape/kotext/styles/KoCharacterStyle.h b/plugins/flake/textshape/kotext/styles/KoCharacterStyle.h --- a/plugins/flake/textshape/kotext/styles/KoCharacterStyle.h +++ b/plugins/flake/textshape/kotext/styles/KoCharacterStyle.h @@ -189,9 +189,9 @@ * Constructor. Initializes with standard size/font properties. * @param parent the parent object for memory management purposes. */ - explicit KoCharacterStyle(QObject *parent = 0); + explicit KoCharacterStyle(QObject *parent = nullptr); /// Copy constructor - explicit KoCharacterStyle(const QTextCharFormat &format, QObject *parent = 0); + explicit KoCharacterStyle(const QTextCharFormat &format, QObject *parent = nullptr); /// Destructor ~KoCharacterStyle() override; @@ -431,7 +431,7 @@ void copyProperties(const KoCharacterStyle *style); void copyProperties(const QTextCharFormat &format); - KoCharacterStyle *clone(QObject *parent = 0) const; + KoCharacterStyle *clone(QObject *parent = nullptr) const; /// return the name of the style. QString name() const; diff --git a/plugins/flake/textshape/kotext/styles/KoListStyle.h b/plugins/flake/textshape/kotext/styles/KoListStyle.h --- a/plugins/flake/textshape/kotext/styles/KoListStyle.h +++ b/plugins/flake/textshape/kotext/styles/KoListStyle.h @@ -166,13 +166,13 @@ * Constructor * Create a new list style which uses numbered (KoListStyle::ListDecimal) listitems. */ - explicit KoListStyle(QObject *parent = 0); + explicit KoListStyle(QObject *parent = nullptr); /// Destructor ~KoListStyle() override; /// creates a clone of this style with the specified parent - KoListStyle *clone(QObject *parent = 0); + KoListStyle *clone(QObject *parent = nullptr); /// each style has a unique ID (non persistent) given out by the styleManager int styleId() const; diff --git a/plugins/flake/textshape/kotext/styles/KoParagraphStyle.h b/plugins/flake/textshape/kotext/styles/KoParagraphStyle.h --- a/plugins/flake/textshape/kotext/styles/KoParagraphStyle.h +++ b/plugins/flake/textshape/kotext/styles/KoParagraphStyle.h @@ -179,19 +179,19 @@ }; /// Constructor - KoParagraphStyle(QObject *parent = 0); + KoParagraphStyle(QObject *parent = nullptr); /// Creates a KoParagrahStyle with the given block format, the block character format and \a parent - KoParagraphStyle(const QTextBlockFormat &blockFormat, const QTextCharFormat &blockCharFormat, QObject *parent = 0); + KoParagraphStyle(const QTextBlockFormat &blockFormat, const QTextCharFormat &blockCharFormat, QObject *parent = nullptr); /// Destructor ~KoParagraphStyle() override; KoCharacterStyle::Type styleType() const override; /// Creates a KoParagraphStyle that represents the formatting of \a block. - static KoParagraphStyle *fromBlock(const QTextBlock &block, QObject *parent = 0); + static KoParagraphStyle *fromBlock(const QTextBlock &block, QObject *parent = nullptr); /// creates a clone of this style with the specified parent - KoParagraphStyle *clone(QObject *parent = 0) const; + KoParagraphStyle *clone(QObject *parent = nullptr) const; // ***** Linespacing /** diff --git a/plugins/flake/textshape/kotext/styles/KoSectionStyle.h b/plugins/flake/textshape/kotext/styles/KoSectionStyle.h --- a/plugins/flake/textshape/kotext/styles/KoSectionStyle.h +++ b/plugins/flake/textshape/kotext/styles/KoSectionStyle.h @@ -63,14 +63,14 @@ }; /// Constructor - explicit KoSectionStyle(QObject *parent = 0); + explicit KoSectionStyle(QObject *parent = nullptr); /// Creates a KoSectionStyle with the given frame format and \a parent - explicit KoSectionStyle(const QTextFrameFormat &frameFormat, QObject *parent = 0); + explicit KoSectionStyle(const QTextFrameFormat &frameFormat, QObject *parent = nullptr); /// Destructor ~KoSectionStyle() override; /// creates a clone of this style with the specified parent - KoSectionStyle *clone(QObject *parent = 0) const; + KoSectionStyle *clone(QObject *parent = nullptr) const; /// duplicated property from QTextBlockFormat diff --git a/plugins/flake/textshape/kotext/styles/KoStyleManager.h b/plugins/flake/textshape/kotext/styles/KoStyleManager.h --- a/plugins/flake/textshape/kotext/styles/KoStyleManager.h +++ b/plugins/flake/textshape/kotext/styles/KoStyleManager.h @@ -57,7 +57,7 @@ * Create a new style manager. * @param parent pass a parent to use qobject memory management */ - explicit KoStyleManager(QObject *parent = 0); + explicit KoStyleManager(QObject *parent = nullptr); /** * Destructor. diff --git a/plugins/flake/textshape/kotext/styles/KoTableCellStyle.h b/plugins/flake/textshape/kotext/styles/KoTableCellStyle.h --- a/plugins/flake/textshape/kotext/styles/KoTableCellStyle.h +++ b/plugins/flake/textshape/kotext/styles/KoTableCellStyle.h @@ -104,25 +104,25 @@ }; /// Constructor - explicit KoTableCellStyle(QObject *parent = 0); + explicit KoTableCellStyle(QObject *parent = nullptr); /// Creates a KoTableCellStyle with the given table cell format, and \a parent - explicit KoTableCellStyle(const QTextTableCellFormat &tableCellFormat, QObject *parent = 0); + explicit KoTableCellStyle(const QTextTableCellFormat &tableCellFormat, QObject *parent = nullptr); KoTableCellStyle(const KoTableCellStyle &other); KoTableCellStyle& operator=(const KoTableCellStyle &other); /// Destructor ~KoTableCellStyle() override; /// Creates a KoTableCellStyle that represents the formatting of \a block. - static KoTableCellStyle *fromTableCell(const QTextTableCell &table, QObject *parent = 0); + static KoTableCellStyle *fromTableCell(const QTextTableCell &table, QObject *parent = nullptr); /// Creates a clean QTextCharFormat, but keeps all the table cell properties. /// This is needed since block.charformat doubles as the QTextTableCellFormat /// This method works even if \a charFormat is not a QTextTableCellFormat static QTextCharFormat cleanCharFormat(const QTextCharFormat &charFormat); /// creates a clone of this style with the specified parent - KoTableCellStyle *clone(QObject *parent = 0); + KoTableCellStyle *clone(QObject *parent = nullptr); /** * Adjust the bounding rectangle \p boundingRect according to the paddings and margins diff --git a/plugins/flake/textshape/kotext/styles/KoTableStyle.h b/plugins/flake/textshape/kotext/styles/KoTableStyle.h --- a/plugins/flake/textshape/kotext/styles/KoTableStyle.h +++ b/plugins/flake/textshape/kotext/styles/KoTableStyle.h @@ -78,17 +78,17 @@ }; /// Constructor - explicit KoTableStyle(QObject *parent = 0); + explicit KoTableStyle(QObject *parent = nullptr); /// Creates a KoTableStyle with the given table format, and \a parent - explicit KoTableStyle(const QTextTableFormat &blockFormat, QObject *parent = 0); + explicit KoTableStyle(const QTextTableFormat &blockFormat, QObject *parent = nullptr); /// Destructor ~KoTableStyle() override; /// Creates a KoTableStyle that represents the formatting of \a table. - static KoTableStyle *fromTable(const QTextTable &table, QObject *parent = 0); + static KoTableStyle *fromTable(const QTextTable &table, QObject *parent = nullptr); /// creates a clone of this style with the specified parent - KoTableStyle *clone(QObject *parent = 0); + KoTableStyle *clone(QObject *parent = nullptr); /// See similar named method on QTextFrameFormat void setWidth(const QTextLength &width); diff --git a/plugins/flake/textshape/textlayout/KoTextLayoutCellHelper.h b/plugins/flake/textshape/textlayout/KoTextLayoutCellHelper.h --- a/plugins/flake/textshape/textlayout/KoTextLayoutCellHelper.h +++ b/plugins/flake/textshape/textlayout/KoTextLayoutCellHelper.h @@ -38,7 +38,7 @@ { Q_OBJECT public: - explicit KoTextLayoutCellHelper(const KoTableCellStyle &cellStyle, QObject *parent = 0); + explicit KoTextLayoutCellHelper(const KoTableCellStyle &cellStyle, QObject *parent = nullptr); /// draws a horizontal wave line void drawHorizontalWave(KoBorder::BorderStyle style, QPainter &painter, qreal x, qreal w, qreal t) const; diff --git a/plugins/generators/pattern/kis_wdg_pattern.h b/plugins/generators/pattern/kis_wdg_pattern.h --- a/plugins/generators/pattern/kis_wdg_pattern.h +++ b/plugins/generators/pattern/kis_wdg_pattern.h @@ -29,7 +29,7 @@ { Q_OBJECT public: - KisWdgPattern(QWidget* parent = 0); + KisWdgPattern(QWidget* parent = nullptr); ~KisWdgPattern() override; public: inline const Ui_WdgPatternOptions* widget() const { diff --git a/plugins/generators/simplexnoise/kis_wdg_simplex_noise.h b/plugins/generators/simplexnoise/kis_wdg_simplex_noise.h --- a/plugins/generators/simplexnoise/kis_wdg_simplex_noise.h +++ b/plugins/generators/simplexnoise/kis_wdg_simplex_noise.h @@ -32,7 +32,7 @@ { Q_OBJECT public: - KisWdgSimplexNoise(KisFilter* nfilter, QWidget* parent = 0); + KisWdgSimplexNoise(KisFilter* nfilter, QWidget* parent = nullptr); ~KisWdgSimplexNoise() override; public: inline const Ui_WdgSimplexNoiseOptions* widget() const { diff --git a/plugins/impex/tiff/kis_dlg_options_tiff.h b/plugins/impex/tiff/kis_dlg_options_tiff.h --- a/plugins/impex/tiff/kis_dlg_options_tiff.h +++ b/plugins/impex/tiff/kis_dlg_options_tiff.h @@ -33,7 +33,7 @@ { Q_OBJECT public: - KisTIFFOptionsWidget(QWidget *parent = 0); + KisTIFFOptionsWidget(QWidget *parent = nullptr); void setConfiguration(const KisPropertiesConfigurationSP cfg) override; KisPropertiesConfigurationSP configuration() const override; diff --git a/plugins/paintops/colorsmudge/kis_colorsmudgeop_settings_widget.h b/plugins/paintops/colorsmudge/kis_colorsmudgeop_settings_widget.h --- a/plugins/paintops/colorsmudge/kis_colorsmudgeop_settings_widget.h +++ b/plugins/paintops/colorsmudge/kis_colorsmudgeop_settings_widget.h @@ -28,7 +28,7 @@ Q_OBJECT public: - KisColorSmudgeOpSettingsWidget(QWidget* parent = 0); + KisColorSmudgeOpSettingsWidget(QWidget* parent = nullptr); ~KisColorSmudgeOpSettingsWidget() override; KisPropertiesConfigurationSP configuration() const override; diff --git a/plugins/paintops/curvebrush/kis_curve_line_option.cpp b/plugins/paintops/curvebrush/kis_curve_line_option.cpp --- a/plugins/paintops/curvebrush/kis_curve_line_option.cpp +++ b/plugins/paintops/curvebrush/kis_curve_line_option.cpp @@ -23,7 +23,7 @@ { public: - KisCurveOpOptionsWidget(QWidget *parent = 0) : QWidget(parent) { + KisCurveOpOptionsWidget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); historySizeSlider->setRange(2, 300); historySizeSlider->setValue(30); diff --git a/plugins/paintops/curvebrush/kis_curve_paintop_settings_widget.h b/plugins/paintops/curvebrush/kis_curve_paintop_settings_widget.h --- a/plugins/paintops/curvebrush/kis_curve_paintop_settings_widget.h +++ b/plugins/paintops/curvebrush/kis_curve_paintop_settings_widget.h @@ -29,7 +29,7 @@ Q_OBJECT public: - KisCurvePaintOpSettingsWidget(QWidget* parent = 0); + KisCurvePaintOpSettingsWidget(QWidget* parent = nullptr); ~KisCurvePaintOpSettingsWidget() override; KisPropertiesConfigurationSP configuration() const override; diff --git a/plugins/paintops/defaultpaintops/brush/kis_brushop_settings_widget.h b/plugins/paintops/defaultpaintops/brush/kis_brushop_settings_widget.h --- a/plugins/paintops/defaultpaintops/brush/kis_brushop_settings_widget.h +++ b/plugins/paintops/defaultpaintops/brush/kis_brushop_settings_widget.h @@ -33,7 +33,7 @@ public: - KisBrushOpSettingsWidget(QWidget* parent = 0); + KisBrushOpSettingsWidget(QWidget* parent = nullptr); ~KisBrushOpSettingsWidget() override; diff --git a/plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_option.cpp b/plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_option.cpp --- a/plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_option.cpp +++ b/plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_option.cpp @@ -27,7 +27,7 @@ class KisDuplicateOpOptionsWidget: public QWidget, public Ui::DuplicateOpOptionsWidget { public: - KisDuplicateOpOptionsWidget(QWidget *parent = 0) + KisDuplicateOpOptionsWidget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); } diff --git a/plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_settings_widget.h b/plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_settings_widget.h --- a/plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_settings_widget.h +++ b/plugins/paintops/defaultpaintops/duplicate/kis_duplicateop_settings_widget.h @@ -36,7 +36,7 @@ public: - KisDuplicateOpSettingsWidget(QWidget* parent = 0); + KisDuplicateOpSettingsWidget(QWidget* parent = nullptr); ~KisDuplicateOpSettingsWidget() override; diff --git a/plugins/paintops/deform/kis_brush_size_option.cpp b/plugins/paintops/deform/kis_brush_size_option.cpp --- a/plugins/paintops/deform/kis_brush_size_option.cpp +++ b/plugins/paintops/deform/kis_brush_size_option.cpp @@ -26,7 +26,7 @@ class KisBrushSizeOptionsWidget: public QWidget, public Ui::WdgBrushSizeOptions { public: - KisBrushSizeOptionsWidget(QWidget *parent = 0) + KisBrushSizeOptionsWidget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); } diff --git a/plugins/paintops/deform/kis_deform_option.cpp b/plugins/paintops/deform/kis_deform_option.cpp --- a/plugins/paintops/deform/kis_deform_option.cpp +++ b/plugins/paintops/deform/kis_deform_option.cpp @@ -24,7 +24,7 @@ class KisDeformOptionsWidget: public QWidget, public Ui::WdgDeformOptions { public: - KisDeformOptionsWidget(QWidget *parent = 0) + KisDeformOptionsWidget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); diff --git a/plugins/paintops/deform/kis_deform_paintop_settings_widget.h b/plugins/paintops/deform/kis_deform_paintop_settings_widget.h --- a/plugins/paintops/deform/kis_deform_paintop_settings_widget.h +++ b/plugins/paintops/deform/kis_deform_paintop_settings_widget.h @@ -28,7 +28,7 @@ { Q_OBJECT public: - KisDeformPaintOpSettingsWidget(QWidget* parent = 0); + KisDeformPaintOpSettingsWidget(QWidget* parent = nullptr); ~KisDeformPaintOpSettingsWidget() override; KisPropertiesConfigurationSP configuration() const override; diff --git a/plugins/paintops/experiment/kis_experiment_paintop_settings_widget.h b/plugins/paintops/experiment/kis_experiment_paintop_settings_widget.h --- a/plugins/paintops/experiment/kis_experiment_paintop_settings_widget.h +++ b/plugins/paintops/experiment/kis_experiment_paintop_settings_widget.h @@ -26,7 +26,7 @@ { Q_OBJECT public: - KisExperimentPaintOpSettingsWidget(QWidget* parent = 0); + KisExperimentPaintOpSettingsWidget(QWidget* parent = nullptr); ~KisExperimentPaintOpSettingsWidget() override; KisPropertiesConfigurationSP configuration() const override; diff --git a/plugins/paintops/experiment/kis_experimentop_option.cpp b/plugins/paintops/experiment/kis_experimentop_option.cpp --- a/plugins/paintops/experiment/kis_experimentop_option.cpp +++ b/plugins/paintops/experiment/kis_experimentop_option.cpp @@ -25,7 +25,7 @@ class KisExperimentOpOptionsWidget: public QWidget, public Ui::WdgExperimentOptions { public: - KisExperimentOpOptionsWidget(QWidget *parent = 0) + KisExperimentOpOptionsWidget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); diff --git a/plugins/paintops/filterop/kis_filterop_settings_widget.h b/plugins/paintops/filterop/kis_filterop_settings_widget.h --- a/plugins/paintops/filterop/kis_filterop_settings_widget.h +++ b/plugins/paintops/filterop/kis_filterop_settings_widget.h @@ -35,7 +35,7 @@ public: - KisFilterOpSettingsWidget(QWidget* parent = 0); + KisFilterOpSettingsWidget(QWidget* parent = nullptr); ~KisFilterOpSettingsWidget() override; diff --git a/plugins/paintops/gridbrush/kis_grid_paintop_settings_widget.h b/plugins/paintops/gridbrush/kis_grid_paintop_settings_widget.h --- a/plugins/paintops/gridbrush/kis_grid_paintop_settings_widget.h +++ b/plugins/paintops/gridbrush/kis_grid_paintop_settings_widget.h @@ -30,7 +30,7 @@ Q_OBJECT public: - KisGridPaintOpSettingsWidget(QWidget* parent = 0); + KisGridPaintOpSettingsWidget(QWidget* parent = nullptr); ~KisGridPaintOpSettingsWidget() override; KisPropertiesConfigurationSP configuration() const override; diff --git a/plugins/paintops/gridbrush/kis_grid_shape_option.cpp b/plugins/paintops/gridbrush/kis_grid_shape_option.cpp --- a/plugins/paintops/gridbrush/kis_grid_shape_option.cpp +++ b/plugins/paintops/gridbrush/kis_grid_shape_option.cpp @@ -23,7 +23,7 @@ class KisShapeOptionsWidget: public QWidget, public Ui::WdgGridBrushShapeOptions { public: - KisShapeOptionsWidget(QWidget *parent = 0) + KisShapeOptionsWidget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); } diff --git a/plugins/paintops/gridbrush/kis_gridop_option.cpp b/plugins/paintops/gridbrush/kis_gridop_option.cpp --- a/plugins/paintops/gridbrush/kis_gridop_option.cpp +++ b/plugins/paintops/gridbrush/kis_gridop_option.cpp @@ -23,7 +23,7 @@ class KisGridOpOptionsWidget: public QWidget, public Ui::WdgGridOptions { public: - KisGridOpOptionsWidget(QWidget *parent = 0) + KisGridOpOptionsWidget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); } diff --git a/plugins/paintops/hairy/kis_hairy_bristle_option.cpp b/plugins/paintops/hairy/kis_hairy_bristle_option.cpp --- a/plugins/paintops/hairy/kis_hairy_bristle_option.cpp +++ b/plugins/paintops/hairy/kis_hairy_bristle_option.cpp @@ -25,7 +25,7 @@ class KisBristleOptionsWidget: public QWidget, public Ui::WdgBristleOptions { public: - KisBristleOptionsWidget(QWidget *parent = 0) + KisBristleOptionsWidget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); diff --git a/plugins/paintops/hairy/kis_hairy_ink_option.cpp b/plugins/paintops/hairy/kis_hairy_ink_option.cpp --- a/plugins/paintops/hairy/kis_hairy_ink_option.cpp +++ b/plugins/paintops/hairy/kis_hairy_ink_option.cpp @@ -24,7 +24,7 @@ class KisInkOptionsWidget: public QWidget, public Ui::WdgInkOptions { public: - KisInkOptionsWidget(QWidget *parent = 0) + KisInkOptionsWidget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); } diff --git a/plugins/paintops/hairy/kis_hairy_paintop_settings_widget.h b/plugins/paintops/hairy/kis_hairy_paintop_settings_widget.h --- a/plugins/paintops/hairy/kis_hairy_paintop_settings_widget.h +++ b/plugins/paintops/hairy/kis_hairy_paintop_settings_widget.h @@ -28,7 +28,7 @@ Q_OBJECT public: - KisHairyPaintOpSettingsWidget(QWidget* parent = 0); + KisHairyPaintOpSettingsWidget(QWidget* parent = nullptr); ~KisHairyPaintOpSettingsWidget() override; KisPropertiesConfigurationSP configuration() const override; diff --git a/plugins/paintops/hatching/kis_hatching_options.cpp b/plugins/paintops/hatching/kis_hatching_options.cpp --- a/plugins/paintops/hatching/kis_hatching_options.cpp +++ b/plugins/paintops/hatching/kis_hatching_options.cpp @@ -25,7 +25,7 @@ class KisHatchingOptionsWidget: public QWidget, public Ui::WdgHatchingOptions { public: - KisHatchingOptionsWidget(QWidget *parent = 0) + KisHatchingOptionsWidget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); diff --git a/plugins/paintops/hatching/kis_hatching_paintop_settings_widget.h b/plugins/paintops/hatching/kis_hatching_paintop_settings_widget.h --- a/plugins/paintops/hatching/kis_hatching_paintop_settings_widget.h +++ b/plugins/paintops/hatching/kis_hatching_paintop_settings_widget.h @@ -32,7 +32,7 @@ Q_OBJECT public: - KisHatchingPaintOpSettingsWidget(QWidget* parent = 0); + KisHatchingPaintOpSettingsWidget(QWidget* parent = nullptr); ~KisHatchingPaintOpSettingsWidget() override; KisPropertiesConfigurationSP configuration() const override; diff --git a/plugins/paintops/hatching/kis_hatching_preferences.cpp b/plugins/paintops/hatching/kis_hatching_preferences.cpp --- a/plugins/paintops/hatching/kis_hatching_preferences.cpp +++ b/plugins/paintops/hatching/kis_hatching_preferences.cpp @@ -24,7 +24,7 @@ class KisHatchingPreferencesWidget: public QWidget, public Ui::WdgHatchingPreferences { public: - KisHatchingPreferencesWidget(QWidget *parent = 0) + KisHatchingPreferencesWidget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); } diff --git a/plugins/paintops/libpaintop/kis_brush_based_paintop_options_widget.h b/plugins/paintops/libpaintop/kis_brush_based_paintop_options_widget.h --- a/plugins/paintops/libpaintop/kis_brush_based_paintop_options_widget.h +++ b/plugins/paintops/libpaintop/kis_brush_based_paintop_options_widget.h @@ -29,7 +29,7 @@ class PAINTOP_EXPORT KisBrushBasedPaintopOptionWidget : public KisPaintOpSettingsWidget { public: - KisBrushBasedPaintopOptionWidget(QWidget* parent = 0); + KisBrushBasedPaintopOptionWidget(QWidget* parent = nullptr); ~KisBrushBasedPaintopOptionWidget() override; void setPrecisionEnabled(bool value); diff --git a/plugins/paintops/libpaintop/kis_brush_chooser.cpp b/plugins/paintops/libpaintop/kis_brush_chooser.cpp --- a/plugins/paintops/libpaintop/kis_brush_chooser.cpp +++ b/plugins/paintops/libpaintop/kis_brush_chooser.cpp @@ -62,7 +62,7 @@ class KisBrushDelegate : public QAbstractItemDelegate { public: - KisBrushDelegate(QObject * parent = 0) : QAbstractItemDelegate(parent) {} + KisBrushDelegate(QObject * parent = nullptr) : QAbstractItemDelegate(parent) {} ~KisBrushDelegate() override {} /// reimplemented void paint(QPainter *, const QStyleOptionViewItem &, const QModelIndex &) const override; diff --git a/plugins/paintops/libpaintop/kis_brush_selection_widget.h b/plugins/paintops/libpaintop/kis_brush_selection_widget.h --- a/plugins/paintops/libpaintop/kis_brush_selection_widget.h +++ b/plugins/paintops/libpaintop/kis_brush_selection_widget.h @@ -45,7 +45,7 @@ Q_OBJECT public: - KisBrushSelectionWidget(QWidget * parent = 0); + KisBrushSelectionWidget(QWidget * parent = nullptr); ~KisBrushSelectionWidget() override; diff --git a/plugins/paintops/libpaintop/kis_color_option.cpp b/plugins/paintops/libpaintop/kis_color_option.cpp --- a/plugins/paintops/libpaintop/kis_color_option.cpp +++ b/plugins/paintops/libpaintop/kis_color_option.cpp @@ -24,7 +24,7 @@ class KisColorOptionsWidget: public QWidget, public Ui::WdgColorOptions { public: - KisColorOptionsWidget(QWidget *parent = 0) + KisColorOptionsWidget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); diff --git a/plugins/paintops/libpaintop/kis_filter_option.cpp b/plugins/paintops/libpaintop/kis_filter_option.cpp --- a/plugins/paintops/libpaintop/kis_filter_option.cpp +++ b/plugins/paintops/libpaintop/kis_filter_option.cpp @@ -41,7 +41,7 @@ class KisFilterOptionWidget : public QWidget, public Ui::FilterOpOptions { public: - KisFilterOptionWidget(QWidget* parent = 0) + KisFilterOptionWidget(QWidget* parent = nullptr) : QWidget(parent) { setupUi(this); } diff --git a/plugins/paintops/libpaintop/kis_multi_sensors_model_p.h b/plugins/paintops/libpaintop/kis_multi_sensors_model_p.h --- a/plugins/paintops/libpaintop/kis_multi_sensors_model_p.h +++ b/plugins/paintops/libpaintop/kis_multi_sensors_model_p.h @@ -31,7 +31,7 @@ Q_OBJECT public: - explicit KisMultiSensorsModel(QObject* parent = 0); + explicit KisMultiSensorsModel(QObject* parent = nullptr); ~KisMultiSensorsModel() override; diff --git a/plugins/paintops/libpaintop/kis_paint_action_type_option.cpp b/plugins/paintops/libpaintop/kis_paint_action_type_option.cpp --- a/plugins/paintops/libpaintop/kis_paint_action_type_option.cpp +++ b/plugins/paintops/libpaintop/kis_paint_action_type_option.cpp @@ -27,7 +27,7 @@ class KisPaintActionWidget: public QWidget, public Ui::WdgIncremental { public: - KisPaintActionWidget(QWidget *parent = 0) + KisPaintActionWidget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); } diff --git a/plugins/paintops/libpaintop/kis_texture_chooser.h b/plugins/paintops/libpaintop/kis_texture_chooser.h --- a/plugins/paintops/libpaintop/kis_texture_chooser.h +++ b/plugins/paintops/libpaintop/kis_texture_chooser.h @@ -26,7 +26,7 @@ Q_OBJECT public: - KisTextureChooser(QWidget *parent = 0); + KisTextureChooser(QWidget *parent = nullptr); ~KisTextureChooser(); }; diff --git a/plugins/paintops/particle/kis_particle_paintop_settings_widget.h b/plugins/paintops/particle/kis_particle_paintop_settings_widget.h --- a/plugins/paintops/particle/kis_particle_paintop_settings_widget.h +++ b/plugins/paintops/particle/kis_particle_paintop_settings_widget.h @@ -32,7 +32,7 @@ Q_OBJECT public: - KisParticlePaintOpSettingsWidget(QWidget* parent = 0); + KisParticlePaintOpSettingsWidget(QWidget* parent = nullptr); ~KisParticlePaintOpSettingsWidget() override; KisPropertiesConfigurationSP configuration() const override; diff --git a/plugins/paintops/particle/kis_particleop_option.cpp b/plugins/paintops/particle/kis_particleop_option.cpp --- a/plugins/paintops/particle/kis_particleop_option.cpp +++ b/plugins/paintops/particle/kis_particleop_option.cpp @@ -28,7 +28,7 @@ class KisParticleOpOptionsWidget: public QWidget, public Ui::WdgParticleOptions { public: - KisParticleOpOptionsWidget(QWidget *parent = 0) + KisParticleOpOptionsWidget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); } diff --git a/plugins/paintops/roundmarker/kis_roundmarker_option.cpp b/plugins/paintops/roundmarker/kis_roundmarker_option.cpp --- a/plugins/paintops/roundmarker/kis_roundmarker_option.cpp +++ b/plugins/paintops/roundmarker/kis_roundmarker_option.cpp @@ -29,7 +29,7 @@ class KisRoundMarkerOptionWidget: public QWidget, public Ui::WdgKisRoundMarkerOption { public: - KisRoundMarkerOptionWidget(QWidget *parent = 0) : QWidget(parent) { + KisRoundMarkerOptionWidget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); const int maxBrushSize = KSharedConfig::openConfig()->group("").readEntry("maximumBrushSize", 1000); diff --git a/plugins/paintops/roundmarker/kis_roundmarkerop_settings_widget.h b/plugins/paintops/roundmarker/kis_roundmarkerop_settings_widget.h --- a/plugins/paintops/roundmarker/kis_roundmarkerop_settings_widget.h +++ b/plugins/paintops/roundmarker/kis_roundmarkerop_settings_widget.h @@ -28,7 +28,7 @@ Q_OBJECT public: - KisRoundMarkerOpSettingsWidget(QWidget* parent = 0); + KisRoundMarkerOpSettingsWidget(QWidget* parent = nullptr); ~KisRoundMarkerOpSettingsWidget() override; KisPropertiesConfigurationSP configuration() const override; diff --git a/plugins/paintops/sketch/kis_sketch_paintop_settings_widget.h b/plugins/paintops/sketch/kis_sketch_paintop_settings_widget.h --- a/plugins/paintops/sketch/kis_sketch_paintop_settings_widget.h +++ b/plugins/paintops/sketch/kis_sketch_paintop_settings_widget.h @@ -32,7 +32,7 @@ Q_OBJECT public: - KisSketchPaintOpSettingsWidget(QWidget* parent = 0); + KisSketchPaintOpSettingsWidget(QWidget* parent = nullptr); ~KisSketchPaintOpSettingsWidget() override; KisPropertiesConfigurationSP configuration() const override; diff --git a/plugins/paintops/sketch/kis_sketchop_option.cpp b/plugins/paintops/sketch/kis_sketchop_option.cpp --- a/plugins/paintops/sketch/kis_sketchop_option.cpp +++ b/plugins/paintops/sketch/kis_sketchop_option.cpp @@ -24,7 +24,7 @@ class KisSketchOpOptionsWidget: public QWidget, public Ui::WdgSketchOptions { public: - KisSketchOpOptionsWidget(QWidget *parent = 0) + KisSketchOpOptionsWidget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); } diff --git a/plugins/paintops/spray/kis_spray_paintop_settings_widget.h b/plugins/paintops/spray/kis_spray_paintop_settings_widget.h --- a/plugins/paintops/spray/kis_spray_paintop_settings_widget.h +++ b/plugins/paintops/spray/kis_spray_paintop_settings_widget.h @@ -28,7 +28,7 @@ Q_OBJECT public: - KisSprayPaintOpSettingsWidget(QWidget* parent = 0); + KisSprayPaintOpSettingsWidget(QWidget* parent = nullptr); ~KisSprayPaintOpSettingsWidget() override; KisPropertiesConfigurationSP configuration() const override; diff --git a/plugins/paintops/spray/kis_spray_shape_dynamics.cpp b/plugins/paintops/spray/kis_spray_shape_dynamics.cpp --- a/plugins/paintops/spray/kis_spray_shape_dynamics.cpp +++ b/plugins/paintops/spray/kis_spray_shape_dynamics.cpp @@ -23,7 +23,7 @@ class KisShapeDynamicsOptionsWidget: public QWidget, public Ui::WdgShapeDynamicsOptions { public: - KisShapeDynamicsOptionsWidget(QWidget *parent = 0) + KisShapeDynamicsOptionsWidget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); } diff --git a/plugins/paintops/spray/kis_spray_shape_option.cpp b/plugins/paintops/spray/kis_spray_shape_option.cpp --- a/plugins/paintops/spray/kis_spray_shape_option.cpp +++ b/plugins/paintops/spray/kis_spray_shape_option.cpp @@ -30,7 +30,7 @@ class KisShapeOptionsWidget: public QWidget, public Ui::WdgSprayShapeOptions { public: - KisShapeOptionsWidget(QWidget *parent = 0) + KisShapeOptionsWidget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); imageUrl->setMimeTypeFilters(KisImportExportManager::supportedMimeTypes(KisImportExportManager::Import)); diff --git a/plugins/paintops/spray/kis_sprayop_option.cpp b/plugins/paintops/spray/kis_sprayop_option.cpp --- a/plugins/paintops/spray/kis_sprayop_option.cpp +++ b/plugins/paintops/spray/kis_sprayop_option.cpp @@ -23,7 +23,7 @@ class KisSprayOpOptionsWidget: public QWidget, public Ui::WdgSprayOptions { public: - KisSprayOpOptionsWidget(QWidget *parent = 0) + KisSprayOpOptionsWidget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); } diff --git a/plugins/paintops/tangentnormal/kis_normal_preview_widget.h b/plugins/paintops/tangentnormal/kis_normal_preview_widget.h --- a/plugins/paintops/tangentnormal/kis_normal_preview_widget.h +++ b/plugins/paintops/tangentnormal/kis_normal_preview_widget.h @@ -33,7 +33,7 @@ Q_OBJECT public: - KisNormalPreviewWidget(QWidget* parent = 0); + KisNormalPreviewWidget(QWidget* parent = nullptr); ~KisNormalPreviewWidget() override; public Q_SLOTS: diff --git a/plugins/paintops/tangentnormal/kis_tangent_normal_paintop_settings_widget.h b/plugins/paintops/tangentnormal/kis_tangent_normal_paintop_settings_widget.h --- a/plugins/paintops/tangentnormal/kis_tangent_normal_paintop_settings_widget.h +++ b/plugins/paintops/tangentnormal/kis_tangent_normal_paintop_settings_widget.h @@ -27,7 +27,7 @@ Q_OBJECT public: - KisTangentNormalPaintOpSettingsWidget(QWidget* parent = 0); + KisTangentNormalPaintOpSettingsWidget(QWidget* parent = nullptr); ~KisTangentNormalPaintOpSettingsWidget() override; KisPropertiesConfigurationSP configuration() const override; diff --git a/plugins/paintops/tangentnormal/kis_tangent_tilt_option.cpp b/plugins/paintops/tangentnormal/kis_tangent_tilt_option.cpp --- a/plugins/paintops/tangentnormal/kis_tangent_tilt_option.cpp +++ b/plugins/paintops/tangentnormal/kis_tangent_tilt_option.cpp @@ -31,7 +31,7 @@ class KisTangentTiltOptionWidget: public QWidget, public Ui::WdgTangentTiltOptions { public: - KisTangentTiltOptionWidget(QWidget *parent = 0) + KisTangentTiltOptionWidget(QWidget *parent = nullptr) : QWidget(parent) { setupUi(this); } diff --git a/plugins/tools/defaulttool/connectionTool/AddConnectionPointCommand.h b/plugins/tools/defaulttool/connectionTool/AddConnectionPointCommand.h --- a/plugins/tools/defaulttool/connectionTool/AddConnectionPointCommand.h +++ b/plugins/tools/defaulttool/connectionTool/AddConnectionPointCommand.h @@ -30,7 +30,7 @@ { public: /// Creates new command to add connection point to shape - AddConnectionPointCommand(KoShape *shape, const QPointF &connectionPoint, KUndo2Command *parent = 0); + AddConnectionPointCommand(KoShape *shape, const QPointF &connectionPoint, KUndo2Command *parent = nullptr); ~AddConnectionPointCommand() override; /// reimplemented from KUndo2Command void redo() override; diff --git a/plugins/tools/defaulttool/connectionTool/ChangeConnectionPointCommand.h b/plugins/tools/defaulttool/connectionTool/ChangeConnectionPointCommand.h --- a/plugins/tools/defaulttool/connectionTool/ChangeConnectionPointCommand.h +++ b/plugins/tools/defaulttool/connectionTool/ChangeConnectionPointCommand.h @@ -31,7 +31,7 @@ { public: /// Creates new command to change connection point of shape - ChangeConnectionPointCommand(KoShape *shape, int connectionPointId, const KoConnectionPoint &oldPoint, const KoConnectionPoint &newPoint, KUndo2Command *parent = 0); + ChangeConnectionPointCommand(KoShape *shape, int connectionPointId, const KoConnectionPoint &oldPoint, const KoConnectionPoint &newPoint, KUndo2Command *parent = nullptr); ~ChangeConnectionPointCommand() override; /// reimplemented from KUndo2Command void redo() override; diff --git a/plugins/tools/defaulttool/connectionTool/ConnectionPointWidget.h b/plugins/tools/defaulttool/connectionTool/ConnectionPointWidget.h --- a/plugins/tools/defaulttool/connectionTool/ConnectionPointWidget.h +++ b/plugins/tools/defaulttool/connectionTool/ConnectionPointWidget.h @@ -30,7 +30,7 @@ { Q_OBJECT public: - explicit ConnectionPointWidget(ConnectionTool *tool, QWidget *parent = 0); + explicit ConnectionPointWidget(ConnectionTool *tool, QWidget *parent = nullptr); private Q_SLOTS: void toggleEditModeCheckbox(bool checked); diff --git a/plugins/tools/defaulttool/connectionTool/RemoveConnectionPointCommand.h b/plugins/tools/defaulttool/connectionTool/RemoveConnectionPointCommand.h --- a/plugins/tools/defaulttool/connectionTool/RemoveConnectionPointCommand.h +++ b/plugins/tools/defaulttool/connectionTool/RemoveConnectionPointCommand.h @@ -31,7 +31,7 @@ { public: /// Creates new command to remove connection point from shape - RemoveConnectionPointCommand(KoShape *shape, int connectionPointId, KUndo2Command *parent = 0); + RemoveConnectionPointCommand(KoShape *shape, int connectionPointId, KUndo2Command *parent = nullptr); ~RemoveConnectionPointCommand() override; /// reimplemented from KUndo2Command void redo() override; diff --git a/plugins/tools/defaulttool/defaulttool/DefaultToolGeometryWidget.h b/plugins/tools/defaulttool/defaulttool/DefaultToolGeometryWidget.h --- a/plugins/tools/defaulttool/defaulttool/DefaultToolGeometryWidget.h +++ b/plugins/tools/defaulttool/defaulttool/DefaultToolGeometryWidget.h @@ -34,7 +34,7 @@ { Q_OBJECT public: - explicit DefaultToolGeometryWidget(KoInteractionTool *tool, QWidget *parent = 0); + explicit DefaultToolGeometryWidget(KoInteractionTool *tool, QWidget *parent = nullptr); ~DefaultToolGeometryWidget() override; /// Sets the unit used by the unit aware child widgets diff --git a/plugins/tools/defaulttool/defaulttool/DefaultToolTabbedWidget.h b/plugins/tools/defaulttool/defaulttool/DefaultToolTabbedWidget.h --- a/plugins/tools/defaulttool/defaulttool/DefaultToolTabbedWidget.h +++ b/plugins/tools/defaulttool/defaulttool/DefaultToolTabbedWidget.h @@ -31,7 +31,7 @@ Q_OBJECT public: - explicit DefaultToolTabbedWidget(KoInteractionTool *tool, QWidget *parent = 0); + explicit DefaultToolTabbedWidget(KoInteractionTool *tool, QWidget *parent = nullptr); ~DefaultToolTabbedWidget() override; enum TabType { diff --git a/plugins/tools/defaulttool/referenceimagestool/ToolReferenceImagesWidget.h b/plugins/tools/defaulttool/referenceimagestool/ToolReferenceImagesWidget.h --- a/plugins/tools/defaulttool/referenceimagestool/ToolReferenceImagesWidget.h +++ b/plugins/tools/defaulttool/referenceimagestool/ToolReferenceImagesWidget.h @@ -34,7 +34,7 @@ { Q_OBJECT public: - ToolReferenceImagesWidget(ToolReferenceImages *tool, KisCanvasResourceProvider *provider = 0, QWidget *parent = 0); + ToolReferenceImagesWidget(ToolReferenceImages *tool, KisCanvasResourceProvider *provider = 0, QWidget *parent = nullptr); ~ToolReferenceImagesWidget() override; void selectionChanged(KoSelection *selection); diff --git a/plugins/tools/karbonplugins/filtereffects/BlendEffectConfigWidget.h b/plugins/tools/karbonplugins/filtereffects/BlendEffectConfigWidget.h --- a/plugins/tools/karbonplugins/filtereffects/BlendEffectConfigWidget.h +++ b/plugins/tools/karbonplugins/filtereffects/BlendEffectConfigWidget.h @@ -30,7 +30,7 @@ { Q_OBJECT public: - explicit BlendEffectConfigWidget(QWidget *parent = 0); + explicit BlendEffectConfigWidget(QWidget *parent = nullptr); /// reimplemented from KoFilterEffectConfigWidgetBase bool editFilterEffect(KoFilterEffect *filterEffect) override; diff --git a/plugins/tools/karbonplugins/filtereffects/BlurEffectConfigWidget.h b/plugins/tools/karbonplugins/filtereffects/BlurEffectConfigWidget.h --- a/plugins/tools/karbonplugins/filtereffects/BlurEffectConfigWidget.h +++ b/plugins/tools/karbonplugins/filtereffects/BlurEffectConfigWidget.h @@ -30,7 +30,7 @@ { Q_OBJECT public: - explicit BlurEffectConfigWidget(QWidget *parent = 0); + explicit BlurEffectConfigWidget(QWidget *parent = nullptr); /// reimplemented from KoFilterEffectConfigWidgetBase bool editFilterEffect(KoFilterEffect *filterEffect) override; diff --git a/plugins/tools/karbonplugins/filtereffects/ColorMatrixEffectConfigWidget.h b/plugins/tools/karbonplugins/filtereffects/ColorMatrixEffectConfigWidget.h --- a/plugins/tools/karbonplugins/filtereffects/ColorMatrixEffectConfigWidget.h +++ b/plugins/tools/karbonplugins/filtereffects/ColorMatrixEffectConfigWidget.h @@ -33,7 +33,7 @@ { Q_OBJECT public: - explicit ColorMatrixEffectConfigWidget(QWidget *parent = 0); + explicit ColorMatrixEffectConfigWidget(QWidget *parent = nullptr); /// reimplemented from KoFilterEffectConfigWidgetBase bool editFilterEffect(KoFilterEffect *filterEffect) override; diff --git a/plugins/tools/karbonplugins/filtereffects/ComponentTransferEffectConfigWidget.h b/plugins/tools/karbonplugins/filtereffects/ComponentTransferEffectConfigWidget.h --- a/plugins/tools/karbonplugins/filtereffects/ComponentTransferEffectConfigWidget.h +++ b/plugins/tools/karbonplugins/filtereffects/ComponentTransferEffectConfigWidget.h @@ -33,7 +33,7 @@ { Q_OBJECT public: - explicit ComponentTransferEffectConfigWidget(QWidget *parent = 0); + explicit ComponentTransferEffectConfigWidget(QWidget *parent = nullptr); /// reimplemented from KoFilterEffectConfigWidgetBase bool editFilterEffect(KoFilterEffect *filterEffect) override; diff --git a/plugins/tools/karbonplugins/filtereffects/CompositeEffectConfigWidget.h b/plugins/tools/karbonplugins/filtereffects/CompositeEffectConfigWidget.h --- a/plugins/tools/karbonplugins/filtereffects/CompositeEffectConfigWidget.h +++ b/plugins/tools/karbonplugins/filtereffects/CompositeEffectConfigWidget.h @@ -31,7 +31,7 @@ { Q_OBJECT public: - explicit CompositeEffectConfigWidget(QWidget *parent = 0); + explicit CompositeEffectConfigWidget(QWidget *parent = nullptr); /// reimplemented from KoFilterEffectConfigWidgetBase bool editFilterEffect(KoFilterEffect *filterEffect) override; diff --git a/plugins/tools/karbonplugins/filtereffects/ConvolveMatrixEffectConfigWidget.h b/plugins/tools/karbonplugins/filtereffects/ConvolveMatrixEffectConfigWidget.h --- a/plugins/tools/karbonplugins/filtereffects/ConvolveMatrixEffectConfigWidget.h +++ b/plugins/tools/karbonplugins/filtereffects/ConvolveMatrixEffectConfigWidget.h @@ -34,7 +34,7 @@ { Q_OBJECT public: - explicit ConvolveMatrixEffectConfigWidget(QWidget *parent = 0); + explicit ConvolveMatrixEffectConfigWidget(QWidget *parent = nullptr); /// reimplemented from KoFilterEffectConfigWidgetBase bool editFilterEffect(KoFilterEffect *filterEffect) override; diff --git a/plugins/tools/karbonplugins/filtereffects/FloodEffectConfigWidget.h b/plugins/tools/karbonplugins/filtereffects/FloodEffectConfigWidget.h --- a/plugins/tools/karbonplugins/filtereffects/FloodEffectConfigWidget.h +++ b/plugins/tools/karbonplugins/filtereffects/FloodEffectConfigWidget.h @@ -30,7 +30,7 @@ { Q_OBJECT public: - explicit FloodEffectConfigWidget(QWidget *parent = 0); + explicit FloodEffectConfigWidget(QWidget *parent = nullptr); /// reimplemented from KoFilterEffectConfigWidgetBase bool editFilterEffect(KoFilterEffect *filterEffect) override; diff --git a/plugins/tools/karbonplugins/filtereffects/ImageEffectConfigWidget.h b/plugins/tools/karbonplugins/filtereffects/ImageEffectConfigWidget.h --- a/plugins/tools/karbonplugins/filtereffects/ImageEffectConfigWidget.h +++ b/plugins/tools/karbonplugins/filtereffects/ImageEffectConfigWidget.h @@ -30,7 +30,7 @@ { Q_OBJECT public: - explicit ImageEffectConfigWidget(QWidget *parent = 0); + explicit ImageEffectConfigWidget(QWidget *parent = nullptr); /// reimplemented from KoFilterEffectConfigWidgetBase bool editFilterEffect(KoFilterEffect *filterEffect) override; diff --git a/plugins/tools/karbonplugins/filtereffects/MatrixDataModel.h b/plugins/tools/karbonplugins/filtereffects/MatrixDataModel.h --- a/plugins/tools/karbonplugins/filtereffects/MatrixDataModel.h +++ b/plugins/tools/karbonplugins/filtereffects/MatrixDataModel.h @@ -27,7 +27,7 @@ { public: /// Creates a new matrix data model - explicit MatrixDataModel(QObject *parent = 0); + explicit MatrixDataModel(QObject *parent = nullptr); /// Sets the matrix data and rows/columns to use void setMatrix(const QVector &matrix, int rows, int cols); diff --git a/plugins/tools/karbonplugins/filtereffects/MergeEffectConfigWidget.h b/plugins/tools/karbonplugins/filtereffects/MergeEffectConfigWidget.h --- a/plugins/tools/karbonplugins/filtereffects/MergeEffectConfigWidget.h +++ b/plugins/tools/karbonplugins/filtereffects/MergeEffectConfigWidget.h @@ -29,7 +29,7 @@ { Q_OBJECT public: - explicit MergeEffectConfigWidget(QWidget *parent = 0); + explicit MergeEffectConfigWidget(QWidget *parent = nullptr); /// reimplemented from KoFilterEffectConfigWidgetBase bool editFilterEffect(KoFilterEffect *filterEffect) override; diff --git a/plugins/tools/karbonplugins/filtereffects/MorphologyEffectConfigWidget.h b/plugins/tools/karbonplugins/filtereffects/MorphologyEffectConfigWidget.h --- a/plugins/tools/karbonplugins/filtereffects/MorphologyEffectConfigWidget.h +++ b/plugins/tools/karbonplugins/filtereffects/MorphologyEffectConfigWidget.h @@ -31,7 +31,7 @@ { Q_OBJECT public: - explicit MorphologyEffectConfigWidget(QWidget *parent = 0); + explicit MorphologyEffectConfigWidget(QWidget *parent = nullptr); /// reimplemented from KoFilterEffectConfigWidgetBase bool editFilterEffect(KoFilterEffect *filterEffect) override; diff --git a/plugins/tools/karbonplugins/filtereffects/OffsetEffectConfigWidget.h b/plugins/tools/karbonplugins/filtereffects/OffsetEffectConfigWidget.h --- a/plugins/tools/karbonplugins/filtereffects/OffsetEffectConfigWidget.h +++ b/plugins/tools/karbonplugins/filtereffects/OffsetEffectConfigWidget.h @@ -30,7 +30,7 @@ { Q_OBJECT public: - explicit OffsetEffectConfigWidget(QWidget *parent = 0); + explicit OffsetEffectConfigWidget(QWidget *parent = nullptr); /// reimplemented from KoFilterEffectConfigWidgetBase bool editFilterEffect(KoFilterEffect *filterEffect) override; diff --git a/plugins/tools/karbonplugins/tools/KarbonPatternOptionsWidget.h b/plugins/tools/karbonplugins/tools/KarbonPatternOptionsWidget.h --- a/plugins/tools/karbonplugins/tools/KarbonPatternOptionsWidget.h +++ b/plugins/tools/karbonplugins/tools/KarbonPatternOptionsWidget.h @@ -28,7 +28,7 @@ { Q_OBJECT public: - explicit KarbonPatternOptionsWidget(QWidget *parent = 0); + explicit KarbonPatternOptionsWidget(QWidget *parent = nullptr); ~KarbonPatternOptionsWidget() override; /// Sets the pattern repeat diff --git a/plugins/tools/karbonplugins/tools/filterEffectTool/FilterAddCommand.h b/plugins/tools/karbonplugins/tools/filterEffectTool/FilterAddCommand.h --- a/plugins/tools/karbonplugins/tools/filterEffectTool/FilterAddCommand.h +++ b/plugins/tools/karbonplugins/tools/filterEffectTool/FilterAddCommand.h @@ -29,7 +29,7 @@ class FilterAddCommand : public KUndo2Command { public: - FilterAddCommand(KoFilterEffect *filterEffect, KoShape *shape, KUndo2Command *parent = 0); + FilterAddCommand(KoFilterEffect *filterEffect, KoShape *shape, KUndo2Command *parent = nullptr); ~FilterAddCommand() override; /// redo the command void redo() override; diff --git a/plugins/tools/karbonplugins/tools/filterEffectTool/FilterEffectEditWidget.h b/plugins/tools/karbonplugins/tools/filterEffectTool/FilterEffectEditWidget.h --- a/plugins/tools/karbonplugins/tools/filterEffectTool/FilterEffectEditWidget.h +++ b/plugins/tools/karbonplugins/tools/filterEffectTool/FilterEffectEditWidget.h @@ -35,7 +35,7 @@ { Q_OBJECT public: - explicit FilterEffectEditWidget(QWidget *parent = 0); + explicit FilterEffectEditWidget(QWidget *parent = nullptr); ~FilterEffectEditWidget() override; /// Edits effects of given shape diff --git a/plugins/tools/karbonplugins/tools/filterEffectTool/FilterEffectScene.h b/plugins/tools/karbonplugins/tools/filterEffectTool/FilterEffectScene.h --- a/plugins/tools/karbonplugins/tools/filterEffectTool/FilterEffectScene.h +++ b/plugins/tools/karbonplugins/tools/filterEffectTool/FilterEffectScene.h @@ -78,7 +78,7 @@ { Q_OBJECT public: - explicit FilterEffectScene(QObject *parent = 0); + explicit FilterEffectScene(QObject *parent = nullptr); ~FilterEffectScene() override; /// initializes the scene from the filter effect stack diff --git a/plugins/tools/karbonplugins/tools/filterEffectTool/FilterInputChangeCommand.h b/plugins/tools/karbonplugins/tools/filterEffectTool/FilterInputChangeCommand.h --- a/plugins/tools/karbonplugins/tools/filterEffectTool/FilterInputChangeCommand.h +++ b/plugins/tools/karbonplugins/tools/filterEffectTool/FilterInputChangeCommand.h @@ -46,9 +46,9 @@ class FilterInputChangeCommand : public KUndo2Command { public: - explicit FilterInputChangeCommand(const InputChangeData &data, KoShape *shape = 0, KUndo2Command *parent = 0); + explicit FilterInputChangeCommand(const InputChangeData &data, KoShape *shape = 0, KUndo2Command *parent = nullptr); - explicit FilterInputChangeCommand(const QList &data, KoShape *shape = 0, KUndo2Command *parent = 0); + explicit FilterInputChangeCommand(const QList &data, KoShape *shape = 0, KUndo2Command *parent = nullptr); /// redo the command void redo() override; diff --git a/plugins/tools/karbonplugins/tools/filterEffectTool/FilterRegionChangeCommand.h b/plugins/tools/karbonplugins/tools/filterEffectTool/FilterRegionChangeCommand.h --- a/plugins/tools/karbonplugins/tools/filterEffectTool/FilterRegionChangeCommand.h +++ b/plugins/tools/karbonplugins/tools/filterEffectTool/FilterRegionChangeCommand.h @@ -37,7 +37,7 @@ * @param shape the shape the filter effect is applied to * @param parent the parent undo command */ - explicit FilterRegionChangeCommand(KoFilterEffect *effect, const QRectF &filterRegion, KoShape *shape = 0, KUndo2Command *parent = 0); + explicit FilterRegionChangeCommand(KoFilterEffect *effect, const QRectF &filterRegion, KoShape *shape = 0, KUndo2Command *parent = nullptr); /// redo the command void redo() override; diff --git a/plugins/tools/karbonplugins/tools/filterEffectTool/FilterRemoveCommand.h b/plugins/tools/karbonplugins/tools/filterEffectTool/FilterRemoveCommand.h --- a/plugins/tools/karbonplugins/tools/filterEffectTool/FilterRemoveCommand.h +++ b/plugins/tools/karbonplugins/tools/filterEffectTool/FilterRemoveCommand.h @@ -30,7 +30,7 @@ class FilterRemoveCommand : public KUndo2Command { public: - FilterRemoveCommand(int filterEffectIndex, KoFilterEffectStack *filterStack, KoShape *shape, KUndo2Command *parent = 0); + FilterRemoveCommand(int filterEffectIndex, KoFilterEffectStack *filterStack, KoShape *shape, KUndo2Command *parent = nullptr); ~FilterRemoveCommand() override; /// redo the command void redo() override; diff --git a/plugins/tools/karbonplugins/tools/filterEffectTool/FilterStackSetCommand.h b/plugins/tools/karbonplugins/tools/filterEffectTool/FilterStackSetCommand.h --- a/plugins/tools/karbonplugins/tools/filterEffectTool/FilterStackSetCommand.h +++ b/plugins/tools/karbonplugins/tools/filterEffectTool/FilterStackSetCommand.h @@ -29,7 +29,7 @@ class FilterStackSetCommand : public KUndo2Command { public: - FilterStackSetCommand(KoFilterEffectStack *newStack, KoShape *shape, KUndo2Command *parent = 0); + FilterStackSetCommand(KoFilterEffectStack *newStack, KoShape *shape, KUndo2Command *parent = nullptr); ~FilterStackSetCommand() override; /// redo the command diff --git a/plugins/tools/karbonplugins/tools/filterEffectTool/KoResourceSelector.h b/plugins/tools/karbonplugins/tools/filterEffectTool/KoResourceSelector.h --- a/plugins/tools/karbonplugins/tools/filterEffectTool/KoResourceSelector.h +++ b/plugins/tools/karbonplugins/tools/filterEffectTool/KoResourceSelector.h @@ -42,7 +42,7 @@ * Constructs a new resource selector. * @param parent the parent widget */ - explicit KoResourceSelector(QWidget *parent = 0); + explicit KoResourceSelector(QWidget *parent = nullptr); /** * Constructs a new resource selector showing the resources of the given resource adapter. diff --git a/plugins/tools/svgtexttool/SvgTextChangeCommand.h b/plugins/tools/svgtexttool/SvgTextChangeCommand.h --- a/plugins/tools/svgtexttool/SvgTextChangeCommand.h +++ b/plugins/tools/svgtexttool/SvgTextChangeCommand.h @@ -31,7 +31,7 @@ SvgTextChangeCommand(KoSvgTextShape *shape, const QString &svg, const QString &defs, bool richTextPreferred, - KUndo2Command *parent = 0); + KUndo2Command *parent = nullptr); virtual ~SvgTextChangeCommand(); /// redo the command diff --git a/plugins/tools/svgtexttool/kis_font_family_combo_box.h b/plugins/tools/svgtexttool/kis_font_family_combo_box.h --- a/plugins/tools/svgtexttool/kis_font_family_combo_box.h +++ b/plugins/tools/svgtexttool/kis_font_family_combo_box.h @@ -37,7 +37,7 @@ { Q_OBJECT public: - KisFontComboBoxes(QWidget *parent = 0); + KisFontComboBoxes(QWidget *parent = nullptr); /** * @brief setCurrentFont @@ -82,7 +82,7 @@ { Q_OBJECT public: - KisFontFamilyComboBox(QWidget *parent = 0); + KisFontFamilyComboBox(QWidget *parent = nullptr); //List of writing systems to use. If empty will default to "all" void refillComboBox(QVector writingSystems = QVector());