Commit 60fd541c authored by Pino Toscano's avatar Pino Toscano

add Q_DECL_OVERRIDE where needed

parent 05060d5a
......@@ -34,7 +34,7 @@ public:
QList<QVariantMap> data() const;
virtual void start();
virtual void start() Q_DECL_OVERRIDE;
private Q_SLOTS:
void doStart();
......
......@@ -59,10 +59,10 @@ public:
void save();
/** @see QWidget::sizeHint() */
virtual QSize sizeHint() const;
virtual QSize sizeHint() const Q_DECL_OVERRIDE;
protected:
virtual bool event(QEvent* event);
virtual bool event(QEvent* event) Q_DECL_OVERRIDE;
private:
class Private;
......
......@@ -59,7 +59,7 @@ public:
bool isReadOnly() const;
/** @see QWidget::sizeHint() */
virtual QSize sizeHint() const;
virtual QSize sizeHint() const Q_DECL_OVERRIDE;
Q_SIGNALS:
/**
......
......@@ -34,7 +34,7 @@ public:
IndexedDataRetriever(const QString& fileUrl, QObject* parent = 0);
virtual ~IndexedDataRetriever();
virtual void start();
virtual void start() Q_DECL_OVERRIDE;
QVariantMap data() const;
......
......@@ -55,16 +55,16 @@ class KBlockLayout : public QLayout
void setSpacing( int h, int v );
void addItem( QLayoutItem* item );
Qt::Orientations expandingDirections() const;
bool hasHeightForWidth() const;
int heightForWidth(int) const;
int count() const;
QLayoutItem* itemAt( int index ) const;
QSize minimumSize() const;
void setGeometry( const QRect& rect );
QSize sizeHint() const;
QLayoutItem* takeAt( int index );
void addItem( QLayoutItem* item ) Q_DECL_OVERRIDE;
Qt::Orientations expandingDirections() const Q_DECL_OVERRIDE;
bool hasHeightForWidth() const Q_DECL_OVERRIDE;
int heightForWidth(int) const Q_DECL_OVERRIDE;
int count() const Q_DECL_OVERRIDE;
QLayoutItem* itemAt( int index ) const Q_DECL_OVERRIDE;
QSize minimumSize() const Q_DECL_OVERRIDE;
void setGeometry( const QRect& rect ) Q_DECL_OVERRIDE;
QSize sizeHint() const Q_DECL_OVERRIDE;
QLayoutItem* takeAt( int index ) Q_DECL_OVERRIDE;
private:
int doLayout( const QRect& rect, bool testOnly ) const;
......
......@@ -48,13 +48,13 @@ public:
void setReadOnly(bool readOnly);
bool isReadOnly() const;
virtual QSize sizeHint() const;
virtual QSize sizeHint() const Q_DECL_OVERRIDE;
Q_SIGNALS:
void commentChanged(const QString& comment);
protected:
virtual bool event(QEvent* event);
virtual bool event(QEvent* event) Q_DECL_OVERRIDE;
private Q_SLOTS:
void slotLinkActivated(const QString& link);
......
......@@ -45,8 +45,8 @@ Q_SIGNALS:
void tagClicked(const QString& tag);
protected:
void leaveEvent(QEvent* event );
bool eventFilter(QObject* watched, QEvent* event);
void leaveEvent(QEvent* event ) Q_DECL_OVERRIDE;
bool eventFilter(QObject* watched, QEvent* event) Q_DECL_OVERRIDE;
private:
QRect tagRect() const;
......
......@@ -210,7 +210,7 @@ class ValueWidget : public QLabel
{
public:
explicit ValueWidget(QWidget* parent = 0);
virtual QSize sizeHint() const;
virtual QSize sizeHint() const Q_DECL_OVERRIDE;
};
ValueWidget::ValueWidget(QWidget* parent) :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment