Commit 33584fa5 authored by Laurent Montel's avatar Laurent Montel

Remove some warning with -Wzero-as-null-pointer-constant

parent a09d52cf
......@@ -43,8 +43,8 @@ RenderJob::RenderJob(bool erase, bool usekuiserver, int pid, const QString& rend
m_progress(0),
m_prog(renderer),
m_player(player),
m_jobUiserver(NULL),
m_kdenliveinterface(NULL),
m_jobUiserver(Q_NULLPTR),
m_kdenliveinterface(Q_NULLPTR),
m_usekuiserver(usekuiserver),
m_logfile(dest + ".txt"),
m_erase(erase),
......
......@@ -70,7 +70,7 @@ class MyListView: public QListView
{
Q_OBJECT
public:
explicit MyListView(QWidget *parent = 0);
explicit MyListView(QWidget *parent = Q_NULLPTR);
protected:
void focusInEvent(QFocusEvent *event);
......@@ -83,7 +83,7 @@ class MyTreeView: public QTreeView
Q_OBJECT
Q_PROPERTY(bool editing READ isEditing WRITE setEditing)
public:
explicit MyTreeView(QWidget *parent = 0);
explicit MyTreeView(QWidget *parent = Q_NULLPTR);
void setEditing(bool edit);
protected:
void mousePressEvent(QMouseEvent *event);
......@@ -109,8 +109,8 @@ class BinMessageWidget: public KMessageWidget
{
Q_OBJECT
public:
explicit BinMessageWidget(QWidget *parent = 0);
BinMessageWidget(const QString &text, QWidget *parent = 0);
explicit BinMessageWidget(QWidget *parent = Q_NULLPTR);
BinMessageWidget(const QString &text, QWidget *parent = Q_NULLPTR);
protected:
bool event(QEvent* ev);
......@@ -124,7 +124,7 @@ class SmallJobLabel: public QPushButton
{
Q_OBJECT
public:
explicit SmallJobLabel(QWidget *parent = 0);
explicit SmallJobLabel(QWidget *parent = Q_NULLPTR);
static const QString getStyleSheet(const QPalette &p);
void setAction(QAction *action);
private:
......@@ -154,7 +154,7 @@ private slots:
class BinItemDelegate: public QStyledItemDelegate
{
public:
explicit BinItemDelegate(QObject* parent = 0): QStyledItemDelegate(parent)
explicit BinItemDelegate(QObject* parent = Q_NULLPTR): QStyledItemDelegate(parent)
{
}
......@@ -338,7 +338,7 @@ class LineEventEater : public QObject
{
Q_OBJECT
public:
explicit LineEventEater(QObject *parent = 0);
explicit LineEventEater(QObject *parent = Q_NULLPTR);
protected:
bool eventFilter(QObject *obj, QEvent *event);
......@@ -625,7 +625,7 @@ public slots:
void slotAddClipCut(const QString&id, int in, int out);
/** @brief Open current clip in an external editing application */
void slotOpenClip();
void slotAddClipMarker(const QString &id, QList <CommentedTime> newMarker, QUndoCommand *groupCommand = 0);
void slotAddClipMarker(const QString &id, QList <CommentedTime> newMarker, QUndoCommand *groupCommand = Q_NULLPTR);
void slotLoadClipMarkers(const QString &id);
void slotSaveClipMarkers(const QString &id);
void slotDuplicateClip();
......@@ -637,7 +637,7 @@ public slots:
/** @brief Abort audio thumbnail for clip with id */
void slotAbortAudioThumb(const QString &id, long duration);
/** @brief Add extra data to a clip. */
void slotAddClipExtraData(const QString &id, const QString &key, const QString &data = QString(), QUndoCommand *groupCommand = 0);
void slotAddClipExtraData(const QString &id, const QString &key, const QString &data = QString(), QUndoCommand *groupCommand = Q_NULLPTR);
void slotUpdateClipProperties(const QString &id, QMap <QString, QString> properties, bool refreshPropertiesPanel);
/** @brief Pass some important properties to timeline track producers. */
void updateTimelineProducers(const QString &id, QMap <QString, QString> passProperties);
......
......@@ -31,7 +31,7 @@ class Bin;
class AddBinFolderCommand : public QUndoCommand
{
public:
explicit AddBinFolderCommand(Bin *bin, const QString &id, const QString &name, const QString &parentId, bool remove = false, QUndoCommand * parent = 0);
explicit AddBinFolderCommand(Bin *bin, const QString &id, const QString &name, const QString &parentId, bool remove = false, QUndoCommand * parent = Q_NULLPTR);
void undo();
void redo();
private:
......@@ -46,7 +46,7 @@ private:
class MoveBinClipCommand : public QUndoCommand
{
public:
explicit MoveBinClipCommand(Bin *bin, const QString &clipId, const QString &oldParentId, const QString &newParentId, QUndoCommand *parent = 0);
explicit MoveBinClipCommand(Bin *bin, const QString &clipId, const QString &oldParentId, const QString &newParentId, QUndoCommand *parent = Q_NULLPTR);
void undo();
void redo();
private:
......@@ -59,7 +59,7 @@ private:
class MoveBinFolderCommand : public QUndoCommand
{
public:
explicit MoveBinFolderCommand(Bin *bin, const QString &clipId, const QString &oldParentId, const QString &newParentId, QUndoCommand *parent = 0);
explicit MoveBinFolderCommand(Bin *bin, const QString &clipId, const QString &oldParentId, const QString &newParentId, QUndoCommand *parent = Q_NULLPTR);
void undo();
void redo();
private:
......@@ -72,7 +72,7 @@ private:
class RenameBinFolderCommand : public QUndoCommand
{
public:
explicit RenameBinFolderCommand(Bin *bin, const QString &folderId, const QString &newName, const QString &oldName, QUndoCommand *parent = 0);
explicit RenameBinFolderCommand(Bin *bin, const QString &folderId, const QString &newName, const QString &oldName, QUndoCommand *parent = Q_NULLPTR);
void undo();
void redo();
private:
......@@ -85,7 +85,7 @@ private:
class AddBinEffectCommand : public QUndoCommand
{
public:
explicit AddBinEffectCommand(Bin *bin, const QString &clipId, QDomElement &effect, QUndoCommand *parent = 0);
explicit AddBinEffectCommand(Bin *bin, const QString &clipId, QDomElement &effect, QUndoCommand *parent = Q_NULLPTR);
void undo();
void redo();
private:
......@@ -97,7 +97,7 @@ private:
class RemoveBinEffectCommand : public QUndoCommand
{
public:
explicit RemoveBinEffectCommand(Bin *bin, const QString &clipId, QDomElement &effect, QUndoCommand *parent = 0);
explicit RemoveBinEffectCommand(Bin *bin, const QString &clipId, QDomElement &effect, QUndoCommand *parent = Q_NULLPTR);
void undo();
void redo();
private:
......@@ -109,7 +109,7 @@ private:
class UpdateBinEffectCommand : public QUndoCommand
{
public:
explicit UpdateBinEffectCommand(Bin *bin, const QString &clipId, QDomElement &oldEffect, QDomElement &newEffect, int ix, QUndoCommand *parent = 0);
explicit UpdateBinEffectCommand(Bin *bin, const QString &clipId, QDomElement &oldEffect, QDomElement &newEffect, int ix, QUndoCommand *parent = Q_NULLPTR);
void undo();
void redo();
private:
......@@ -124,7 +124,7 @@ private:
class ChangeMasterEffectStateCommand : public QUndoCommand
{
public:
ChangeMasterEffectStateCommand(Bin *bin, const QString &clipId, const QList <int>& effectIndexes, bool disable, QUndoCommand *parent = 0);
ChangeMasterEffectStateCommand(Bin *bin, const QString &clipId, const QList <int>& effectIndexes, bool disable, QUndoCommand *parent = Q_NULLPTR);
void undo();
void redo();
private:
......@@ -138,7 +138,7 @@ private:
class MoveBinEffectCommand : public QUndoCommand
{
public:
explicit MoveBinEffectCommand(Bin *bin, const QString &clipId, QList <int> oldPos, int newPos, QUndoCommand *parent = 0);
explicit MoveBinEffectCommand(Bin *bin, const QString &clipId, QList <int> oldPos, int newPos, QUndoCommand *parent = Q_NULLPTR);
void undo();
void redo();
private:
......@@ -151,7 +151,7 @@ private:
class RenameBinSubClipCommand : public QUndoCommand
{
public:
explicit RenameBinSubClipCommand(Bin *bin, const QString &clipId, const QString &newName, const QString &oldName, int in, int out, QUndoCommand *parent = 0);
explicit RenameBinSubClipCommand(Bin *bin, const QString &clipId, const QString &newName, const QString &oldName, int in, int out, QUndoCommand *parent = Q_NULLPTR);
void undo();
void redo();
private:
......@@ -166,7 +166,7 @@ private:
class AddBinClipCutCommand : public QUndoCommand
{
public:
explicit AddBinClipCutCommand(Bin *bin, const QString &clipId, int in, int out, bool add, QUndoCommand *parent = 0);
explicit AddBinClipCutCommand(Bin *bin, const QString &clipId, int in, int out, bool add, QUndoCommand *parent = Q_NULLPTR);
void undo();
void redo();
private:
......@@ -180,7 +180,7 @@ private:
class EditClipCommand : public QUndoCommand
{
public:
EditClipCommand(Bin *bin, const QString &id, const QMap <QString, QString> &oldparams, const QMap <QString, QString> &newparams, bool doIt, QUndoCommand * parent = 0);
EditClipCommand(Bin *bin, const QString &id, const QMap <QString, QString> &oldparams, const QMap <QString, QString> &newparams, bool doIt, QUndoCommand * parent = Q_NULLPTR);
void undo();
void redo();
private:
......@@ -199,7 +199,7 @@ private:
class AddClipCommand : public QUndoCommand
{
public:
AddClipCommand(Bin *bin, const QDomElement &xml, const QString &id, bool doIt, QUndoCommand * parent = 0);
AddClipCommand(Bin *bin, const QDomElement &xml, const QString &id, bool doIt, QUndoCommand * parent = Q_NULLPTR);
void undo();
void redo();
private:
......
......@@ -47,7 +47,7 @@ class Generators : public QDialog
Q_OBJECT
public:
explicit Generators(Monitor *monitor, const QString &path, QWidget *parent = 0);
explicit Generators(Monitor *monitor, const QString &path, QWidget *parent = Q_NULLPTR);
virtual ~Generators();
static void getGenerators(QStringList producers, QMenu *menu);
......
......@@ -37,7 +37,7 @@ class ProjectSortProxyModel : public QSortFilterProxyModel
Q_OBJECT
public:
explicit ProjectSortProxyModel(QObject *parent = 0);
explicit ProjectSortProxyModel(QObject *parent = Q_NULLPTR);
QItemSelectionModel* selectionModel();
public slots:
......
......@@ -32,7 +32,7 @@ class ManageCapturesDialog : public QDialog
Q_OBJECT
public:
explicit ManageCapturesDialog(const QList<QUrl> &files, QWidget * parent = 0);
explicit ManageCapturesDialog(const QList<QUrl> &files, QWidget * parent = Q_NULLPTR);
~ManageCapturesDialog();
QList<QUrl> importFiles();
......
......@@ -56,7 +56,7 @@ Q_OBJECT public:
/** @brief Build a MLT Renderer
* @param winid The parent widget identifier (required for SDL display). Set to 0 for OpenGL rendering
* @param profile The MLT profile used for the capture (default one will be used if empty). */
explicit MltDeviceCapture(QString profile, /*VideoSurface *surface,*/ QWidget *parent = 0);
explicit MltDeviceCapture(QString profile, /*VideoSurface *surface,*/ QWidget *parent = Q_NULLPTR);
/** @brief Destroy the MLT Renderer. */
~MltDeviceCapture();
......
......@@ -31,7 +31,7 @@ class EncodingProfilesDialog : public QDialog, Ui::ManageEncodingProfile_UI
Q_OBJECT
public:
explicit EncodingProfilesDialog(int profileType, QWidget * parent = 0);
explicit EncodingProfilesDialog(int profileType, QWidget * parent = Q_NULLPTR);
~EncodingProfilesDialog();
private slots:
......
......@@ -41,7 +41,7 @@ class KdenliveSettingsDialog : public KConfigDialog
Q_OBJECT
public:
KdenliveSettingsDialog(const QMap<QString, QString>& mappable_actions, bool gpuAllowed, QWidget * parent = 0);
KdenliveSettingsDialog(const QMap<QString, QString>& mappable_actions, bool gpuAllowed, QWidget * parent = Q_NULLPTR);
~KdenliveSettingsDialog();
void showPage(int page, int option);
void checkProfile();
......
......@@ -33,9 +33,9 @@ class ProfilesDialog : public QDialog
Q_OBJECT
public:
explicit ProfilesDialog(const QString profileDescription = QString(), QWidget * parent = 0);
explicit ProfilesDialog(const QString profileDescription = QString(), QWidget * parent = Q_NULLPTR);
/** @brief Using this constructor, the dialog only allows editing one profile. */
explicit ProfilesDialog(QString profilePath, bool, QWidget * parent = 0);
explicit ProfilesDialog(QString profilePath, bool, QWidget * parent = Q_NULLPTR);
void fillList(const QString &selectedProfile = QString());
static QMap< QString, QString > getSettingsFromFile(const QString& path);
......
......@@ -111,7 +111,7 @@ class RenderWidget : public QDialog
Q_OBJECT
public:
explicit RenderWidget(const QString &projectfolder, bool enableProxy, const MltVideoProfile &profile, QWidget * parent = 0);
explicit RenderWidget(const QString &projectfolder, bool enableProxy, const MltVideoProfile &profile, QWidget * parent = Q_NULLPTR);
virtual ~RenderWidget();
void setGuides(QMap <double, QString> guidesData, double duration);
void focusFirstVisibleItem(const QString &profile = QString());
......
......@@ -30,7 +30,7 @@ class TitleTemplateDialog : public QDialog
Q_OBJECT
public:
explicit TitleTemplateDialog(const QString &folder, QWidget * parent = 0);
explicit TitleTemplateDialog(const QString &folder, QWidget * parent = Q_NULLPTR);
QString selectedTemplate() const;
QString selectedText() const;
......
......@@ -51,7 +51,7 @@ class Wizard : public QWizard
{
Q_OBJECT
public:
explicit Wizard(bool autoClose, QWidget * parent = 0);
explicit Wizard(bool autoClose, QWidget * parent = Q_NULLPTR);
void installExtraMimes(const QString &baseName, const QStringList &globs);
void runUpdateMimeDatabase();
void adjustSettings();
......
......@@ -64,7 +64,7 @@ class DocUndoStack: public QUndoStack
{
Q_OBJECT
public:
explicit DocUndoStack(QUndoGroup *parent = 0);
explicit DocUndoStack(QUndoGroup *parent = Q_NULLPTR);
void push(QUndoCommand *cmd);
signals:
void invalidate();
......
......@@ -39,7 +39,7 @@ class DvdWizard : public QWizard
{
Q_OBJECT
public:
explicit DvdWizard(MonitorManager *manager, const QString &url = QString(), QWidget * parent = 0);
explicit DvdWizard(MonitorManager *manager, const QString &url = QString(), QWidget * parent = Q_NULLPTR);
virtual ~DvdWizard();
void processSpumux();
......
......@@ -35,7 +35,7 @@ class DvdWizardChapters : public QWizardPage
Q_OBJECT
public:
explicit DvdWizardChapters(MonitorManager *manager, DVDFORMAT format, QWidget * parent = 0);
explicit DvdWizardChapters(MonitorManager *manager, DVDFORMAT format, QWidget * parent = Q_NULLPTR);
virtual ~DvdWizardChapters();
void changeProfile(DVDFORMAT format);
void setPal(bool isPal);
......
......@@ -38,7 +38,7 @@ class DvdScene : public QGraphicsScene
{
Q_OBJECT
public:
explicit DvdScene(QObject * parent = 0);
explicit DvdScene(QObject * parent = Q_NULLPTR);
void setProfile(int width, int height);
int gridSize() const;
void setGridSize(int gridSize);
......@@ -88,7 +88,7 @@ class DvdWizardMenu : public QWizardPage
Q_OBJECT
public:
explicit DvdWizardMenu(DVDFORMAT format, QWidget * parent = 0);
explicit DvdWizardMenu(DVDFORMAT format, QWidget * parent = Q_NULLPTR);
virtual ~DvdWizardMenu();
bool createMenu() const;
void createBackgroundImage(const QString &img1, bool letterbox);
......
......@@ -107,7 +107,7 @@ class DvdWizardVob : public QWizardPage
Q_OBJECT
public:
explicit DvdWizardVob(QWidget * parent = 0);
explicit DvdWizardVob(QWidget * parent = Q_NULLPTR);
virtual ~DvdWizardVob();
QStringList selectedUrls() const;
void setUrl(const QString &url);
......
......@@ -43,7 +43,7 @@ class TreeEventEater : public QObject
{
Q_OBJECT
public:
explicit TreeEventEater(QObject *parent = 0);
explicit TreeEventEater(QObject *parent = Q_NULLPTR);
protected:
bool eventFilter(QObject *obj, QEvent *event);
......@@ -56,7 +56,7 @@ class MyTreeWidgetSearchLine : public KTreeWidgetSearchLine
{
Q_OBJECT
public:
explicit MyTreeWidgetSearchLine(QWidget *parent = 0);
explicit MyTreeWidgetSearchLine(QWidget *parent = Q_NULLPTR);
protected:
bool itemMatches(const QTreeWidgetItem *item, const QString &pattern) const;
......@@ -74,7 +74,7 @@ class MyDropButton : public QToolButton
Q_OBJECT
public:
explicit MyDropButton(QWidget *parent = 0) : QToolButton(parent) {
explicit MyDropButton(QWidget *parent = Q_NULLPTR) : QToolButton(parent) {
setAcceptDrops(true);
setAutoExclusive(true);
setCheckable(true);
......@@ -117,7 +117,7 @@ public:
TransitionMode = 1
};
explicit EffectsListView(LISTMODE mode = EffectMode, QWidget *parent = 0);
explicit EffectsListView(LISTMODE mode = EffectMode, QWidget *parent = Q_NULLPTR);
/** @brief Re-initializes the list of effects. */
void reloadEffectList(QMenu *effectsMenu, KActionCategory *effectActions);
......
......@@ -36,7 +36,7 @@ class EffectsListWidget : public QTreeWidget
static const int TypeRole = Qt::UserRole;
static const int IdRole = TypeRole + 1;
explicit EffectsListWidget(QWidget *parent = 0);
explicit EffectsListWidget(QWidget *parent = Q_NULLPTR);
virtual ~EffectsListWidget();
const QDomElement currentEffect() const;
QString currentInfo() const;
......
......@@ -31,7 +31,7 @@ class AbstractCollapsibleWidget : public QWidget, public Ui::CollapsibleWidget_U
Q_OBJECT
public:
explicit AbstractCollapsibleWidget(QWidget * parent = 0);
explicit AbstractCollapsibleWidget(QWidget * parent = Q_NULLPTR);
virtual void setActive(bool activate) = 0;
virtual bool isGroup() const = 0;
......
......@@ -33,7 +33,7 @@ class AnimKeyframeRuler : public QWidget
{
Q_OBJECT
public:
explicit AnimKeyframeRuler(int min, int max, QWidget *parent = 0);
explicit AnimKeyframeRuler(int min, int max, QWidget *parent = Q_NULLPTR);
int position() const;
int frameLength;
void updateKeyframes(QVector<int> keyframes, QVector<int> types, int attachToEnd);
......
......@@ -43,7 +43,7 @@ class CollapsibleEffect : public AbstractCollapsibleWidget
Q_OBJECT
public:
explicit CollapsibleEffect(const QDomElement &effect, const QDomElement &original_effect, const ItemInfo &info, EffectMetaInfo *metaInfo, bool canMoveUp, bool lastEffect, QWidget * parent = 0);
explicit CollapsibleEffect(const QDomElement &effect, const QDomElement &original_effect, const ItemInfo &info, EffectMetaInfo *metaInfo, bool canMoveUp, bool lastEffect, QWidget * parent = Q_NULLPTR);
~CollapsibleEffect();
QLabel *title;
......
......@@ -36,7 +36,7 @@ class MyEditableLabel : public QLineEdit
{
Q_OBJECT
public:
explicit MyEditableLabel(QWidget * parent = 0);
explicit MyEditableLabel(QWidget * parent = Q_NULLPTR);
protected:
void mouseDoubleClickEvent( QMouseEvent *e);
......@@ -54,7 +54,7 @@ class CollapsibleGroup : public AbstractCollapsibleWidget
Q_OBJECT
public:
CollapsibleGroup(int ix, bool firstGroup, bool lastGroup, const EffectInfo &info, QWidget * parent = 0);
CollapsibleGroup(int ix, bool firstGroup, bool lastGroup, const EffectInfo &info, QWidget * parent = Q_NULLPTR);
~CollapsibleGroup();
void updateTimecodeFormat();
void setActive(bool activate);
......
......@@ -34,7 +34,7 @@ class CustomLabel : public QProgressBar
{
Q_OBJECT
public:
explicit CustomLabel(const QString &label, bool showSlider = true, int range = 1000, QWidget *parent = 0);
explicit CustomLabel(const QString &label, bool showSlider = true, int range = 1000, QWidget *parent = Q_NULLPTR);
void setProgressValue(double value);
void setStep(double step);
......
......@@ -35,7 +35,7 @@ class EffectStackEdit : public QScrollArea
{
Q_OBJECT
public:
explicit EffectStackEdit(Monitor *monitor, QWidget *parent = 0);
explicit EffectStackEdit(Monitor *monitor, QWidget *parent = Q_NULLPTR);
~EffectStackEdit();
static QMap<QString, QImage> iconCache;
/** @brief Sets attribute @param name to @param value.
......
......@@ -41,7 +41,7 @@ class EffectStackView2 : public QWidget
Q_OBJECT
public:
explicit EffectStackView2(Monitor *projectMonitor, QWidget *parent = 0);
explicit EffectStackView2(Monitor *projectMonitor, QWidget *parent = Q_NULLPTR);
virtual ~EffectStackView2();
/** @brief Raises @param dock if a clip is loaded. */
......
......@@ -82,7 +82,7 @@ public slots:
class MyRectItem: public QGraphicsRectItem
{
public:
explicit MyRectItem(QGraphicsItem *parent = 0);
explicit MyRectItem(QGraphicsItem *parent = Q_NULLPTR);
void setRect(const QRectF & rectangle);
protected:
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value);
......@@ -93,7 +93,7 @@ private:
class MyPixmapItem: public QGraphicsPixmapItem
{
public:
MyPixmapItem(const QPixmap &pixmap, QGraphicsItem *parent = 0);
MyPixmapItem(const QPixmap &pixmap, QGraphicsItem *parent = Q_NULLPTR);
protected:
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value);
};
......@@ -101,7 +101,7 @@ protected:
class MySvgItem: public QGraphicsSvgItem
{
public:
MySvgItem(const QString &fileName = QString(), QGraphicsItem *parent = 0);
MySvgItem(const QString &fileName = QString(), QGraphicsItem *parent = Q_NULLPTR);
protected:
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value);
};
......@@ -110,7 +110,7 @@ class GraphicsSceneRectMove: public QGraphicsScene
{
Q_OBJECT
public:
explicit GraphicsSceneRectMove(QObject* parent = 0);
explicit GraphicsSceneRectMove(QObject* parent = Q_NULLPTR);
void setSelectedItem(QGraphicsItem *item);
void setScale(double s);
void setZoom(double s);
......
......@@ -31,7 +31,7 @@ class KeyframeHelper : public QWidget
{
Q_OBJECT
public:
explicit KeyframeHelper(QWidget *parent = 0);
explicit KeyframeHelper(QWidget *parent = Q_NULLPTR);
int value() const;
int frameLength;
......
......@@ -77,7 +77,7 @@ class MySpinBox : public QSpinBox
Q_OBJECT
public:
explicit MySpinBox(QWidget * parent = 0);
explicit MySpinBox(QWidget * parent = Q_NULLPTR);
protected:
void focusInEvent(QFocusEvent*);
......@@ -89,7 +89,7 @@ class ParameterContainer : public QObject
Q_OBJECT
public:
explicit ParameterContainer(const QDomElement &effect, const ItemInfo &info, EffectMetaInfo *metaInfo, QWidget * parent = 0);
explicit ParameterContainer(const QDomElement &effect, const ItemInfo &info, EffectMetaInfo *metaInfo, QWidget * parent = Q_NULLPTR);
~ParameterContainer();
void updateTimecodeFormat();
void updateParameter(const QString &key, const QString &value);
......
......@@ -46,7 +46,7 @@ class AnimationWidget : public QWidget
{
Q_OBJECT
public:
explicit AnimationWidget(EffectMetaInfo *info, int clipPos, int min, int max, int effectIn, const QString &effectId, QDomElement xml, QWidget *parent = 0);
explicit AnimationWidget(EffectMetaInfo *info, int clipPos, int min, int max, int effectIn, const QString &effectId, QDomElement xml, QWidget *parent = Q_NULLPTR);
virtual ~AnimationWidget();
void updateTimecodeFormat();
void addParameter(const QDomElement &e);
......
......@@ -31,8 +31,8 @@ class CubicBezierSpline : public QObject
Q_OBJECT
public:
explicit CubicBezierSpline(QObject* parent = 0);
CubicBezierSpline(const CubicBezierSpline &spline, QObject* parent = 0);
explicit CubicBezierSpline(QObject* parent = Q_NULLPTR);
CubicBezierSpline(const CubicBezierSpline &spline, QObject* parent = Q_NULLPTR);
CubicBezierSpline& operator=(const CubicBezierSpline &spline);
/** @brief Loads the points from the string @param spline.
......
......@@ -57,7 +57,7 @@ class ColorPickerWidget : public QWidget
public:
/** @brief Sets up the widget. */
explicit ColorPickerWidget(QWidget *parent = 0);
explicit ColorPickerWidget(QWidget *parent = Q_NULLPTR);
/** @brief Makes sure the event filter is removed. */
virtual ~ColorPickerWidget();
......
......@@ -27,7 +27,7 @@ class ColorWheel : public QWidget
{
Q_OBJECT
public:
explicit ColorWheel(QString id, QString name, QColor color, QWidget *parent = 0);
explicit ColorWheel(QString id, QString name, QColor color, QWidget *parent = Q_NULLPTR);
virtual QSize sizeHint () const;
virtual QSize minimumSizeHint () const;
......
......@@ -38,7 +38,7 @@ class KeyframeImport : public QDialog
{
Q_OBJECT
public:
explicit KeyframeImport(ItemInfo srcInfo, ItemInfo dstInfo, QMap<QString, QString> data, const Timecode &tc, QDomElement xml, ProfileInfo profile, QWidget *parent = 0);
explicit KeyframeImport(ItemInfo srcInfo, ItemInfo dstInfo, QMap<QString, QString> data, const Timecode &tc, QDomElement xml, ProfileInfo profile, QWidget *parent = Q_NULLPTR);
virtual ~KeyframeImport();
QString selectedData() const;
QString selectedTarget() const;
......
......@@ -53,7 +53,7 @@ public:
* Create a new curve widget with a default curve, that is a straight
* line from bottom-left to top-right.
*/
explicit KisCurveWidget(QWidget *parent = 0, Qt::WindowFlags f = 0);
explicit KisCurveWidget(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = 0);
virtual ~KisCurveWidget();
......
......@@ -25,7 +25,7 @@ class HideTitleBars : public QObject
Q_OBJECT
public:
explicit HideTitleBars(QObject *parent = 0);
explicit HideTitleBars(QObject *parent = Q_NULLPTR);
private:
QAction *m_switchAction;
......
......@@ -27,7 +27,7 @@
class JogShuttleAction: public QObject
{
Q_OBJECT public:
explicit JogShuttleAction(const JogShuttle* jogShuttle, const QStringList& actionMap, QObject * parent = 0);
explicit JogShuttleAction(const JogShuttle* jogShuttle, const QStringList& actionMap, QObject * parent = Q_NULLPTR);
~JogShuttleAction();
......
......@@ -26,7 +26,7 @@ class JogManager : public QObject
Q_OBJECT
public:
explicit JogManager(QObject* parent = 0);
explicit JogManager(QObject* parent = Q_NULLPTR);
private slots:
void slotDoAction(const QString& actionName);
......
......@@ -81,7 +81,7 @@ class JogShuttle: public QObject
{
Q_OBJECT
public:
explicit JogShuttle(const QString &device, QObject * parent = 0);
explicit JogShuttle(const QString &device, QObject * parent = Q_NULLPTR);
~JogShuttle();
void stopDevice();
void initDevice(const QString &device);
......
......@@ -57,7 +57,7 @@ class QToolBar;
class LibraryItemDelegate: public QStyledItemDelegate
{
public:
explicit LibraryItemDelegate(QObject* parent = 0): QStyledItemDelegate(parent) {
explicit LibraryItemDelegate(QObject* parent = Q_NULLPTR): QStyledItemDelegate(parent) {
}
void updateEditorGeometry(QWidget * editor, const QStyleOptionViewItem & option, const QModelIndex & index) const
......@@ -141,7 +141,7 @@ class LibraryTree : public QTreeWidget
{
Q_OBJECT
public:
explicit LibraryTree(QWidget *parent = 0);
explicit LibraryTree(QWidget *parent = Q_NULLPTR);
protected:
virtual QStringList mimeTypes() const;
......@@ -164,7 +164,7 @@ class LibraryWidget : public QWidget
Q_OBJECT
public:
explicit LibraryWidget(ProjectManager *m_manager, QWidget *parent = 0);
explicit LibraryWidget(ProjectManager *m_manager, QWidget *parent = Q_NULLPTR);
void setupActions(QList <QAction *>list);
public slots:
......
......@@ -76,7 +76,7 @@ public:
* set, latest project will be opened. If no file is open after trying this,
* a default new file will be created. */
explicit MainWindow(const QString &MltPath = QString(),
const QUrl &Url = QUrl(), const QString & clipsToLoad = QString(), QWidget *parent = 0);
const QUrl &Url = QUrl(), const QString & clipsToLoad = QString(), QWidget *parent = Q_NULLPTR);
virtual ~MainWindow();
static EffectsList videoEffects;
......
......@@ -26,7 +26,7 @@ class MltConnection : public QObject