TextEditor: Avoid using Core::Id::uniqueIdentifier

... by using Core::Ids instead of ExtraSelectionKind enum.

Change-Id: I664ff2a4a03eddd8fe1150929203a1727c12dc84
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
hjk
2015-06-23 15:56:45 +02:00
parent 1a0a7312f1
commit 2c07175be5
3 changed files with 34 additions and 40 deletions

View File

@@ -328,22 +328,18 @@ public:
void ensureCursorVisible();
enum ExtraSelectionKind {
CurrentLineSelection,
ParenthesesMatchingSelection,
CodeWarningsSelection,
CodeSemanticsSelection,
UndefinedSymbolSelection,
UnusedSymbolSelection,
FakeVimSelection,
OtherSelection,
SnippetPlaceholderSelection,
ObjCSelection,
DebuggerExceptionSelection,
NExtraSelectionKinds
};
void setExtraSelections(ExtraSelectionKind kind, const QList<QTextEdit::ExtraSelection> &selections);
QList<QTextEdit::ExtraSelection> extraSelections(ExtraSelectionKind kind) const;
static Core::Id FakeVimSelection;
static Core::Id SnippetPlaceholderSelection;
static Core::Id CurrentLineSelection;
static Core::Id ParenthesesMatchingSelection;
static Core::Id CodeWarningsSelection;
static Core::Id CodeSemanticsSelection;
static Core::Id UndefinedSymbolSelection;
static Core::Id UnusedSymbolSelection;
static Core::Id OtherSelection;
static Core::Id ObjCSelection;
static Core::Id DebuggerExceptionSelection;
void setExtraSelections(Core::Id kind, const QList<QTextEdit::ExtraSelection> &selections);
QList<QTextEdit::ExtraSelection> extraSelections(Core::Id kind) const;
QString extraSelectionTooltip(int pos) const;