diff options
author | Jarek Kobus <jaroslaw.kobus@nokia.com> | 2014-01-30 17:04:54 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@digia.com> | 2014-01-30 19:13:48 +0100 |
commit | edac8f082d5f15fc293425311e6ab24db7252969 (patch) | |
tree | a2d45e58e35f383e9848914cb99a14dec55ecb91 /src/plugins/diffeditor/diffshoweditorfactory.cpp | |
parent | 3798552beb148b87d8124d80ede15adc8933b817 (diff) | |
download | qt-creator-edac8f082d5f15fc293425311e6ab24db7252969.tar.gz |
Get rid of DiffShowEditor.
Made DiffEditor customizable instead
Change-Id: If92799d47c7e731febb45197384c082eb3af55df
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
Diffstat (limited to 'src/plugins/diffeditor/diffshoweditorfactory.cpp')
-rw-r--r-- | src/plugins/diffeditor/diffshoweditorfactory.cpp | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/src/plugins/diffeditor/diffshoweditorfactory.cpp b/src/plugins/diffeditor/diffshoweditorfactory.cpp deleted file mode 100644 index f0acb1d8cf..0000000000 --- a/src/plugins/diffeditor/diffshoweditorfactory.cpp +++ /dev/null @@ -1,59 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). -** Contact: http://www.qt-project.org/legal -** -** This file is part of Qt Creator. -** -** Commercial License Usage -** Licensees holding valid commercial Qt licenses may use this file in -** accordance with the commercial license agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. For licensing terms and -** conditions see http://qt.digia.com/licensing. For further information -** use the contact form at http://qt.digia.com/contact-us. -** -** GNU Lesser General Public License Usage -** Alternatively, this file may be used under the terms of the GNU Lesser -** General Public License version 2.1 as published by the Free Software -** Foundation and appearing in the file LICENSE.LGPL included in the -** packaging of this file. Please review the following information to -** ensure the GNU Lesser General Public License version 2.1 requirements -** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, Digia gives you certain additional -** rights. These rights are described in the Digia Qt LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -****************************************************************************/ - -#include "diffeditorconstants.h" -#include "diffshoweditorfactory.h" -#include "diffshoweditor.h" -#include "sidebysidediffeditorwidget.h" - -#include <QCoreApplication> - -namespace DiffEditor { - -namespace Internal { - -DiffShowEditorFactory::DiffShowEditorFactory(QObject *parent) - : IEditorFactory(parent) -{ - setId(Constants::DIFF_SHOW_EDITOR_ID); - setDisplayName(qApp->translate("DiffEditorFactory", Constants::DIFF_SHOW_EDITOR_DISPLAY_NAME)); - setMimeTypes(QStringList() << QLatin1String(Constants::DIFF_EDITOR_MIMETYPE)); -} - -Core::IEditor *DiffShowEditorFactory::createEditor() -{ - SideBySideDiffEditorWidget *editorWidget = new SideBySideDiffEditorWidget(); - DiffEditorController *editorController = new DiffEditorController(editorWidget); - editorWidget->setDiffEditorController(editorController); - DiffShowEditor *editor = new DiffShowEditor(editorWidget); - return editor; -} - -} // namespace Internal -} // namespace DiffEditor |