diff options
author | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2014-06-12 17:22:48 +0200 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2014-06-12 18:03:38 +0200 |
commit | 0ae78f8db38286a8d8e8126873bd117c5231c0c5 (patch) | |
tree | 79782813efcf7a333e449200655a5c8a18eab191 /src/plugins/qmldesigner/designercore/model/paster.h | |
parent | cb8d6c0c9e9b148dde5b64ac4ac6606adaf52cbb (diff) |
QmlDesigner.Model: Remove unused code
Change-Id: I313c9d5180493d4ea77360c1bf8a5cbb725241e2
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
Diffstat (limited to 'src/plugins/qmldesigner/designercore/model/paster.h')
-rw-r--r-- | src/plugins/qmldesigner/designercore/model/paster.h | 76 |
1 files changed, 0 insertions, 76 deletions
diff --git a/src/plugins/qmldesigner/designercore/model/paster.h b/src/plugins/qmldesigner/designercore/model/paster.h deleted file mode 100644 index 1d5fff0eed..0000000000 --- a/src/plugins/qmldesigner/designercore/model/paster.h +++ /dev/null @@ -1,76 +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. -** -****************************************************************************/ - -#ifndef PASTER_H -#define PASTER_H - -#include <QList> -#include <QMimeData> -#include <QSet> -#include <QString> - -#include "import.h" -#include "internalnode_p.h" -#include "modeltotextmerger.h" -#include "textlocation.h" - -namespace QmlDesigner { -namespace Internal { - -class ASTExtractor; - -class Paster -{ - friend class ASTExtractor; - -public: - Paster(QMimeData *transferData, const InternalNode::Pointer &intoNode); - - bool canPaste(); - bool doPaste(ModelToTextMerger &modelToTextMerger); - -protected: - void addImports(const Import &imports); - void addNode(const QString &nodeText); - void addNodeState(const QString &stateName, const QString &propertyChanges); - -private: - QList<TextLocation> extractPasteData(QMimeData *transferData); - -private: - InternalNode::Pointer m_targetNode; - QList<TextLocation> m_pastedLocations; - QString m_pastedSource; - ModelToTextMerger *m_modelToTextMerger; -}; - -} // namespace Internal -} // namespace QmlDesigner - -#endif // PASTER_H |