forked from qt-creator/qt-creator
Add override keyword to IEditor & TextEditorWidget implementations
Change-Id: I403101d788d9edfea5c5c9440ab4f39ad00e81f7 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -101,6 +101,11 @@ int AndroidManifestEditor::currentColumn() const
|
||||
return cursor.position() - cursor.block().position() + 1;
|
||||
}
|
||||
|
||||
void AndroidManifestEditor::gotoLine(int line, int column, bool centerLine)
|
||||
{
|
||||
textEditor()->gotoLine(line, column, centerLine);
|
||||
}
|
||||
|
||||
void AndroidManifestEditor::changeEditorPage(QAction *action)
|
||||
{
|
||||
if (!widget()->setActivePage(static_cast<AndroidManifestEditorWidget::EditorPage>(action->data().toInt()))) {
|
||||
|
||||
@@ -54,15 +54,15 @@ class AndroidManifestEditor : public Core::IEditor
|
||||
public:
|
||||
explicit AndroidManifestEditor(AndroidManifestEditorWidget *editorWidget);
|
||||
|
||||
bool open(QString *errorString, const QString &fileName, const QString &realFileName);
|
||||
QWidget *toolBar();
|
||||
AndroidManifestEditorWidget *widget() const;
|
||||
Core::IDocument *document();
|
||||
bool open(QString *errorString, const QString &fileName, const QString &realFileName) override;
|
||||
QWidget *toolBar() override;
|
||||
AndroidManifestEditorWidget *widget() const override;
|
||||
Core::IDocument *document() override;
|
||||
TextEditor::TextEditorWidget *textEditor() const;
|
||||
|
||||
int currentLine() const;
|
||||
int currentColumn() const;
|
||||
void gotoLine(int line, int column = 0, bool centerLine = true) { textEditor()->gotoLine(line, column, centerLine); }
|
||||
int currentLine() const override;
|
||||
int currentColumn() const override;
|
||||
void gotoLine(int line, int column = 0, bool centerLine = true) override;
|
||||
|
||||
private slots:
|
||||
void changeEditorPage(QAction *action);
|
||||
|
||||
Reference in New Issue
Block a user