Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit af120150 authored by Nicolas Carion's avatar Nicolas Carion

Use override instead of Q_DECL_OVERRIDE

parent e8e12741
......@@ -28,7 +28,7 @@
class SleepThread : QThread
{
public:
void run() Q_DECL_OVERRIDE {}
void run() override {}
static void msleep(unsigned long msecs)
{
QThread::msleep(msecs);
......
......@@ -315,7 +315,7 @@ public:
{
}
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const override
{
if (index.column() != 0) {
return QStyledItemDelegate::updateEditorGeometry(editor, option, index);
......@@ -343,7 +343,7 @@ public:
editor->setGeometry(r2);
}
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override
{
QSize hint = QStyledItemDelegate::sizeHint(option, index);
QString text = index.data(AbstractProjectItem::DataName).toString();
......@@ -374,7 +374,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 Q_DECL_OVERRIDE
void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override
{
if (index.column() == 0 && !index.data().isNull()) {
QRect r1 = option.rect;
......
......@@ -78,7 +78,7 @@ public:
explicit MyListView(QWidget *parent = nullptr);
protected:
void focusInEvent(QFocusEvent *event) Q_DECL_OVERRIDE;
void focusInEvent(QFocusEvent *event) override;
signals:
void focusView();
};
......@@ -91,14 +91,14 @@ public:
explicit MyTreeView(QWidget *parent = nullptr);
void setEditing(bool edit);
protected:
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;
void mousePressEvent(QMouseEvent *event) override;
void mouseMoveEvent(QMouseEvent *event) override;
void focusInEvent(QFocusEvent *event) override;
void keyPressEvent(QKeyEvent *event) override;
protected slots:
void closeEditor(QWidget *editor, QAbstractItemDelegate::EndEditHint hint) Q_DECL_OVERRIDE;
void editorDestroyed(QObject *editor) Q_DECL_OVERRIDE;
void closeEditor(QWidget *editor, QAbstractItemDelegate::EndEditHint hint) override;
void editorDestroyed(QObject *editor) override;
private:
QPoint m_startPos;
......@@ -118,7 +118,7 @@ public:
BinMessageWidget(const QString &text, QWidget *parent = nullptr);
protected:
bool event(QEvent *ev) Q_DECL_OVERRIDE;
bool event(QEvent *ev) override;
signals:
void messageClosing();
......@@ -156,7 +156,7 @@ public:
explicit LineEventEater(QObject *parent = nullptr);
protected:
bool eventFilter(QObject *obj, QEvent *event) Q_DECL_OVERRIDE;
bool eventFilter(QObject *obj, QEvent *event) override;
signals:
void clearSearchLine();
......@@ -456,8 +456,8 @@ public slots:
void droppedUrls(const QList<QUrl> &urls, const QStringList &folderInfo = QStringList());
protected:
void contextMenuEvent(QContextMenuEvent *event) Q_DECL_OVERRIDE;
bool eventFilter(QObject *obj, QEvent *event) Q_DECL_OVERRIDE;
void contextMenuEvent(QContextMenuEvent *event) override;
bool eventFilter(QObject *obj, QEvent *event) override;
private:
ProjectItemModel *m_itemModel;
......
......@@ -30,8 +30,8 @@ class AddBinFolderCommand : public QUndoCommand
{
public:
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;
void undo() override;
void redo() override;
private:
Bin *m_bin;
QString m_id;
......@@ -44,8 +44,8 @@ class MoveBinClipCommand : public QUndoCommand
{
public:
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;
void undo() override;
void redo() override;
private:
Bin *m_bin;
QString m_clipId;
......@@ -57,8 +57,8 @@ class MoveBinFolderCommand : public QUndoCommand
{
public:
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;
void undo() override;
void redo() override;
private:
Bin *m_bin;
QString m_clipId;
......@@ -70,8 +70,8 @@ class RenameBinFolderCommand : public QUndoCommand
{
public:
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;
void undo() override;
void redo() override;
private:
Bin *m_bin;
QString m_clipId;
......@@ -84,8 +84,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 = nullptr);
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
void undo() override;
void redo() override;
private:
Bin *m_bin;
QString m_clipId;
......@@ -99,8 +99,8 @@ class AddBinClipCutCommand : public QUndoCommand
{
public:
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;
void undo() override;
void redo() override;
private:
Bin *m_bin;
QString m_clipId;
......@@ -113,8 +113,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 = nullptr);
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
void undo() override;
void redo() override;
private:
Bin *m_bin;
QMap<QString, QString> m_oldparams;
......@@ -132,8 +132,8 @@ class AddClipCommand : public QUndoCommand
{
public:
AddClipCommand(Bin *bin, const QDomElement &xml, const QString &id, bool doIt, QUndoCommand *parent = nullptr);
void undo() Q_DECL_OVERRIDE;
void redo() Q_DECL_OVERRIDE;
void undo() override;
void redo() override;
private:
Bin *m_bin;
QDomElement m_xml;
......
......@@ -55,7 +55,7 @@ public:
static QPair <QString, QString> parseGenerator(const QString &path, const QStringList &producers);
QUrl getSavedClip(QString path = QString());
void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
void resizeEvent(QResizeEvent *event) override;
private:
Mlt::Producer *m_producer;
......
......@@ -75,14 +75,14 @@ public:
//virtual void hash() = 0;
/** @brief Returns this if @param id matches the clip's id or nullptr otherwise. */
ProjectClip *clip(const QString &id) Q_DECL_OVERRIDE;
ProjectClip *clip(const QString &id) override;
ProjectFolder *folder(const QString &id) Q_DECL_OVERRIDE;
ProjectFolder *folder(const QString &id) override;
ProjectSubClip *getSubClip(int in, int out);
/** @brief Returns this if @param ix matches the clip's index or nullptr otherwise. */
ProjectClip *clipAt(int ix) Q_DECL_OVERRIDE;
ProjectClip *clipAt(int ix) override;
/** @brief Returns the clip type as defined in definitions.h */
ClipType clipType() const;
......@@ -90,7 +90,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 Q_DECL_OVERRIDE;
QPoint zone() const override;
/** @brief Returns true if we want to add an affine transition in timeline when dropping this clip. */
bool isTransparent() const;
......@@ -110,13 +110,13 @@ public:
double getOriginalFps() const;
/** @brief Calls AbstractProjectItem::setCurrent and sets the bin monitor to use the clip's producer. */
void setCurrent(bool current, bool notify = true) Q_DECL_OVERRIDE;
void setCurrent(bool current, bool notify = true) override;
bool rename(const QString &name, int column) Q_DECL_OVERRIDE;
bool rename(const QString &name, int column) override;
QDomElement toXml(QDomDocument &document, bool includeMeta = false) Q_DECL_OVERRIDE;
QDomElement toXml(QDomDocument &document, bool includeMeta = false) override;
//QVariant getData(DataType type) const Q_DECL_OVERRIDE;
//QVariant getData(DataType type) const override;
/** @brief Sets thumbnail for this clip. */
void setThumbnail(const QImage &);
......@@ -144,7 +144,7 @@ public:
/** @brief Get an XML property from MLT produced xml. */
static QString getXmlProperty(const QDomElement &producer, const QString &propertyName, const QString &defaultValue = QString());
QString getToolTip() const Q_DECL_OVERRIDE;
QString getToolTip() const override;
/** @brief The clip hash created from the clip's resource. */
const QString hash();
......
......@@ -54,30 +54,30 @@ 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) Q_DECL_OVERRIDE;
ProjectClip *clip(const QString &id) 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) Q_DECL_OVERRIDE;
ProjectFolder *folder(const QString &id) override;
/** @brief Recursively disable/enable bin effects. */
void disableEffects(bool disable) Q_DECL_OVERRIDE;
void disableEffects(bool disable) override;
/** @brief Calls AbstractProjectItem::setCurrent and blank the bin monitor. */
void setCurrent(bool current, bool notify = true) Q_DECL_OVERRIDE;
void setCurrent(bool current, bool notify = true) 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) Q_DECL_OVERRIDE;
ProjectClip *clipAt(int index) override;
/** @brief Returns an xml description of the folder. */
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;
QDomElement toXml(QDomDocument &document, bool includeMeta = false) override;
QString getToolTip() const override;
bool rename(const QString &name, int column) override;
/** @brief Returns a list of all children and sub-children clips. */
QList<ProjectClip *> childClips();
......
......@@ -49,30 +49,30 @@ 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) Q_DECL_OVERRIDE;
ProjectClip *clip(const QString &id) 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) Q_DECL_OVERRIDE;
ProjectFolder *folder(const QString &id) override;
/** @brief Calls AbstractProjectItem::setCurrent and blank the bin monitor. */
void setCurrent(bool current, bool notify = true) Q_DECL_OVERRIDE;
void setCurrent(bool current, bool notify = true) 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) Q_DECL_OVERRIDE;
ProjectClip *clipAt(int index) override;
/** @brief Recursively disable/enable bin effects. */
void disableEffects(bool disable) Q_DECL_OVERRIDE;
void disableEffects(bool disable) override;
/** @brief Returns an xml description of the folder. */
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;
QDomElement toXml(QDomDocument &document, bool includeMeta = false) override;
QString getToolTip() const override;
bool rename(const QString &name, int column) override;
private:
Bin *m_bin;
......
......@@ -65,23 +65,23 @@ public:
Bin *bin() const;
/** @brief Returns item data depending on role requested */
QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE;
QVariant data(const QModelIndex &index, int role) const override;
/** @brief Called when user edits an item */
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) Q_DECL_OVERRIDE;
bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole) override;
/** @brief Allow selection and drag & drop */
Qt::ItemFlags flags(const QModelIndex &index) const Q_DECL_OVERRIDE;
Qt::ItemFlags flags(const QModelIndex &index) const 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 Q_DECL_OVERRIDE;
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
/** @brief Mandatory reimplementation from QAbstractItemModel */
int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
/** @brief Returns the mimetype used for Drag actions */
QStringList mimeTypes() const Q_DECL_OVERRIDE;
QStringList mimeTypes() const override;
/** @brief Create data that will be used for Drag events */
QMimeData *mimeData(const QModelIndexList &indices) const Q_DECL_OVERRIDE;
QMimeData *mimeData(const QModelIndexList &indices) const override;
/** @brief Set size for thumbnails */
void setIconSize(QSize s);
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;
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override;
Qt::DropActions supportedDropActions() const 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 Q_DECL_OVERRIDE;
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
/** @brief Reimplemented to show folders first */
bool lessThan(const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE;
bool lessThan(const QModelIndex &left, const QModelIndex &right) const override;
bool filterAcceptsRowItself(int source_row, const QModelIndex &source_parent) const;
bool hasAcceptedChildren(int source_row, const QModelIndex &source_parent) const;
......
......@@ -52,28 +52,28 @@ public:
ProjectSubClip(ProjectClip *parent, ProjectItemModel* model, int in, int out, const QString &timecode, const QString &name = QString());
virtual ~ProjectSubClip();
ProjectClip *clip(const QString &id) Q_DECL_OVERRIDE;
ProjectFolder *folder(const QString &id) Q_DECL_OVERRIDE;
ProjectClip *clip(const QString &id) override;
ProjectFolder *folder(const QString &id) override;
ProjectSubClip *subClip(int in, int out);
ProjectClip *clipAt(int ix) Q_DECL_OVERRIDE;
ProjectClip *clipAt(int ix) override;
/** @brief Recursively disable/enable bin effects. */
void disableEffects(bool disable) Q_DECL_OVERRIDE;
QDomElement toXml(QDomDocument &document, bool includeMeta = false) Q_DECL_OVERRIDE;
void disableEffects(bool disable) override;
QDomElement toXml(QDomDocument &document, bool includeMeta = false) 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. */
void setCurrent(bool current, bool notify = true) Q_DECL_OVERRIDE;
void setCurrent(bool current, bool notify = true) override;
/** @brief Sets thumbnail for this clip. */
void setThumbnail(const QImage &);
/** @brief Remove reference to this subclip in the master clip, to be done before a subclip is deleted. */
void discard();
QPoint zone() const Q_DECL_OVERRIDE;
QString getToolTip() const Q_DECL_OVERRIDE;
bool rename(const QString &name, int column) Q_DECL_OVERRIDE;
QPoint zone() const override;
QString getToolTip() const override;
bool rename(const QString &name, int column) override;
private:
ProjectClip *m_masterClip;
......
......@@ -62,7 +62,7 @@ Q_OBJECT public:
int doCapture;
/** @brief Someone needs us to send again a frame. */
void sendFrameUpdate() Q_DECL_OVERRIDE {}
void sendFrameUpdate() override {}
void emitFrameUpdated(Mlt::Frame &);
void emitFrameNumber(double position);
......
......@@ -80,7 +80,7 @@ public:
static MltVideoProfile getProfileFromPath(const QString &path, const QString &name);
protected:
void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
void closeEvent(QCloseEvent *event) override;
private slots:
void slotUpdateDisplay(QString currentProfile = QString());
......@@ -91,8 +91,8 @@ private slots:
void slotProfileEdited();
/** @brief Make sure the profile's width is always a multiple of 8 */
void slotAdjustWidth();
void accept() Q_DECL_OVERRIDE;
void reject() Q_DECL_OVERRIDE;
void accept() override;
void reject() override;
private:
Ui::ProfilesDialog_UI m_view;
......
......@@ -40,7 +40,7 @@ public:
explicit RenderViewDelegate(QWidget *parent) : QStyledItemDelegate(parent) {}
void paint(QPainter *painter, const QStyleOptionViewItem &option,
const QModelIndex &index) const Q_DECL_OVERRIDE
const QModelIndex &index) const override
{
if (index.column() == 1) {
painter->save();
......@@ -144,8 +144,8 @@ public:
void errorMessage(RenderError type, const QString &message);
protected:
QSize sizeHint() const Q_DECL_OVERRIDE;
void keyPressEvent(QKeyEvent *e) Q_DECL_OVERRIDE;
QSize sizeHint() const override;
void keyPressEvent(QKeyEvent *e) override;
public slots:
void slotExport(bool scriptExport, int zoneIn, int zoneOut,
......
......@@ -37,7 +37,7 @@ class MyWizardPage : public QWizardPage
public:
explicit MyWizardPage(QWidget *parent = nullptr);
void setComplete(bool complete);
bool isComplete() const Q_DECL_OVERRIDE;
bool isComplete() const override;
bool m_isComplete;
};
......
......@@ -45,8 +45,8 @@ private:
int m_height;
int m_gridSize;
protected:
void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent) Q_DECL_OVERRIDE;
void drawForeground(QPainter *painter, const QRectF &rect) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QGraphicsSceneMouseEvent *mouseEvent) override;
void drawForeground(QPainter *painter, const QRectF &rect) override;
signals:
void sceneChanged();
};
......@@ -57,7 +57,7 @@ class DvdButtonUnderline : public QGraphicsRectItem
public:
explicit DvdButtonUnderline(const QRectF &rect, QGraphicsItem *parent = nullptr) : QGraphicsRectItem(rect, parent) {}
int type() const Q_DECL_OVERRIDE
int type() const override
{
// Enable the use of qgraphicsitem_cast with this item.
return UserType + 2;
......@@ -72,14 +72,14 @@ public:
int target() const;
QString command() const;
bool backMenu() const;
int type() const Q_DECL_OVERRIDE;
int type() const override;
void setBackMenu(bool back);
private:
int m_target;
QString m_command;
bool m_backToMenu;
protected:
QVariant itemChange(GraphicsItemChange change, const QVariant &value) Q_DECL_OVERRIDE;
QVariant itemChange(GraphicsItemChange change, const QVariant &value) override;
};
class DvdWizardMenu : public QWizardPage
......
......@@ -49,10 +49,10 @@ public:
explicit DvdTreeWidget(QWidget *parent);
protected:
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;
void dragEnterEvent(QDragEnterEvent *event) override;
void dropEvent(QDropEvent *event) override;
void mouseDoubleClickEvent(QMouseEvent *) override;
void dragMoveEvent(QDragMoveEvent *event) override;
signals:
void addNewClip();
......@@ -66,7 +66,7 @@ public:
explicit DvdViewDelegate(QWidget *parent) : QStyledItemDelegate(parent) {}
void paint(QPainter *painter, const QStyleOptionViewItem &option,
const QModelIndex &index) const Q_DECL_OVERRIDE
const QModelIndex &index) const override
{
if (index.column() == 0) {
painter->save();
......@@ -121,7 +121,7 @@ public:
void setUseIntroMovie(bool use);
void updateChapters(const QMap<QString, QString> &chaptersdata);
static QString getDvdProfile(DVDFORMAT format);
bool isComplete() const Q_DECL_OVERRIDE;
bool isComplete() const override;
private:
Ui::DvdWizardVob_UI m_view;
......
......@@ -39,8 +39,8 @@ public:
explicit EffectBasket(EffectsListView *effectList);
protected:
QMimeData *mimeData(const QList<QListWidgetItem *> list) const Q_DECL_OVERRIDE;
void showEvent(QShowEvent *event) Q_DECL_OVERRIDE;
QMimeData *mimeData(const QList<QListWidgetItem *> list) const override;
void showEvent(QShowEvent *event) override;
private:
EffectsListView *m_effectList;
......
......@@ -43,7 +43,7 @@ public:
explicit TreeEventEater(QObject *parent = nullptr);
protected:
bool eventFilter(QObject *obj, QEvent *event) Q_DECL_OVERRIDE;
bool eventFilter(QObject *obj, QEvent *event) override;
signals:
void clearSearchLine();
......@@ -56,7 +56,7 @@ public:
explicit MyTreeWidgetSearchLine(QWidget *parent = nullptr);
protected:
bool itemMatches(const QTreeWidgetItem *item, const QString &pattern) const Q_DECL_OVERRIDE;
bool itemMatches(const QTreeWidgetItem *item, const QString &pattern) const override;
};
/**
......@@ -78,13 +78,13 @@ public:
setAutoRaise(true);
}
protected:
void dragEnterEvent(QDragEnterEvent *event) Q_DECL_OVERRIDE {
void dragEnterEvent(QDragEnterEvent *event) override {
if (event->mimeData()->hasFormat(QStringLiteral("kdenlive/effectslist")))
{
event->accept();
}
}
void dropEvent(QDropEvent *event) Q_DECL_OVERRIDE {
void dropEvent(QDropEvent *event) override {
const QString effects = QString::fromUtf8(event->mimeData()->data(QStringLiteral("kdenlive/effectslist")));
QDomDocument doc;
doc.setContent(effects, true);
......
......@@ -48,10 +48,10 @@ public:
void resetFavorites();
protected:
void dragMoveEvent(QDragMoveEvent *event) Q_DECL_OVERRIDE;
void contextMenuEvent(QContextMenuEvent *event) Q_DECL_OVERRIDE;
QMimeData *mimeData(const QList<QTreeWidgetItem *> list) const Q_DECL_OVERRIDE;
void keyPressEvent(QKeyEvent *e) Q_DECL_OVERRIDE;
void dragMoveEvent(QDragMoveEvent *event) override;
void contextMenuEvent(QContextMenuEvent *event) override;
QMimeData *mimeData(const QList<QTreeWidgetItem *> list) const override;
void keyPressEvent(QKeyEvent *e) override;
private:
QMenu *m_menu;
......
......@@ -40,13 +40,13 @@ public:
int activeKeyframe() const;
protected:
void paintEvent(QPaintEvent * /*e*/) Q_DECL_OVERRIDE;
void wheelEvent(QWheelEvent *e) Q_DECL_OVERRIDE;
void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
void mouseMoveEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
void mouseReleaseEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
void mouseDoubleClickEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
void leaveEvent(QEvent *event) Q_DECL_OVERRIDE;
void paintEvent(QPaintEvent * /*e*/) override;
void wheelEvent(QWheelEvent *e) override;
void mousePressEvent(QMouseEvent *event) override;
void mouseMoveEvent(QMouseEvent *event) override;
void mouseReleaseEvent(QMouseEvent *event) override;
void mouseDoubleClickEvent(QMouseEvent *event) override;
void leaveEvent(QEvent *event) override;
private:
/** @brief Holds a list of frame positions for the keyframes. */
......
......@@ -48,9 +48,9 @@ public:
void setupWidget(const ItemInfo &info, EffectMetaInfo *metaInfo);
void updateTimecodeFormat();
void setActive(bool activate) Q_DECL_OVERRIDE;
void setActive(bool activate) override;
/** @brief Install event filter so that scrolling with mouse wheel does not change parameter value. */
bool eventFilter(QObject *o, QEvent *e) Q_DECL_OVERRIDE;
bool eventFilter(QObject *o, QEvent *e) override;