forked from qt-creator/qt-creator
core: make context and widget IContext data members
This commit is contained in:
@@ -59,18 +59,13 @@ using namespace Qt4ProjectManager::Internal;
|
||||
//
|
||||
|
||||
ProFileEditor::ProFileEditor(ProFileEditorWidget *editor)
|
||||
: BaseTextEditor(editor),
|
||||
m_context(Qt4ProjectManager::Constants::C_PROFILEEDITOR,
|
||||
TextEditor::Constants::C_TEXTEDITOR)
|
||||
: BaseTextEditor(editor)
|
||||
{
|
||||
setContext(Core::Context(Qt4ProjectManager::Constants::C_PROFILEEDITOR,
|
||||
TextEditor::Constants::C_TEXTEDITOR));
|
||||
// m_contexts << uidm->uniqueIdentifier(Qt4ProjectManager::Constants::PROJECT_KIND);
|
||||
}
|
||||
|
||||
Core::Context ProFileEditor::context() const
|
||||
{
|
||||
return m_context;
|
||||
}
|
||||
|
||||
Core::IEditor *ProFileEditor::duplicate(QWidget *parent)
|
||||
{
|
||||
ProFileEditorWidget *ret = new ProFileEditorWidget(parent, qobject_cast<ProFileEditorWidget*>(editorWidget())->factory(),
|
||||
@@ -103,10 +98,6 @@ ProFileEditorWidget::ProFileEditorWidget(QWidget *parent, ProFileEditorFactory *
|
||||
m_commentDefinition.setSingleLine(QString(QLatin1Char('#')));
|
||||
}
|
||||
|
||||
ProFileEditorWidget::~ProFileEditorWidget()
|
||||
{
|
||||
}
|
||||
|
||||
void ProFileEditorWidget::unCommentSelection()
|
||||
{
|
||||
Utils::unCommentSelection(this, m_commentDefinition);
|
||||
|
||||
Reference in New Issue
Block a user