summaryrefslogtreecommitdiff
path: root/src/plugins/qmljseditor/qmljswrapinloader.h
diff options
context:
space:
mode:
authorChristian Kamm <christian.d.kamm@nokia.com>2011-10-19 13:48:10 +0200
committerChristian Kamm <christian.d.kamm@nokia.com>2011-10-19 14:21:47 +0200
commitcf156cd2eab5ed65b9b4e9f104b851d14f0c6219 (patch)
tree2a9566bae3420c78cbeffe6492032c892361c51e /src/plugins/qmljseditor/qmljswrapinloader.h
parent85d78c608253e7bbfbc6e3be95d272a6c127953e (diff)
downloadqt-creator-cf156cd2eab5ed65b9b4e9f104b851d14f0c6219.tar.gz
QmlJS: Add quick fix to wrap element in Loader.
Change-Id: Ie8b1624abfd9faa8c6153ad99e48964d597d543c Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/plugins/qmljseditor/qmljswrapinloader.h')
-rw-r--r--src/plugins/qmljseditor/qmljswrapinloader.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/plugins/qmljseditor/qmljswrapinloader.h b/src/plugins/qmljseditor/qmljswrapinloader.h
new file mode 100644
index 0000000000..2d33d94c5b
--- /dev/null
+++ b/src/plugins/qmljseditor/qmljswrapinloader.h
@@ -0,0 +1,51 @@
+/**************************************************************************
+**
+** This file is part of Qt Creator
+**
+** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
+**
+** Contact: Nokia Corporation (info@qt.nokia.com)
+**
+**
+** GNU Lesser General Public License Usage
+**
+** 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, Nokia gives you certain additional
+** rights. These rights are described in the Nokia Qt LGPL Exception
+** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
+**
+** Other Usage
+**
+** Alternatively, this file may be used in accordance with the terms and
+** conditions contained in a signed written agreement between you and Nokia.
+**
+** If you have questions regarding the use of this file, please contact
+** Nokia at info@qt.nokia.com.
+**
+**************************************************************************/
+
+#ifndef QMLJSWRAPINLOADER_H
+#define QMLJSWRAPINLOADER_H
+
+#include "qmljsquickfix.h"
+
+namespace QmlJSEditor {
+namespace Internal {
+
+class WrapInLoader: public QmlJSQuickFixFactory
+{
+public:
+ virtual QList<QmlJSQuickFixOperation::Ptr> match(
+ const QSharedPointer<const QmlJSQuickFixAssistInterface> &interface);
+};
+
+} // namespace Internal
+} // namespace QmlJSEditor
+
+#endif // QMLJSWRAPINLOADER_H