1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 09:42: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;
void setMinHeight(int height);
QSize sizeHint() const;
QSize sizeHint() const override;
QAction* editAction(EditAction action) const;
public slots:
@ -114,12 +114,12 @@ public slots:
void updateTextMargins();
protected:
void focusInEvent(QFocusEvent* event);
void mousePressEvent(QMouseEvent* event);
void mouseReleaseEvent(QMouseEvent* event);
void mouseDoubleClickEvent(QMouseEvent* event);
void focusInEvent(QFocusEvent* event) override;
void mousePressEvent(QMouseEvent* event) override;
void mouseReleaseEvent(QMouseEvent* event) override;
void mouseDoubleClickEvent(QMouseEvent* event) override;
void resizeEvent(QResizeEvent *event) override;
bool event(QEvent* event);
bool event(QEvent* event) override;
QMenu* createContextMenu();

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -31,14 +31,12 @@ class GM_Plugin : public QObject, public PluginInterface
public:
explicit GM_Plugin();
PluginSpec pluginSpec();
void init(InitState state, const QString &settingsPath);
void unload();
bool testPlugin();
QTranslator* getTranslator(const QString &locale);
void showSettings(QWidget* parent = 0);
PluginSpec pluginSpec() override;
void init(InitState state, const QString &settingsPath) override;
void unload() override;
bool testPlugin() override;
QTranslator* getTranslator(const QString &locale) override;
void showSettings(QWidget* parent = 0) 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);
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;
enum Mode {