1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix virtual overrides

This commit is contained in:
Nils Fenner 2015-09-13 23:20:54 +02:00
parent 693e8d8443
commit fa6bd18ad7
No known key found for this signature in database
GPG Key ID: 9591A163FF9BE04C
6 changed files with 17 additions and 17 deletions

View File

@ -39,10 +39,10 @@ public:
ChatLineContentProxy(QWidget* widget, int minWidth, float widthInPercent = 1.0f); ChatLineContentProxy(QWidget* widget, int minWidth, float widthInPercent = 1.0f);
ChatLineContentProxy(FileTransferWidget* widget, int minWidth, float widthInPercent = 1.0f); ChatLineContentProxy(FileTransferWidget* widget, int minWidth, float widthInPercent = 1.0f);
virtual QRectF boundingRect() const; QRectF boundingRect() const override;
virtual void setWidth(qreal width); void setWidth(qreal width) override;
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget); void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
virtual qreal getAscent() const; qreal getAscent() const override;
QWidget* getWidget() const; QWidget* getWidget() const;
ChatLineContentProxyType getWidgetType() const; ChatLineContentProxyType getWidgetType() const;

View File

@ -39,16 +39,16 @@ private slots:
void PageButtonsUpdate(); void PageButtonsUpdate();
protected: protected:
virtual void mouseReleaseEvent(QMouseEvent *ev) final override; void mouseReleaseEvent(QMouseEvent *ev) final override;
virtual void mousePressEvent(QMouseEvent *ev) final override; void mousePressEvent(QMouseEvent *ev) final override;
virtual void wheelEvent(QWheelEvent * event) final override; void wheelEvent(QWheelEvent * event) final override;
private: private:
QStackedWidget stack; QStackedWidget stack;
QVBoxLayout layout; QVBoxLayout layout;
public: public:
virtual QSize sizeHint() const; QSize sizeHint() const override;
}; };

View File

@ -37,7 +37,7 @@ public:
virtual QString getFormName() final override {return tr("Advanced");} virtual QString getFormName() final override {return tr("Advanced");}
protected: protected:
bool eventFilter(QObject *o, QEvent *e); bool eventFilter(QObject *o, QEvent *e) override;
private slots: private slots:
void onMakeToxPortableUpdated(); void onMakeToxPortableUpdated();

View File

@ -81,7 +81,7 @@ private:
SettingsWidget *parent; SettingsWidget *parent;
protected: protected:
bool eventFilter(QObject *o, QEvent *e); bool eventFilter(QObject *o, QEvent *e) override;
}; };
#endif #endif

View File

@ -45,12 +45,12 @@ signals:
void removeGroup(int groupId); void removeGroup(int groupId);
protected: protected:
virtual void contextMenuEvent(QContextMenuEvent * event) final override; void contextMenuEvent(QContextMenuEvent * event) final override;
virtual void mousePressEvent(QMouseEvent* event) final override; void mousePressEvent(QMouseEvent* event) final override;
virtual void mouseMoveEvent(QMouseEvent* event) final override; void mouseMoveEvent(QMouseEvent* event) final override;
virtual void dragEnterEvent(QDragEnterEvent* ev) override; void dragEnterEvent(QDragEnterEvent* ev) override;
virtual void dragLeaveEvent(QDragLeaveEvent* ev); void dragLeaveEvent(QDragLeaveEvent* ev) override;
virtual void dropEvent(QDropEvent* ev) override; void dropEvent(QDropEvent* ev) override;
public: public:
int groupId; int groupId;

View File

@ -43,7 +43,7 @@ public:
ScreenshotGrabber(QWidget* parent); ScreenshotGrabber(QWidget* parent);
~ScreenshotGrabber() override; ~ScreenshotGrabber() override;
bool eventFilter(QObject* object, QEvent* event); bool eventFilter(QObject* object, QEvent* event) override;
public slots: public slots: