mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
Add missing Q_DECL_OVERRIDE
This commit is contained in:
parent
962f6d7160
commit
726515cfd4
|
@ -38,13 +38,13 @@ public:
|
|||
DolphinDockTitleBar(QWidget* parent = 0) : QWidget(parent) {}
|
||||
virtual ~DolphinDockTitleBar() {}
|
||||
|
||||
virtual QSize minimumSizeHint() const
|
||||
QSize minimumSizeHint() const Q_DECL_OVERRIDE
|
||||
{
|
||||
const int border = style()->pixelMetric(QStyle::PM_DockWidgetTitleBarButtonMargin);
|
||||
return QSize(border, border);
|
||||
}
|
||||
|
||||
virtual QSize sizeHint() const
|
||||
QSize sizeHint() const Q_DECL_OVERRIDE
|
||||
{
|
||||
return minimumSizeHint();
|
||||
}
|
||||
|
|
|
@ -48,7 +48,7 @@ class KItemListContainerViewport : public QGraphicsView
|
|||
public:
|
||||
KItemListContainerViewport(QGraphicsScene* scene, QWidget* parent);
|
||||
protected:
|
||||
virtual void wheelEvent(QWheelEvent* event);
|
||||
void wheelEvent(QWheelEvent* event) Q_DECL_OVERRIDE;
|
||||
};
|
||||
|
||||
KItemListContainerViewport::KItemListContainerViewport(QGraphicsScene* scene, QWidget* parent) :
|
||||
|
|
|
@ -48,7 +48,7 @@ signals:
|
|||
void urlIsFileError(const QUrl& url);
|
||||
|
||||
protected:
|
||||
virtual void handleError(KIO::Job* job);
|
||||
void handleError(KIO::Job* job) Q_DECL_OVERRIDE;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -64,7 +64,7 @@ public:
|
|||
|
||||
qreal minimumColumnWidth() const;
|
||||
|
||||
virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0);
|
||||
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) Q_DECL_OVERRIDE;
|
||||
|
||||
signals:
|
||||
/**
|
||||
|
@ -104,13 +104,13 @@ signals:
|
|||
void sortRoleChanged(const QByteArray& current, const QByteArray& previous);
|
||||
|
||||
protected:
|
||||
virtual void mousePressEvent(QGraphicsSceneMouseEvent* event);
|
||||
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event);
|
||||
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event);
|
||||
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event);
|
||||
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event);
|
||||
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event);
|
||||
virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event);
|
||||
void mousePressEvent(QGraphicsSceneMouseEvent* event) Q_DECL_OVERRIDE;
|
||||
void mouseReleaseEvent(QGraphicsSceneMouseEvent* event) Q_DECL_OVERRIDE;
|
||||
void mouseMoveEvent(QGraphicsSceneMouseEvent* event) Q_DECL_OVERRIDE;
|
||||
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) Q_DECL_OVERRIDE;
|
||||
void hoverEnterEvent(QGraphicsSceneHoverEvent* event) Q_DECL_OVERRIDE;
|
||||
void hoverLeaveEvent(QGraphicsSceneHoverEvent* event) Q_DECL_OVERRIDE;
|
||||
void hoverMoveEvent(QGraphicsSceneHoverEvent* event) Q_DECL_OVERRIDE;
|
||||
|
||||
private slots:
|
||||
void slotSortRoleChanged(const QByteArray& current, const QByteArray& previous);
|
||||
|
|
|
@ -44,15 +44,15 @@ public:
|
|||
void setRole(const QByteArray& role);
|
||||
QByteArray role() const;
|
||||
|
||||
virtual bool eventFilter(QObject* watched, QEvent* event);
|
||||
bool eventFilter(QObject* watched, QEvent* event) Q_DECL_OVERRIDE;
|
||||
|
||||
signals:
|
||||
void roleEditingFinished(const QByteArray& role, const QVariant& value);
|
||||
void roleEditingCanceled(const QByteArray& role, const QVariant& value);
|
||||
|
||||
protected:
|
||||
virtual bool event(QEvent* event);
|
||||
virtual void keyPressEvent(QKeyEvent* event);
|
||||
bool event(QEvent* event) Q_DECL_OVERRIDE;
|
||||
void keyPressEvent(QKeyEvent* event) Q_DECL_OVERRIDE;
|
||||
|
||||
private slots:
|
||||
/**
|
||||
|
|
|
@ -42,10 +42,10 @@ public:
|
|||
|
||||
void setHovered(bool hovered);
|
||||
|
||||
virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0);
|
||||
void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) Q_DECL_OVERRIDE;
|
||||
|
||||
protected:
|
||||
virtual void resizeEvent(QGraphicsSceneResizeEvent* event);
|
||||
void resizeEvent(QGraphicsSceneResizeEvent* event) Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
void updatePixmap();
|
||||
|
|
|
@ -83,7 +83,7 @@ public:
|
|||
void handleWheelEvent(QWheelEvent* event);
|
||||
|
||||
protected:
|
||||
virtual bool eventFilter(QObject* obj, QEvent* event);
|
||||
bool eventFilter(QObject* obj, QEvent* event) Q_DECL_OVERRIDE;
|
||||
|
||||
private slots:
|
||||
void slotAnimationStateChanged(QAbstractAnimation::State newState,
|
||||
|
|
|
@ -52,7 +52,7 @@ class EmbeddedVideoPlayer : public Phonon::VideoWidget
|
|||
updateGeometry();
|
||||
}
|
||||
|
||||
virtual QSize sizeHint() const
|
||||
QSize sizeHint() const Q_DECL_OVERRIDE
|
||||
{
|
||||
return m_sizeHint.isValid() ? m_sizeHint : Phonon::VideoWidget::sizeHint();
|
||||
}
|
||||
|
|
|
@ -30,8 +30,8 @@ class DummyModel : public KItemModelBase
|
|||
public:
|
||||
DummyModel();
|
||||
void setCount(int count);
|
||||
virtual int count() const;
|
||||
virtual QHash<QByteArray, QVariant> data(int index) const;
|
||||
int count() const Q_DECL_OVERRIDE;
|
||||
QHash<QByteArray, QVariant> data(int index) const Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
int m_count;
|
||||
|
|
Loading…
Reference in a new issue