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

Use Q_DECL_OVERRIDE

parent 022ba9df
......@@ -38,7 +38,7 @@ public:
void cancel();
protected:
virtual void run();
void run() Q_DECL_OVERRIDE;
void indexFiles(const QString &url);
private:
......
......@@ -46,7 +46,7 @@ public:
static KateBtBrowserPlugin &self();
QObject *createView(KTextEditor::MainWindow *mainWindow);
QObject *createView(KTextEditor::MainWindow *mainWindow) Q_DECL_OVERRIDE;
KateBtDatabase &database();
BtFileIndexer &fileIndexer();
......@@ -57,8 +57,8 @@ Q_SIGNALS:
void newStatus(const QString &);
public:
virtual int configPages() const;
virtual KTextEditor::ConfigPage *configPage(int number, QWidget *parent = 0);
int configPages() const Q_DECL_OVERRIDE;
KTextEditor::ConfigPage *configPage(int number, QWidget *parent = 0) Q_DECL_OVERRIDE;
//
// private data
......@@ -119,14 +119,14 @@ public:
explicit KateBtConfigWidget(QWidget *parent = 0);
virtual ~KateBtConfigWidget();
virtual QString name() const;
virtual QString fullName() const;
virtual QIcon icon() const;
QString name() const Q_DECL_OVERRIDE;
QString fullName() const Q_DECL_OVERRIDE;
QIcon icon() const Q_DECL_OVERRIDE;
public Q_SLOTS:
virtual void apply();
virtual void reset();
virtual void defaults();
void apply() Q_DECL_OVERRIDE;
void reset() Q_DECL_OVERRIDE;
void defaults() Q_DECL_OVERRIDE;
private Q_SLOTS:
void add();
......
......@@ -123,11 +123,11 @@ public:
/// Destructor
virtual ~CloseExceptPlugin() {}
/// 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
//@{
void readSessionConfig(const KConfigGroup&);
void writeSessionConfig(KConfigGroup&);
void readSessionConfig(const KConfigGroup&) Q_DECL_OVERRIDE;
void writeSessionConfig(KConfigGroup&) Q_DECL_OVERRIDE;
//@}
bool showConfirmationNeeded() const
{
......
......@@ -37,14 +37,14 @@ class KateBookmarkHandler : public QObject, public KBookmarkOwner
~KateBookmarkHandler();
// KBookmarkOwner interface:
virtual QUrl currentUrl() const;
virtual QString currentTitle() const;
QUrl currentUrl() const Q_DECL_OVERRIDE;
QString currentTitle() const Q_DECL_OVERRIDE;
QMenu *menu() const
{
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:
void openUrl( const QString& url );
......
......@@ -37,13 +37,13 @@ class KateFileBrowserConfigPage : public KTextEditor::ConfigPage
virtual ~KateFileBrowserConfigPage()
{}
virtual QString name() const;
virtual QString fullName() const;
virtual QIcon icon() const;
QString name() const Q_DECL_OVERRIDE;
QString fullName() const Q_DECL_OVERRIDE;
QIcon icon() const Q_DECL_OVERRIDE;
virtual void apply();
virtual void reset();
virtual void defaults()
void apply() Q_DECL_OVERRIDE;
void reset() Q_DECL_OVERRIDE;
void defaults() Q_DECL_OVERRIDE
{}
private Q_SLOTS:
......
......@@ -41,10 +41,10 @@ class KateFileBrowserPlugin: public KTextEditor::Plugin
virtual ~KateFileBrowserPlugin()
{}
QObject *createView (KTextEditor::MainWindow *mainWindow);
QObject *createView (KTextEditor::MainWindow *mainWindow) Q_DECL_OVERRIDE;
virtual int configPages() const;
virtual KTextEditor::ConfigPage *configPage (int number = 0, QWidget *parent = 0);
int configPages() const Q_DECL_OVERRIDE;
KTextEditor::ConfigPage *configPage (int number = 0, QWidget *parent = 0) Q_DECL_OVERRIDE;
public Q_SLOTS:
void viewDestroyed(QObject* view);
......@@ -69,11 +69,11 @@ class KateFileBrowserPluginView : public QObject, public KTextEditor::SessionCon
*/
~KateFileBrowserPluginView ();
void readSessionConfig (const KConfigGroup& config);
void writeSessionConfig (KConfigGroup& config);
void readSessionConfig (const KConfigGroup& config) Q_DECL_OVERRIDE;
void writeSessionConfig (KConfigGroup& config) Q_DECL_OVERRIDE;
private:
bool eventFilter(QObject*, QEvent*);
bool eventFilter(QObject*, QEvent*) Q_DECL_OVERRIDE;
QWidget *m_toolView;
KateFileBrowser *m_fileBrowser;
......
......@@ -41,63 +41,63 @@ class DummyDocument : public KTextEditor::Document
DummyDocument (const char *url) : DummyDocument(QString::fromLatin1(url)) {}
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 QList<KTextEditor::View*> views() const { return m_views; }
virtual QString documentName() const { return m_name; }
virtual QString mimeType() { return QString(); }
virtual QByteArray checksum() const { return QByteArray(); }
virtual bool setEncoding (const QString &) { return false; }
virtual QString encoding () const { return m_encoding; }
virtual bool documentReload () { return true; }
virtual bool documentSave () { return true; }
virtual bool documentSaveAs () { return true; }
virtual bool isEditingTransactionRunning() const { return false; }
virtual QString text () const { return QString(); }
virtual QString text ( const KTextEditor::Range&, bool = false ) const { return QString(); }
virtual QChar characterAt( const KTextEditor::Cursor&) const { return QChar(); }
virtual QString wordAt(const KTextEditor::Cursor&) const { return QString(); }
virtual KTextEditor::Range wordRangeAt(const KTextEditor::Cursor&) const { return KTextEditor::Range(); }
virtual bool isValidTextPosition(const KTextEditor::Cursor&) const { return true; }
virtual QStringList textLines ( const KTextEditor::Range&, bool = false ) const { return QStringList(); }
virtual QString line ( int ) const { return QString(); }
virtual int lines () const { return 0; }
virtual KTextEditor::Cursor documentEnd() const { return KTextEditor::Cursor(); }
virtual int totalCharacters() const { return 0; }
virtual int lineLength ( int ) const { return 0; }
virtual bool setText ( const QString & ) { return false; }
virtual bool setText ( const QStringList & ) { return false; }
virtual bool clear () { return true; }
virtual bool insertText ( const KTextEditor::Cursor &, const QString &, bool = false ) { return false; }
virtual bool insertText ( const KTextEditor::Cursor &, const QStringList &, bool = false ) { return false; }
virtual bool removeText ( const KTextEditor::Range &, bool = false ) { return false; }
virtual bool insertLine ( int, const QString & ) { return false; }
virtual bool insertLines ( int, const QStringList & ) { return false; }
virtual bool removeLine ( int ) { return false; }
virtual KTextEditor::DefaultStyle defaultStyleAt(const KTextEditor::Cursor &) const { return KTextEditor::dsNormal; }
virtual QString mode() const { return QString(); }
virtual QString highlightingMode() const { return QString(); }
virtual QStringList modes() const { return QStringList(); }
virtual QStringList highlightingModes() const {return QStringList(); }
virtual bool setMode(const QString &) { return false; }
virtual bool setHighlightingMode(const QString &) { return false; }
virtual QString highlightingModeSection( int ) const { return QString(); }
virtual QString modeSection( int ) const { return QString(); }
virtual bool print() { return false; }
virtual void printPreview() {}
virtual QStringList embeddedHighlightingModes() const { return QStringList(); }
virtual QString highlightingModeAt(const KTextEditor::Cursor &) { return QString(); }
virtual bool isLineModified(int) const { return false; }
virtual bool isLineSaved(int) const { return false; }
virtual bool isLineTouched(int) const { return false; }
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; }
// KParts::ReadWritePart
virtual bool saveFile() { return false; }
bool saveFile() Q_DECL_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>()) {}
void writeSessionConfig(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>()) Q_DECL_OVERRIDE {}
bool postMessage(KTextEditor::Message *) { return false; }
bool postMessage(KTextEditor::Message *) Q_DECL_OVERRIDE { return false; }
bool isDataRecoveryAvailable() const { return false; }
void recoverData() {}
void discardDataRecovery() {}
bool isDataRecoveryAvailable() const Q_DECL_OVERRIDE { return false; }
void recoverData() Q_DECL_OVERRIDE {}
void discardDataRecovery() Q_DECL_OVERRIDE {}
private:
QString m_name, m_encoding;
......
......@@ -40,7 +40,7 @@ public:
KateFileTree(QWidget *parent);
virtual ~KateFileTree();
virtual void setModel(QAbstractItemModel *model);
void setModel(QAbstractItemModel *model) Q_DECL_OVERRIDE;
public Q_SLOTS:
void slotDocumentClose();
......@@ -60,7 +60,7 @@ public Q_SLOTS:
void slotDocumentDelete();
protected:
virtual void contextMenuEvent(QContextMenuEvent *event);
void contextMenuEvent(QContextMenuEvent *event) Q_DECL_OVERRIDE;
Q_SIGNALS:
void closeDocument(KTextEditor::Document *);
......
......@@ -36,14 +36,14 @@ public:
explicit KateFileTreeConfigPage(QWidget *parent = 0, KateFileTreePlugin *plug = 0);
~KateFileTreeConfigPage() {}
virtual QString name() const;
virtual QString fullName() const;
virtual QIcon icon() const;
QString name() const Q_DECL_OVERRIDE;
QString fullName() const Q_DECL_OVERRIDE;
QIcon icon() const Q_DECL_OVERRIDE;
public Q_SLOTS:
void apply();
void defaults();
void reset();
void apply() Q_DECL_OVERRIDE;
void defaults() Q_DECL_OVERRIDE;
void reset() Q_DECL_OVERRIDE;
//Q_SIGNALS:
// void changed();
......
......@@ -46,15 +46,15 @@ public:
virtual ~KateFileTreeModel();
/* QAbstractItemModel implementations */
virtual Qt::ItemFlags flags(const QModelIndex &index) const;
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
virtual QModelIndex parent(const QModelIndex &index) const;
virtual QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
virtual bool hasChildren(const QModelIndex &parent = QModelIndex()) const;
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;
QMimeData *mimeData(const QModelIndexList &indexes) const override;
......
......@@ -49,10 +49,10 @@ public:
explicit KateFileTreePlugin(QObject *parent = 0, const QList<QVariant> & = QList<QVariant>());
virtual ~KateFileTreePlugin();
QObject *createView(KTextEditor::MainWindow *mainWindow);
QObject *createView(KTextEditor::MainWindow *mainWindow) Q_DECL_OVERRIDE;
virtual int configPages() const;
virtual KTextEditor::ConfigPage *configPage(int number = 0, QWidget *parent = 0);
int configPages() const Q_DECL_OVERRIDE;
KTextEditor::ConfigPage *configPage(int number = 0, QWidget *parent = 0) Q_DECL_OVERRIDE;
const KateFileTreePluginSettings &settings();
......
......@@ -35,10 +35,10 @@ public:
KateFileTreeProxyModel(QObject *p = 0);
QModelIndex docIndex(const KTextEditor::Document *) const;
bool isDir(const QModelIndex &i) const;
virtual void setSourceModel(QAbstractItemModel *model);
void setSourceModel(QAbstractItemModel *model) Q_DECL_OVERRIDE;
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:
void slotBrowseDir();
protected:
void resizeEvent(QResizeEvent *event);
void resizeEvent(QResizeEvent *event) Q_DECL_OVERRIDE;
private:
void saveCurrentToIndex(int index);
......
......@@ -41,8 +41,8 @@ Q_SIGNALS:
void localsVisible(bool visible);
protected:
void showEvent(QShowEvent *event);
void hideEvent(QHideEvent *event);
void showEvent(QShowEvent *event) Q_DECL_OVERRIDE;
void hideEvent(QHideEvent *event) Q_DECL_OVERRIDE;
private:
void createWrappedItem(QTreeWidgetItem *parent, const QString &name, const QString &value);
......
......@@ -50,7 +50,7 @@ public:
explicit KatePluginGDB(QObject* parent = NULL, const VariantList& = VariantList());
virtual ~KatePluginGDB();
QObject* createView(KTextEditor::MainWindow* mainWindow);
QObject* createView(KTextEditor::MainWindow* mainWindow) Q_DECL_OVERRIDE;
};
class KatePluginGDBView : public QObject, public KXMLGUIClient, public KTextEditor::SessionConfigInterface
......@@ -63,8 +63,8 @@ public:
~KatePluginGDBView();
// reimplemented: read and write session config
void readSessionConfig (const KConfigGroup& config);
void writeSessionConfig (KConfigGroup& config);
void readSessionConfig (const KConfigGroup& config) Q_DECL_OVERRIDE;
void writeSessionConfig (KConfigGroup& config) Q_DECL_OVERRIDE;
private Q_SLOTS:
void slotDebug();
......@@ -97,7 +97,7 @@ private Q_SLOTS:
void handleEsc(QEvent *e);
protected:
bool eventFilter(QObject *obj, QEvent *ev);
bool eventFilter(QObject *obj, QEvent *ev) Q_DECL_OVERRIDE;
private:
QString currentWord();
......
......@@ -42,10 +42,10 @@ class KateCTagsPlugin : public KTextEditor::Plugin
explicit KateCTagsPlugin(QObject* parent = 0, const QList<QVariant> & = QList<QVariant>());
virtual ~KateCTagsPlugin() {}
QObject *createView(KTextEditor::MainWindow *mainWindow);
QObject *createView(KTextEditor::MainWindow *mainWindow) Q_DECL_OVERRIDE;
int configPages() const { return 1; };
KTextEditor::ConfigPage *configPage (int number = 0, QWidget *parent = 0);
int configPages() const Q_DECL_OVERRIDE { return 1; };
KTextEditor::ConfigPage *configPage (int number = 0, QWidget *parent = 0) Q_DECL_OVERRIDE;
void readConfig();
KateCTagsView *m_view;
......@@ -58,13 +58,13 @@ public:
explicit KateCTagsConfigPage( QWidget* parent = 0, KateCTagsPlugin *plugin = 0 );
~KateCTagsConfigPage() {}
virtual QString name() const;
virtual QString fullName() const;
virtual QIcon icon() const;
QString name() const Q_DECL_OVERRIDE;
QString fullName() const Q_DECL_OVERRIDE;
QIcon icon() const Q_DECL_OVERRIDE;
void apply();
void reset();
void defaults() {}
void apply() Q_DECL_OVERRIDE;
void reset() Q_DECL_OVERRIDE;
void defaults() Q_DECL_OVERRIDE {}
private Q_SLOTS:
void addGlobalTagTarget();
......
......@@ -60,8 +60,8 @@ public:
~KateCTagsView();
// reimplemented: read and write session config
void readSessionConfig (const KConfigGroup& config);
void writeSessionConfig (KConfigGroup& config);
void readSessionConfig (const KConfigGroup& config) Q_DECL_OVERRIDE;
void writeSessionConfig (KConfigGroup& config) Q_DECL_OVERRIDE;
public Q_SLOTS:
void gotoDefinition();
......@@ -80,7 +80,7 @@ public Q_SLOTS:
void updateDone(int exitCode, QProcess::ExitStatus status);
protected:
bool eventFilter(QObject *obj, QEvent *ev);
bool eventFilter(QObject *obj, QEvent *ev) Q_DECL_OVERRIDE;
private Q_SLOTS:
void resetCMD();
......
......@@ -38,7 +38,7 @@ public Q_SLOTS:
void setFilter(const QString &filter);
protected:
virtual bool eventFilter(QObject *obj, QEvent *event);
bool eventFilter(QObject *obj, QEvent *event) Q_DECL_OVERRIDE;
private:
TargetFilterProxyModel *m_proxyModel;
......
......@@ -30,14 +30,14 @@ public:
TargetHtmlDelegate(QObject* parent);
~TargetHtmlDelegate();
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const;
void setEditorData(QWidget *editor, const QModelIndex &index) const;
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const;
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE;
void setEditorData(QWidget *editor, const QModelIndex &index) const Q_DECL_OVERRIDE;
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const Q_DECL_OVERRIDE;
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const;
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const Q_DECL_OVERRIDE;
void paint(QPainter*, const QStyleOptionViewItem&, const QModelIndex&) const;
QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const;
void paint(QPainter*, const QStyleOptionViewItem&, const QModelIndex&) const Q_DECL_OVERRIDE;
QSize sizeHint(const QStyleOptionViewItem& option, const QModelIndex& index) const Q_DECL_OVERRIDE;
bool isEditing() const;
......
......@@ -80,15 +80,15 @@ Q_SIGNALS:
public:
static const quint32 InvalidIndex = 0xFFFFFFFF;
// Model-View model functions
virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
virtual QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const;
virtual bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole);
virtual Qt::ItemFlags flags(const QModelIndex &index) const;
virtual QModelIndex index(int row, int column = 0, const QModelIndex &parent = QModelIndex()) const;
virtual QModelIndex parent(const QModelIndex &child) const;
virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
virtual bool hasChildren(const QModelIndex & parent = QModelIndex()) const;
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;
bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole) Q_DECL_OVERRIDE;
Qt::ItemFlags flags(const QModelIndex &index) const Q_DECL_OVERRIDE;
QModelIndex index(int row, int column = 0, const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
QModelIndex parent(const QModelIndex &child) const Q_DECL_OVERRIDE;
int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
bool hasChildren(const QModelIndex & parent = QModelIndex()) const Q_DECL_OVERRIDE;
private:
......
......@@ -69,8 +69,8 @@ class KateBuildView : public QObject, public KXMLGUIClient, public KTextEditor::
~KateBuildView();
// reimplemented: read and write session config
void readSessionConfig(const KConfigGroup& config);