mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-19 18:26:34 +01:00
Fix all override warnings
This commit is contained in:
parent
66857748c2
commit
b87ccf714c
@ -28,7 +28,7 @@ private:
|
||||
QByteArray m_testMasterPassword;
|
||||
|
||||
protected:
|
||||
void reloadBackend();
|
||||
void init();
|
||||
void cleanup();
|
||||
void reloadBackend() override;
|
||||
void init() override;
|
||||
void cleanup() override;
|
||||
};
|
||||
|
@ -25,7 +25,7 @@ class DatabasePasswordBackendTest : public PasswordBackendTest
|
||||
Q_OBJECT
|
||||
|
||||
protected:
|
||||
void reloadBackend();
|
||||
void init();
|
||||
void cleanup();
|
||||
void reloadBackend() override;
|
||||
void init() override;
|
||||
void cleanup() override;
|
||||
};
|
||||
|
2
src/lib/3rdparty/fancytabwidget.cpp
vendored
2
src/lib/3rdparty/fancytabwidget.cpp
vendored
@ -476,7 +476,7 @@ public:
|
||||
setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Preferred);
|
||||
}
|
||||
|
||||
void mousePressEvent(QMouseEvent* ev) {
|
||||
void mousePressEvent(QMouseEvent* ev) override {
|
||||
if (ev->modifiers() & Qt::ShiftModifier) {
|
||||
Utils::StyleHelper::setBaseColor(QColorDialog::getColor(Utils::StyleHelper::requestedBaseColor(), m_parent));
|
||||
}
|
||||
|
2
src/lib/3rdparty/lineedit.h
vendored
2
src/lib/3rdparty/lineedit.h
vendored
@ -155,7 +155,7 @@ public:
|
||||
SideWidget(QWidget* parent = 0);
|
||||
|
||||
protected:
|
||||
bool event(QEvent* event);
|
||||
bool event(QEvent* event) override;
|
||||
|
||||
};
|
||||
|
||||
|
@ -73,7 +73,7 @@ public:
|
||||
QtLockedFile(const QString &name);
|
||||
~QtLockedFile();
|
||||
|
||||
bool open(OpenMode mode);
|
||||
bool open(OpenMode mode) override;
|
||||
|
||||
bool lock(LockMode mode, bool block = true);
|
||||
bool unlock();
|
||||
|
@ -118,18 +118,18 @@ class AdBlockCustomList : public AdBlockSubscription
|
||||
public:
|
||||
explicit AdBlockCustomList(QObject* parent = nullptr);
|
||||
|
||||
void loadSubscription(const QStringList &disabledRules);
|
||||
void saveSubscription();
|
||||
void loadSubscription(const QStringList &disabledRules) override;
|
||||
void saveSubscription() override;
|
||||
|
||||
bool canEditRules() const;
|
||||
bool canBeRemoved() const;
|
||||
bool canEditRules() const override;
|
||||
bool canBeRemoved() const override;
|
||||
|
||||
bool containsFilter(const QString &filter) const;
|
||||
bool removeFilter(const QString &filter);
|
||||
|
||||
int addRule(AdBlockRule* rule);
|
||||
bool removeRule(int offset);
|
||||
const AdBlockRule* replaceRule(AdBlockRule* rule, int offset);
|
||||
int addRule(AdBlockRule* rule) override;
|
||||
bool removeRule(int offset) override;
|
||||
const AdBlockRule* replaceRule(AdBlockRule* rule, int offset) override;
|
||||
};
|
||||
|
||||
#endif // ADBLOCKSUBSCRIPTION_H
|
||||
|
@ -49,7 +49,7 @@ private Q_SLOTS:
|
||||
|
||||
private:
|
||||
void adjustItemFeatures(QTreeWidgetItem* item, const AdBlockRule* rule);
|
||||
void keyPressEvent(QKeyEvent* event);
|
||||
void keyPressEvent(QKeyEvent* event) override;
|
||||
|
||||
AdBlockSubscription* m_subscription;
|
||||
QTreeWidgetItem* m_topItem;
|
||||
|
@ -32,7 +32,7 @@ class FALKON_EXPORT AdBlockUrlInterceptor : public UrlInterceptor
|
||||
public:
|
||||
explicit AdBlockUrlInterceptor(AdBlockManager *manager);
|
||||
|
||||
void interceptRequest(QWebEngineUrlRequestInfo &request);
|
||||
void interceptRequest(QWebEngineUrlRequestInfo &request) override;
|
||||
|
||||
Q_SIGNALS:
|
||||
void requestBlocked(const AdBlockedRequest &request);
|
||||
|
@ -40,23 +40,23 @@ public:
|
||||
|
||||
~DatabaseEncryptedPasswordBackend();
|
||||
|
||||
QStringList getUsernames(const QUrl &url);
|
||||
QVector<PasswordEntry> getEntries(const QUrl &url);
|
||||
QVector<PasswordEntry> getAllEntries();
|
||||
QStringList getUsernames(const QUrl &url) override;
|
||||
QVector<PasswordEntry> getEntries(const QUrl &url) override;
|
||||
QVector<PasswordEntry> getAllEntries() override;
|
||||
|
||||
void setActive(bool active);
|
||||
void setActive(bool active) override;
|
||||
|
||||
void addEntry(const PasswordEntry &entry);
|
||||
bool updateEntry(const PasswordEntry &entry);
|
||||
void updateLastUsed(PasswordEntry &entry);
|
||||
void addEntry(const PasswordEntry &entry) override;
|
||||
bool updateEntry(const PasswordEntry &entry) override;
|
||||
void updateLastUsed(PasswordEntry &entry) override;
|
||||
|
||||
void removeEntry(const PasswordEntry &entry);
|
||||
void removeAll();
|
||||
void removeEntry(const PasswordEntry &entry) override;
|
||||
void removeAll() override;
|
||||
|
||||
QString name() const;
|
||||
QString name() const override;
|
||||
|
||||
bool hasSettings() const;
|
||||
void showSettings(QWidget* parent);
|
||||
bool hasSettings() const override;
|
||||
void showSettings(QWidget* parent) override;
|
||||
|
||||
bool isMasterPasswordSetted();
|
||||
|
||||
@ -107,8 +107,8 @@ public:
|
||||
void delayedExec();
|
||||
|
||||
public Q_SLOTS:
|
||||
void accept();
|
||||
void reject();
|
||||
void accept() override;
|
||||
void reject() override;
|
||||
void showSettingPage();
|
||||
void showSetMasterPasswordPage();
|
||||
void clearMasterPasswordAndConvert(bool forcedAskPass = true);
|
||||
|
@ -26,17 +26,17 @@ class FALKON_EXPORT DatabasePasswordBackend : public PasswordBackend
|
||||
public:
|
||||
explicit DatabasePasswordBackend();
|
||||
|
||||
QString name() const;
|
||||
QString name() const override;
|
||||
|
||||
QVector<PasswordEntry> getEntries(const QUrl &url);
|
||||
QVector<PasswordEntry> getAllEntries();
|
||||
QVector<PasswordEntry> getEntries(const QUrl &url) override;
|
||||
QVector<PasswordEntry> getAllEntries() override;
|
||||
|
||||
void addEntry(const PasswordEntry &entry);
|
||||
bool updateEntry(const PasswordEntry &entry);
|
||||
void updateLastUsed(PasswordEntry &entry);
|
||||
void addEntry(const PasswordEntry &entry) override;
|
||||
bool updateEntry(const PasswordEntry &entry) override;
|
||||
void updateLastUsed(PasswordEntry &entry) override;
|
||||
|
||||
void removeEntry(const PasswordEntry &entry);
|
||||
void removeAll();
|
||||
void removeEntry(const PasswordEntry &entry) override;
|
||||
void removeAll() override;
|
||||
};
|
||||
|
||||
#endif // DATABASEPASSWORDBACKEND_H
|
||||
|
@ -29,9 +29,9 @@ class HtmlExporter : public BookmarksExporter
|
||||
public:
|
||||
explicit HtmlExporter(QObject* parent = 0);
|
||||
|
||||
QString name() const;
|
||||
QString getPath(QWidget* parent);
|
||||
bool exportBookmarks(BookmarkItem* root);
|
||||
QString name() const override;
|
||||
QString getPath(QWidget* parent) override;
|
||||
bool exportBookmarks(BookmarkItem* root) override;
|
||||
|
||||
private:
|
||||
void writeBookmark(BookmarkItem* item, QTextStream &stream, int level);
|
||||
|
@ -28,13 +28,13 @@ class FALKON_EXPORT ChromeImporter : public BookmarksImporter
|
||||
public:
|
||||
explicit ChromeImporter(QObject* parent = 0);
|
||||
|
||||
QString description() const;
|
||||
QString standardPath() const;
|
||||
QString description() const override;
|
||||
QString standardPath() const override;
|
||||
|
||||
QString getPath(QWidget* parent);
|
||||
bool prepareImport();
|
||||
QString getPath(QWidget* parent) override;
|
||||
bool prepareImport() override;
|
||||
|
||||
BookmarkItem* importBookmarks();
|
||||
BookmarkItem* importBookmarks() override;
|
||||
|
||||
private:
|
||||
void readBookmarks(const QVariantList &list, BookmarkItem* parent);
|
||||
|
@ -29,13 +29,13 @@ public:
|
||||
explicit FirefoxImporter(QObject* parent = 0);
|
||||
~FirefoxImporter();
|
||||
|
||||
QString description() const;
|
||||
QString standardPath() const;
|
||||
QString description() const override;
|
||||
QString standardPath() const override;
|
||||
|
||||
QString getPath(QWidget* parent);
|
||||
bool prepareImport();
|
||||
QString getPath(QWidget* parent) override;
|
||||
bool prepareImport() override;
|
||||
|
||||
BookmarkItem* importBookmarks();
|
||||
BookmarkItem* importBookmarks() override;
|
||||
|
||||
private:
|
||||
enum Type {
|
||||
|
@ -27,13 +27,13 @@ class FALKON_EXPORT HtmlImporter : public BookmarksImporter
|
||||
public:
|
||||
explicit HtmlImporter(QObject* parent = 0);
|
||||
|
||||
QString description() const;
|
||||
QString standardPath() const;
|
||||
QString description() const override;
|
||||
QString standardPath() const override;
|
||||
|
||||
QString getPath(QWidget* parent);
|
||||
bool prepareImport();
|
||||
QString getPath(QWidget* parent) override;
|
||||
bool prepareImport() override;
|
||||
|
||||
BookmarkItem* importBookmarks();
|
||||
BookmarkItem* importBookmarks() override;
|
||||
|
||||
private:
|
||||
QString m_path;
|
||||
|
@ -27,13 +27,13 @@ class IeImporter : public BookmarksImporter
|
||||
public:
|
||||
explicit IeImporter(QObject* parent = 0);
|
||||
|
||||
QString description() const;
|
||||
QString standardPath() const;
|
||||
QString description() const override;
|
||||
QString standardPath() const override;
|
||||
|
||||
QString getPath(QWidget* parent);
|
||||
bool prepareImport();
|
||||
QString getPath(QWidget* parent) override;
|
||||
bool prepareImport() override;
|
||||
|
||||
BookmarkItem* importBookmarks();
|
||||
BookmarkItem* importBookmarks() override;
|
||||
|
||||
private:
|
||||
void readDir(const QDir &dir, BookmarkItem* parent);
|
||||
|
@ -28,13 +28,13 @@ class FALKON_EXPORT OperaImporter : public BookmarksImporter
|
||||
public:
|
||||
explicit OperaImporter(QObject* parent = 0);
|
||||
|
||||
QString description() const;
|
||||
QString standardPath() const;
|
||||
QString description() const override;
|
||||
QString standardPath() const override;
|
||||
|
||||
QString getPath(QWidget* parent);
|
||||
bool prepareImport();
|
||||
QString getPath(QWidget* parent) override;
|
||||
bool prepareImport() override;
|
||||
|
||||
BookmarkItem* importBookmarks();
|
||||
BookmarkItem* importBookmarks() override;
|
||||
|
||||
private:
|
||||
enum Token { EmptyLine,
|
||||
|
@ -134,6 +134,7 @@ void DownloadManager::closeDownloadTab(QWebEngineDownloadItem *item) const
|
||||
return false;
|
||||
}
|
||||
#if QTWEBENGINEWIDGETS_VERSION >= QT_VERSION_CHECK(5, 12, 0)
|
||||
Q_UNUSED(url)
|
||||
return true;
|
||||
#else
|
||||
if (page->url() != QUrl()) {
|
||||
|
@ -44,7 +44,7 @@ public:
|
||||
|
||||
void setLastDownloadOption(const DownloadManager::DownloadOption &option);
|
||||
|
||||
int exec();
|
||||
int exec() override;
|
||||
|
||||
private Q_SLOTS:
|
||||
void copyDownloadLink();
|
||||
|
@ -27,8 +27,8 @@ class FALKON_EXPORT LocationCompleterDelegate : public QStyledItemDelegate
|
||||
public:
|
||||
explicit LocationCompleterDelegate(QObject *parent = 0);
|
||||
|
||||
void paint(QPainter* painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
void paint(QPainter* painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||
|
||||
void setForceVisitItem(bool enable);
|
||||
|
||||
|
@ -44,7 +44,7 @@ public:
|
||||
|
||||
void adjustSize();
|
||||
|
||||
bool eventFilter(QObject* object, QEvent* event);
|
||||
bool eventFilter(QObject* object, QEvent* event) override;
|
||||
|
||||
Q_SIGNALS:
|
||||
void closed();
|
||||
|
@ -189,9 +189,9 @@ class QmlBrowserActionButton : public AbstractButtonInterface
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit QmlBrowserActionButton(QObject *parent = nullptr);
|
||||
QString id() const;
|
||||
QString id() const override;
|
||||
void setId(const QString &id);
|
||||
QString name() const;
|
||||
QString name() const override;
|
||||
void setName(const QString &name);
|
||||
void setTitle(const QString &title);
|
||||
void setToolTip(const QString &toolTip);
|
||||
|
@ -57,7 +57,7 @@ class QmlExtensionSchemeHandler : public ExtensionSchemeHandler
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
void requestStarted(QWebEngineUrlRequestJob *job);
|
||||
void requestStarted(QWebEngineUrlRequestJob *job) override;
|
||||
Q_SIGNALS:
|
||||
void _requestStarted(QWebEngineUrlRequestJob *job);
|
||||
};
|
||||
|
@ -140,9 +140,9 @@ class QmlSideBarHelper : public SideBarInterface
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit QmlSideBarHelper(QObject *parent = nullptr);
|
||||
QString title() const;
|
||||
QAction *createMenuAction();
|
||||
QWidget *createSideBarWidget(BrowserWindow *mainWindow);
|
||||
QString title() const override;
|
||||
QAction *createMenuAction() override;
|
||||
QWidget *createSideBarWidget(BrowserWindow *mainWindow) override;
|
||||
|
||||
void setTitle(const QString &title);
|
||||
void setIcon(const QString &icon);
|
||||
|
@ -36,7 +36,7 @@ public:
|
||||
private:
|
||||
QIcon m_icon;
|
||||
|
||||
void paintEvent(QPaintEvent*) {
|
||||
void paintEvent(QPaintEvent*) override {
|
||||
QPainter p(this);
|
||||
m_icon.paint(&p, rect());
|
||||
}
|
||||
|
@ -33,18 +33,18 @@ class FALKON_EXPORT PopupWebView : public WebView
|
||||
public:
|
||||
explicit PopupWebView(QWidget* parent = 0);
|
||||
|
||||
QWidget* overlayWidget() Q_DECL_OVERRIDE;
|
||||
void loadInNewTab(const LoadRequest &req, Qz::NewTabPositionFlags position) Q_DECL_OVERRIDE;
|
||||
QWidget* overlayWidget() override;
|
||||
void loadInNewTab(const LoadRequest &req, Qz::NewTabPositionFlags position) override;
|
||||
|
||||
void closeView() Q_DECL_OVERRIDE;
|
||||
bool isFullScreen() Q_DECL_OVERRIDE;
|
||||
void requestFullScreen(bool enable) Q_DECL_OVERRIDE;
|
||||
void closeView() override;
|
||||
bool isFullScreen() override;
|
||||
void requestFullScreen(bool enable) override;
|
||||
|
||||
public Q_SLOTS:
|
||||
void inspectElement();
|
||||
|
||||
private:
|
||||
void _contextMenuEvent(QContextMenuEvent *event) Q_DECL_OVERRIDE;
|
||||
void _contextMenuEvent(QContextMenuEvent *event) override;
|
||||
|
||||
Menu* m_menu;
|
||||
QPointer<WebInspector> m_inspector;
|
||||
|
@ -40,7 +40,7 @@ public:
|
||||
static QByteArray generateHeader(const QStringList &langs);
|
||||
|
||||
public Q_SLOTS:
|
||||
void accept();
|
||||
void accept() override;
|
||||
|
||||
private Q_SLOTS:
|
||||
void addLanguage();
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
~JsOptions();
|
||||
|
||||
public Q_SLOTS:
|
||||
void accept();
|
||||
void accept() override;
|
||||
|
||||
private:
|
||||
Ui::JsOptions* ui;
|
||||
|
@ -29,8 +29,8 @@ class FALKON_EXPORT PluginListDelegate : public QStyledItemDelegate
|
||||
public:
|
||||
explicit PluginListDelegate(QListWidget* parent);
|
||||
|
||||
void paint(QPainter* painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
void paint(QPainter* painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||
|
||||
private:
|
||||
mutable int m_rowHeight;
|
||||
|
@ -89,7 +89,7 @@ private Q_SLOTS:
|
||||
void makeFalkonDefault();
|
||||
|
||||
private:
|
||||
void closeEvent(QCloseEvent* event);
|
||||
void closeEvent(QCloseEvent* event) override;
|
||||
|
||||
Ui::Preferences* ui;
|
||||
BrowserWindow* m_window;
|
||||
|
@ -43,7 +43,7 @@ private Q_SLOTS:
|
||||
void removeSite();
|
||||
void editSite();
|
||||
|
||||
void accept();
|
||||
void accept() override;
|
||||
|
||||
void enableGlobalComboBox(bool enable);
|
||||
void enablePerSiteFrame(bool enable);
|
||||
|
@ -182,10 +182,10 @@ protected:
|
||||
int mainTabBarWidth() const;
|
||||
int pinTabBarWidth() const;
|
||||
|
||||
bool event(QEvent *event);
|
||||
void wheelEvent(QWheelEvent* event);
|
||||
bool eventFilter(QObject* obj, QEvent* ev);
|
||||
void paintEvent(QPaintEvent* ev);
|
||||
bool event(QEvent *event) override;
|
||||
void wheelEvent(QWheelEvent* event) override;
|
||||
bool eventFilter(QObject* obj, QEvent* ev) override;
|
||||
void paintEvent(QPaintEvent* ev) override;
|
||||
|
||||
virtual int comboTabBarPixelMetric(SizeType sizeType) const;
|
||||
virtual QSize tabSizeHint(int index, bool fast = false) const;
|
||||
@ -241,7 +241,7 @@ public:
|
||||
|
||||
void setTabButton(int index, QTabBar::ButtonPosition position, QWidget* widget);
|
||||
|
||||
QSize tabSizeHint(int index) const;
|
||||
QSize tabSizeHint(int index) const override;
|
||||
QSize baseClassTabSizeHint(int index) const;
|
||||
|
||||
QRect draggedTabRect() const;
|
||||
@ -267,11 +267,11 @@ public Q_SLOTS:
|
||||
void setCurrentIndex(int index);
|
||||
|
||||
private:
|
||||
bool event(QEvent* ev);
|
||||
void paintEvent(QPaintEvent* event);
|
||||
void mousePressEvent(QMouseEvent* event);
|
||||
void mouseMoveEvent(QMouseEvent *event);
|
||||
void mouseReleaseEvent(QMouseEvent* event);
|
||||
bool event(QEvent* ev) override;
|
||||
void paintEvent(QPaintEvent* event) override;
|
||||
void mousePressEvent(QMouseEvent* event) override;
|
||||
void mouseMoveEvent(QMouseEvent *event) override;
|
||||
void mouseReleaseEvent(QMouseEvent* event) override;
|
||||
|
||||
int dragOffset(QStyleOptionTab *option, int tabIndex) const;
|
||||
void initStyleOption(QStyleOptionTab* option, int tabIndex) const;
|
||||
@ -341,8 +341,8 @@ private Q_SLOTS:
|
||||
void updateScrollButtonsState();
|
||||
|
||||
private:
|
||||
void mouseMoveEvent(QMouseEvent* event);
|
||||
void resizeEvent(QResizeEvent* event);
|
||||
void mouseMoveEvent(QMouseEvent* event) override;
|
||||
void resizeEvent(QResizeEvent* event) override;
|
||||
|
||||
QTabBar* m_tabBar;
|
||||
QScrollArea* m_scrollArea;
|
||||
|
@ -36,12 +36,12 @@ public:
|
||||
void loadSettings();
|
||||
|
||||
TabWidget* tabWidget() const;
|
||||
void setVisible(bool visible);
|
||||
void setVisible(bool visible) override;
|
||||
void setForceHidden(bool hidden);
|
||||
|
||||
void setTabText(int index, const QString &text);
|
||||
|
||||
void wheelEvent(QWheelEvent* event);
|
||||
void wheelEvent(QWheelEvent* event) override;
|
||||
|
||||
Q_SIGNALS:
|
||||
void moveAddTabButton(int posX);
|
||||
@ -54,26 +54,26 @@ private Q_SLOTS:
|
||||
private:
|
||||
inline bool validIndex(int index) const { return index >= 0 && index < count(); }
|
||||
|
||||
void tabInserted(int index);
|
||||
void tabRemoved(int index);
|
||||
void tabInserted(int index) override;
|
||||
void tabRemoved(int index) override;
|
||||
|
||||
void hideCloseButton(int index);
|
||||
void showCloseButton(int index);
|
||||
void updatePinnedTabCloseButton(int index);
|
||||
|
||||
void contextMenuEvent(QContextMenuEvent* event);
|
||||
void mouseDoubleClickEvent(QMouseEvent* event);
|
||||
void mousePressEvent(QMouseEvent* event);
|
||||
void mouseMoveEvent(QMouseEvent* event);
|
||||
void mouseReleaseEvent(QMouseEvent* event);
|
||||
void contextMenuEvent(QContextMenuEvent* event) override;
|
||||
void mouseDoubleClickEvent(QMouseEvent* event) override;
|
||||
void mousePressEvent(QMouseEvent* event) override;
|
||||
void mouseMoveEvent(QMouseEvent* event) override;
|
||||
void mouseReleaseEvent(QMouseEvent* event) override;
|
||||
|
||||
void dragEnterEvent(QDragEnterEvent* event);
|
||||
void dragMoveEvent(QDragMoveEvent *event);
|
||||
void dragLeaveEvent(QDragLeaveEvent *event);
|
||||
void dropEvent(QDropEvent* event);
|
||||
void dragEnterEvent(QDragEnterEvent* event) override;
|
||||
void dragMoveEvent(QDragMoveEvent *event) override;
|
||||
void dragLeaveEvent(QDragLeaveEvent *event) override;
|
||||
void dropEvent(QDropEvent* event) override;
|
||||
|
||||
QSize tabSizeHint(int index, bool fast) const;
|
||||
int comboTabBarPixelMetric(ComboTabBar::SizeType sizeType) const;
|
||||
QSize tabSizeHint(int index, bool fast) const override;
|
||||
int comboTabBarPixelMetric(ComboTabBar::SizeType sizeType) const override;
|
||||
WebTab* webTab(int index = -1) const;
|
||||
|
||||
BrowserWindow* m_window;
|
||||
|
@ -78,8 +78,8 @@ private Q_SLOTS:
|
||||
void tabWasRemoved(int index);
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject* obj, QEvent* event);
|
||||
void keyPressEvent(QKeyEvent* event);
|
||||
bool eventFilter(QObject* obj, QEvent* event) override;
|
||||
void keyPressEvent(QKeyEvent* event) override;
|
||||
|
||||
private:
|
||||
bool validIndex(int index) const;
|
||||
|
@ -42,8 +42,8 @@ public:
|
||||
explicit AddTabButton(TabWidget* tabWidget, TabBar* tabBar);
|
||||
|
||||
private:
|
||||
void wheelEvent(QWheelEvent* event);
|
||||
void mouseReleaseEvent(QMouseEvent* event);
|
||||
void wheelEvent(QWheelEvent* event) override;
|
||||
void mouseReleaseEvent(QMouseEvent* event) override;
|
||||
|
||||
TabBar* m_tabBar;
|
||||
TabWidget* m_tabWidget;
|
||||
@ -59,7 +59,7 @@ Q_SIGNALS:
|
||||
void closeTab(int);
|
||||
|
||||
private:
|
||||
void mouseReleaseEvent(QMouseEvent* event);
|
||||
void mouseReleaseEvent(QMouseEvent* event) override;
|
||||
};
|
||||
|
||||
class FALKON_EXPORT TabWidget : public TabStackedWidget
|
||||
|
@ -42,7 +42,7 @@ private Q_SLOTS:
|
||||
void animateFrame(int frame);
|
||||
|
||||
private:
|
||||
void resizeEvent(QResizeEvent* e);
|
||||
void resizeEvent(QResizeEvent* e) override;
|
||||
|
||||
Direction m_direction;
|
||||
QTimeLine m_timeLine;
|
||||
|
@ -82,8 +82,8 @@ private Q_SLOTS:
|
||||
void generateMenu();
|
||||
|
||||
private:
|
||||
void mousePressEvent(QMouseEvent *event);
|
||||
void wheelEvent(QWheelEvent* event);
|
||||
void mousePressEvent(QMouseEvent *event) override;
|
||||
void wheelEvent(QWheelEvent* event) override;
|
||||
|
||||
QMenu* m_menu;
|
||||
QVector<Item> m_items;
|
||||
|
@ -50,8 +50,8 @@ Q_SIGNALS:
|
||||
private:
|
||||
void updateIcon();
|
||||
|
||||
void resizeEvent(QResizeEvent *ev);
|
||||
void mouseReleaseEvent(QMouseEvent* ev);
|
||||
void resizeEvent(QResizeEvent *ev) override;
|
||||
void mouseReleaseEvent(QMouseEvent* ev) override;
|
||||
|
||||
QString m_themeIcon;
|
||||
QIcon m_fallbackIcon;
|
||||
|
@ -42,8 +42,8 @@ Q_SIGNALS:
|
||||
public Q_SLOTS:
|
||||
|
||||
private:
|
||||
void mouseReleaseEvent(QMouseEvent* e);
|
||||
void keyPressEvent(QKeyEvent* e);
|
||||
void mouseReleaseEvent(QMouseEvent* e) override;
|
||||
void keyPressEvent(QKeyEvent* e) override;
|
||||
|
||||
void closeAllMenus();
|
||||
|
||||
|
@ -32,8 +32,8 @@ public Q_SLOTS:
|
||||
void setFocus();
|
||||
|
||||
protected:
|
||||
void focusInEvent(QFocusEvent* event);
|
||||
void mousePressEvent(QMouseEvent* event);
|
||||
void focusInEvent(QFocusEvent* event) override;
|
||||
void mousePressEvent(QMouseEvent* event) override;
|
||||
|
||||
bool m_mouseFocusReason;
|
||||
|
||||
|
@ -39,8 +39,8 @@ private Q_SLOTS:
|
||||
void toggleSectionVisibility();
|
||||
|
||||
private:
|
||||
void showEvent(QShowEvent* event);
|
||||
void contextMenuEvent(QContextMenuEvent* event);
|
||||
void showEvent(QShowEvent* event) override;
|
||||
void contextMenuEvent(QContextMenuEvent* event) override;
|
||||
|
||||
QAbstractItemView* m_parent;
|
||||
QMenu* m_menu;
|
||||
|
@ -26,10 +26,10 @@ public:
|
||||
explicit HorizontalListWidget(QWidget* parent = 0);
|
||||
|
||||
private:
|
||||
void mousePressEvent(QMouseEvent* event);
|
||||
void mouseMoveEvent(QMouseEvent* event);
|
||||
void mouseReleaseEvent(QMouseEvent* event);
|
||||
void wheelEvent(QWheelEvent* event);
|
||||
void mousePressEvent(QMouseEvent* event) override;
|
||||
void mouseMoveEvent(QMouseEvent* event) override;
|
||||
void mouseReleaseEvent(QMouseEvent* event) override;
|
||||
void wheelEvent(QWheelEvent* event) override;
|
||||
|
||||
bool m_mouseDown;
|
||||
};
|
||||
|
@ -32,8 +32,8 @@ public:
|
||||
|
||||
int itemHeight() const;
|
||||
|
||||
void paint(QPainter* painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
void paint(QPainter* painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||
|
||||
private:
|
||||
int m_iconSize;
|
||||
|
@ -34,7 +34,7 @@ public Q_SLOTS:
|
||||
void setValue(int value);
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent* e);
|
||||
void paintEvent(QPaintEvent* e) override;
|
||||
void initStyleOption(QStyleOptionProgressBar* option);
|
||||
|
||||
private:
|
||||
|
@ -87,11 +87,11 @@ private Q_SLOTS:
|
||||
void showMenu();
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QMouseEvent* e);
|
||||
void mouseReleaseEvent(QMouseEvent* e);
|
||||
void mouseDoubleClickEvent(QMouseEvent* e);
|
||||
void contextMenuEvent(QContextMenuEvent *e);
|
||||
void paintEvent(QPaintEvent* e);
|
||||
void mousePressEvent(QMouseEvent* e) override;
|
||||
void mouseReleaseEvent(QMouseEvent* e) override;
|
||||
void mouseDoubleClickEvent(QMouseEvent* e) override;
|
||||
void contextMenuEvent(QContextMenuEvent *e) override;
|
||||
void paintEvent(QPaintEvent* e) override;
|
||||
|
||||
private:
|
||||
QImage m_multiIcon;
|
||||
|
@ -57,7 +57,7 @@ private Q_SLOTS:
|
||||
void sheduleRefresh();
|
||||
|
||||
private:
|
||||
void mousePressEvent(QMouseEvent* event);
|
||||
void mousePressEvent(QMouseEvent* event) override;
|
||||
void iterateAllItems(QTreeWidgetItem* parent);
|
||||
|
||||
bool m_refreshAllItemsNeeded;
|
||||
|
@ -45,8 +45,8 @@ private Q_SLOTS:
|
||||
void loadFinished();
|
||||
|
||||
private:
|
||||
void keyPressEvent(QKeyEvent *event) Q_DECL_OVERRIDE;
|
||||
void keyReleaseEvent(QKeyEvent *event) Q_DECL_OVERRIDE;
|
||||
void keyPressEvent(QKeyEvent *event) override;
|
||||
void keyReleaseEvent(QKeyEvent *event) override;
|
||||
|
||||
static QList<QWebEngineView*> s_views;
|
||||
|
||||
|
@ -57,9 +57,9 @@ public:
|
||||
void scroll(int x, int y);
|
||||
void setScrollPosition(const QPointF &pos);
|
||||
|
||||
bool javaScriptPrompt(const QUrl &securityOrigin, const QString &msg, const QString &defaultValue, QString* result) Q_DECL_OVERRIDE;
|
||||
bool javaScriptConfirm(const QUrl &securityOrigin, const QString &msg) Q_DECL_OVERRIDE;
|
||||
void javaScriptAlert(const QUrl &securityOrigin, const QString &msg) Q_DECL_OVERRIDE;
|
||||
bool javaScriptPrompt(const QUrl &securityOrigin, const QString &msg, const QString &defaultValue, QString* result) override;
|
||||
bool javaScriptConfirm(const QUrl &securityOrigin, const QString &msg) override;
|
||||
void javaScriptAlert(const QUrl &securityOrigin, const QString &msg) override;
|
||||
void javaScriptConsoleMessage(JavaScriptConsoleMessageLevel level, const QString &message, int lineNumber, const QString &sourceID) override;
|
||||
|
||||
QStringList autoFillUsernames() const;
|
||||
@ -94,10 +94,10 @@ private Q_SLOTS:
|
||||
void renderProcessTerminated(RenderProcessTerminationStatus terminationStatus, int exitCode);
|
||||
|
||||
private:
|
||||
bool acceptNavigationRequest(const QUrl &url, NavigationType type, bool isMainFrame) Q_DECL_OVERRIDE;
|
||||
bool certificateError(const QWebEngineCertificateError &error) Q_DECL_OVERRIDE;
|
||||
QStringList chooseFiles(FileSelectionMode mode, const QStringList &oldFiles, const QStringList &acceptedMimeTypes) Q_DECL_OVERRIDE;
|
||||
QWebEnginePage* createWindow(QWebEnginePage::WebWindowType type) Q_DECL_OVERRIDE;
|
||||
bool acceptNavigationRequest(const QUrl &url, NavigationType type, bool isMainFrame) override;
|
||||
bool certificateError(const QWebEngineCertificateError &error) override;
|
||||
QStringList chooseFiles(FileSelectionMode mode, const QStringList &oldFiles, const QStringList &acceptedMimeTypes) override;
|
||||
QWebEnginePage* createWindow(QWebEnginePage::WebWindowType type) override;
|
||||
|
||||
void handleUnknownProtocol(const QUrl &url);
|
||||
void desktopServicesOpen(const QUrl &url);
|
||||
|
@ -42,7 +42,7 @@ public:
|
||||
void showMinimalInPopupWindow();
|
||||
|
||||
void focusSearchLine();
|
||||
bool eventFilter(QObject* obj, QEvent* event);
|
||||
bool eventFilter(QObject* obj, QEvent* event) override;
|
||||
|
||||
public Q_SLOTS:
|
||||
void setText(const QString &text);
|
||||
|
@ -48,12 +48,12 @@ public:
|
||||
QString getIp() const;
|
||||
int tabIndex() const;
|
||||
|
||||
QWidget* overlayWidget() Q_DECL_OVERRIDE;
|
||||
void closeView() Q_DECL_OVERRIDE;
|
||||
void loadInNewTab(const LoadRequest &req, Qz::NewTabPositionFlags position) Q_DECL_OVERRIDE;
|
||||
QWidget* overlayWidget() override;
|
||||
void closeView() override;
|
||||
void loadInNewTab(const LoadRequest &req, Qz::NewTabPositionFlags position) override;
|
||||
|
||||
bool isFullScreen() Q_DECL_OVERRIDE;
|
||||
void requestFullScreen(bool enable) Q_DECL_OVERRIDE;
|
||||
bool isFullScreen() override;
|
||||
void requestFullScreen(bool enable) override;
|
||||
|
||||
Q_SIGNALS:
|
||||
void wantsCloseTab(int);
|
||||
@ -73,8 +73,8 @@ private Q_SLOTS:
|
||||
void inspectElement();
|
||||
|
||||
private:
|
||||
void _contextMenuEvent(QContextMenuEvent *event) Q_DECL_OVERRIDE;
|
||||
void _mouseMoveEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
|
||||
void _contextMenuEvent(QContextMenuEvent *event) override;
|
||||
void _mouseMoveEvent(QMouseEvent *event) override;
|
||||
|
||||
BrowserWindow* m_window;
|
||||
WebTab* m_webTab;
|
||||
|
@ -58,7 +58,7 @@ public:
|
||||
void setScrollDivider(double divider);
|
||||
|
||||
private:
|
||||
bool eventFilter(QObject* obj, QEvent* event);
|
||||
bool eventFilter(QObject* obj, QEvent* event) override;
|
||||
|
||||
bool showIndicator(WebView* view, const QPoint &pos);
|
||||
void stopScrolling();
|
||||
|
@ -69,8 +69,8 @@ private Q_SLOTS:
|
||||
void cookieTreeContextMenuRequested(const QPoint &pos);
|
||||
|
||||
private:
|
||||
void closeEvent(QCloseEvent* e);
|
||||
void keyPressEvent(QKeyEvent* e);
|
||||
void closeEvent(QCloseEvent* e) override;
|
||||
void keyPressEvent(QKeyEvent* e) override;
|
||||
|
||||
Ui::FCM_Dialog* ui;
|
||||
|
||||
|
@ -27,8 +27,8 @@ public:
|
||||
|
||||
int padding() const;
|
||||
|
||||
void paint(QPainter* painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
void paint(QPainter* painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||
QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||
|
||||
private:
|
||||
QPixmap m_removePixmap;
|
||||
|
@ -38,8 +38,8 @@ private:
|
||||
bool containsRemoveIcon(const QPoint &pos) const;
|
||||
bool containsUpdateIcon(const QPoint &pos) const;
|
||||
|
||||
void mousePressEvent(QMouseEvent* event);
|
||||
void mouseDoubleClickEvent(QMouseEvent* event);
|
||||
void mousePressEvent(QMouseEvent* event) override;
|
||||
void mouseDoubleClickEvent(QMouseEvent* event) override;
|
||||
|
||||
GM_SettingsListDelegate* m_delegate;
|
||||
|
||||
|
@ -55,7 +55,7 @@ public:
|
||||
m_object = object;
|
||||
}
|
||||
|
||||
void callback() {
|
||||
void callback() override {
|
||||
m_object->emitGestured();
|
||||
}
|
||||
|
||||
|
@ -82,7 +82,7 @@ public:
|
||||
bool mouseMoveEvent(QMouseEvent* event, QObject* obj = 0);
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject* obj, QEvent* event);
|
||||
bool eventFilter(QObject* obj, QEvent* event) override;
|
||||
|
||||
private:
|
||||
bool paintEvent(QObject* obj, QPaintEvent* event);
|
||||
|
@ -40,7 +40,7 @@ private Q_SLOTS:
|
||||
|
||||
private:
|
||||
void updateToolTip();
|
||||
void enterEvent(QEvent* event);
|
||||
void enterEvent(QEvent* event) override;
|
||||
|
||||
QNetworkConfigurationManager* m_networkConfiguration;
|
||||
};
|
||||
|
@ -25,7 +25,7 @@ class TabManagerDelegate : public QStyledItemDelegate
|
||||
public:
|
||||
explicit TabManagerDelegate(QObject* parent = 0);
|
||||
|
||||
void paint(QPainter* painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;
|
||||
void paint(QPainter* painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
|
||||
|
||||
private:
|
||||
void viewItemDrawText(QPainter *p, const QStyleOptionViewItem *option, const QRect &rect,
|
||||
|
@ -17,7 +17,7 @@ public:
|
||||
~TabManagerSettings();
|
||||
|
||||
public Q_SLOTS:
|
||||
void accept();
|
||||
void accept() override;
|
||||
|
||||
private:
|
||||
Ui::TabManagerSettings* ui;
|
||||
|
@ -880,7 +880,7 @@ QStringList TabTreeWidget::mimeTypes() const
|
||||
return types;
|
||||
}
|
||||
|
||||
QMimeData *TabTreeWidget::mimeData(const QList<QTreeWidgetItem*> &items) const
|
||||
QMimeData *TabTreeWidget::mimeData(const QList<QTreeWidgetItem*> items) const
|
||||
{
|
||||
QMimeData* mimeData = new QMimeData();
|
||||
QByteArray encodedData;
|
||||
|
@ -42,10 +42,10 @@ class TabTreeWidget : public QTreeWidget
|
||||
public:
|
||||
TabTreeWidget(QWidget* parent = 0);
|
||||
|
||||
Qt::DropActions supportedDropActions() const;
|
||||
QStringList mimeTypes() const;
|
||||
QMimeData* mimeData(const QList<QTreeWidgetItem*> &items) const;
|
||||
bool dropMimeData(QTreeWidgetItem *parent, int index, const QMimeData *data, Qt::DropAction action);
|
||||
Qt::DropActions supportedDropActions() const override;
|
||||
QStringList mimeTypes() const override;
|
||||
QMimeData* mimeData(const QList<QTreeWidgetItem*> items) const override;
|
||||
bool dropMimeData(QTreeWidgetItem *parent, int index, const QMimeData *data, Qt::DropAction action) override;
|
||||
|
||||
void setEnableDragTabs(bool enable);
|
||||
|
||||
@ -110,7 +110,7 @@ private Q_SLOTS:
|
||||
void filterBarClosed();
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject* obj, QEvent* event);
|
||||
bool eventFilter(QObject* obj, QEvent* event) override;
|
||||
|
||||
Q_SIGNALS:
|
||||
void showSideBySide();
|
||||
|
@ -32,9 +32,9 @@ public:
|
||||
explicit TabManagerWidgetController(QObject* parent = 0);
|
||||
~TabManagerWidgetController();
|
||||
|
||||
QString title() const;
|
||||
QAction* createMenuAction();
|
||||
QWidget* createSideBarWidget(BrowserWindow* mainWindow);
|
||||
QString title() const override;
|
||||
QAction* createMenuAction() override;
|
||||
QWidget* createSideBarWidget(BrowserWindow* mainWindow) override;
|
||||
|
||||
AbstractButtonInterface* createStatusBarIcon(BrowserWindow* mainWindow);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user