Move line/column label functionality into single place

Create a LineColumnLabel class that aggregates the functionality that
was before spread through the editor widget and factory classes.

Change-Id: I6ba316174b2f690a0b146bdd606c6f8ed985ec20
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Eike Ziller
2017-12-01 13:29:12 +01:00
parent a6dfae7f10
commit 508a9bdb24
3 changed files with 48 additions and 25 deletions

View File

@@ -29,6 +29,7 @@
#include "blockrange.h"
#include "codeassist/assistenums.h"
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/editormanager/ieditor.h>
#include <coreplugin/editormanager/ieditorfactory.h>
@@ -566,7 +567,7 @@ signals:
void tooltipOverrideRequested(TextEditor::TextEditorWidget *widget,
const QPoint &globalPos, int position, bool *handled);
void tooltipRequested(const QPoint &globalPos, int position);
void activateEditor();
void activateEditor(Core::EditorManager::OpenEditorFlags flags = 0);
protected:
virtual void slotCursorPositionChanged(); // Used in VcsBase