1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00

Fix missing override warnings

This commit is contained in:
David Rosca 2018-02-07 11:55:36 +01:00
parent 156865804f
commit 75b072ec88
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
8 changed files with 28 additions and 30 deletions

View File

@ -106,7 +106,7 @@ public:
int minHeight() const; int minHeight() const;
void setMinHeight(int height); void setMinHeight(int height);
QSize sizeHint() const; QSize sizeHint() const override;
QAction* editAction(EditAction action) const; QAction* editAction(EditAction action) const;
public slots: public slots:
@ -114,12 +114,12 @@ public slots:
void updateTextMargins(); void updateTextMargins();
protected: protected:
void focusInEvent(QFocusEvent* event); void focusInEvent(QFocusEvent* event) override;
void mousePressEvent(QMouseEvent* event); void mousePressEvent(QMouseEvent* event) override;
void mouseReleaseEvent(QMouseEvent* event); void mouseReleaseEvent(QMouseEvent* event) override;
void mouseDoubleClickEvent(QMouseEvent* event); void mouseDoubleClickEvent(QMouseEvent* event) override;
void resizeEvent(QResizeEvent *event) override; void resizeEvent(QResizeEvent *event) override;
bool event(QEvent* event); bool event(QEvent* event) override;
QMenu* createContextMenu(); QMenu* createContextMenu();

View File

@ -28,10 +28,10 @@ class AdBlockPlugin : public QObject, public PluginInterface
public: public:
explicit AdBlockPlugin(); explicit AdBlockPlugin();
PluginSpec pluginSpec(); PluginSpec pluginSpec() override;
void init(InitState state, const QString &settingsPath); void init(InitState state, const QString &settingsPath) override;
void unload(); void unload() override;
bool testPlugin(); bool testPlugin() override;
private: private:
void webPageCreated(WebPage *page); void webPageCreated(WebPage *page);

View File

@ -63,11 +63,11 @@ private:
void init(); void init();
QString createTooltip() const; QString createTooltip() const;
void enterEvent(QEvent* event); void enterEvent(QEvent* event) override;
void leaveEvent(QEvent* event); void leaveEvent(QEvent* event) override;
void mousePressEvent(QMouseEvent* event); void mousePressEvent(QMouseEvent* event) override;
void mouseReleaseEvent(QMouseEvent* event); void mouseReleaseEvent(QMouseEvent* event) override;
void paintEvent(QPaintEvent* event); void paintEvent(QPaintEvent* event) override;
BookmarkItem* m_bookmark; BookmarkItem* m_bookmark;
BrowserWindow* m_window; BrowserWindow* m_window;

View File

@ -90,10 +90,10 @@ signals:
private: private:
void showEvent(QShowEvent *event) override; void showEvent(QShowEvent *event) override;
void timerEvent(QTimerEvent* e); void timerEvent(QTimerEvent* e) override;
void closeEvent(QCloseEvent* e); void closeEvent(QCloseEvent* e) override;
void resizeEvent(QResizeEvent* e); void resizeEvent(QResizeEvent* e) override;
void keyPressEvent(QKeyEvent* e); void keyPressEvent(QKeyEvent* e) override;
void closeDownloadTab(const QUrl &url) const; void closeDownloadTab(const QUrl &url) const;

View File

@ -39,7 +39,7 @@ public:
~SearchEnginesDialog(); ~SearchEnginesDialog();
public slots: public slots:
void accept(); void accept() override;
private slots: private slots:
void addEngine(); void addEngine();

View File

@ -59,7 +59,7 @@ private slots:
void searchOnPage(); void searchOnPage();
private: private:
void closeEvent(QCloseEvent* event); void closeEvent(QCloseEvent *event) override;
void resizeEvent(QResizeEvent *event) override; void resizeEvent(QResizeEvent *event) override;
PopupWebView* m_view; PopupWebView* m_view;

View File

@ -31,14 +31,12 @@ class GM_Plugin : public QObject, public PluginInterface
public: public:
explicit GM_Plugin(); explicit GM_Plugin();
PluginSpec pluginSpec(); PluginSpec pluginSpec() override;
void init(InitState state, const QString &settingsPath) override;
void init(InitState state, const QString &settingsPath); void unload() override;
void unload(); bool testPlugin() override;
bool testPlugin(); QTranslator* getTranslator(const QString &locale) override;
void showSettings(QWidget* parent = 0) override;
QTranslator* getTranslator(const QString &locale);
void showSettings(QWidget* parent = 0);
bool acceptNavigationRequest(WebPage *page, const QUrl &url, QWebEnginePage::NavigationType type, bool isMainFrame) override; bool acceptNavigationRequest(WebPage *page, const QUrl &url, QWebEnginePage::NavigationType type, bool isMainFrame) override;

View File

@ -33,7 +33,7 @@ public:
void setRejectDropOnLastIndex(bool reject); void setRejectDropOnLastIndex(bool reject);
private: private:
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const; bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override; bool canDropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const override;
enum Mode { enum Mode {