Commit 23c9333f authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_DECLARE_OVERRIDE

parent c6486e9d
......@@ -51,7 +51,7 @@ public:
// enable use of qgraphicsitem_cast
enum { Type = UserType + 1 };
virtual int type() const { return Type; }
int type() const Q_DECL_OVERRIDE { return Type; }
private:
int m_fieldX;
int m_fieldY;
......@@ -82,7 +82,7 @@ public:
// enable use of qgraphicsitem_cast
enum { Type = UserType + 2 };
virtual int type() const { return Type; }
int type() const Q_DECL_OVERRIDE { return Type; }
private:
// from molecule
int m_atomNum;
......@@ -111,11 +111,11 @@ public:
// enable use of qgraphicsitem_cast
enum { Type = UserType + 3 };
virtual int type() const { return Type; }
int type() const Q_DECL_OVERRIDE { return Type; }
private slots:
void setOpacity( qreal opacity );
private:
QVariant itemChange( GraphicsItemChange change, const QVariant& value );
QVariant itemChange( GraphicsItemChange change, const QVariant& value ) Q_DECL_OVERRIDE;
/**
* Timeline object to control fade-in animation
......@@ -154,9 +154,9 @@ public:
*/
void setMaxAtomSize( int maxSize );
inline QRectF boundingRect() const { return QRectF(0,0, m_width, m_width); } // reimp
inline QRectF boundingRect() const Q_DECL_OVERRIDE { return QRectF(0,0, m_width, m_width); } // reimp
private:
void paint( QPainter * painter, const QStyleOptionGraphicsItem*, QWidget * widget = 0 );
void paint( QPainter * painter, const QStyleOptionGraphicsItem*, QWidget * widget = 0 ) Q_DECL_OVERRIDE;
KGameRenderer* m_renderer;
int m_width;
......
......@@ -87,7 +87,7 @@ public slots:
void moveRight();
private:
virtual void resizeEvent( QResizeEvent* );
void resizeEvent( QResizeEvent* ) Q_DECL_OVERRIDE;
void switchToLevel (int);
int lastPlayedLevel() const;
......
......@@ -30,8 +30,8 @@ class LevelSetDelegate : public QStyledItemDelegate
public:
explicit LevelSetDelegate(QObject* parent = 0);
virtual void paint(QPainter* p, const QStyleOptionViewItem& option, const QModelIndex& index) const;
virtual QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const;
void paint(QPainter* p, const QStyleOptionViewItem& option, const QModelIndex& index) const Q_DECL_OVERRIDE;
QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const Q_DECL_OVERRIDE;
private:
mutable int m_lineHeight;
......
......@@ -125,8 +125,8 @@ signals:
private slots:
void atomAnimFrameChanged(int frame);
private:
virtual void drawForeground( QPainter*, const QRectF& );
virtual void mousePressEvent( QGraphicsSceneMouseEvent* ev );
void drawForeground( QPainter*, const QRectF& ) Q_DECL_OVERRIDE;
void mousePressEvent( QGraphicsSceneMouseEvent* ev ) Q_DECL_OVERRIDE;
/**
* Checks if molecule is finished
......
......@@ -56,7 +56,7 @@ private slots:
void changeLevelSet(const QString&);
private:
virtual bool queryClose(); // reimp
bool queryClose(); // reimp
// Creates the menubar and connects the menu-entries to the
// appropriate functions
......
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