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(FileTransferWidget* widget, int minWidth, float widthInPercent = 1.0f);
virtual QRectF boundingRect() const;
virtual void setWidth(qreal width);
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget);
virtual qreal getAscent() const;
QRectF boundingRect() const override;
void setWidth(qreal width) override;
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
qreal getAscent() const override;
QWidget* getWidget() const;
ChatLineContentProxyType getWidgetType() const;

View File

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

View File

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

View File

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

View File

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

View File

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