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(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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user