Commit 885631dc authored by Kevin Funk's avatar Kevin Funk

Use override where possible

Also: Q_DECL_OVERRIDE -> override

ACK'd by Dominik
parent 0c076fb7
......@@ -30,7 +30,7 @@ class BtFileIndexer : public QThread
Q_OBJECT
public:
BtFileIndexer(KateBtDatabase *db);
virtual ~BtFileIndexer();
~BtFileIndexer() override;
void setSearchPaths(const QStringList &urls);
void setFilter(const QStringList &filter);
......@@ -38,7 +38,7 @@ public:
void cancel();
protected:
void run() Q_DECL_OVERRIDE;
void run() override;
void indexFiles(const QString &url);
private:
......
......@@ -42,11 +42,11 @@ class KateBtBrowserPlugin : public KTextEditor::Plugin
public:
explicit KateBtBrowserPlugin(QObject *parent = nullptr, const QList<QVariant> & = QList<QVariant>());
virtual ~KateBtBrowserPlugin();
~KateBtBrowserPlugin() override;
static KateBtBrowserPlugin &self();
QObject *createView(KTextEditor::MainWindow *mainWindow) Q_DECL_OVERRIDE;
QObject *createView(KTextEditor::MainWindow *mainWindow) override;
KateBtDatabase &database();
BtFileIndexer &fileIndexer();
......@@ -57,8 +57,8 @@ Q_SIGNALS:
void newStatus(const QString &);
public:
int configPages() const Q_DECL_OVERRIDE;
KTextEditor::ConfigPage *configPage(int number, QWidget *parent = nullptr) Q_DECL_OVERRIDE;
int configPages() const override;
KTextEditor::ConfigPage *configPage(int number, QWidget *parent = nullptr) override;
//
// private data
......@@ -79,7 +79,7 @@ public:
/**
* Virtual destructor.
*/
~KateBtBrowserPluginView();
~KateBtBrowserPluginView() override;
private:
KateBtBrowserPlugin *m_plugin;
......@@ -93,7 +93,7 @@ class KateBtBrowserWidget : public QWidget, public Ui::BtBrowserWidget
public:
KateBtBrowserWidget(KTextEditor::MainWindow *mainwindow, QWidget *parent);
~KateBtBrowserWidget();
~KateBtBrowserWidget() override;
void loadBacktrace(const QString &bt);
......@@ -117,16 +117,16 @@ class KateBtConfigWidget : public KTextEditor::ConfigPage, private Ui::BtConfigW
Q_OBJECT
public:
explicit KateBtConfigWidget(QWidget *parent = nullptr);
virtual ~KateBtConfigWidget();
~KateBtConfigWidget() override;
QString name() const Q_DECL_OVERRIDE;
QString fullName() const Q_DECL_OVERRIDE;
QIcon icon() const Q_DECL_OVERRIDE;
QString name() const override;
QString fullName() const override;
QIcon icon() const override;
public Q_SLOTS:
void apply() Q_DECL_OVERRIDE;
void reset() Q_DECL_OVERRIDE;
void defaults() Q_DECL_OVERRIDE;
void apply() override;
void reset() override;
void defaults() override;
private Q_SLOTS:
void add();
......@@ -142,7 +142,7 @@ class KateBtConfigDialog : public QDialog
Q_OBJECT
public:
KateBtConfigDialog(QWidget *parent = nullptr);
~KateBtConfigDialog();
~KateBtConfigDialog() override;
private:
KateBtConfigWidget *m_configWidget;
......
......@@ -52,7 +52,7 @@ class CloseConfirmDialog : public QDialog, public Ui::CloseConfirmDialog
public:
/// Default constructor
explicit CloseConfirmDialog(QList<KTextEditor::Document*>&, KToggleAction*, QWidget* const = nullptr);
~CloseConfirmDialog();
~CloseConfirmDialog() override;
private Q_SLOTS:
void updateDocsList();
......
......@@ -59,7 +59,7 @@ public:
/// Default constructor
CloseExceptPluginView(KTextEditor::MainWindow*, CloseExceptPlugin*);
/// Destructor
~CloseExceptPluginView();
~CloseExceptPluginView() override;
private Q_SLOTS:
void viewCreated(KTextEditor::View*);
......@@ -121,13 +121,13 @@ public:
/// Default constructor
CloseExceptPlugin(QObject* = nullptr, const QList<QVariant>& = QList<QVariant>());
/// Destructor
virtual ~CloseExceptPlugin() {}
~CloseExceptPlugin() override {}
/// Create a new view of this plugin for the given main window
QObject* createView(KTextEditor::MainWindow*) Q_DECL_OVERRIDE;
QObject* createView(KTextEditor::MainWindow*) override;
/// \name Plugin interface implementation
//@{
void readSessionConfig(const KConfigGroup&) Q_DECL_OVERRIDE;
void writeSessionConfig(KConfigGroup&) Q_DECL_OVERRIDE;
void readSessionConfig(const KConfigGroup&) override;
void writeSessionConfig(KConfigGroup&) override;
//@}
bool showConfirmationNeeded() const
{
......
......@@ -34,17 +34,17 @@ class KateBookmarkHandler : public QObject, public KBookmarkOwner
public:
explicit KateBookmarkHandler( KateFileBrowser *parent, QMenu *kpopupmenu = nullptr );
~KateBookmarkHandler();
~KateBookmarkHandler() override;
// KBookmarkOwner interface:
QUrl currentUrl() const Q_DECL_OVERRIDE;
QString currentTitle() const Q_DECL_OVERRIDE;
QUrl currentUrl() const override;
QString currentTitle() const override;
QMenu *menu() const
{
return m_menu;
}
void openBookmark( const KBookmark &, Qt::MouseButtons, Qt::KeyboardModifiers ) Q_DECL_OVERRIDE;
void openBookmark( const KBookmark &, Qt::MouseButtons, Qt::KeyboardModifiers ) override;
Q_SIGNALS:
void openUrl( const QString& url );
......
......@@ -57,7 +57,7 @@ class KateFileBrowser : public QWidget
public:
explicit KateFileBrowser( KTextEditor::MainWindow *mainWindow = nullptr,
QWidget * parent = nullptr);
~KateFileBrowser();
~KateFileBrowser() override;
void readSessionConfig (const KConfigGroup& config);
void writeSessionConfig (KConfigGroup& config);
......
......@@ -34,16 +34,16 @@ class KateFileBrowserConfigPage : public KTextEditor::ConfigPage
public:
explicit KateFileBrowserConfigPage( QWidget* parent = nullptr, KateFileBrowser *kfb = nullptr);
virtual ~KateFileBrowserConfigPage()
~KateFileBrowserConfigPage() override
{}
QString name() const Q_DECL_OVERRIDE;
QString fullName() const Q_DECL_OVERRIDE;
QIcon icon() const Q_DECL_OVERRIDE;
QString name() const override;
QString fullName() const override;
QIcon icon() const override;
void apply() Q_DECL_OVERRIDE;
void reset() Q_DECL_OVERRIDE;
void defaults() Q_DECL_OVERRIDE
void apply() override;
void reset() override;
void defaults() override
{}
private Q_SLOTS:
......
......@@ -38,13 +38,13 @@ class KateFileBrowserPlugin: public KTextEditor::Plugin
public:
explicit KateFileBrowserPlugin( QObject* parent = nullptr, const QList<QVariant>& = QList<QVariant>() );
virtual ~KateFileBrowserPlugin()
~KateFileBrowserPlugin() override
{}
QObject *createView (KTextEditor::MainWindow *mainWindow) Q_DECL_OVERRIDE;
QObject *createView (KTextEditor::MainWindow *mainWindow) override;
int configPages() const Q_DECL_OVERRIDE;
KTextEditor::ConfigPage *configPage (int number = 0, QWidget *parent = nullptr) Q_DECL_OVERRIDE;
int configPages() const override;
KTextEditor::ConfigPage *configPage (int number = 0, QWidget *parent = nullptr) override;
public Q_SLOTS:
void viewDestroyed(QObject* view);
......@@ -67,13 +67,13 @@ class KateFileBrowserPluginView : public QObject, public KTextEditor::SessionCon
/**
* Virtual destructor.
*/
~KateFileBrowserPluginView ();
~KateFileBrowserPluginView () override;
void readSessionConfig (const KConfigGroup& config) Q_DECL_OVERRIDE;
void writeSessionConfig (KConfigGroup& config) Q_DECL_OVERRIDE;
void readSessionConfig (const KConfigGroup& config) override;
void writeSessionConfig (KConfigGroup& config) override;
private:
bool eventFilter(QObject*, QEvent*) Q_DECL_OVERRIDE;
bool eventFilter(QObject*, QEvent*) override;
QWidget *m_toolView;
KateFileBrowser *m_fileBrowser;
......
......@@ -40,64 +40,64 @@ class DummyDocument : public KTextEditor::Document
}
DummyDocument (const char *url) : DummyDocument(QString::fromLatin1(url)) {}
virtual ~DummyDocument () {}
KTextEditor::View *createView ( QWidget *, KTextEditor::MainWindow * = nullptr ) Q_DECL_OVERRIDE { return nullptr; }
~DummyDocument () override {}
KTextEditor::View *createView ( QWidget *, KTextEditor::MainWindow * = nullptr ) override { return nullptr; }
virtual KTextEditor::View *activeView() const { return nullptr; }
QList<KTextEditor::View*> views() const Q_DECL_OVERRIDE { return m_views; }
QString documentName() const Q_DECL_OVERRIDE { return m_name; }
QString mimeType() Q_DECL_OVERRIDE { return QString(); }
QByteArray checksum() const Q_DECL_OVERRIDE { return QByteArray(); }
bool setEncoding (const QString &) Q_DECL_OVERRIDE { return false; }
QString encoding () const Q_DECL_OVERRIDE { return m_encoding; }
bool documentReload () Q_DECL_OVERRIDE { return true; }
bool documentSave () Q_DECL_OVERRIDE { return true; }
bool documentSaveAs () Q_DECL_OVERRIDE { return true; }
bool isEditingTransactionRunning() const Q_DECL_OVERRIDE { return false; }
QString text () const Q_DECL_OVERRIDE { return QString(); }
QString text ( const KTextEditor::Range&, bool = false ) const Q_DECL_OVERRIDE { return QString(); }
QChar characterAt( const KTextEditor::Cursor&) const Q_DECL_OVERRIDE { return QChar(); }
QString wordAt(const KTextEditor::Cursor&) const Q_DECL_OVERRIDE { return QString(); }
KTextEditor::Range wordRangeAt(const KTextEditor::Cursor&) const Q_DECL_OVERRIDE { return KTextEditor::Range(); }
bool isValidTextPosition(const KTextEditor::Cursor&) const Q_DECL_OVERRIDE { return true; }
QStringList textLines ( const KTextEditor::Range&, bool = false ) const Q_DECL_OVERRIDE { return QStringList(); }
QString line ( int ) const Q_DECL_OVERRIDE { return QString(); }
int lines () const Q_DECL_OVERRIDE { return 0; }
KTextEditor::Cursor documentEnd() const Q_DECL_OVERRIDE { return KTextEditor::Cursor(); }
int totalCharacters() const Q_DECL_OVERRIDE { return 0; }
int lineLength ( int ) const Q_DECL_OVERRIDE { return 0; }
bool setText ( const QString & ) Q_DECL_OVERRIDE { return false; }
bool setText ( const QStringList & ) Q_DECL_OVERRIDE { return false; }
bool clear () Q_DECL_OVERRIDE { return true; }
bool insertText ( const KTextEditor::Cursor &, const QString &, bool = false ) Q_DECL_OVERRIDE { return false; }
bool insertText ( const KTextEditor::Cursor &, const QStringList &, bool = false ) Q_DECL_OVERRIDE { return false; }
bool removeText ( const KTextEditor::Range &, bool = false ) Q_DECL_OVERRIDE { return false; }
bool insertLine ( int, const QString & ) Q_DECL_OVERRIDE { return false; }
bool insertLines ( int, const QStringList & ) Q_DECL_OVERRIDE { return false; }
bool removeLine ( int ) Q_DECL_OVERRIDE { return false; }
KTextEditor::DefaultStyle defaultStyleAt(const KTextEditor::Cursor &) const Q_DECL_OVERRIDE { return KTextEditor::dsNormal; }
QString mode() const Q_DECL_OVERRIDE { return QString(); }
QString highlightingMode() const Q_DECL_OVERRIDE { return QString(); }
QStringList modes() const Q_DECL_OVERRIDE { return QStringList(); }
QStringList highlightingModes() const Q_DECL_OVERRIDE {return QStringList(); }
bool setMode(const QString &) Q_DECL_OVERRIDE { return false; }
bool setHighlightingMode(const QString &) Q_DECL_OVERRIDE { return false; }
QString highlightingModeSection( int ) const Q_DECL_OVERRIDE { return QString(); }
QString modeSection( int ) const Q_DECL_OVERRIDE { return QString(); }
bool print() Q_DECL_OVERRIDE { return false; }
void printPreview() Q_DECL_OVERRIDE {}
QStringList embeddedHighlightingModes() const Q_DECL_OVERRIDE { return QStringList(); }
QString highlightingModeAt(const KTextEditor::Cursor &) Q_DECL_OVERRIDE { return QString(); }
bool isLineModified(int) const Q_DECL_OVERRIDE { return false; }
bool isLineSaved(int) const Q_DECL_OVERRIDE { return false; }
bool isLineTouched(int) const Q_DECL_OVERRIDE { return false; }
QList<KTextEditor::View*> views() const override { return m_views; }
QString documentName() const override { return m_name; }
QString mimeType() override { return QString(); }
QByteArray checksum() const override { return QByteArray(); }
bool setEncoding (const QString &) override { return false; }
QString encoding () const override { return m_encoding; }
bool documentReload () override { return true; }
bool documentSave () override { return true; }
bool documentSaveAs () override { return true; }
bool isEditingTransactionRunning() const override { return false; }
QString text () const override { return QString(); }
QString text ( const KTextEditor::Range&, bool = false ) const override { return QString(); }
QChar characterAt( const KTextEditor::Cursor&) const override { return QChar(); }
QString wordAt(const KTextEditor::Cursor&) const override { return QString(); }
KTextEditor::Range wordRangeAt(const KTextEditor::Cursor&) const override { return KTextEditor::Range(); }
bool isValidTextPosition(const KTextEditor::Cursor&) const override { return true; }
QStringList textLines ( const KTextEditor::Range&, bool = false ) const override { return QStringList(); }
QString line ( int ) const override { return QString(); }
int lines () const override { return 0; }
KTextEditor::Cursor documentEnd() const override { return KTextEditor::Cursor(); }
int totalCharacters() const override { return 0; }
int lineLength ( int ) const override { return 0; }
bool setText ( const QString & ) override { return false; }
bool setText ( const QStringList & ) override { return false; }
bool clear () override { return true; }
bool insertText ( const KTextEditor::Cursor &, const QString &, bool = false ) override { return false; }
bool insertText ( const KTextEditor::Cursor &, const QStringList &, bool = false ) override { return false; }
bool removeText ( const KTextEditor::Range &, bool = false ) override { return false; }
bool insertLine ( int, const QString & ) override { return false; }
bool insertLines ( int, const QStringList & ) override { return false; }
bool removeLine ( int ) override { return false; }
KTextEditor::DefaultStyle defaultStyleAt(const KTextEditor::Cursor &) const override { return KTextEditor::dsNormal; }
QString mode() const override { return QString(); }
QString highlightingMode() const override { return QString(); }
QStringList modes() const override { return QStringList(); }
QStringList highlightingModes() const override {return QStringList(); }
bool setMode(const QString &) override { return false; }
bool setHighlightingMode(const QString &) override { return false; }
QString highlightingModeSection( int ) const override { return QString(); }
QString modeSection( int ) const override { return QString(); }
bool print() override { return false; }
void printPreview() override {}
QStringList embeddedHighlightingModes() const override { return QStringList(); }
QString highlightingModeAt(const KTextEditor::Cursor &) override { return QString(); }
bool isLineModified(int) const override { return false; }
bool isLineSaved(int) const override { return false; }
bool isLineTouched(int) const override { return false; }
// KParts::ReadWritePart
bool saveFile() Q_DECL_OVERRIDE { return false; }
bool saveFile() override { return false; }
// make QObject happy
Q_SIGNALS:
......@@ -107,14 +107,14 @@ class DummyDocument : public KTextEditor::Document
void setUrl(const QString &url) { KParts::ReadOnlyPart::setUrl(QUrl(url)); }
void setName(const QString &name) { m_name = name; }
void readSessionConfig(const KConfigGroup &, const QSet<QString> & = QSet<QString>()) Q_DECL_OVERRIDE {}
void writeSessionConfig(KConfigGroup &, const QSet<QString> & = QSet<QString>()) Q_DECL_OVERRIDE {}
void readSessionConfig(const KConfigGroup &, const QSet<QString> & = QSet<QString>()) override {}
void writeSessionConfig(KConfigGroup &, const QSet<QString> & = QSet<QString>()) override {}
bool postMessage(KTextEditor::Message *) Q_DECL_OVERRIDE { return false; }
bool postMessage(KTextEditor::Message *) override { return false; }
bool isDataRecoveryAvailable() const Q_DECL_OVERRIDE { return false; }
void recoverData() Q_DECL_OVERRIDE {}
void discardDataRecovery() Q_DECL_OVERRIDE {}
bool isDataRecoveryAvailable() const override { return false; }
void recoverData() override {}
void discardDataRecovery() override {}
private:
QString m_name, m_encoding;
......
......@@ -38,9 +38,9 @@ class KateFileTree: public QTreeView
public:
KateFileTree(QWidget *parent);
virtual ~KateFileTree();
~KateFileTree() override;
void setModel(QAbstractItemModel *model) Q_DECL_OVERRIDE;
void setModel(QAbstractItemModel *model) override;
public Q_SLOTS:
void slotDocumentClose();
......@@ -60,7 +60,7 @@ public Q_SLOTS:
void slotDocumentDelete();
protected:
void contextMenuEvent(QContextMenuEvent *event) Q_DECL_OVERRIDE;
void contextMenuEvent(QContextMenuEvent *event) override;
Q_SIGNALS:
void closeDocument(KTextEditor::Document *);
......
......@@ -34,16 +34,16 @@ class KateFileTreeConfigPage : public KTextEditor::ConfigPage
Q_OBJECT
public:
explicit KateFileTreeConfigPage(QWidget *parent = nullptr, KateFileTreePlugin *plug = nullptr);
~KateFileTreeConfigPage() {}
~KateFileTreeConfigPage() override {}
QString name() const Q_DECL_OVERRIDE;
QString fullName() const Q_DECL_OVERRIDE;
QIcon icon() const Q_DECL_OVERRIDE;
QString name() const override;
QString fullName() const override;
QIcon icon() const override;
public Q_SLOTS:
void apply() Q_DECL_OVERRIDE;
void defaults() Q_DECL_OVERRIDE;
void reset() Q_DECL_OVERRIDE;
void apply() override;
void defaults() override;
void reset() override;
//Q_SIGNALS:
// void changed();
......
......@@ -43,18 +43,18 @@ public:
enum { DocumentRole = Qt::UserRole + 1, PathRole, OpeningOrderRole, DocumentTreeRole };
KateFileTreeModel(QObject *p);
virtual ~KateFileTreeModel();
~KateFileTreeModel() override;
/* QAbstractItemModel implementations */
Qt::ItemFlags flags(const QModelIndex &index) const Q_DECL_OVERRIDE;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
QModelIndex parent(const QModelIndex &index) const Q_DECL_OVERRIDE;
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
bool hasChildren(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
Qt::ItemFlags flags(const QModelIndex &index) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
QModelIndex parent(const QModelIndex &index) const override;
QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
bool hasChildren(const QModelIndex &parent = QModelIndex()) const override;
QMimeData *mimeData(const QModelIndexList &indexes) const override;
......
......@@ -47,12 +47,12 @@ class KateFileTreePlugin: public KTextEditor::Plugin
public:
explicit KateFileTreePlugin(QObject *parent = nullptr, const QList<QVariant> & = QList<QVariant>());
virtual ~KateFileTreePlugin();
~KateFileTreePlugin() override;
QObject *createView(KTextEditor::MainWindow *mainWindow) Q_DECL_OVERRIDE;
QObject *createView(KTextEditor::MainWindow *mainWindow) override;
int configPages() const Q_DECL_OVERRIDE;
KTextEditor::ConfigPage *configPage(int number = 0, QWidget *parent = nullptr) Q_DECL_OVERRIDE;
int configPages() const override;
KTextEditor::ConfigPage *configPage(int number = 0, QWidget *parent = nullptr) override;
const KateFileTreePluginSettings &settings();
......@@ -82,10 +82,10 @@ public:
/**
* Virtual destructor.
*/
~KateFileTreePluginView();
~KateFileTreePluginView() override;
void readSessionConfig(const KConfigGroup &config) Q_DECL_OVERRIDE;
void writeSessionConfig(KConfigGroup &config) Q_DECL_OVERRIDE;
void readSessionConfig(const KConfigGroup &config) override;
void writeSessionConfig(KConfigGroup &config) override;
/**
* The file tree model.
......
......@@ -35,10 +35,10 @@ public:
KateFileTreeProxyModel(QObject *p = nullptr);
QModelIndex docIndex(const KTextEditor::Document *) const;
bool isDir(const QModelIndex &i) const;
void setSourceModel(QAbstractItemModel *model) Q_DECL_OVERRIDE;
void setSourceModel(QAbstractItemModel *model) override;
protected:
bool lessThan(const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE;
bool lessThan(const QModelIndex &left, const QModelIndex &right) const override;
};
......
......@@ -39,7 +39,7 @@ public:
};
AdvancedGDBSettings(QWidget *parent = nullptr);
~AdvancedGDBSettings();
~AdvancedGDBSettings() override;
const QStringList configs() const;
......
......@@ -65,7 +65,7 @@ public:
};
ConfigView(QWidget* parent, KTextEditor::MainWindow* mainWin);
~ConfigView();
~ConfigView() override;
public:
void registerActions(KActionCollection* actionCollection);
......@@ -91,7 +91,7 @@ private Q_SLOTS:
void slotBrowseDir();
protected:
void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
void resizeEvent(QResizeEvent *event) override;
private:
void saveCurrentToIndex(int index);
......
......@@ -36,7 +36,7 @@ class DebugView : public QObject
Q_OBJECT
public:
DebugView(QObject* parent);
~DebugView();
~DebugView() override;
void runDebugger(const GDBTargetConf &conf, const QStringList &ioFifos);
bool debuggerRunning() const;
......
......@@ -35,7 +35,7 @@ class IOView : public QWidget
Q_OBJECT
public:
IOView(QWidget *parent = nullptr);
~IOView();
~IOView() override;
const QString stdinFifo();
const QString stdoutFifo();
......
......@@ -29,7 +29,7 @@ class LocalsView : public QTreeWidget
Q_OBJECT
public:
LocalsView(QWidget *parent = nullptr);
~LocalsView();
~LocalsView() override;
public Q_SLOTS:
// An empty value string ends the locals
......@@ -41,8 +41,8 @@ Q_SIGNALS:
void localsVisible(bool visible);
protected:
void showEvent(QShowEvent *event) Q_DECL_OVERRIDE;
void hideEvent(QHideEvent *event) Q_DECL_OVERRIDE;
void showEvent(QShowEvent *event) override;
void hideEvent(QHideEvent *event) override;
private:
void createWrappedItem(QTreeWidgetItem *parent, const QString &name, const QString &value);
......
......@@ -48,9 +48,9 @@ class KatePluginGDB : public KTextEditor::Plugin
public:
explicit KatePluginGDB(QObject* parent = nullptr, const VariantList& = VariantList());
virtual ~KatePluginGDB();
~KatePluginGDB() override;
QObject* createView(KTextEditor::MainWindow* mainWindow) Q_DECL_OVERRIDE;
QObject* createView(KTextEditor::MainWindow* mainWindow) override;
};
class KatePluginGDBView : public QObject, public KXMLGUIClient, public KTextEditor::SessionConfigInterface
......@@ -60,11 +60,11 @@ class KatePluginGDBView : public QObject, public KXMLGUIClient, public KTextEdit
public:
KatePluginGDBView(KTextEditor::Plugin *plugin, KTextEditor::MainWindow *mainWin);
~KatePluginGDBView();
~KatePluginGDBView() override;
// reimplemented: read and write session config
void readSessionConfig (const KConfigGroup& config) Q_DECL_OVERRIDE;
void writeSessionConfig (KConfigGroup& config) Q_DECL_OVERRIDE;
void readSessionConfig (const KConfigGroup& config) override;
void writeSessionConfig (KConfigGroup& config) override;
private Q_SLOTS:
void slotDebug();
......@@ -97,7 +97,7 @@ private Q_SLOTS:
void handleEsc(QEvent *e);
protected:
bool eventFilter(QObject *obj, QEvent *ev) Q_DECL_OVERRIDE;
bool eventFilter(QObject *obj, QEvent *ev) override;
private:
QString currentWord();
......
......@@ -40,12 +40,12 @@ class KateCTagsPlugin : public KTextEditor::Plugin
public:
explicit KateCTagsPlugin(QObject* parent = nullptr, const QList<QVariant> & = QList<QVariant>());
virtual ~KateCTagsPlugin() {}
~KateCTagsPlugin() override {}
QObject *createView(KTextEditor::MainWindow *mainWindow) Q_DECL_OVERRIDE;
QObject *createView(KTextEditor::MainWindow *mainWindow) override;
int configPages() const Q_DECL_OVERRIDE { return 1; };
KTextEditor::ConfigPage *configPage (int number = 0, QWidget *parent = nullptr) Q_DECL_OVERRIDE;
int configPages() const override { return 1; };
KTextEditor::ConfigPage *configPage (int number = 0, QWidget *parent = nullptr) override;
void readConfig();