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(const QString &name);
~QtLockedFile();
~QtLockedFile() override;
bool open(OpenMode mode) override;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -63,7 +63,7 @@ public:
* swallowed by the filter.
*/
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.

View File

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

View File

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

View File

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