Commit e7810186 authored by Laurent Montel's avatar Laurent Montel 😁

Use Q_DECL_OVERRIDE

parent 022ba9df
...@@ -38,7 +38,7 @@ public: ...@@ -38,7 +38,7 @@ public:
void cancel(); void cancel();
protected: protected:
virtual void run(); void run() Q_DECL_OVERRIDE;
void indexFiles(const QString &url); void indexFiles(const QString &url);
private: private:
......
...@@ -46,7 +46,7 @@ public: ...@@ -46,7 +46,7 @@ public:
static KateBtBrowserPlugin &self(); static KateBtBrowserPlugin &self();
QObject *createView(KTextEditor::MainWindow *mainWindow); QObject *createView(KTextEditor::MainWindow *mainWindow) Q_DECL_OVERRIDE;
KateBtDatabase &database(); KateBtDatabase &database();
BtFileIndexer &fileIndexer(); BtFileIndexer &fileIndexer();
...@@ -57,8 +57,8 @@ Q_SIGNALS: ...@@ -57,8 +57,8 @@ Q_SIGNALS:
void newStatus(const QString &); void newStatus(const QString &);
public: public:
virtual int configPages() const; int configPages() const Q_DECL_OVERRIDE;
virtual KTextEditor::ConfigPage *configPage(int number, QWidget *parent = 0); KTextEditor::ConfigPage *configPage(int number, QWidget *parent = 0) Q_DECL_OVERRIDE;
// //
// private data // private data
...@@ -119,14 +119,14 @@ public: ...@@ -119,14 +119,14 @@ public:
explicit KateBtConfigWidget(QWidget *parent = 0); explicit KateBtConfigWidget(QWidget *parent = 0);
virtual ~KateBtConfigWidget(); virtual ~KateBtConfigWidget();
virtual QString name() const; QString name() const Q_DECL_OVERRIDE;
virtual QString fullName() const; QString fullName() const Q_DECL_OVERRIDE;
virtual QIcon icon() const; QIcon icon() const Q_DECL_OVERRIDE;
public Q_SLOTS: public Q_SLOTS:
virtual void apply(); void apply() Q_DECL_OVERRIDE;
virtual void reset(); void reset() Q_DECL_OVERRIDE;
virtual void defaults(); void defaults() Q_DECL_OVERRIDE;
private Q_SLOTS: private Q_SLOTS:
void add(); void add();
......
...@@ -123,11 +123,11 @@ public: ...@@ -123,11 +123,11 @@ public:
/// Destructor /// Destructor
virtual ~CloseExceptPlugin() {} virtual ~CloseExceptPlugin() {}
/// Create a new view of this plugin for the given main window /// Create a new view of this plugin for the given main window
QObject* createView(KTextEditor::MainWindow*); QObject* createView(KTextEditor::MainWindow*) Q_DECL_OVERRIDE;
/// \name Plugin interface implementation /// \name Plugin interface implementation
//@{ //@{
void readSessionConfig(const KConfigGroup&); void readSessionConfig(const KConfigGroup&) Q_DECL_OVERRIDE;
void writeSessionConfig(KConfigGroup&); void writeSessionConfig(KConfigGroup&) Q_DECL_OVERRIDE;
//@} //@}
bool showConfirmationNeeded() const bool showConfirmationNeeded() const
{ {
......
...@@ -37,14 +37,14 @@ class KateBookmarkHandler : public QObject, public KBookmarkOwner ...@@ -37,14 +37,14 @@ class KateBookmarkHandler : public QObject, public KBookmarkOwner
~KateBookmarkHandler(); ~KateBookmarkHandler();
// KBookmarkOwner interface: // KBookmarkOwner interface:
virtual QUrl currentUrl() const; QUrl currentUrl() const Q_DECL_OVERRIDE;
virtual QString currentTitle() const; QString currentTitle() const Q_DECL_OVERRIDE;
QMenu *menu() const QMenu *menu() const
{ {
return m_menu; return m_menu;
} }
virtual void openBookmark( const KBookmark &, Qt::MouseButtons, Qt::KeyboardModifiers ); void openBookmark( const KBookmark &, Qt::MouseButtons, Qt::KeyboardModifiers ) Q_DECL_OVERRIDE;
Q_SIGNALS: Q_SIGNALS:
void openUrl( const QString& url ); void openUrl( const QString& url );
......
...@@ -37,13 +37,13 @@ class KateFileBrowserConfigPage : public KTextEditor::ConfigPage ...@@ -37,13 +37,13 @@ class KateFileBrowserConfigPage : public KTextEditor::ConfigPage
virtual ~KateFileBrowserConfigPage() virtual ~KateFileBrowserConfigPage()
{} {}
virtual QString name() const; QString name() const Q_DECL_OVERRIDE;
virtual QString fullName() const; QString fullName() const Q_DECL_OVERRIDE;
virtual QIcon icon() const; QIcon icon() const Q_DECL_OVERRIDE;
virtual void apply(); void apply() Q_DECL_OVERRIDE;
virtual void reset(); void reset() Q_DECL_OVERRIDE;
virtual void defaults() void defaults() Q_DECL_OVERRIDE
{} {}
private Q_SLOTS: private Q_SLOTS:
......
...@@ -41,10 +41,10 @@ class KateFileBrowserPlugin: public KTextEditor::Plugin ...@@ -41,10 +41,10 @@ class KateFileBrowserPlugin: public KTextEditor::Plugin
virtual ~KateFileBrowserPlugin() virtual ~KateFileBrowserPlugin()
{} {}
QObject *createView (KTextEditor::MainWindow *mainWindow); QObject *createView (KTextEditor::MainWindow *mainWindow) Q_DECL_OVERRIDE;
virtual int configPages() const; int configPages() const Q_DECL_OVERRIDE;
virtual KTextEditor::ConfigPage *configPage (int number = 0, QWidget *parent = 0); KTextEditor::ConfigPage *configPage (int number = 0, QWidget *parent = 0) Q_DECL_OVERRIDE;
public Q_SLOTS: public Q_SLOTS:
void viewDestroyed(QObject* view); void viewDestroyed(QObject* view);
...@@ -69,11 +69,11 @@ class KateFileBrowserPluginView : public QObject, public KTextEditor::SessionCon ...@@ -69,11 +69,11 @@ class KateFileBrowserPluginView : public QObject, public KTextEditor::SessionCon
*/ */
~KateFileBrowserPluginView (); ~KateFileBrowserPluginView ();
void readSessionConfig (const KConfigGroup& config); void readSessionConfig (const KConfigGroup& config) Q_DECL_OVERRIDE;
void writeSessionConfig (KConfigGroup& config); void writeSessionConfig (KConfigGroup& config) Q_DECL_OVERRIDE;
private: private:
bool eventFilter(QObject*, QEvent*); bool eventFilter(QObject*, QEvent*) Q_DECL_OVERRIDE;
QWidget *m_toolView; QWidget *m_toolView;
KateFileBrowser *m_fileBrowser; KateFileBrowser *m_fileBrowser;
......
...@@ -41,63 +41,63 @@ class DummyDocument : public KTextEditor::Document ...@@ -41,63 +41,63 @@ class DummyDocument : public KTextEditor::Document
DummyDocument (const char *url) : DummyDocument(QString::fromLatin1(url)) {} DummyDocument (const char *url) : DummyDocument(QString::fromLatin1(url)) {}
virtual ~DummyDocument () {} virtual ~DummyDocument () {}
virtual KTextEditor::View *createView ( QWidget *, KTextEditor::MainWindow * = nullptr ) { return 0; } KTextEditor::View *createView ( QWidget *, KTextEditor::MainWindow * = nullptr ) Q_DECL_OVERRIDE { return 0; }
virtual KTextEditor::View *activeView() const { return 0; } virtual KTextEditor::View *activeView() const { return 0; }
virtual QList<KTextEditor::View*> views() const { return m_views; } QList<KTextEditor::View*> views() const Q_DECL_OVERRIDE { return m_views; }
virtual QString documentName() const { return m_name; } QString documentName() const Q_DECL_OVERRIDE { return m_name; }
virtual QString mimeType() { return QString(); } QString mimeType() Q_DECL_OVERRIDE { return QString(); }
virtual QByteArray checksum() const { return QByteArray(); } QByteArray checksum() const Q_DECL_OVERRIDE { return QByteArray(); }
virtual bool setEncoding (const QString &) { return false; } bool setEncoding (const QString &) Q_DECL_OVERRIDE { return false; }
virtual QString encoding () const { return m_encoding; } QString encoding () const Q_DECL_OVERRIDE { return m_encoding; }
virtual bool documentReload () { return true; } bool documentReload () Q_DECL_OVERRIDE { return true; }
virtual bool documentSave () { return true; } bool documentSave () Q_DECL_OVERRIDE { return true; }
virtual bool documentSaveAs () { return true; } bool documentSaveAs () Q_DECL_OVERRIDE { return true; }
virtual bool isEditingTransactionRunning() const { return false; } bool isEditingTransactionRunning() const Q_DECL_OVERRIDE { return false; }
virtual QString text () const { return QString(); } QString text () const Q_DECL_OVERRIDE { return QString(); }
virtual QString text ( const KTextEditor::Range&, bool = false ) const { return QString(); } QString text ( const KTextEditor::Range&, bool = false ) const Q_DECL_OVERRIDE { return QString(); }
virtual QChar characterAt( const KTextEditor::Cursor&) const { return QChar(); } QChar characterAt( const KTextEditor::Cursor&) const Q_DECL_OVERRIDE { return QChar(); }
virtual QString wordAt(const KTextEditor::Cursor&) const { return QString(); } QString wordAt(const KTextEditor::Cursor&) const Q_DECL_OVERRIDE { return QString(); }
virtual KTextEditor::Range wordRangeAt(const KTextEditor::Cursor&) const { return KTextEditor::Range(); } KTextEditor::Range wordRangeAt(const KTextEditor::Cursor&) const Q_DECL_OVERRIDE { return KTextEditor::Range(); }
virtual bool isValidTextPosition(const KTextEditor::Cursor&) const { return true; } bool isValidTextPosition(const KTextEditor::Cursor&) const Q_DECL_OVERRIDE { return true; }
virtual QStringList textLines ( const KTextEditor::Range&, bool = false ) const { return QStringList(); } QStringList textLines ( const KTextEditor::Range&, bool = false ) const Q_DECL_OVERRIDE { return QStringList(); }
virtual QString line ( int ) const { return QString(); } QString line ( int ) const Q_DECL_OVERRIDE { return QString(); }
virtual int lines () const { return 0; } int lines () const Q_DECL_OVERRIDE { return 0; }
virtual KTextEditor::Cursor documentEnd() const { return KTextEditor::Cursor(); } KTextEditor::Cursor documentEnd() const Q_DECL_OVERRIDE { return KTextEditor::Cursor(); }
virtual int totalCharacters() const { return 0; } int totalCharacters() const Q_DECL_OVERRIDE { return 0; }
virtual int lineLength ( int ) const { return 0; } int lineLength ( int ) const Q_DECL_OVERRIDE { return 0; }
virtual bool setText ( const QString & ) { return false; } bool setText ( const QString & ) Q_DECL_OVERRIDE { return false; }
virtual bool setText ( const QStringList & ) { return false; } bool setText ( const QStringList & ) Q_DECL_OVERRIDE { return false; }
virtual bool clear () { return true; } bool clear () Q_DECL_OVERRIDE { return true; }
virtual bool insertText ( const KTextEditor::Cursor &, const QString &, bool = false ) { return false; } bool insertText ( const KTextEditor::Cursor &, const QString &, bool = false ) Q_DECL_OVERRIDE { return false; }
virtual bool insertText ( const KTextEditor::Cursor &, const QStringList &, bool = false ) { return false; } bool insertText ( const KTextEditor::Cursor &, const QStringList &, bool = false ) Q_DECL_OVERRIDE { return false; }
virtual bool removeText ( const KTextEditor::Range &, bool = false ) { return false; } bool removeText ( const KTextEditor::Range &, bool = false ) Q_DECL_OVERRIDE { return false; }
virtual bool insertLine ( int, const QString & ) { return false; } bool insertLine ( int, const QString & ) Q_DECL_OVERRIDE { return false; }
virtual bool insertLines ( int, const QStringList & ) { return false; } bool insertLines ( int, const QStringList & ) Q_DECL_OVERRIDE { return false; }
virtual bool removeLine ( int ) { return false; } bool removeLine ( int ) Q_DECL_OVERRIDE { return false; }
virtual KTextEditor::DefaultStyle defaultStyleAt(const KTextEditor::Cursor &) const { return KTextEditor::dsNormal; } KTextEditor::DefaultStyle defaultStyleAt(const KTextEditor::Cursor &) const Q_DECL_OVERRIDE { return KTextEditor::dsNormal; }
virtual QString mode() const { return QString(); } QString mode() const Q_DECL_OVERRIDE { return QString(); }
virtual QString highlightingMode() const { return QString(); } QString highlightingMode() const Q_DECL_OVERRIDE { return QString(); }
virtual QStringList modes() const { return QStringList(); } QStringList modes() const Q_DECL_OVERRIDE { return QStringList(); }
virtual QStringList highlightingModes() const {return QStringList(); } QStringList highlightingModes() const Q_DECL_OVERRIDE {return QStringList(); }
virtual bool setMode(const QString &) { return false; } bool setMode(const QString &) Q_DECL_OVERRIDE { return false; }
virtual bool setHighlightingMode(const QString &) { return false; } bool setHighlightingMode(const QString &) Q_DECL_OVERRIDE { return false; }
virtual QString highlightingModeSection( int ) const { return QString(); } QString highlightingModeSection( int ) const Q_DECL_OVERRIDE { return QString(); }
virtual QString modeSection( int ) const { return QString(); } QString modeSection( int ) const Q_DECL_OVERRIDE { return QString(); }
virtual bool print() { return false; } bool print() Q_DECL_OVERRIDE { return false; }
virtual void printPreview() {} void printPreview() Q_DECL_OVERRIDE {}
virtual QStringList embeddedHighlightingModes() const { return QStringList(); } QStringList embeddedHighlightingModes() const Q_DECL_OVERRIDE { return QStringList(); }
virtual QString highlightingModeAt(const KTextEditor::Cursor &) { return QString(); } QString highlightingModeAt(const KTextEditor::Cursor &) Q_DECL_OVERRIDE { return QString(); }
virtual bool isLineModified(int) const { return false; } bool isLineModified(int) const Q_DECL_OVERRIDE { return false; }
virtual bool isLineSaved(int) const { return false; } bool isLineSaved(int) const Q_DECL_OVERRIDE { return false; }
virtual bool isLineTouched(int) const { return false; } bool isLineTouched(int) const Q_DECL_OVERRIDE { return false; }
// KParts::ReadWritePart // KParts::ReadWritePart
virtual bool saveFile() { return false; } bool saveFile() Q_DECL_OVERRIDE { return false; }
// make QObject happy // make QObject happy
Q_SIGNALS: Q_SIGNALS:
...@@ -107,14 +107,14 @@ class DummyDocument : public KTextEditor::Document ...@@ -107,14 +107,14 @@ class DummyDocument : public KTextEditor::Document
void setUrl(const QString &url) { KParts::ReadOnlyPart::setUrl(QUrl(url)); } void setUrl(const QString &url) { KParts::ReadOnlyPart::setUrl(QUrl(url)); }
void setName(const QString &name) { m_name = name; } void setName(const QString &name) { m_name = name; }
void readSessionConfig(const KConfigGroup &, const QSet<QString> & = QSet<QString>()) {} void readSessionConfig(const KConfigGroup &, const QSet<QString> & = QSet<QString>()) Q_DECL_OVERRIDE {}
void writeSessionConfig(KConfigGroup &, const QSet<QString> & = QSet<QString>()) {} void writeSessionConfig(KConfigGroup &, const QSet<QString> & = QSet<QString>()) Q_DECL_OVERRIDE {}
bool postMessage(KTextEditor::Message *) { return false; } bool postMessage(KTextEditor::Message *) Q_DECL_OVERRIDE { return false; }
bool isDataRecoveryAvailable() const { return false; } bool isDataRecoveryAvailable() const Q_DECL_OVERRIDE { return false; }
void recoverData() {} void recoverData() Q_DECL_OVERRIDE {}
void discardDataRecovery() {} void discardDataRecovery() Q_DECL_OVERRIDE {}
private: private:
QString m_name, m_encoding; QString m_name, m_encoding;
......
...@@ -40,7 +40,7 @@ public: ...@@ -40,7 +40,7 @@ public:
KateFileTree(QWidget *parent); KateFileTree(QWidget *parent);
virtual ~KateFileTree(); virtual ~KateFileTree();
virtual void setModel(QAbstractItemModel *model); void setModel(QAbstractItemModel *model) Q_DECL_OVERRIDE;
public Q_SLOTS: public Q_SLOTS:
void slotDocumentClose(); void slotDocumentClose();
...@@ -60,7 +60,7 @@ public Q_SLOTS: ...@@ -60,7 +60,7 @@ public Q_SLOTS:
void slotDocumentDelete(); void slotDocumentDelete();
protected: protected:
virtual void contextMenuEvent(QContextMenuEvent *event); void contextMenuEvent(QContextMenuEvent *event) Q_DECL_OVERRIDE;
Q_SIGNALS: Q_SIGNALS:
void closeDocument(KTextEditor::Document *); void closeDocument(KTextEditor::Document *);
......
...@@ -36,14 +36,14 @@ public: ...@@ -36,14 +36,14 @@ public:
explicit KateFileTreeConfigPage(QWidget *parent = 0, KateFileTreePlugin *plug = 0); explicit KateFileTreeConfigPage(QWidget *parent = 0, KateFileTreePlugin *plug = 0);
~KateFileTreeConfigPage() {} ~KateFileTreeConfigPage() {}
virtual QString name() const; QString name() const Q_DECL_OVERRIDE;
virtual QString fullName() const; QString fullName() const Q_DECL_OVERRIDE;
virtual QIcon icon() const; QIcon icon() const Q_DECL_OVERRIDE;
public Q_SLOTS: public Q_SLOTS:
void apply(); void apply() Q_DECL_OVERRIDE;
void defaults(); void defaults() Q_DECL_OVERRIDE;
void reset(); void reset() Q_DECL_OVERRIDE;
//Q_SIGNALS: //Q_SIGNALS:
// void changed(); // void changed();
......
...@@ -46,15 +46,15 @@ public: ...@@ -46,15 +46,15 @@ public:
virtual ~KateFileTreeModel(); virtual ~KateFileTreeModel();
/* QAbstractItemModel implementations */ /* QAbstractItemModel implementations */
virtual Qt::ItemFlags flags(const QModelIndex &index) const; Qt::ItemFlags flags(const QModelIndex &index) const Q_DECL_OVERRIDE;
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const; QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const; int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
virtual int columnCount(const QModelIndex &parent = QModelIndex()) const; int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
virtual QModelIndex parent(const QModelIndex &index) const; QModelIndex parent(const QModelIndex &index) const Q_DECL_OVERRIDE;
virtual QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const; QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
virtual bool hasChildren(const QModelIndex &parent = QModelIndex()) const; bool hasChildren(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
QMimeData *mimeData(const QModelIndexList &indexes) const override; QMimeData *mimeData(const QModelIndexList &indexes) const override;
......
...@@ -49,10 +49,10 @@ public: ...@@ -49,10 +49,10 @@ public:
explicit KateFileTreePlugin(QObject *parent = 0, const QList<QVariant> & = QList<QVariant>()); explicit KateFileTreePlugin(QObject *parent = 0, const QList<QVariant> & = QList<QVariant>());
virtual ~KateFileTreePlugin(); virtual ~KateFileTreePlugin();
QObject *createView(KTextEditor::MainWindow *mainWindow); QObject *createView(KTextEditor::MainWindow *mainWindow) Q_DECL_OVERRIDE;
virtual int configPages() const; int configPages() const Q_DECL_OVERRIDE;
virtual KTextEditor::ConfigPage *configPage(int number = 0, QWidget *parent = 0); KTextEditor::ConfigPage *configPage(int number = 0, QWidget *parent = 0) Q_DECL_OVERRIDE;
const KateFileTreePluginSettings &settings(); const KateFileTreePluginSettings &settings();
......
...@@ -35,10 +35,10 @@ public: ...@@ -35,10 +35,10 @@ public:
KateFileTreeProxyModel(QObject *p = 0); KateFileTreeProxyModel(QObject *p = 0);
QModelIndex docIndex(const KTextEditor::Document *) const; QModelIndex docIndex(const KTextEditor::Document *) const;
bool isDir(const QModelIndex &i) const; bool isDir(const QModelIndex &i) const;
virtual void setSourceModel(QAbstractItemModel *model); void setSourceModel(QAbstractItemModel *model) Q_DECL_OVERRIDE;
protected: protected:
bool lessThan(const QModelIndex &left, const QModelIndex &right) const; bool lessThan(const QModelIndex &left, const QModelIndex &right) const Q_DECL_OVERRIDE;
}; };
......
...@@ -91,7 +91,7 @@ private Q_SLOTS: ...@@ -91,7 +91,7 @@ private Q_SLOTS:
void slotBrowseDir(); void slotBrowseDir();
protected: protected:
void resizeEvent(QResizeEvent *event); void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
private: private:
void saveCurrentToIndex(int index); void saveCurrentToIndex(int index);
......
...@@ -41,8 +41,8 @@ Q_SIGNALS: ...@@ -41,8 +41,8 @@ Q_SIGNALS:
void localsVisible(bool visible); void localsVisible(bool visible);
protected: protected:
void showEvent(QShowEvent *event); void showEvent(QShowEvent *event) Q_DECL_OVERRIDE;
void hideEvent(QHideEvent *event); void hideEvent(QHideEvent *event) Q_DECL_OVERRIDE;
private: private:
void createWrappedItem(QTreeWidgetItem *parent, const QString &name, const QString &value); void createWrappedItem(QTreeWidgetItem *parent, const QString &name, const QString &value);
......
...@@ -50,7 +50,7 @@ public: ...@@ -50,7 +50,7 @@ public:
explicit KatePluginGDB(QObject* parent = NULL, const VariantList& = VariantList()); explicit KatePluginGDB(QObject* parent = NULL, const VariantList& = VariantList());
virtual ~KatePluginGDB(); virtual ~KatePluginGDB();
QObject* createView(KTextEditor::MainWindow* mainWindow); QObject* createView(KTextEditor::MainWindow* mainWindow) Q_DECL_OVERRIDE;
}; };
class KatePluginGDBView : public QObject, public KXMLGUIClient, public KTextEditor::SessionConfigInterface class KatePluginGDBView : public QObject, public KXMLGUIClient, public KTextEditor::SessionConfigInterface
...@@ -63,8 +63,8 @@ public: ...@@ -63,8 +63,8 @@ public:
~KatePluginGDBView(); ~KatePluginGDBView();
// reimplemented: read and write session config // reimplemented: read and write session config
void readSessionConfig (const KConfigGroup& config); void readSessionConfig (const KConfigGroup& config) Q_DECL_OVERRIDE;
void writeSessionConfig (KConfigGroup& config); void writeSessionConfig (KConfigGroup& config) Q_DECL_OVERRIDE;
private Q_SLOTS: private Q_SLOTS:
void slotDebug(); void slotDebug();
...@@ -97,7 +97,7 @@ private Q_SLOTS: ...@@ -97,7 +97,7 @@ private Q_SLOTS:
void handleEsc(QEvent *e); void handleEsc(QEvent *e);
protected: protected:
bool eventFilter(QObject *obj, QEvent *ev); bool eventFilter(QObject *obj, QEvent *ev) Q_DECL_OVERRIDE;
private: private:
QString currentWord(); QString currentWord();
......
...@@ -42,10 +42,10 @@ class KateCTagsPlugin : public KTextEditor::Plugin ...@@ -42,10 +42,10 @@ class KateCTagsPlugin : public KTextEditor::Plugin
explicit KateCTagsPlugin(QObject* parent = 0, const QList<QVariant> & = QList<QVariant>()); explicit KateCTagsPlugin(QObject* parent = 0, const QList<QVariant> & = QList<QVariant>());
virtual ~KateCTagsPlugin() {} virtual ~KateCTagsPlugin() {}
QObject *createView(KTextEditor::MainWindow *mainWindow); QObject *createView(KTextEditor::MainWindow *mainWindow) Q_DECL_OVERRIDE;
int configPages() const { return 1; }; int configPages() const Q_DECL_OVERRIDE { return 1; };
KTextEditor::ConfigPage *configPage (int number = 0, QWidget *parent = 0); KTextEditor::ConfigPage *configPage (int number = 0, QWidget *parent = 0) Q_DECL_OVERRIDE;
void readConfig(); void readConfig();
KateCTagsView *m_view; KateCTagsView *m_view;
...@@ -58,13 +58,13 @@ public: ...@@ -58,13 +58,13 @@ public:
explicit KateCTagsConfigPage( QWidget* parent = 0, KateCTagsPlugin *plugin = 0 ); explicit KateCTagsConfigPage( QWidget* parent = 0, KateCTagsPlugin *plugin = 0 );
~KateCTagsConfigPage() {} ~KateCTagsConfigPage() {}