mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Add some missing overrides
This commit is contained in:
parent
bf9b7667f7
commit
e4252d56ef
20
src/lib/3rdparty/fancytabwidget.h
vendored
20
src/lib/3rdparty/fancytabwidget.h
vendored
@ -58,13 +58,13 @@ class FALKON_EXPORT FancyTabProxyStyle : public QProxyStyle
|
||||
|
||||
public:
|
||||
void drawControl(ControlElement element, const QStyleOption* option,
|
||||
QPainter* painter, const QWidget* widget) const;
|
||||
void polish(QWidget* widget);
|
||||
void polish(QApplication* app);
|
||||
void polish(QPalette &palette);
|
||||
QPainter* painter, const QWidget* widget) const override;
|
||||
void polish(QWidget* widget) override;
|
||||
void polish(QApplication* app) override;
|
||||
void polish(QPalette &palette) override;
|
||||
|
||||
protected:
|
||||
bool eventFilter(QObject* o, QEvent* e);
|
||||
bool eventFilter(QObject* o, QEvent* e) override;
|
||||
};
|
||||
|
||||
class FALKON_EXPORT FancyTab : public QWidget
|
||||
@ -77,7 +77,7 @@ public:
|
||||
float fader() { return m_fader; }
|
||||
void setFader(float value);
|
||||
|
||||
QSize sizeHint() const;
|
||||
QSize sizeHint() const override;
|
||||
|
||||
void fadeIn();
|
||||
void fadeOut();
|
||||
@ -86,8 +86,8 @@ public:
|
||||
QString text;
|
||||
|
||||
protected:
|
||||
void enterEvent(QEvent*);
|
||||
void leaveEvent(QEvent*);
|
||||
void enterEvent(QEvent*) override;
|
||||
void leaveEvent(QEvent*) override;
|
||||
|
||||
private:
|
||||
QPropertyAnimation animator;
|
||||
@ -200,8 +200,8 @@ Q_SIGNALS:
|
||||
void ModeChanged(FancyTabWidget::Mode mode);
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent* event);
|
||||
void contextMenuEvent(QContextMenuEvent* e);
|
||||
void paintEvent(QPaintEvent* event) override;
|
||||
void contextMenuEvent(QContextMenuEvent* e) override;
|
||||
|
||||
private Q_SLOTS:
|
||||
void ShowWidget(int index);
|
||||
|
2
src/lib/3rdparty/squeezelabelv1.h
vendored
2
src/lib/3rdparty/squeezelabelv1.h
vendored
@ -45,7 +45,7 @@ public:
|
||||
SqueezeLabelV1(QWidget* parent = 0);
|
||||
|
||||
protected:
|
||||
void paintEvent(QPaintEvent* event);
|
||||
void paintEvent(QPaintEvent* event) override;
|
||||
|
||||
private:
|
||||
QString m_SqueezedTextCache;
|
||||
|
10
src/lib/3rdparty/squeezelabelv2.h
vendored
10
src/lib/3rdparty/squeezelabelv2.h
vendored
@ -37,12 +37,12 @@ private Q_SLOTS:
|
||||
void copy();
|
||||
|
||||
protected:
|
||||
void contextMenuEvent(QContextMenuEvent* event);
|
||||
void keyPressEvent(QKeyEvent* event);
|
||||
void resizeEvent(QResizeEvent* event);
|
||||
void contextMenuEvent(QContextMenuEvent* event) override;
|
||||
void keyPressEvent(QKeyEvent* event) override;
|
||||
void resizeEvent(QResizeEvent* event) override;
|
||||
|
||||
void mousePressEvent(QMouseEvent* event);
|
||||
void mouseMoveEvent(QMouseEvent* event);
|
||||
void mousePressEvent(QMouseEvent* event) override;
|
||||
void mouseMoveEvent(QMouseEvent* event) override;
|
||||
|
||||
private:
|
||||
QString m_originalText;
|
||||
|
@ -41,7 +41,7 @@ Q_SIGNALS:
|
||||
void save();
|
||||
|
||||
private:
|
||||
void timerEvent(QTimerEvent* event);
|
||||
void timerEvent(QTimerEvent* event) override;
|
||||
|
||||
QBasicTimer m_timer;
|
||||
};
|
||||
|
@ -180,11 +180,11 @@ private Q_SLOTS:
|
||||
void hideNavigationSlot();
|
||||
|
||||
private:
|
||||
bool event(QEvent* event);
|
||||
void resizeEvent(QResizeEvent* event);
|
||||
void keyPressEvent(QKeyEvent* event);
|
||||
void keyReleaseEvent(QKeyEvent* event);
|
||||
void closeEvent(QCloseEvent* event);
|
||||
bool event(QEvent* event) override;
|
||||
void resizeEvent(QResizeEvent* event) override;
|
||||
void keyPressEvent(QKeyEvent* event) override;
|
||||
void keyReleaseEvent(QKeyEvent* event) override;
|
||||
void closeEvent(QCloseEvent* event) override;
|
||||
|
||||
void setupUi();
|
||||
void setupMenu();
|
||||
|
@ -37,8 +37,8 @@ private Q_SLOTS:
|
||||
void iconClicked();
|
||||
|
||||
private:
|
||||
void contextMenuEvent(QContextMenuEvent* ev);
|
||||
void mousePressEvent(QMouseEvent* ev);
|
||||
void contextMenuEvent(QContextMenuEvent* ev) override;
|
||||
void mousePressEvent(QMouseEvent* ev) override;
|
||||
|
||||
WebView* m_view;
|
||||
|
||||
|
@ -42,8 +42,8 @@ private Q_SLOTS:
|
||||
void iconClicked();
|
||||
|
||||
private:
|
||||
void contextMenuEvent(QContextMenuEvent* ev);
|
||||
void mousePressEvent(QMouseEvent* ev);
|
||||
void contextMenuEvent(QContextMenuEvent* ev) override;
|
||||
void mousePressEvent(QMouseEvent* ev) override;
|
||||
|
||||
void setBookmarkSaved();
|
||||
void setBookmarkDisabled();
|
||||
|
@ -31,7 +31,7 @@ class FALKON_EXPORT BookmarksItemDelegate : public QStyledItemDelegate
|
||||
public:
|
||||
explicit BookmarksItemDelegate(QTreeView* 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:
|
||||
QTreeView* m_tree;
|
||||
|
@ -75,8 +75,8 @@ private:
|
||||
BookmarkItem* parentForNewBookmark() const;
|
||||
BrowserWindow* getWindow();
|
||||
|
||||
void showEvent(QShowEvent* event);
|
||||
void keyPressEvent(QKeyEvent* event);
|
||||
void showEvent(QShowEvent* event) override;
|
||||
void keyPressEvent(QKeyEvent* event) override;
|
||||
|
||||
Ui::BookmarksManager* ui;
|
||||
QPointer<BrowserWindow> m_window;
|
||||
|
@ -53,20 +53,20 @@ public:
|
||||
void addBookmark(BookmarkItem* parent, int row, BookmarkItem* item);
|
||||
void removeBookmark(BookmarkItem* item);
|
||||
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
||||
QVariant data(const QModelIndex &index, int role) const;
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
|
||||
int rowCount(const QModelIndex &parent) const;
|
||||
int columnCount(const QModelIndex &parent) const;
|
||||
bool hasChildren(const QModelIndex &parent) const;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||
QVariant data(const QModelIndex &index, int role) const override;
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role) const override;
|
||||
int rowCount(const QModelIndex &parent) const override;
|
||||
int columnCount(const QModelIndex &parent) const override;
|
||||
bool hasChildren(const QModelIndex &parent) const override;
|
||||
|
||||
Qt::DropActions supportedDropActions() const;
|
||||
QStringList mimeTypes() const;
|
||||
QMimeData* mimeData(const QModelIndexList &indexes) const;
|
||||
bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex &parent);
|
||||
Qt::DropActions supportedDropActions() const override;
|
||||
QStringList mimeTypes() const override;
|
||||
QMimeData* mimeData(const QModelIndexList &indexes) const override;
|
||||
bool dropMimeData(const QMimeData* data, Qt::DropAction action, int row, int column, const QModelIndex &parent) override;
|
||||
|
||||
QModelIndex parent(const QModelIndex &child) const;
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
|
||||
QModelIndex parent(const QModelIndex &child) const override;
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
|
||||
QModelIndex index(BookmarkItem* item, int column = 0) const;
|
||||
|
||||
BookmarkItem* item(const QModelIndex &index) const;
|
||||
@ -90,7 +90,7 @@ public Q_SLOTS:
|
||||
void setFilterFixedString(const QString &pattern);
|
||||
|
||||
protected:
|
||||
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
|
||||
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
|
||||
|
||||
private Q_SLOTS:
|
||||
void startFiltering();
|
||||
|
@ -57,11 +57,11 @@ private:
|
||||
|
||||
QSize minimumSizeHint() const override;
|
||||
|
||||
void dropEvent(QDropEvent* e);
|
||||
void dragEnterEvent(QDragEnterEvent* e);
|
||||
void dragMoveEvent(QDragMoveEvent* e);
|
||||
void dragLeaveEvent(QDragLeaveEvent* e);
|
||||
void paintEvent(QPaintEvent* p);
|
||||
void dropEvent(QDropEvent* e) override;
|
||||
void dragEnterEvent(QDragEnterEvent* e) override;
|
||||
void dragMoveEvent(QDragMoveEvent* e) override;
|
||||
void dragLeaveEvent(QDragLeaveEvent* e) override;
|
||||
void paintEvent(QPaintEvent* p) override;
|
||||
|
||||
BrowserWindow* m_window;
|
||||
Bookmarks* m_bookmarks;
|
||||
|
@ -72,15 +72,15 @@ private Q_SLOTS:
|
||||
|
||||
private:
|
||||
void restoreExpandedState(const QModelIndex &parent);
|
||||
void rowsInserted(const QModelIndex &parent, int start, int end);
|
||||
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected);
|
||||
void rowsInserted(const QModelIndex &parent, int start, int end) override;
|
||||
void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected) override;
|
||||
|
||||
void contextMenuEvent(QContextMenuEvent* event);
|
||||
void mouseMoveEvent(QMouseEvent* event);
|
||||
void mousePressEvent(QMouseEvent* event);
|
||||
void mouseReleaseEvent(QMouseEvent* event);
|
||||
void mouseDoubleClickEvent(QMouseEvent* event);
|
||||
void keyPressEvent(QKeyEvent* event);
|
||||
void contextMenuEvent(QContextMenuEvent* event) override;
|
||||
void mouseMoveEvent(QMouseEvent* event) override;
|
||||
void mousePressEvent(QMouseEvent* event) override;
|
||||
void mouseReleaseEvent(QMouseEvent* event) override;
|
||||
void mouseDoubleClickEvent(QMouseEvent* event) override;
|
||||
void keyPressEvent(QKeyEvent* event) override;
|
||||
|
||||
Bookmarks* m_bookmarks;
|
||||
BookmarksModel* m_model;
|
||||
|
@ -58,8 +58,8 @@ private Q_SLOTS:
|
||||
void removeCookie(const QNetworkCookie &cookie);
|
||||
|
||||
private:
|
||||
void closeEvent(QCloseEvent* e);
|
||||
void keyPressEvent(QKeyEvent* e);
|
||||
void closeEvent(QCloseEvent* e) override;
|
||||
void keyPressEvent(QKeyEvent* e) override;
|
||||
|
||||
void addBlacklist(const QString &server);
|
||||
QString cookieDomain(const QNetworkCookie &cookie) const;
|
||||
|
@ -74,7 +74,7 @@ private Q_SLOTS:
|
||||
|
||||
private:
|
||||
void updateDownloadInfo(double currSpeed, qint64 received, qint64 total);
|
||||
void mouseDoubleClickEvent(QMouseEvent* e);
|
||||
void mouseDoubleClickEvent(QMouseEvent* e) override;
|
||||
|
||||
Ui::DownloadItem* ui;
|
||||
|
||||
|
@ -47,21 +47,21 @@ public:
|
||||
|
||||
explicit HistoryModel(History* history);
|
||||
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
|
||||
QVariant data(const QModelIndex &index, int role) const;
|
||||
bool setData(const QModelIndex &index, const QVariant &value, int role);
|
||||
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
|
||||
QVariant data(const QModelIndex &index, int role) const override;
|
||||
bool setData(const QModelIndex &index, const QVariant &value, int role) override;
|
||||
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
|
||||
QModelIndex parent(const QModelIndex &child) const;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const;
|
||||
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
|
||||
QModelIndex parent(const QModelIndex &child) const override;
|
||||
Qt::ItemFlags flags(const QModelIndex &index) const override;
|
||||
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const;
|
||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
|
||||
|
||||
bool canFetchMore(const QModelIndex &parent) const;
|
||||
void fetchMore(const QModelIndex &parent);
|
||||
bool canFetchMore(const QModelIndex &parent) const override;
|
||||
void fetchMore(const QModelIndex &parent) override;
|
||||
|
||||
bool hasChildren(const QModelIndex &parent) const;
|
||||
bool hasChildren(const QModelIndex &parent) const override;
|
||||
|
||||
HistoryItem* itemFromIndex(const QModelIndex &index) const;
|
||||
|
||||
@ -98,7 +98,7 @@ Q_SIGNALS:
|
||||
void collapseAllItems();
|
||||
|
||||
protected:
|
||||
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
|
||||
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const override;
|
||||
|
||||
private Q_SLOTS:
|
||||
void startFiltering();
|
||||
|
@ -58,14 +58,14 @@ public Q_SLOTS:
|
||||
void removeSelectedItems();
|
||||
|
||||
protected:
|
||||
void contextMenuEvent(QContextMenuEvent* event);
|
||||
void mouseMoveEvent(QMouseEvent* event);
|
||||
void mousePressEvent(QMouseEvent* event);
|
||||
void mouseReleaseEvent(QMouseEvent* event);
|
||||
void mouseDoubleClickEvent(QMouseEvent* event);
|
||||
void keyPressEvent(QKeyEvent* event);
|
||||
void contextMenuEvent(QContextMenuEvent* event) override;
|
||||
void mouseMoveEvent(QMouseEvent* event) override;
|
||||
void mousePressEvent(QMouseEvent* event) override;
|
||||
void mouseReleaseEvent(QMouseEvent* event) override;
|
||||
void mouseDoubleClickEvent(QMouseEvent* event) override;
|
||||
void keyPressEvent(QKeyEvent* event) override;
|
||||
|
||||
void drawRow(QPainter* painter, const QStyleOptionViewItem &options, const QModelIndex &index) const;
|
||||
void drawRow(QPainter* painter, const QStyleOptionViewItem &options, const QModelIndex &index) const override;
|
||||
|
||||
private:
|
||||
History* m_history;
|
||||
|
@ -27,8 +27,8 @@ public:
|
||||
explicit DownIcon(QWidget* parent = 0);
|
||||
|
||||
private:
|
||||
void contextMenuEvent(QContextMenuEvent* ev);
|
||||
void mousePressEvent(QMouseEvent* ev);
|
||||
void contextMenuEvent(QContextMenuEvent* ev) override;
|
||||
void mousePressEvent(QMouseEvent* ev) override;
|
||||
|
||||
};
|
||||
|
||||
|
@ -27,8 +27,8 @@ public:
|
||||
explicit GoIcon(QWidget* parent = 0);
|
||||
|
||||
private:
|
||||
void contextMenuEvent(QContextMenuEvent* ev);
|
||||
void mousePressEvent(QMouseEvent* ev);
|
||||
void contextMenuEvent(QContextMenuEvent* ev) override;
|
||||
void mousePressEvent(QMouseEvent* ev) override;
|
||||
|
||||
};
|
||||
|
||||
|
@ -100,13 +100,13 @@ private:
|
||||
ProgressTop
|
||||
};
|
||||
|
||||
void contextMenuEvent(QContextMenuEvent* event);
|
||||
void showEvent(QShowEvent* event);
|
||||
void focusInEvent(QFocusEvent* event);
|
||||
void focusOutEvent(QFocusEvent* event);
|
||||
void keyPressEvent(QKeyEvent* event);
|
||||
void dropEvent(QDropEvent* event);
|
||||
void paintEvent(QPaintEvent* event);
|
||||
void contextMenuEvent(QContextMenuEvent* event) override;
|
||||
void showEvent(QShowEvent* event) override;
|
||||
void focusInEvent(QFocusEvent* event) override;
|
||||
void focusOutEvent(QFocusEvent* event) override;
|
||||
void keyPressEvent(QKeyEvent* event) override;
|
||||
void dropEvent(QDropEvent* event) override;
|
||||
void paintEvent(QPaintEvent* event) override;
|
||||
|
||||
void refreshTextFormat();
|
||||
|
||||
|
@ -37,7 +37,7 @@ public:
|
||||
void toggleTabsOnTop(bool enable);
|
||||
|
||||
private:
|
||||
void paintEvent(QPaintEvent* event);
|
||||
void paintEvent(QPaintEvent* event) override;
|
||||
|
||||
QVBoxLayout* m_layout;
|
||||
TabBar* m_tabBar;
|
||||
|
@ -43,10 +43,10 @@ private Q_SLOTS:
|
||||
void popupClosed();
|
||||
|
||||
private:
|
||||
void contextMenuEvent(QContextMenuEvent* e);
|
||||
void mousePressEvent(QMouseEvent* e);
|
||||
void mouseReleaseEvent(QMouseEvent* e);
|
||||
void mouseMoveEvent(QMouseEvent* e);
|
||||
void contextMenuEvent(QContextMenuEvent* e) override;
|
||||
void mousePressEvent(QMouseEvent* e) override;
|
||||
void mouseReleaseEvent(QMouseEvent* e) override;
|
||||
void mouseMoveEvent(QMouseEvent* e) override;
|
||||
|
||||
bool showPopup();
|
||||
|
||||
|
@ -41,7 +41,7 @@ public:
|
||||
explicit WebSearchBar_Button(QWidget* parent = 0);
|
||||
|
||||
private:
|
||||
void contextMenuEvent(QContextMenuEvent* event);
|
||||
void contextMenuEvent(QContextMenuEvent* event) override;
|
||||
};
|
||||
|
||||
class FALKON_EXPORT WebSearchBar : public LineEdit
|
||||
@ -69,11 +69,11 @@ private Q_SLOTS:
|
||||
void instantSearchChanged(bool);
|
||||
|
||||
private:
|
||||
void focusOutEvent(QFocusEvent* e);
|
||||
void dropEvent(QDropEvent* event);
|
||||
void keyPressEvent(QKeyEvent* event);
|
||||
void focusOutEvent(QFocusEvent* e) override;
|
||||
void dropEvent(QDropEvent* event) override;
|
||||
void keyPressEvent(QKeyEvent* event) override;
|
||||
|
||||
void contextMenuEvent(QContextMenuEvent* event);
|
||||
void contextMenuEvent(QContextMenuEvent* event) override;
|
||||
|
||||
QCompleter* m_completer;
|
||||
QStringListModel* m_completerModel;
|
||||
|
@ -49,7 +49,7 @@ public:
|
||||
void shutdown();
|
||||
|
||||
protected:
|
||||
QNetworkReply *createRequest(Operation op, const QNetworkRequest &request, QIODevice *outgoingData) Q_DECL_OVERRIDE;
|
||||
QNetworkReply *createRequest(Operation op, const QNetworkRequest &request, QIODevice *outgoingData) override;
|
||||
|
||||
private:
|
||||
NetworkUrlInterceptor *m_urlInterceptor;
|
||||
|
@ -42,8 +42,8 @@ public:
|
||||
~DesktopNotification();
|
||||
|
||||
private:
|
||||
void mousePressEvent(QMouseEvent* e);
|
||||
void mouseMoveEvent(QMouseEvent* e);
|
||||
void mousePressEvent(QMouseEvent* e) override;
|
||||
void mouseMoveEvent(QMouseEvent* e) override;
|
||||
|
||||
Ui::DesktopNotification* ui;
|
||||
bool m_settingPosition;
|
||||
|
@ -53,8 +53,8 @@ private Q_SLOTS:
|
||||
void exportBookmarks();
|
||||
|
||||
private:
|
||||
void closeEvent(QCloseEvent* e);
|
||||
void keyPressEvent(QKeyEvent* e);
|
||||
void closeEvent(QCloseEvent* e) override;
|
||||
void keyPressEvent(QKeyEvent* e) override;
|
||||
|
||||
Ui::BrowsingLibrary* ui;
|
||||
HistoryManager* m_historyManager;
|
||||
|
@ -44,7 +44,7 @@ private Q_SLOTS:
|
||||
void showCookieManager();
|
||||
|
||||
private:
|
||||
void closeEvent(QCloseEvent* e);
|
||||
void closeEvent(QCloseEvent* e) override;
|
||||
|
||||
void restoreState(const QByteArray &state);
|
||||
QByteArray saveState();
|
||||
|
@ -53,8 +53,8 @@ class FALKON_EXPORT IconChooserDelegate : public QStyledItemDelegate
|
||||
public:
|
||||
explicit IconChooserDelegate(QWidget* 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;
|
||||
};
|
||||
|
||||
#endif // ICONCHOOSER_H
|
||||
|
@ -38,10 +38,10 @@ public:
|
||||
void show(QWidget* widget);
|
||||
void hideDelayed();
|
||||
|
||||
bool eventFilter(QObject* o, QEvent* e);
|
||||
bool eventFilter(QObject* o, QEvent* e) override;
|
||||
|
||||
private:
|
||||
void paintEvent(QPaintEvent* ev);
|
||||
void paintEvent(QPaintEvent* ev) override;
|
||||
|
||||
QTimer* m_timer;
|
||||
};
|
||||
@ -60,7 +60,7 @@ public:
|
||||
void removeButton(AbstractButtonInterface *button);
|
||||
|
||||
protected:
|
||||
void mousePressEvent(QMouseEvent *event);
|
||||
void mousePressEvent(QMouseEvent *event) override;
|
||||
|
||||
private:
|
||||
BrowserWindow *m_window;
|
||||
|
Loading…
Reference in New Issue
Block a user