Commit 48f6e748 authored by Laurent Montel's avatar Laurent Montel

Add Q_DECL_OVERRIDE

parent e5635999
......@@ -29,7 +29,7 @@
class SleepThread : QThread
{
public:
virtual void run() {}
void run() Q_DECL_OVERRIDE {}
static void msleep(unsigned long msecs) {
QThread::msleep(msecs);
}
......
......@@ -73,7 +73,7 @@ public:
explicit MyListView(QWidget *parent = Q_NULLPTR);
protected:
void focusInEvent(QFocusEvent *event);
void focusInEvent(QFocusEvent *event) Q_DECL_OVERRIDE;
signals:
void focusView();
};
......@@ -86,14 +86,14 @@ public:
explicit MyTreeView(QWidget *parent = Q_NULLPTR);
void setEditing(bool edit);
protected:
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent * event);
void focusInEvent(QFocusEvent *event);
void keyPressEvent(QKeyEvent* event);
void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent * event) Q_DECL_OVERRIDE;
void focusInEvent(QFocusEvent *event) Q_DECL_OVERRIDE;
void keyPressEvent(QKeyEvent* event) Q_DECL_OVERRIDE;
protected slots:
void closeEditor(QWidget *editor, QAbstractItemDelegate::EndEditHint hint);
void editorDestroyed(QObject *editor);
void closeEditor(QWidget *editor, QAbstractItemDelegate::EndEditHint hint) Q_DECL_OVERRIDE;
void editorDestroyed(QObject *editor) Q_DECL_OVERRIDE;
private:
QPoint m_startPos;
......@@ -113,7 +113,7 @@ public:
BinMessageWidget(const QString &text, QWidget *parent = Q_NULLPTR);
protected:
bool event(QEvent* ev);
bool event(QEvent* ev) Q_DECL_OVERRIDE;
signals:
void messageClosing();
......@@ -158,7 +158,7 @@ public:
{
}
void updateEditorGeometry(QWidget * editor, const QStyleOptionViewItem & option, const QModelIndex & index) const
void updateEditorGeometry(QWidget * editor, const QStyleOptionViewItem & option, const QModelIndex & index) const Q_DECL_OVERRIDE
{
if (index.column() != 0) {
return QStyledItemDelegate::updateEditorGeometry(editor, option, index);
......@@ -186,7 +186,7 @@ public:
editor->setGeometry( r2 );
}
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE
{
QSize hint = QStyledItemDelegate::sizeHint(option, index);
QString text = index.data(AbstractProjectItem::DataName).toString();
......@@ -217,7 +217,7 @@ public:
return QSize(qMax(textW, iconSize.width()) + 4, option.fontMetrics.lineSpacing() * 2 + 4);
}
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const {
void paint(QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index) const Q_DECL_OVERRIDE {
if (index.column() == 0 && !index.data().isNull()) {
QRect r1 = option.rect;
painter->save();
......@@ -341,7 +341,7 @@ public:
explicit LineEventEater(QObject *parent = Q_NULLPTR);
protected:
bool eventFilter(QObject *obj, QEvent *event);
bool eventFilter(QObject *obj, QEvent *event) Q_DECL_OVERRIDE;
signals:
void clearSearchLine();
......@@ -657,8 +657,8 @@ public slots:
void droppedUrls(QList <QUrl> urls, const QStringList &folderInfo = QStringList());
protected:
void contextMenuEvent(QContextMenuEvent *event);
bool eventFilter(QObject *obj, QEvent *event);
void contextMenuEvent(QContextMenuEvent *event) Q_DECL_OVERRIDE;
bool eventFilter(QObject *obj, QEvent *event) Q_DECL_OVERRIDE;
private:
ProjectItemModel *m_itemModel;
......
......@@ -32,8 +32,8 @@ 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);
void undo();
void redo();
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
Bin *m_bin;
QString m_id;
......@@ -47,8 +47,8 @@ class MoveBinClipCommand : public QUndoCommand
{
public:
explicit MoveBinClipCommand(Bin *bin, const QString &clipId, const QString &oldParentId, const QString &newParentId, QUndoCommand *parent = Q_NULLPTR);
void undo();
void redo();
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
Bin *m_bin;
QString m_clipId;
......@@ -60,8 +60,8 @@ class MoveBinFolderCommand : public QUndoCommand
{
public:
explicit MoveBinFolderCommand(Bin *bin, const QString &clipId, const QString &oldParentId, const QString &newParentId, QUndoCommand *parent = Q_NULLPTR);
void undo();
void redo();
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
Bin *m_bin;
QString m_clipId;
......@@ -73,8 +73,8 @@ class RenameBinFolderCommand : public QUndoCommand
{
public:
explicit RenameBinFolderCommand(Bin *bin, const QString &folderId, const QString &newName, const QString &oldName, QUndoCommand *parent = Q_NULLPTR);
void undo();
void redo();
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
Bin *m_bin;
QString m_clipId;
......@@ -86,8 +86,8 @@ class AddBinEffectCommand : public QUndoCommand
{
public:
explicit AddBinEffectCommand(Bin *bin, const QString &clipId, QDomElement &effect, QUndoCommand *parent = Q_NULLPTR);
void undo();
void redo();
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
Bin *m_bin;
QString m_clipId;
......@@ -98,8 +98,8 @@ class RemoveBinEffectCommand : public QUndoCommand
{
public:
explicit RemoveBinEffectCommand(Bin *bin, const QString &clipId, QDomElement &effect, QUndoCommand *parent = Q_NULLPTR);
void undo();
void redo();
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
Bin *m_bin;
QString m_clipId;
......@@ -110,8 +110,8 @@ class UpdateBinEffectCommand : public QUndoCommand
{
public:
explicit UpdateBinEffectCommand(Bin *bin, const QString &clipId, QDomElement &oldEffect, QDomElement &newEffect, int ix, QUndoCommand *parent = Q_NULLPTR);
void undo();
void redo();
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
Bin *m_bin;
QString m_clipId;
......@@ -125,8 +125,8 @@ class ChangeMasterEffectStateCommand : public QUndoCommand
{
public:
ChangeMasterEffectStateCommand(Bin *bin, const QString &clipId, const QList <int>& effectIndexes, bool disable, QUndoCommand *parent = Q_NULLPTR);
void undo();
void redo();
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
Bin *m_bin;
QString m_clipId;
......@@ -139,8 +139,8 @@ class MoveBinEffectCommand : public QUndoCommand
{
public:
explicit MoveBinEffectCommand(Bin *bin, const QString &clipId, QList <int> oldPos, int newPos, QUndoCommand *parent = Q_NULLPTR);
void undo();
void redo();
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
Bin *m_bin;
QString m_clipId;
......@@ -152,8 +152,8 @@ 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);
void undo();
void redo();
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
Bin *m_bin;
QString m_clipId;
......@@ -167,8 +167,8 @@ class AddBinClipCutCommand : public QUndoCommand
{
public:
explicit AddBinClipCutCommand(Bin *bin, const QString &clipId, int in, int out, bool add, QUndoCommand *parent = Q_NULLPTR);
void undo();
void redo();
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
Bin *m_bin;
QString m_clipId;
......@@ -181,8 +181,8 @@ 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);
void undo();
void redo();
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
Bin *m_bin;
QMap <QString, QString> m_oldparams;
......@@ -200,8 +200,8 @@ class AddClipCommand : public QUndoCommand
{
public:
AddClipCommand(Bin *bin, const QDomElement &xml, const QString &id, bool doIt, QUndoCommand * parent = Q_NULLPTR);
void undo();
void redo();
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
private:
Bin *m_bin;
QDomElement m_xml;
......
......@@ -54,7 +54,7 @@ public:
static QPair <QString, QString> parseGenerator(const QString &path, const QStringList &producers);
QUrl getSavedClip(QString path = QString());
virtual void resizeEvent(QResizeEvent * event);
void resizeEvent(QResizeEvent * event) Q_DECL_OVERRIDE;
private:
Mlt::Producer *m_producer;
......
......@@ -73,17 +73,17 @@ public:
//virtual void hash() = 0;
/** @brief Returns this if @param id matches the clip's id or Q_NULLPTR otherwise. */
ProjectClip *clip(const QString &id);
ProjectClip *clip(const QString &id) Q_DECL_OVERRIDE;
ProjectFolder* folder(const QString &id);
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. */
ProjectClip* clipAt(int ix);
ProjectClip* clipAt(int ix) Q_DECL_OVERRIDE;
/** @brief Recursively disable/enable bin effects. */
void disableEffects(bool disable);
void disableEffects(bool disable) Q_DECL_OVERRIDE;
/** @brief Returns the clip type as defined in definitions.h */
ClipType clipType() const;
......@@ -91,7 +91,7 @@ public:
/** @brief Check if clip has a parent folder with id id */
bool hasParent(const QString &id) const;
ClipPropertiesController *buildProperties(QWidget *parent);
QPoint zone() const;
QPoint zone() const Q_DECL_OVERRIDE;
/** @brief Returns true if we want to add an affine transition in timeline when dropping this clip. */
bool isTransparent() const;
......@@ -112,13 +112,13 @@ public:
double getOriginalFps() const;
/** @brief Calls AbstractProjectItem::setCurrent and sets the bin monitor to use the clip's producer. */
virtual void setCurrent(bool current, bool notify = true);
void setCurrent(bool current, bool notify = true) Q_DECL_OVERRIDE;
virtual bool rename(const QString &name, int column);
bool rename(const QString &name, int column) Q_DECL_OVERRIDE;
virtual QDomElement toXml(QDomDocument &document, bool includeMeta = false);
QDomElement toXml(QDomDocument &document, bool includeMeta = false) Q_DECL_OVERRIDE;
QVariant data(DataType type) const;
QVariant data(DataType type) const Q_DECL_OVERRIDE;
/** @brief Sets thumbnail for this clip. */
void setThumbnail(QImage);
......@@ -146,7 +146,7 @@ public:
/** @brief Get an XML property from MLT produced xml. */
static QString getXmlProperty(const QDomElement &producer, const QString &propertyName, const QString &defaultValue = QString());
virtual QString getToolTip() const;
QString getToolTip() const Q_DECL_OVERRIDE;
/** @brief The clip hash created from the clip's resource. */
const QString hash();
......
......@@ -55,33 +55,33 @@ public:
* @brief Returns the clip if it is a child (also indirect).
* @param id id of the child which should be returned
*/
ProjectClip *clip(const QString &id);
ProjectClip *clip(const QString &id) Q_DECL_OVERRIDE;
/**
* @brief Returns itself or a child folder that matches the requested id.
* @param id id of the child which should be returned
*/
ProjectFolder* folder(const QString &id);
ProjectFolder* folder(const QString &id) Q_DECL_OVERRIDE;
/** @brief Recursively disable/enable bin effects. */
void disableEffects(bool disable);
void disableEffects(bool disable) Q_DECL_OVERRIDE;
/** @brief Calls AbstractProjectItem::setCurrent and blank the bin monitor. */
virtual void setCurrent(bool current, bool notify = true);
void setCurrent(bool current, bool notify = true) Q_DECL_OVERRIDE;
/**
* @brief Returns the clip if it is a child (also indirect).
* @param index index of the child which should be returned
*/
ProjectClip* clipAt(int index);
ProjectClip* clipAt(int index) Q_DECL_OVERRIDE;
/** @brief Returns a pointer to the bin model this folder belongs to. */
Bin *bin();
Bin *bin() Q_DECL_OVERRIDE;
/** @brief Returns an xml description of the folder. */
QDomElement toXml(QDomDocument &document, bool includeMeta = false);
virtual QString getToolTip() const;
virtual bool rename(const QString &name, int column);
QDomElement toXml(QDomDocument &document, bool includeMeta = false) Q_DECL_OVERRIDE;
QString getToolTip() const Q_DECL_OVERRIDE;
bool rename(const QString &name, int column) Q_DECL_OVERRIDE;
/** @brief Returns a list of all children and sub-children clips. */
QList <ProjectClip *> childClips();
......
......@@ -52,33 +52,33 @@ public:
* @brief Returns the clip if it is a child (also indirect).
* @param id id of the child which should be returned
*/
ProjectClip *clip(const QString &id);
ProjectClip *clip(const QString &id) Q_DECL_OVERRIDE;
/**
* @brief Returns itself or a child folder that matches the requested id.
* @param id id of the child which should be returned
*/
ProjectFolder* folder(const QString &id);
ProjectFolder* folder(const QString &id) Q_DECL_OVERRIDE;
/** @brief Calls AbstractProjectItem::setCurrent and blank the bin monitor. */
virtual void setCurrent(bool current, bool notify = true);
void setCurrent(bool current, bool notify = true) Q_DECL_OVERRIDE;
/**
* @brief Returns the clip if it is a child (also indirect).
* @param index index of the child which should be returned
*/
ProjectClip* clipAt(int index);
ProjectClip* clipAt(int index) Q_DECL_OVERRIDE;
/** @brief Recursively disable/enable bin effects. */
void disableEffects(bool disable);
void disableEffects(bool disable) Q_DECL_OVERRIDE;
/** @brief Returns a pointer to the bin model this folder belongs to. */
Bin *bin();
Bin *bin() Q_DECL_OVERRIDE;
/** @brief Returns an xml description of the folder. */
QDomElement toXml(QDomDocument &document, bool includeMeta = false);
virtual QString getToolTip() const;
virtual bool rename(const QString &name, int column);
QDomElement toXml(QDomDocument &document, bool includeMeta = false) Q_DECL_OVERRIDE;
QString getToolTip() const Q_DECL_OVERRIDE;
bool rename(const QString &name, int column) Q_DECL_OVERRIDE;
private:
Bin *m_bin;
......
......@@ -44,25 +44,25 @@ public:
~ProjectItemModel();
/** @brief Returns item data depending on role requested */
QVariant data(const QModelIndex &index, int role) const;
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE;
/** @brief Called when user edits an item */
bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole);
bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole) Q_DECL_OVERRIDE;
/** @brief Allow selection and drag & drop */
Qt::ItemFlags flags(const QModelIndex &index) const;
Qt::ItemFlags flags(const QModelIndex &index) const Q_DECL_OVERRIDE;
/** @brief Returns column names in case we want to use columns in QTreeView */
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
/** @brief Mandatory reimplementation from QAbstractItemModel */
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
/** @brief Mandatory reimplementation from QAbstractItemModel */
QModelIndex parent(const QModelIndex &index) const;
QModelIndex parent(const QModelIndex &index) const Q_DECL_OVERRIDE;
/** @brief Mandatory reimplementation from QAbstractItemModel */
int rowCount(const QModelIndex &parent = QModelIndex()) const;
int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
/** @brief Mandatory reimplementation from QAbstractItemModel */
int columnCount(const QModelIndex &parent = QModelIndex()) const;
int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
/** @brief Returns the mimetype used for Drag actions */
QStringList mimeTypes() const;
QStringList mimeTypes() const Q_DECL_OVERRIDE;
/** @brief Create data that will be used for Drag events */
QMimeData *mimeData(const QModelIndexList &indices) const;
QMimeData *mimeData(const QModelIndexList &indices) const Q_DECL_OVERRIDE;
/** @brief Set size for thumbnails */
void setIconSize(QSize s);
/** @brief Prepare some stuff before inserting a new item */
......@@ -73,8 +73,8 @@ public:
void onAboutToRemoveItem(AbstractProjectItem *item);
/** @brief Prepare some stuff after removing a new item */
void onItemRemoved(AbstractProjectItem *item);
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
Qt::DropActions supportedDropActions() const;
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) Q_DECL_OVERRIDE;
Qt::DropActions supportedDropActions() const Q_DECL_OVERRIDE;
public slots:
/** @brief An item in the list was modified, notify */
......
......@@ -53,9 +53,9 @@ private slots:
protected:
/** @brief Decide which items should be displayed depending on the search string */
// cppcheck-suppress unusedFunction
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const Q_DECL_OVERRIDE;
/** @brief Reimplemented to show folders first */
bool lessThan(const QModelIndex & left, const QModelIndex & right) const;
bool lessThan(const QModelIndex & left, const QModelIndex & right) const Q_DECL_OVERRIDE;
bool filterAcceptsRowItself(int source_row, const QModelIndex &source_parent) const;
bool hasAcceptedChildren(int source_row, const QModelIndex &source_parent) const;
......
......@@ -56,28 +56,28 @@ public:
ProjectSubClip(ProjectClip *parent, int in, int out, const QString &timecode, const QString &name = QString());
virtual ~ProjectSubClip();
ProjectClip *clip(const QString &id);
ProjectFolder* folder(const QString &id);
ProjectClip *clip(const QString &id) Q_DECL_OVERRIDE;
ProjectFolder* folder(const QString &id) Q_DECL_OVERRIDE;
ProjectSubClip* subClip(int in, int out);
ProjectClip *clipAt(int ix);
ProjectClip *clipAt(int ix) Q_DECL_OVERRIDE;
/** @brief Recursively disable/enable bin effects. */
void disableEffects(bool disable);
QDomElement toXml(QDomDocument &document, bool includeMeta = false);
void disableEffects(bool disable) Q_DECL_OVERRIDE;
QDomElement toXml(QDomDocument &document, bool includeMeta = false) Q_DECL_OVERRIDE;
/** @brief Returns the clip's duration. */
GenTime duration() const;
/** @brief Calls AbstractProjectItem::setCurrent and sets the bin monitor to use the clip's producer. */
virtual void setCurrent(bool current, bool notify = true);
void setCurrent(bool current, bool notify = true) Q_DECL_OVERRIDE;
/** @brief Sets thumbnail for this clip. */
void setThumbnail(QImage);
/** @brief Remove reference to this subclip in the master clip, to be done before a subclip is deleted. */
void discard();
QPoint zone() const;
virtual QString getToolTip() const;
virtual bool rename(const QString &name, int column);
QPoint zone() const Q_DECL_OVERRIDE;
QString getToolTip() const Q_DECL_OVERRIDE;
bool rename(const QString &name, int column) Q_DECL_OVERRIDE;
private:
ProjectClip *m_masterClip;
......
......@@ -64,7 +64,7 @@ Q_OBJECT public:
int doCapture;
/** @brief Someone needs us to send again a frame. */
void sendFrameUpdate() {}
void sendFrameUpdate() Q_DECL_OVERRIDE {}
void emitFrameUpdated(Mlt::Frame&);
void emitFrameNumber(double position);
......
......@@ -47,9 +47,9 @@ public:
void checkProfile();
protected slots:
void updateSettings();
void updateWidgets();
virtual bool hasChanged();
void updateSettings() Q_DECL_OVERRIDE;
void updateWidgets() Q_DECL_OVERRIDE;
bool hasChanged() Q_DECL_OVERRIDE;
private slots:
void slotCheckShuttle(int state = 0);
......
......@@ -83,7 +83,7 @@ public:
static MltVideoProfile getProfileFromPath(const QString &path, const QString &name);
protected:
virtual void closeEvent(QCloseEvent *event);
void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
private slots:
void slotUpdateDisplay(QString currentProfile = QString());
......@@ -94,8 +94,8 @@ private slots:
void slotProfileEdited();
/** @brief Make sure the profile's width is always a multiple of 8 */
void slotAdjustWidth();
virtual void accept();
virtual void reject();
void accept() Q_DECL_OVERRIDE;
void reject() Q_DECL_OVERRIDE;
private:
Ui::ProfilesDialog_UI m_view;
......
......@@ -42,7 +42,7 @@ public:
explicit RenderViewDelegate(QWidget *parent) : QStyledItemDelegate(parent) {}
void paint(QPainter *painter, const QStyleOptionViewItem &option,
const QModelIndex &index) const {
const QModelIndex &index) const Q_DECL_OVERRIDE {
if (index.column() == 1) {
painter->save();
QStyleOptionViewItem opt(option);
......@@ -144,8 +144,8 @@ public:
void errorMessage(RenderError type, const QString &message);
protected:
virtual QSize sizeHint() const;
virtual void keyPressEvent(QKeyEvent *e);
QSize sizeHint() const Q_DECL_OVERRIDE;
void keyPressEvent(QKeyEvent *e) Q_DECL_OVERRIDE;
public slots:
void slotExport(bool scriptExport, int zoneIn, int zoneOut,
......
......@@ -43,7 +43,7 @@ class MyWizardPage : public QWizardPage
public:
explicit MyWizardPage(QWidget *parent = Q_NULLPTR);
void setComplete(bool complete);
bool isComplete() const;
bool isComplete() const Q_DECL_OVERRIDE;
bool m_isComplete;
};
......
......@@ -47,8 +47,8 @@ private:
int m_height;
int m_gridSize;
protected:
void mouseReleaseEvent( QGraphicsSceneMouseEvent * mouseEvent );
void drawForeground(QPainter *painter, const QRectF &rect);
void mouseReleaseEvent( QGraphicsSceneMouseEvent * mouseEvent ) Q_DECL_OVERRIDE;
void drawForeground(QPainter *painter, const QRectF &rect) Q_DECL_OVERRIDE;
signals:
void sceneChanged();
};
......@@ -59,7 +59,7 @@ class DvdButtonUnderline : public QGraphicsRectItem
public:
explicit DvdButtonUnderline( const QRectF & rect, QGraphicsItem * parent = Q_NULLPTR ) : QGraphicsRectItem(rect, parent) {}
int type() const {
int type() const Q_DECL_OVERRIDE {
// Enable the use of qgraphicsitem_cast with this item.
return UserType + 2;
}
......@@ -73,14 +73,14 @@ public:
int target() const;
QString command() const;
bool backMenu() const;
int type() const;
int type() const Q_DECL_OVERRIDE;
void setBackMenu(bool back);
private:
int m_target;
QString m_command;
bool m_backToMenu;
protected:
virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value);
QVariant itemChange(GraphicsItemChange change, const QVariant &value) Q_DECL_OVERRIDE;
};
class DvdWizardMenu : public QWizardPage
......
......@@ -50,10 +50,10 @@ public:
explicit DvdTreeWidget(QWidget *parent);
protected:
void dragEnterEvent(QDragEnterEvent * event );
void dropEvent(QDropEvent * event );
void mouseDoubleClickEvent( QMouseEvent * );
void dragMoveEvent(QDragMoveEvent * event);
void dragEnterEvent(QDragEnterEvent * event ) Q_DECL_OVERRIDE;
void dropEvent(QDropEvent * event ) Q_DECL_OVERRIDE;
void mouseDoubleClickEvent( QMouseEvent * ) Q_DECL_OVERRIDE;
void dragMoveEvent(QDragMoveEvent * event) Q_DECL_OVERRIDE;
signals:
void addNewClip();
......@@ -67,7 +67,7 @@ public:
explicit DvdViewDelegate(QWidget *parent) : QStyledItemDelegate(parent) {}
void paint(QPainter *painter, const QStyleOptionViewItem &option,
const QModelIndex &index) const {
const QModelIndex &index) const Q_DECL_OVERRIDE {
if (index.column() == 0) {
painter->save();
QStyleOptionViewItem opt(option);
......@@ -122,7 +122,7 @@ public:
void setUseIntroMovie(bool use);
void updateChapters(const QMap<QString, QString> &chaptersdata);
static QString getDvdProfile(DVDFORMAT format);
bool isComplete() const;
bool isComplete() const Q_DECL_OVERRIDE;
private:
Ui::DvdWizardVob_UI m_view;
......
......@@ -40,8 +40,8 @@ public:
explicit EffectBasket(EffectsListView *effectList);
protected:
QMimeData *mimeData(const QList<QListWidgetItem *> list) const;
void showEvent(QShowEvent * event);
QMimeData *mimeData(const QList<QListWidgetItem *> list) const Q_DECL_OVERRIDE;
void showEvent(QShowEvent * event) Q_DECL_OVERRIDE;
private:
EffectsListView *m_effectList;
......
......@@ -46,7 +46,7 @@ public:
explicit TreeEventEater(QObject *parent = Q_NULLPTR);
protected:
bool eventFilter(QObject *obj, QEvent *event);
bool eventFilter(QObject *obj, QEvent *event) Q_DECL_OVERRIDE;
signals:
void clearSearchLine();
......@@ -59,7 +59,7 @@ public:
explicit MyTreeWidgetSearchLine(QWidget *parent = Q_NULLPTR);
protected:
bool itemMatches(const QTreeWidgetItem *item, const QString &pattern) const;
bool itemMatches(const QTreeWidgetItem *item, const QString &pattern) const Q_DECL_OVERRIDE;
};
......@@ -81,12 +81,12 @@ public:
setAutoRaise(true);
}
protected:
void dragEnterEvent(QDragEnterEvent * event) {
void dragEnterEvent(QDragEnterEvent * event) Q_DECL_OVERRIDE {
if (event->mimeData()->hasFormat(QStringLiteral("kdenlive/effectslist"))) {
event->accept();
}
}
void dropEvent(QDropEvent * event) {
void dropEvent(QDropEvent * event) Q_DECL_OVERRIDE {
const QString effects = QString::fromUtf8(event->mimeData()->data(QStringLiteral("kdenlive/effectslist")));
QDomDocument doc;
doc.setContent(effects, true);
......
......@@ -49,10 +49,10 @@ class EffectsListWidget : public QTreeWidget
void resetFavorites();