Commit fac9be59 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Use more override

parent 469d0c90
......@@ -43,7 +43,7 @@ class UAChangerPlugin : public KParts::Plugin
public:
explicit UAChangerPlugin(QObject *parent, const QVariantList &args);
virtual ~UAChangerPlugin();
~UAChangerPlugin() override;
protected slots:
void slotDefault();
......
......@@ -101,7 +101,7 @@ class KonqSidebarBookmarksPlugin : public KonqSidebarPlugin
public:
KonqSidebarBookmarksPlugin(QObject *parent, const QVariantList &args)
: KonqSidebarPlugin(parent, args) {}
virtual ~KonqSidebarBookmarksPlugin() {}
~KonqSidebarBookmarksPlugin() override {}
KonqSidebarModule *createModule(QWidget *parent,
const KConfigGroup &configGroup,
......
......@@ -33,9 +33,9 @@ class KonqSideBarBookmarksModule : public KonqSidebarModule
public:
KonqSideBarBookmarksModule(QWidget *parent,
const KConfigGroup &configGroup);
virtual ~KonqSideBarBookmarksModule();
~KonqSideBarBookmarksModule() override;
virtual QWidget *getWidget() override;
QWidget *getWidget() override;
void handleURL(const QUrl &hand_url) override;
private slots:
......
......@@ -131,9 +131,9 @@ class KonqSidebarHistoryPlugin : public KonqSidebarPlugin
public:
KonqSidebarHistoryPlugin(QObject *parent, const QVariantList &args)
: KonqSidebarPlugin(parent, args) {}
virtual ~KonqSidebarHistoryPlugin() {}
~KonqSidebarHistoryPlugin() override {}
virtual KonqSidebarModule *createModule(QWidget *parent,
KonqSidebarModule *createModule(QWidget *parent,
const KConfigGroup &configGroup,
const QString &desktopname,
const QVariant &unused) override
......@@ -143,7 +143,7 @@ public:
return new KonqSidebarHistoryModule(parent, configGroup);
}
virtual QList<QAction *> addNewActions(QObject *parent,
QList<QAction *> addNewActions(QObject *parent,
const QList<KConfigGroup> &existingModules,
const QVariant &unused) override
{
......@@ -155,7 +155,7 @@ public:
return QList<QAction *>() << action;
}
virtual QString templateNameForNewModule(const QVariant &actionData,
QString templateNameForNewModule(const QVariant &actionData,
const QVariant &unused) const override
{
Q_UNUSED(actionData);
......@@ -163,7 +163,7 @@ public:
return QString::fromLatin1("historyplugin%1.desktop");
}
virtual bool createNewModule(const QVariant &actionData, KConfigGroup &configGroup,
bool createNewModule(const QVariant &actionData, KConfigGroup &configGroup,
QWidget *parentWidget,
const QVariant &unused) override
{
......
......@@ -32,8 +32,8 @@ class KonqSidebarHistoryModule : public KonqSidebarModule
Q_OBJECT
public:
KonqSidebarHistoryModule(QWidget *parent, const KConfigGroup &configGroup);
virtual ~KonqSidebarHistoryModule();
virtual QWidget *getWidget() override;
~KonqSidebarHistoryModule() override;
QWidget *getWidget() override;
public Q_SLOTS:
void slotCurViewUrlChanged(const QUrl& url) override;
......
......@@ -35,9 +35,9 @@ Q_SIGNALS:
void urlsDropped(const QList<QUrl> &urls);
protected:
virtual void dragEnterEvent(QDragEnterEvent *event) override;
virtual void dragMoveEvent(QDragMoveEvent *event) override;
virtual void dropEvent(QDropEvent *event) override;
void dragEnterEvent(QDragEnterEvent *event) override;
void dragMoveEvent(QDragMoveEvent *event) override;
void dropEvent(QDropEvent *event) override;
};
#endif /* KONQMULTITABBAR_H */
......
......@@ -54,7 +54,7 @@ class KONQSIDEBARPLUGIN_EXPORT KonqSidebarModule : public QObject
public:
KonqSidebarModule(QObject *parent,
const KConfigGroup &configGroup);
~KonqSidebarModule();
~KonqSidebarModule() override;
virtual QWidget *getWidget() = 0;
KConfigGroup configGroup();
......@@ -150,7 +150,7 @@ public:
{
Q_UNUSED(args);
}
virtual ~KonqSidebarPlugin() {}
~KonqSidebarPlugin() override {}
/**
* Create new module for the sidebar.
......
......@@ -68,9 +68,9 @@ class KonqSidebarPlacesPlugin : public KonqSidebarPlugin
public:
KonqSidebarPlacesPlugin(QObject *parent, const QVariantList &args)
: KonqSidebarPlugin(parent, args) {}
virtual ~KonqSidebarPlacesPlugin() {}
~KonqSidebarPlacesPlugin() override {}
virtual KonqSidebarModule *createModule(QWidget *parent,
KonqSidebarModule *createModule(QWidget *parent,
const KConfigGroup &configGroup,
const QString &desktopname,
const QVariant &unused) override
......@@ -80,7 +80,7 @@ public:
return new KonqSideBarPlacesModule(parent, configGroup);
}
virtual QList<QAction *> addNewActions(QObject *parent,
QList<QAction *> addNewActions(QObject *parent,
const QList<KConfigGroup> &existingModules,
const QVariant &unused) override
{
......@@ -92,7 +92,7 @@ public:
return QList<QAction *>() << action;
}
virtual QString templateNameForNewModule(const QVariant &actionData,
QString templateNameForNewModule(const QVariant &actionData,
const QVariant &unused) const override
{
Q_UNUSED(actionData);
......@@ -100,7 +100,7 @@ public:
return QString::fromLatin1("placessidebarplugin%1.desktop");
}
virtual bool createNewModule(const QVariant &actionData,
bool createNewModule(const QVariant &actionData,
KConfigGroup &configGroup,
QWidget *parentWidget,
const QVariant &unused) override
......
......@@ -33,9 +33,9 @@ class KonqSideBarPlacesModule : public KonqSidebarModule
public:
KonqSideBarPlacesModule(QWidget *parent,
const KConfigGroup &configGroup);
virtual ~KonqSideBarPlacesModule() = default;
~KonqSideBarPlacesModule() override = default;
virtual QWidget *getWidget() override;
QWidget *getWidget() override;
private slots:
void slotPlaceUrlChanged(const QUrl &url);
......
......@@ -29,7 +29,7 @@ class KonqSidebarBrowserExtension : public KParts::BrowserExtension
Q_OBJECT
public:
KonqSidebarBrowserExtension(KonqSidebarPart *part, Sidebar_Widget *widget);
~KonqSidebarBrowserExtension() {}
~KonqSidebarBrowserExtension() override {}
protected:
QPointer<Sidebar_Widget> widget;
......@@ -83,18 +83,18 @@ public:
/**
* Destructor
*/
virtual ~KonqSidebarPart();
~KonqSidebarPart() override;
virtual bool openUrl(const QUrl &url) override;
bool openUrl(const QUrl &url) override;
protected:
/**
* This must be implemented by each part
*/
KonqSidebarBrowserExtension *m_extension;
virtual bool openFile() override;
bool openFile() override;
virtual void customEvent(QEvent *ev) override;
void customEvent(QEvent *ev) override;
private:
Sidebar_Widget *m_widget;
......
......@@ -83,12 +83,12 @@ public:
public:
Sidebar_Widget(QWidget *parent, KParts::ReadOnlyPart *par,
const QString &currentProfile);
~Sidebar_Widget();
~Sidebar_Widget() override;
bool openUrl(const QUrl &url);
void stdAction(const char *handlestd);
KParts::BrowserExtension *getExtension();
virtual QSize sizeHint() const override;
QSize sizeHint() const override;
public Q_SLOTS:
void addWebSideBar(const QUrl &url, const QString &name);
......@@ -96,8 +96,8 @@ public Q_SLOTS:
protected:
void customEvent(QEvent *ev) override;
//void resizeEvent(QResizeEvent* ev);
virtual bool eventFilter(QObject *, QEvent *) override;
virtual void mousePressEvent(QMouseEvent *) override;
bool eventFilter(QObject *, QEvent *) override;
void mousePressEvent(QMouseEvent *) override;
protected Q_SLOTS:
void showHidePage(int value);
......
......@@ -30,14 +30,14 @@ public:
Q_UNUSED(desktopName);
widget = new QLabel("Init Value", parent);
}
~SidebarTest() {}
virtual QWidget *getWidget()
~SidebarTest() override {}
QWidget *getWidget() override
{
return widget;
}
protected:
QLabel *widget;
virtual void handleURL(const QUrl &url)
void handleURL(const QUrl &url) override
{
widget->setText(url.url());
}
......
......@@ -247,7 +247,7 @@ class KonqSidebarTreePlugin : public KonqSidebarPlugin
public:
KonqSidebarTreePlugin(QObject *parent, const QVariantList &args)
: KonqSidebarPlugin(parent, args) {}
virtual ~KonqSidebarTreePlugin() {}
~KonqSidebarTreePlugin() override {}
KonqSidebarModule *createModule(QWidget *parent,
const KConfigGroup &configGroup,
......
......@@ -45,9 +45,9 @@ class KonqSideBarTreeModule : public KonqSidebarModule
public:
KonqSideBarTreeModule(QWidget *parent,
const KConfigGroup &configGroup);
virtual ~KonqSideBarTreeModule();
~KonqSideBarTreeModule() override;
virtual QWidget *getWidget() override;
QWidget *getWidget() override;
void handleURL(const QUrl &hand_url) override;
private slots:
......
......@@ -43,7 +43,7 @@ public:
const QString &type, const QString &location);
KImportedBookmarkMenu(KBookmarkManager *mgr,
KBookmarkOwner *owner, QMenu *parentMenu);
~KImportedBookmarkMenu();
~KImportedBookmarkMenu() override;
void clear() override;
void refill() override;
protected Q_SLOTS:
......@@ -88,7 +88,7 @@ public:
KBookmarkActionInterface(KBookmark())
{
}
~KImportedBookmarkActionMenu()
~KImportedBookmarkActionMenu() override
{}
};
......
......@@ -43,7 +43,7 @@ public:
* Default constructor
*/
KonqBrowserInterface(KonqMainWindow *mainWindow, KParts::ReadOnlyPart *part);
~KonqBrowserInterface(){}
~KonqBrowserInterface() override {}
public slots:
void toggleCompleteFullScreen(bool on);
......
......@@ -35,7 +35,7 @@ class KONQUERORPRIVATE_EXPORT KonqPixmapProvider : public QObject
public:
static KonqPixmapProvider *self();
~KonqPixmapProvider();
~KonqPixmapProvider() override;
/**
* Trigger a download of a default favicon
......
......@@ -43,7 +43,7 @@ public:
/**
* Destroys the tab bar.
*/
virtual ~KTabBar();
~KTabBar() override;
Q_SIGNALS:
/**
......
......@@ -52,7 +52,7 @@ public:
/**
* Destroys the tab widget.
*/
virtual ~KTabWidget();
~KTabWidget() override;
/**
* Returns true if calling setTitle() will resize tabs
......
......@@ -64,7 +64,7 @@ public:
/**
* @brief Destructor
*/
~WebEngineCustomizeCacheableFieldsDlg(){}
~WebEngineCustomizeCacheableFieldsDlg() override{}
/**
* @brief The list of fields chosen by the user
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment