forked from qt-creator/qt-creator
core: use a class derived from QList<int> instead of a QList<int> for Core::Context
A mostly mechanical change. Reviewed-By: con
This commit is contained in:
@@ -56,7 +56,7 @@ CMakeEditorEditable::CMakeEditorEditable(CMakeEditor *editor)
|
||||
m_context << uidm->uniqueIdentifier(TextEditor::Constants::C_TEXTEDITOR);
|
||||
}
|
||||
|
||||
QList<int> CMakeEditorEditable::context() const
|
||||
Core::Context CMakeEditorEditable::context() const
|
||||
{
|
||||
return m_context;
|
||||
}
|
||||
|
||||
@@ -53,14 +53,14 @@ class CMakeEditorEditable : public TextEditor::BaseTextEditorEditable
|
||||
{
|
||||
public:
|
||||
CMakeEditorEditable(CMakeEditor *);
|
||||
QList<int> context() const;
|
||||
Core::Context context() const;
|
||||
|
||||
bool duplicateSupported() const { return true; }
|
||||
Core::IEditor *duplicate(QWidget *parent);
|
||||
QString id() const;
|
||||
bool isTemporary() const { return false; }
|
||||
private:
|
||||
QList<int> m_context;
|
||||
Core::Context m_context;
|
||||
};
|
||||
|
||||
class CMakeEditor : public TextEditor::BaseTextEditor
|
||||
|
||||
Reference in New Issue
Block a user