Commit 8b9fc201 authored by Laurent Montel's avatar Laurent Montel

Use nullptr now

parent 640d4467
......@@ -59,7 +59,7 @@ public:
* @brief Constructor.
* @param parent parent this item should be added to
*/
AbstractProjectItem(PROJECTITEMTYPE type, const QString &id, AbstractProjectItem *parent = Q_NULLPTR);
AbstractProjectItem(PROJECTITEMTYPE type, const QString &id, AbstractProjectItem *parent = nullptr);
/**
* @brief Creates a project item upon project load.
* @param description element for this item.
......@@ -67,7 +67,7 @@ public:
*
* We try to read the attributes "name" and "description"
*/
AbstractProjectItem(PROJECTITEMTYPE type, const QDomElement &description, AbstractProjectItem *parent = Q_NULLPTR);
AbstractProjectItem(PROJECTITEMTYPE type, const QDomElement &description, AbstractProjectItem *parent = nullptr);
virtual ~AbstractProjectItem();
bool operator==(const AbstractProjectItem *projectItem) const;
......
......@@ -70,7 +70,7 @@ class MyListView: public QListView
{
Q_OBJECT
public:
explicit MyListView(QWidget *parent = Q_NULLPTR);
explicit MyListView(QWidget *parent = nullptr);
protected:
void focusInEvent(QFocusEvent *event) Q_DECL_OVERRIDE;
......@@ -83,7 +83,7 @@ class MyTreeView: public QTreeView
Q_OBJECT
Q_PROPERTY(bool editing READ isEditing WRITE setEditing)
public:
explicit MyTreeView(QWidget *parent = Q_NULLPTR);
explicit MyTreeView(QWidget *parent = nullptr);
void setEditing(bool edit);
protected:
void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
......@@ -109,8 +109,8 @@ class BinMessageWidget: public KMessageWidget
{
Q_OBJECT
public:
explicit BinMessageWidget(QWidget *parent = Q_NULLPTR);
BinMessageWidget(const QString &text, QWidget *parent = Q_NULLPTR);
explicit BinMessageWidget(QWidget *parent = nullptr);
BinMessageWidget(const QString &text, QWidget *parent = nullptr);
protected:
bool event(QEvent *ev) Q_DECL_OVERRIDE;
......@@ -123,7 +123,7 @@ class SmallJobLabel: public QPushButton
{
Q_OBJECT
public:
explicit SmallJobLabel(QWidget *parent = Q_NULLPTR);
explicit SmallJobLabel(QWidget *parent = nullptr);
static const QString getStyleSheet(const QPalette &p);
void setAction(QAction *action);
private:
......@@ -152,7 +152,7 @@ private slots:
class BinItemDelegate: public QStyledItemDelegate
{
public:
explicit BinItemDelegate(QObject *parent = Q_NULLPTR): QStyledItemDelegate(parent)
explicit BinItemDelegate(QObject *parent = nullptr): QStyledItemDelegate(parent)
{
}
......@@ -337,7 +337,7 @@ class LineEventEater : public QObject
{
Q_OBJECT
public:
explicit LineEventEater(QObject *parent = Q_NULLPTR);
explicit LineEventEater(QObject *parent = nullptr);
protected:
bool eventFilter(QObject *obj, QEvent *event) Q_DECL_OVERRIDE;
......@@ -360,7 +360,7 @@ class Bin : public QWidget
enum BinViewType {BinTreeView, BinIconView };
public:
explicit Bin(QWidget *parent = Q_NULLPTR);
explicit Bin(QWidget *parent = nullptr);
~Bin();
bool isLoading;
......@@ -541,7 +541,7 @@ private slots:
void slotShowDescColumn(bool show);
/** @brief Setup the bin view type (icon view, tree view, ...).
* @param action The action whose data defines the view type or Q_NULLPTR to keep default view */
* @param action The action whose data defines the view type or nullptr to keep default view */
void slotInitView(QAction *action);
/** @brief Update status for clip jobs */
......@@ -622,7 +622,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, const QList<CommentedTime> &newMarker, QUndoCommand *groupCommand = Q_NULLPTR);
void slotAddClipMarker(const QString &id, const QList<CommentedTime> &newMarker, QUndoCommand *groupCommand = nullptr);
void slotLoadClipMarkers(const QString &id);
void slotSaveClipMarkers(const QString &id);
void slotDuplicateClip();
......@@ -634,7 +634,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 = Q_NULLPTR);
void slotAddClipExtraData(const QString &id, const QString &key, const QString &data = QString(), QUndoCommand *groupCommand = nullptr);
void slotUpdateClipProperties(const QString &id, const QMap<QString, QString> &properties, bool refreshPropertiesPanel);
/** @brief Pass some important properties to timeline track producers. */
void updateTimelineProducers(const QString &id, const QMap<QString, QString> &passProperties);
......
......@@ -29,7 +29,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 = Q_NULLPTR);
explicit AddBinFolderCommand(Bin *bin, const QString &id, const QString &name, const QString &parentId, bool remove = false, QUndoCommand *parent = nullptr);
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
......@@ -43,7 +43,7 @@ private:
class MoveBinClipCommand : public QUndoCommand
{
public:
explicit MoveBinClipCommand(Bin *bin, const QString &clipId, const QString &oldParentId, const QString &newParentId, QUndoCommand *parent = Q_NULLPTR);
explicit MoveBinClipCommand(Bin *bin, const QString &clipId, const QString &oldParentId, const QString &newParentId, QUndoCommand *parent = nullptr);
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
......@@ -56,7 +56,7 @@ private:
class MoveBinFolderCommand : public QUndoCommand
{
public:
explicit MoveBinFolderCommand(Bin *bin, const QString &clipId, const QString &oldParentId, const QString &newParentId, QUndoCommand *parent = Q_NULLPTR);
explicit MoveBinFolderCommand(Bin *bin, const QString &clipId, const QString &oldParentId, const QString &newParentId, QUndoCommand *parent = nullptr);
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
......@@ -69,7 +69,7 @@ private:
class RenameBinFolderCommand : public QUndoCommand
{
public:
explicit RenameBinFolderCommand(Bin *bin, const QString &folderId, const QString &newName, const QString &oldName, QUndoCommand *parent = Q_NULLPTR);
explicit RenameBinFolderCommand(Bin *bin, const QString &folderId, const QString &newName, const QString &oldName, QUndoCommand *parent = nullptr);
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
......@@ -82,7 +82,7 @@ private:
class AddBinEffectCommand : public QUndoCommand
{
public:
explicit AddBinEffectCommand(Bin *bin, const QString &clipId, QDomElement &effect, QUndoCommand *parent = Q_NULLPTR);
explicit AddBinEffectCommand(Bin *bin, const QString &clipId, QDomElement &effect, QUndoCommand *parent = nullptr);
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
......@@ -94,7 +94,7 @@ private:
class RemoveBinEffectCommand : public QUndoCommand
{
public:
explicit RemoveBinEffectCommand(Bin *bin, const QString &clipId, QDomElement &effect, QUndoCommand *parent = Q_NULLPTR);
explicit RemoveBinEffectCommand(Bin *bin, const QString &clipId, QDomElement &effect, QUndoCommand *parent = nullptr);
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
......@@ -106,7 +106,7 @@ private:
class UpdateBinEffectCommand : public QUndoCommand
{
public:
explicit UpdateBinEffectCommand(Bin *bin, const QString &clipId, QDomElement &oldEffect, QDomElement &newEffect, int ix, QUndoCommand *parent = Q_NULLPTR);
explicit UpdateBinEffectCommand(Bin *bin, const QString &clipId, QDomElement &oldEffect, QDomElement &newEffect, int ix, QUndoCommand *parent = nullptr);
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
......@@ -121,7 +121,7 @@ private:
class ChangeMasterEffectStateCommand : public QUndoCommand
{
public:
ChangeMasterEffectStateCommand(Bin *bin, const QString &clipId, const QList<int> &effectIndexes, bool disable, QUndoCommand *parent = Q_NULLPTR);
ChangeMasterEffectStateCommand(Bin *bin, const QString &clipId, const QList<int> &effectIndexes, bool disable, QUndoCommand *parent = nullptr);
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
......@@ -135,7 +135,7 @@ private:
class MoveBinEffectCommand : public QUndoCommand
{
public:
explicit MoveBinEffectCommand(Bin *bin, const QString &clipId, const QList<int> &oldPos, int newPos, QUndoCommand *parent = Q_NULLPTR);
explicit MoveBinEffectCommand(Bin *bin, const QString &clipId, const QList<int> &oldPos, int newPos, QUndoCommand *parent = nullptr);
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
......@@ -148,7 +148,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 = Q_NULLPTR);
explicit RenameBinSubClipCommand(Bin *bin, const QString &clipId, const QString &newName, const QString &oldName, int in, int out, QUndoCommand *parent = nullptr);
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
......@@ -163,7 +163,7 @@ private:
class AddBinClipCutCommand : public QUndoCommand
{
public:
explicit AddBinClipCutCommand(Bin *bin, const QString &clipId, int in, int out, bool add, QUndoCommand *parent = Q_NULLPTR);
explicit AddBinClipCutCommand(Bin *bin, const QString &clipId, int in, int out, bool add, QUndoCommand *parent = nullptr);
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
......@@ -177,7 +177,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 = Q_NULLPTR);
EditClipCommand(Bin *bin, const QString &id, const QMap<QString, QString> &oldparams, const QMap<QString, QString> &newparams, bool doIt, QUndoCommand *parent = nullptr);
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
......@@ -196,7 +196,7 @@ private:
class AddClipCommand : public QUndoCommand
{
public:
AddClipCommand(Bin *bin, const QDomElement &xml, const QString &id, bool doIt, QUndoCommand *parent = Q_NULLPTR);
AddClipCommand(Bin *bin, const QDomElement &xml, const QString &id, bool doIt, QUndoCommand *parent = nullptr);
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
......
......@@ -48,7 +48,7 @@ class Generators : public QDialog
Q_OBJECT
public:
explicit Generators(Monitor *monitor, const QString &path, QWidget *parent = Q_NULLPTR);
explicit Generators(Monitor *monitor, const QString &path, QWidget *parent = nullptr);
virtual ~Generators();
static void getGenerators(const QStringList &producers, QMenu *menu);
......
......@@ -71,14 +71,14 @@ public:
/** @brief Returns a unique hash identifier used to store clip thumbnails. */
//virtual void hash() = 0;
/** @brief Returns this if @param id matches the clip's id or Q_NULLPTR otherwise. */
/** @brief Returns this if @param id matches the clip's id or nullptr otherwise. */
ProjectClip *clip(const QString &id) Q_DECL_OVERRIDE;
ProjectFolder *folder(const QString &id) Q_DECL_OVERRIDE;
ProjectSubClip *getSubClip(int in, int out);
/** @brief Returns this if @param ix matches the clip's index or Q_NULLPTR otherwise. */
/** @brief Returns this if @param ix matches the clip's index or nullptr otherwise. */
ProjectClip *clipAt(int ix) Q_DECL_OVERRIDE;
/** @brief Recursively disable/enable bin effects. */
......
......@@ -37,7 +37,7 @@ class ProjectSortProxyModel : public QSortFilterProxyModel
Q_OBJECT
public:
explicit ProjectSortProxyModel(QObject *parent = Q_NULLPTR);
explicit ProjectSortProxyModel(QObject *parent = nullptr);
QItemSelectionModel *selectionModel();
public slots:
......
......@@ -31,7 +31,7 @@ class ManageCapturesDialog : public QDialog
Q_OBJECT
public:
explicit ManageCapturesDialog(const QList<QUrl> &files, QWidget *parent = Q_NULLPTR);
explicit ManageCapturesDialog(const QList<QUrl> &files, QWidget *parent = nullptr);
~ManageCapturesDialog();
QList<QUrl> importFiles() const;
......
......@@ -54,7 +54,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 = Q_NULLPTR);
explicit MltDeviceCapture(QString profile, /*VideoSurface *surface,*/ QWidget *parent = nullptr);
/** @brief Destroy the MLT Renderer. */
~MltDeviceCapture();
......
......@@ -40,7 +40,7 @@ namespace ClipCreationDialog
QStringList getExtensions();
void createColorClip(KdenliveDoc *doc, const QStringList &groupInfo, Bin *bin);
void createQTextClip(KdenliveDoc *doc, const QStringList &groupInfo, Bin *bin, ProjectClip *clip = Q_NULLPTR);
void createQTextClip(KdenliveDoc *doc, const QStringList &groupInfo, Bin *bin, ProjectClip *clip = nullptr);
void createClipFromXml(KdenliveDoc *doc, QDomElement &xml, const QStringList &groupInfo, Bin *bin);
void createSlideshowClip(KdenliveDoc *doc, const QStringList &groupInfo, Bin *bin);
void createTitleClip(KdenliveDoc *doc, const QStringList &groupInfo, const QString &templatePath, Bin *bin);
......
......@@ -30,7 +30,7 @@ class EncodingProfilesDialog : public QDialog, Ui::ManageEncodingProfile_UI
Q_OBJECT
public:
explicit EncodingProfilesDialog(int profileType, QWidget *parent = Q_NULLPTR);
explicit EncodingProfilesDialog(int profileType, QWidget *parent = nullptr);
~EncodingProfilesDialog();
private slots:
......
......@@ -40,7 +40,7 @@ class KdenliveSettingsDialog : public KConfigDialog
Q_OBJECT
public:
KdenliveSettingsDialog(const QMap<QString, QString> &mappable_actions, bool gpuAllowed, QWidget *parent = Q_NULLPTR);
KdenliveSettingsDialog(const QMap<QString, QString> &mappable_actions, bool gpuAllowed, QWidget *parent = nullptr);
~KdenliveSettingsDialog();
void showPage(int page, int option);
void checkProfile();
......
......@@ -31,9 +31,9 @@ class ProfilesDialog : public QDialog
Q_OBJECT
public:
explicit ProfilesDialog(const QString &profileDescription = QString(), QWidget *parent = Q_NULLPTR);
explicit ProfilesDialog(const QString &profileDescription = QString(), QWidget *parent = nullptr);
/** @brief Using this constructor, the dialog only allows editing one profile. */
explicit ProfilesDialog(const QString &profilePath, bool, QWidget *parent = Q_NULLPTR);
explicit ProfilesDialog(const QString &profilePath, bool, QWidget *parent = 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 = Q_NULLPTR);
explicit RenderWidget(const QString &projectfolder, bool enableProxy, const MltVideoProfile &profile, QWidget *parent = nullptr);
virtual ~RenderWidget();
void setGuides(const QMap<double, QString> &guidesData, double duration);
void focusFirstVisibleItem(const QString &profile = QString());
......
......@@ -29,7 +29,7 @@ class TitleTemplateDialog : public QDialog
Q_OBJECT
public:
explicit TitleTemplateDialog(const QString &folder, QWidget *parent = Q_NULLPTR);
explicit TitleTemplateDialog(const QString &folder, QWidget *parent = nullptr);
QString selectedTemplate() const;
QString selectedText() const;
......
......@@ -35,7 +35,7 @@ class KMessageWidget;
class MyWizardPage : public QWizardPage
{
public:
explicit MyWizardPage(QWidget *parent = Q_NULLPTR);
explicit MyWizardPage(QWidget *parent = nullptr);
void setComplete(bool complete);
bool isComplete() const Q_DECL_OVERRIDE;
bool m_isComplete;
......@@ -45,7 +45,7 @@ class Wizard : public QWizard
{
Q_OBJECT
public:
explicit Wizard(bool autoClose, QWidget *parent = Q_NULLPTR);
explicit Wizard(bool autoClose, QWidget *parent = nullptr);
void installExtraMimes(const QString &baseName, const QStringList &globs);
void runUpdateMimeDatabase();
void adjustSettings();
......
......@@ -65,7 +65,7 @@ class DocUndoStack: public QUndoStack
{
Q_OBJECT
public:
explicit DocUndoStack(QUndoGroup *parent = Q_NULLPTR);
explicit DocUndoStack(QUndoGroup *parent = nullptr);
void push(QUndoCommand *cmd);
signals:
void invalidate();
......@@ -76,7 +76,7 @@ class KdenliveDoc: public QObject
Q_OBJECT
public:
KdenliveDoc(const QUrl &url, const QString &projectFolder, QUndoGroup *undoGroup, const QString &profileName, const QMap<QString, QString> &properties, const QMap<QString, QString> &metadata, const QPoint &tracks, Render *render, NotesPlugin *notes, bool *openBackup, MainWindow *parent = Q_NULLPTR);
KdenliveDoc(const QUrl &url, const QString &projectFolder, QUndoGroup *undoGroup, const QString &profileName, const QMap<QString, QString> &properties, const QMap<QString, QString> &metadata, const QPoint &tracks, Render *render, NotesPlugin *notes, bool *openBackup, MainWindow *parent = nullptr);
~KdenliveDoc();
QDomNodeList producersList();
double fps() const;
......@@ -229,7 +229,7 @@ public slots:
* Emits docModified conected to MainWindow::slotUpdateDocumentState \n
* @param mod (optional) true if the document has to be saved */
void setModified(bool mod = true);
void slotProxyCurrentItem(bool doProxy, QList<ProjectClip *> clipList = QList<ProjectClip *>(), bool force = false, QUndoCommand *masterCommand = Q_NULLPTR);
void slotProxyCurrentItem(bool doProxy, QList<ProjectClip *> clipList = QList<ProjectClip *>(), bool force = false, QUndoCommand *masterCommand = nullptr);
/** @brief Saves the current project at the autosave location.
* @description The autosave files are in ~/.kde/data/stalefiles/kdenlive/ */
void slotAutoSave();
......
......@@ -37,7 +37,7 @@ class DvdWizard : public QWizard
{
Q_OBJECT
public:
explicit DvdWizard(MonitorManager *manager, const QString &url = QString(), QWidget *parent = Q_NULLPTR);
explicit DvdWizard(MonitorManager *manager, const QString &url = QString(), QWidget *parent = nullptr);
virtual ~DvdWizard();
void processSpumux();
......
......@@ -32,7 +32,7 @@ class DvdWizardChapters : public QWizardPage
Q_OBJECT
public:
explicit DvdWizardChapters(MonitorManager *manager, DVDFORMAT format, QWidget *parent = Q_NULLPTR);
explicit DvdWizardChapters(MonitorManager *manager, DVDFORMAT format, QWidget *parent = nullptr);
virtual ~DvdWizardChapters();
void changeProfile(DVDFORMAT format);
void setPal(bool isPal);
......
......@@ -36,7 +36,7 @@ class DvdScene : public QGraphicsScene
{
Q_OBJECT
public:
explicit DvdScene(QObject *parent = Q_NULLPTR);
explicit DvdScene(QObject *parent = nullptr);
void setProfile(int width, int height);
int gridSize() const;
void setGridSize(int gridSize);
......@@ -55,7 +55,7 @@ class DvdButtonUnderline : public QGraphicsRectItem
{
public:
explicit DvdButtonUnderline(const QRectF &rect, QGraphicsItem *parent = Q_NULLPTR) : QGraphicsRectItem(rect, parent) {}
explicit DvdButtonUnderline(const QRectF &rect, QGraphicsItem *parent = nullptr) : QGraphicsRectItem(rect, parent) {}
int type() const Q_DECL_OVERRIDE
{
......@@ -87,7 +87,7 @@ class DvdWizardMenu : public QWizardPage
Q_OBJECT
public:
explicit DvdWizardMenu(DVDFORMAT format, QWidget *parent = Q_NULLPTR);
explicit DvdWizardMenu(DVDFORMAT format, QWidget *parent = nullptr);
virtual ~DvdWizardMenu();
bool createMenu() const;
void createBackgroundImage(const QString &img1, bool letterbox);
......
......@@ -106,7 +106,7 @@ class DvdWizardVob : public QWizardPage
Q_OBJECT
public:
explicit DvdWizardVob(QWidget *parent = Q_NULLPTR);
explicit DvdWizardVob(QWidget *parent = nullptr);
virtual ~DvdWizardVob();
QStringList selectedUrls() const;
void setUrl(const QString &url);
......
......@@ -40,7 +40,7 @@ class TreeEventEater : public QObject
{
Q_OBJECT
public:
explicit TreeEventEater(QObject *parent = Q_NULLPTR);
explicit TreeEventEater(QObject *parent = nullptr);
protected:
bool eventFilter(QObject *obj, QEvent *event) Q_DECL_OVERRIDE;
......@@ -53,7 +53,7 @@ class MyTreeWidgetSearchLine : public KTreeWidgetSearchLine
{
Q_OBJECT
public:
explicit MyTreeWidgetSearchLine(QWidget *parent = Q_NULLPTR);
explicit MyTreeWidgetSearchLine(QWidget *parent = nullptr);
protected:
bool itemMatches(const QTreeWidgetItem *item, const QString &pattern) const Q_DECL_OVERRIDE;
......@@ -70,7 +70,7 @@ class MyDropButton : public QToolButton
Q_OBJECT
public:
explicit MyDropButton(QWidget *parent = Q_NULLPTR) : QToolButton(parent)
explicit MyDropButton(QWidget *parent = nullptr) : QToolButton(parent)
{
setAcceptDrops(true);
setAutoExclusive(true);
......@@ -115,7 +115,7 @@ public:
TransitionMode = 1
};
explicit EffectsListView(LISTMODE mode = EffectMode, QWidget *parent = Q_NULLPTR);
explicit EffectsListView(LISTMODE mode = EffectMode, QWidget *parent = nullptr);
/** @brief Re-initializes the list of effects. */
void reloadEffectList(QMenu *effectsMenu, KActionCategory *effectActions);
......
......@@ -35,7 +35,7 @@ public:
static const int TypeRole = Qt::UserRole;
static const int IdRole = TypeRole + 1;
explicit EffectsListWidget(QWidget *parent = Q_NULLPTR);
explicit EffectsListWidget(QWidget *parent = nullptr);
virtual ~EffectsListWidget();
const QDomElement currentEffect() const;
QString currentInfo() const;
......
......@@ -30,7 +30,7 @@ class AbstractCollapsibleWidget : public QWidget, public Ui::CollapsibleWidget_U
Q_OBJECT
public:
explicit AbstractCollapsibleWidget(QWidget *parent = Q_NULLPTR);
explicit AbstractCollapsibleWidget(QWidget *parent = nullptr);
virtual void setActive(bool activate) = 0;
virtual bool isGroup() const = 0;
......
......@@ -32,7 +32,7 @@ class AnimKeyframeRuler : public QWidget
{
Q_OBJECT
public:
explicit AnimKeyframeRuler(int min, int max, QWidget *parent = Q_NULLPTR);
explicit AnimKeyframeRuler(int min, int max, QWidget *parent = nullptr);
int position() const;
int frameLength;
void updateKeyframes(const QVector<int> &keyframes, const QVector<int> &types, int attachToEnd);
......
......@@ -42,7 +42,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 = Q_NULLPTR);
explicit CollapsibleEffect(const QDomElement &effect, const QDomElement &original_effect, const ItemInfo &info, EffectMetaInfo *metaInfo, bool canMoveUp, bool lastEffect, QWidget *parent = nullptr);
~CollapsibleEffect();
QLabel *title;
......
......@@ -33,7 +33,7 @@ class MyEditableLabel : public QLineEdit
{
Q_OBJECT
public:
explicit MyEditableLabel(QWidget *parent = Q_NULLPTR);
explicit MyEditableLabel(QWidget *parent = nullptr);
protected:
void mouseDoubleClickEvent(QMouseEvent *e) Q_DECL_OVERRIDE;
......@@ -50,7 +50,7 @@ class CollapsibleGroup : public AbstractCollapsibleWidget
Q_OBJECT
public:
CollapsibleGroup(int ix, bool firstGroup, bool lastGroup, const EffectInfo &info, QWidget *parent = Q_NULLPTR);
CollapsibleGroup(int ix, bool firstGroup, bool lastGroup, const EffectInfo &info, QWidget *parent = nullptr);
~CollapsibleGroup();
void updateTimecodeFormat();
void setActive(bool activate) Q_DECL_OVERRIDE;
......
......@@ -33,7 +33,7 @@ class CustomLabel : public QProgressBar
{
Q_OBJECT
public:
explicit CustomLabel(const QString &label, bool showSlider = true, int range = 1000, QWidget *parent = Q_NULLPTR);
explicit CustomLabel(const QString &label, bool showSlider = true, int range = 1000, QWidget *parent = nullptr);
void setProgressValue(double value);
void setStep(double step);
......@@ -83,7 +83,7 @@ public:
* @param suffix The suffix that will be displayed in the spinbox (for example '%')
* @param showSlider If disabled, user can still drag on the label but no progress bar is shown
*/
explicit DragValue(const QString &label, double defaultValue, int decimals, double min = 0, double max = 100, int id = -1, const QString &suffix = QString(), bool showSlider = true, QWidget *parent = Q_NULLPTR);
explicit DragValue(const QString &label, double defaultValue, int decimals, double min = 0, double max = 100, int id = -1, const QString &suffix = QString(), bool showSlider = true, QWidget *parent = nullptr);
virtual ~DragValue();
/** @brief Returns the precision = number of decimals */
......
......@@ -34,7 +34,7 @@ class EffectStackEdit : public QScrollArea
{
Q_OBJECT
public:
explicit EffectStackEdit(Monitor *monitor, QWidget *parent = Q_NULLPTR);
explicit EffectStackEdit(Monitor *monitor, QWidget *parent = nullptr);
~EffectStackEdit();
static QMap<QString, QImage> iconCache;
/** @brief Sets attribute @param name to @param value.
......
......@@ -42,7 +42,7 @@ class EffectStackView2 : public QWidget
Q_OBJECT
public:
explicit EffectStackView2(Monitor *projectMonitor, QWidget *parent = Q_NULLPTR);
explicit EffectStackView2(Monitor *projectMonitor, QWidget *parent = nullptr);
virtual ~EffectStackView2();
/** @brief Raises @param dock if a clip is loaded. */
......@@ -113,10 +113,10 @@ private:
/** @brief The track index of currently edited track. */
int m_trackindex;
/** @brief The effect currently being dragged, Q_NULLPTR if no drag happening. */
/** @brief The effect currently being dragged, nullptr if no drag happening. */
CollapsibleEffect *m_draggedEffect;
/** @brief The effect currently being dragged, Q_NULLPTR if no drag happening. */
/** @brief The effect currently being dragged, nullptr if no drag happening. */
CollapsibleGroup *m_draggedGroup;
/** @brief The current number of groups. */
......@@ -163,19 +163,19 @@ private:
public slots:
/** @brief Sets the clip whose effect list should be managed.
* @param c Clip whose effect list should be managed */
void slotClipItemSelected(ClipItem *c, Monitor *m = Q_NULLPTR, bool reloadStack = true);
void slotClipItemSelected(ClipItem *c, Monitor *m = nullptr, bool reloadStack = true);
/** @brief An effect parameter was changed, refresh effect stack if it was displaying it.
* @param c Clip controller whose effect list should be managed */
void slotRefreshMasterClipEffects(ClipController *c, Monitor *m);
/** @brief Display effects for the selected Bin clip.
* @param c Clip controller whose effect list should be managed */
void slotMasterClipItemSelected(ClipController *c, Monitor *m = Q_NULLPTR);
void slotMasterClipItemSelected(ClipController *c, Monitor *m = nullptr);
/** @brief Update the clip range (in-out points)
* @param c Clip whose effect list should be managed */
void slotClipItemUpdate();
void slotTrackItemSelected(int ix, const TrackInfo &info, Monitor *m = Q_NULLPTR);
void slotTrackItemSelected(int ix, const TrackInfo &info, Monitor *m = nullptr);
/** @brief Check if the mouse wheel events should be used for scrolling the widget view. */
void slotCheckWheelEventFilter();
......
......@@ -32,7 +32,7 @@ enum TITLETOOL { TITLE_SELECT = 0, TITLE_RECTANGLE = 1, TITLE_TEXT = 2, TITLE_IM
class MyQGraphicsEffect: public QGraphicsEffect
{
public:
explicit MyQGraphicsEffect(QObject *parent = Q_NULLPTR);
explicit MyQGraphicsEffect(QObject *parent = nullptr);
void setOffset(int xOffset, int yOffset, int blur);
void setShadow(const QImage &image);
protected:
......@@ -48,7 +48,7 @@ class MyTextItem: public QGraphicsTextItem
{
Q_OBJECT
public:
MyTextItem(const QString &, QGraphicsItem *parent = Q_NULLPTR);
MyTextItem(const QString &, QGraphicsItem *parent = nullptr);
void setAlignment(Qt::Alignment alignment);
/** @brief returns an extended bounding containing shadow */
QRectF boundingRect() const Q_DECL_OVERRIDE;
......@@ -84,7 +84,7 @@ public slots:
class MyRectItem: public QGraphicsRectItem
{
public:
explicit MyRectItem(QGraphicsItem *parent = Q_NULLPTR);
explicit MyRectItem(QGraphicsItem *parent = nullptr);
void setRect(const QRectF &rectangle);
protected:
QVariant itemChange(GraphicsItemChange change, const QVariant &value) Q_DECL_OVERRIDE;
......@@ -95,7 +95,7 @@ private:
class MyPixmapItem: public QGraphicsPixmapItem
{
public:
MyPixmapItem(const QPixmap &pixmap, QGraphicsItem *parent = Q_NULLPTR);
MyPixmapItem(const QPixmap &pixmap, QGraphicsItem *parent = nullptr);
protected:
QVariant itemChange(GraphicsItemChange change, const QVariant &value) Q_DECL_OVERRIDE;
};
......@@ -103,7 +103,7 @@ protected:
class MySvgItem: public QGraphicsSvgItem
{
public:
MySvgItem(const QString &fileName = QString(), QGraphicsItem *parent = Q_NULLPTR);
MySvgItem(const QString &fileName = QString(), QGraphicsItem *parent = nullptr);
protected:
QVariant itemChange(GraphicsItemChange change, const QVariant &value) Q_DECL_OVERRIDE;
};
......@@ -112,7 +112,7 @@ class GraphicsSceneRectMove: public QGraphicsScene
{
Q_OBJECT
public:
explicit GraphicsSceneRectMove(QObject *parent = Q_NULLPTR);
explicit GraphicsSceneRectMove(QObject *parent = nullptr);
void setSelectedItem(QGraphicsItem *item);
void setScale(double s);
void setZoom(double s);
......
......@@ -30,7 +30,7 @@ class KeyframeHelper : public QWidget
{