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:
parent
693e8d8443
commit
fa6bd18ad7
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -81,7 +81,7 @@ private:
|
|||
SettingsWidget *parent;
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject *o, QEvent *e);
|
||||
bool eventFilter(QObject *o, QEvent *e) override;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user