1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Add missing override

This commit is contained in:
Laurent Montel 2022-06-27 19:23:41 +02:00
parent 424340e392
commit 5ce71aa6e1
37 changed files with 38 additions and 38 deletions

View File

@ -71,7 +71,7 @@ public:
QtLockedFile(); QtLockedFile();
QtLockedFile(const QString &name); QtLockedFile(const QString &name);
~QtLockedFile(); ~QtLockedFile() override;
bool open(OpenMode mode) override; bool open(OpenMode mode) override;

View File

@ -78,7 +78,7 @@ public:
}; };
explicit BrowserWindow(Qz::BrowserWindowType type, const QUrl &url = QUrl()); explicit BrowserWindow(Qz::BrowserWindowType type, const QUrl &url = QUrl());
~BrowserWindow(); ~BrowserWindow() override;
void setStartTab(WebTab* tab); void setStartTab(WebTab* tab);
void setStartPage(WebPage* page); void setStartPage(WebPage* page);

View File

@ -38,7 +38,7 @@ public:
explicit DatabaseEncryptedPasswordBackend(); explicit DatabaseEncryptedPasswordBackend();
~DatabaseEncryptedPasswordBackend(); ~DatabaseEncryptedPasswordBackend() override;
QStringList getUsernames(const QUrl &url) override; QStringList getUsernames(const QUrl &url) override;
QVector<PasswordEntry> getEntries(const QUrl &url) override; QVector<PasswordEntry> getEntries(const QUrl &url) override;
@ -102,7 +102,7 @@ class MasterPasswordDialog : public QDialog
public: public:
explicit MasterPasswordDialog(DatabaseEncryptedPasswordBackend* backend, QWidget* parent = nullptr); explicit MasterPasswordDialog(DatabaseEncryptedPasswordBackend* backend, QWidget* parent = nullptr);
~MasterPasswordDialog(); ~MasterPasswordDialog() override;
void delayedExec(); void delayedExec();

View File

@ -27,7 +27,7 @@ class FALKON_EXPORT FirefoxImporter : public BookmarksImporter
{ {
public: public:
explicit FirefoxImporter(QObject* parent = nullptr); explicit FirefoxImporter(QObject* parent = nullptr);
~FirefoxImporter(); ~FirefoxImporter() override;
QString description() const override; QString description() const override;
QString standardPath() const override; QString standardPath() const override;

View File

@ -40,7 +40,7 @@ class FALKON_EXPORT BookmarksManager : public QWidget
public: public:
explicit BookmarksManager(BrowserWindow* window, QWidget* parent = nullptr); explicit BookmarksManager(BrowserWindow* window, QWidget* parent = nullptr);
~BookmarksManager(); ~BookmarksManager() override;
void setMainWindow(BrowserWindow* window); void setMainWindow(BrowserWindow* window);

View File

@ -38,7 +38,7 @@ class FALKON_EXPORT CookieManager : public QDialog
public: public:
explicit CookieManager(QWidget *parent = nullptr); explicit CookieManager(QWidget *parent = nullptr);
~CookieManager(); ~CookieManager() override;
private Q_SLOTS: private Q_SLOTS:
void currentItemChanged(QTreeWidgetItem* current, QTreeWidgetItem* parent); void currentItemChanged(QTreeWidgetItem* current, QTreeWidgetItem* parent);

View File

@ -48,7 +48,7 @@ public:
QTime remainingTime() const { return m_remTime; } QTime remainingTime() const { return m_remTime; }
double currentSpeed() const { return m_currSpeed; } double currentSpeed() const { return m_currSpeed; }
int progress(); int progress();
~DownloadItem(); ~DownloadItem() override;
void setDownTimer(const QTime &timer) { m_downTimer = timer; } void setDownTimer(const QTime &timer) { m_downTimer = timer; }
void startDownloading(); void startDownloading();

View File

@ -60,7 +60,7 @@ public:
}; };
explicit DownloadManager(QWidget* parent = nullptr); explicit DownloadManager(QWidget* parent = nullptr);
~DownloadManager(); ~DownloadManager() override;
void loadSettings(); void loadSettings();

View File

@ -37,7 +37,7 @@ class FALKON_EXPORT DownloadOptionsDialog : public QDialog
public: public:
explicit DownloadOptionsDialog(const QString &fileName, QWebEngineDownloadItem *downloadItem, QWidget* parent = nullptr); explicit DownloadOptionsDialog(const QString &fileName, QWebEngineDownloadItem *downloadItem, QWidget* parent = nullptr);
~DownloadOptionsDialog(); ~DownloadOptionsDialog() override;
void showExternalManagerOption(bool show); void showExternalManagerOption(bool show);
void showFromLine(bool show); void showFromLine(bool show);

View File

@ -39,7 +39,7 @@ class FALKON_EXPORT HistoryManager : public QWidget
public: public:
explicit HistoryManager(BrowserWindow* window, QWidget* parent = nullptr); explicit HistoryManager(BrowserWindow* window, QWidget* parent = nullptr);
~HistoryManager(); ~HistoryManager() override;
void setMainWindow(BrowserWindow* window); void setMainWindow(BrowserWindow* window);

View File

@ -39,7 +39,7 @@ public:
void setText(const QString &text) { m_text = text; } void setText(const QString &text) { m_text = text; }
void setTimeout(int timeout) { m_timeout = timeout; } void setTimeout(int timeout) { m_timeout = timeout; }
void show(); void show();
~DesktopNotification(); ~DesktopNotification() override;
private: private:
void mousePressEvent(QMouseEvent* e) override; void mousePressEvent(QMouseEvent* e) override;

View File

@ -36,7 +36,7 @@ class FALKON_EXPORT SearchEnginesDialog : public QDialog
public: public:
explicit SearchEnginesDialog(QWidget* parent = nullptr); explicit SearchEnginesDialog(QWidget* parent = nullptr);
~SearchEnginesDialog(); ~SearchEnginesDialog() override;
public Q_SLOTS: public Q_SLOTS:
void accept() override; void accept() override;

View File

@ -36,7 +36,7 @@ class FALKON_EXPORT BrowsingLibrary : public QWidget
public: public:
explicit BrowsingLibrary(BrowserWindow* window, QWidget* parent = nullptr); explicit BrowsingLibrary(BrowserWindow* window, QWidget* parent = nullptr);
~BrowsingLibrary(); ~BrowsingLibrary() override;
void showHistory(BrowserWindow* window); void showHistory(BrowserWindow* window);
void showBookmarks(BrowserWindow* window); void showBookmarks(BrowserWindow* window);

View File

@ -74,7 +74,7 @@ public:
Q_ENUM(ScriptWorldId) Q_ENUM(ScriptWorldId)
explicit QmlUserScript(QObject *parent = nullptr); explicit QmlUserScript(QObject *parent = nullptr);
~QmlUserScript(); ~QmlUserScript() override;
QWebEngineScript webEngineScript() const; QWebEngineScript webEngineScript() const;
void setWebEngineScript(const QWebEngineScript &script); void setWebEngineScript(const QWebEngineScript &script);
Q_SIGNALS: Q_SIGNALS:

View File

@ -34,7 +34,7 @@ class FALKON_EXPORT AcceptLanguage : public QDialog
public: public:
explicit AcceptLanguage(QWidget* parent = nullptr); explicit AcceptLanguage(QWidget* parent = nullptr);
~AcceptLanguage(); ~AcceptLanguage() override;
static QStringList defaultLanguage(); static QStringList defaultLanguage();
static QByteArray generateHeader(const QStringList &langs); static QByteArray generateHeader(const QStringList &langs);

View File

@ -34,7 +34,7 @@ class FALKON_EXPORT JsOptions : public QDialog
public: public:
explicit JsOptions(QWidget* parent = nullptr); explicit JsOptions(QWidget* parent = nullptr);
~JsOptions(); ~JsOptions() override;
public Q_SLOTS: public Q_SLOTS:
void accept() override; void accept() override;

View File

@ -44,7 +44,7 @@ class FALKON_EXPORT Preferences : public QDialog
public: public:
explicit Preferences(BrowserWindow* window); explicit Preferences(BrowserWindow* window);
~Preferences(); ~Preferences() override;
private Q_SLOTS: private Q_SLOTS:
void saveSettings(); void saveSettings();

View File

@ -36,7 +36,7 @@ class FALKON_EXPORT UserAgentDialog : public QDialog
public: public:
explicit UserAgentDialog(QWidget* parent = nullptr); explicit UserAgentDialog(QWidget* parent = nullptr);
~UserAgentDialog(); ~UserAgentDialog() override;
private Q_SLOTS: private Q_SLOTS:
void addSite(); void addSite();

View File

@ -32,7 +32,7 @@ class SessionManagerDialog : public QDialog
public: public:
explicit SessionManagerDialog(QWidget *parent = 0); explicit SessionManagerDialog(QWidget *parent = 0);
~SessionManagerDialog(); ~SessionManagerDialog() override;
private: private:
enum Roles { enum Roles {

View File

@ -37,7 +37,7 @@ class FALKON_EXPORT BookmarksSidebar : public QWidget
public: public:
explicit BookmarksSidebar(BrowserWindow* window, QWidget* parent = nullptr); explicit BookmarksSidebar(BrowserWindow* window, QWidget* parent = nullptr);
~BookmarksSidebar(); ~BookmarksSidebar() override;
private Q_SLOTS: private Q_SLOTS:
void bookmarkActivated(BookmarkItem* item); void bookmarkActivated(BookmarkItem* item);

View File

@ -36,7 +36,7 @@ class FALKON_EXPORT HistorySideBar : public QWidget
public: public:
explicit HistorySideBar(BrowserWindow* window, QWidget* parent = nullptr); explicit HistorySideBar(BrowserWindow* window, QWidget* parent = nullptr);
~HistorySideBar(); ~HistorySideBar() override;
private Q_SLOTS: private Q_SLOTS:
void urlActivated(const QUrl &url); void urlActivated(const QUrl &url);

View File

@ -32,7 +32,7 @@ class FALKON_EXPORT TabMruModel : public QAbstractProxyModel
public: public:
explicit TabMruModel(BrowserWindow *window, QObject *parent = nullptr); explicit TabMruModel(BrowserWindow *window, QObject *parent = nullptr);
~TabMruModel(); ~TabMruModel() override;
QModelIndex tabIndex(WebTab *tab) const; QModelIndex tabIndex(WebTab *tab) const;
WebTab *tab(const QModelIndex &index) const; WebTab *tab(const QModelIndex &index) const;

View File

@ -34,7 +34,7 @@ class FALKON_EXPORT TabStackedWidget : public QWidget
Q_OBJECT Q_OBJECT
public: public:
explicit TabStackedWidget(QWidget* parent = nullptr); explicit TabStackedWidget(QWidget* parent = nullptr);
~TabStackedWidget(); ~TabStackedWidget() override;
ComboTabBar* tabBar(); ComboTabBar* tabBar();
void setTabBar(ComboTabBar* tb); void setTabBar(ComboTabBar* tb);

View File

@ -33,7 +33,7 @@ class FALKON_EXPORT TabTreeModel : public QAbstractProxyModel
public: public:
explicit TabTreeModel(BrowserWindow *window, QObject *parent = nullptr); explicit TabTreeModel(BrowserWindow *window, QObject *parent = nullptr);
~TabTreeModel(); ~TabTreeModel() override;
QModelIndex tabIndex(WebTab *tab) const; QModelIndex tabIndex(WebTab *tab) const;
WebTab *tab(const QModelIndex &index) const; WebTab *tab(const QModelIndex &index) const;

View File

@ -67,7 +67,7 @@ class FALKON_EXPORT TabWidget : public TabStackedWidget
Q_OBJECT Q_OBJECT
public: public:
explicit TabWidget(BrowserWindow *window, QWidget *parent = nullptr); explicit TabWidget(BrowserWindow *window, QWidget *parent = nullptr);
~TabWidget(); ~TabWidget() override;
BrowserWindow *browserWindow() const; BrowserWindow *browserWindow() const;

View File

@ -54,7 +54,7 @@ public:
}; };
explicit ButtonWithMenu(QWidget* parent = nullptr); explicit ButtonWithMenu(QWidget* parent = nullptr);
~ButtonWithMenu(); ~ButtonWithMenu() override;
void addItem(const Item &item); void addItem(const Item &item);
void addItems(const QVector<Item> &items); void addItems(const QVector<Item> &items);

View File

@ -29,7 +29,7 @@ class FALKON_EXPORT WebInspector : public QWebEngineView
public: public:
explicit WebInspector(QWidget *parent = nullptr); explicit WebInspector(QWidget *parent = nullptr);
~WebInspector(); ~WebInspector() override;
void setView(WebView *view); void setView(WebView *view);
void inspectElement(); void inspectElement();

View File

@ -44,7 +44,7 @@ public:
}; };
explicit WebPage(QObject* parent = nullptr); explicit WebPage(QObject* parent = nullptr);
~WebPage(); ~WebPage() override;
WebView *view() const; WebView *view() const;

View File

@ -35,7 +35,7 @@ class FALKON_EXPORT WebView : public QWebEngineView
public: public:
explicit WebView(QWidget* parent = nullptr); explicit WebView(QWidget* parent = nullptr);
~WebView(); ~WebView() override;
QIcon icon(bool allowNull = false) const; QIcon icon(bool allowNull = false) const;
QString title(bool allowEmpty = false) const; QString title(bool allowEmpty = false) const;

View File

@ -40,7 +40,7 @@ class FALKON_EXPORT SearchToolBar : public QWidget
Q_OBJECT Q_OBJECT
public: public:
explicit SearchToolBar(WebView* view, QWidget* parent = nullptr); explicit SearchToolBar(WebView* view, QWidget* parent = nullptr);
~SearchToolBar(); ~SearchToolBar() override;
void showMinimalInPopupWindow(); void showMinimalInPopupWindow();

View File

@ -47,7 +47,7 @@ class AutoScroller : public QObject
Q_OBJECT Q_OBJECT
public: public:
explicit AutoScroller(const QString &settingsFile, QObject* parent = 0); explicit AutoScroller(const QString &settingsFile, QObject* parent = 0);
~AutoScroller(); ~AutoScroller() override;
bool mouseMove(QObject* obj, QMouseEvent* event); bool mouseMove(QObject* obj, QMouseEvent* event);
bool mousePress(QObject* obj, QMouseEvent* event); bool mousePress(QObject* obj, QMouseEvent* event);

View File

@ -40,7 +40,7 @@ class FCM_Dialog : public QDialog
public: public:
explicit FCM_Dialog(FCM_Plugin* manager, QWidget* parent = 0); explicit FCM_Dialog(FCM_Plugin* manager, QWidget* parent = 0);
~FCM_Dialog(); ~FCM_Dialog() override;
void refreshView(bool forceReload = false); void refreshView(bool forceReload = false);
void showPage(int index); void showPage(int index);

View File

@ -31,7 +31,7 @@ class FALKON_EXPORT KWalletPasswordBackend : public PasswordBackend
{ {
public: public:
explicit KWalletPasswordBackend(); explicit KWalletPasswordBackend();
~KWalletPasswordBackend(); ~KWalletPasswordBackend() override;
QString name() const override; QString name() const override;

View File

@ -63,7 +63,7 @@ public:
* swallowed by the filter. * swallowed by the filter.
*/ */
QjtMouseGestureFilter(bool allowDiagonals = false, Qt::MouseButton gestureButton = Qt::RightButton, int minimumMovement = 5, double minimumMatch = 0.9, QObject* parent = 0); QjtMouseGestureFilter(bool allowDiagonals = false, Qt::MouseButton gestureButton = Qt::RightButton, int minimumMovement = 5, double minimumMatch = 0.9, QObject* parent = 0);
~QjtMouseGestureFilter(); ~QjtMouseGestureFilter() override;
/* /*
* Adds a gesture to the filter. * Adds a gesture to the filter.

View File

@ -14,7 +14,7 @@ class TabManagerSettings : public QDialog
public: public:
explicit TabManagerSettings(TabManagerPlugin* plugin, QWidget *parent = 0); explicit TabManagerSettings(TabManagerPlugin* plugin, QWidget *parent = 0);
~TabManagerSettings(); ~TabManagerSettings() override;
public Q_SLOTS: public Q_SLOTS:
void accept() override; void accept() override;

View File

@ -66,7 +66,7 @@ public:
}; };
explicit TabManagerWidget(BrowserWindow* mainClass, QWidget* parent = 0, bool defaultWidget = false); explicit TabManagerWidget(BrowserWindow* mainClass, QWidget* parent = 0, bool defaultWidget = false);
~TabManagerWidget(); ~TabManagerWidget() override;
void closeSelectedTabs(const QHash<BrowserWindow*, WebTab*> &tabsHash); void closeSelectedTabs(const QHash<BrowserWindow*, WebTab*> &tabsHash);
void detachSelectedTabs(const QHash<BrowserWindow*, WebTab*> &tabsHash); void detachSelectedTabs(const QHash<BrowserWindow*, WebTab*> &tabsHash);

View File

@ -30,7 +30,7 @@ class TabManagerWidgetController : public SideBarInterface
Q_OBJECT Q_OBJECT
public: public:
explicit TabManagerWidgetController(QObject* parent = 0); explicit TabManagerWidgetController(QObject* parent = 0);
~TabManagerWidgetController(); ~TabManagerWidgetController() override;
QString title() const override; QString title() const override;
QAction* createMenuAction() override; QAction* createMenuAction() override;