diff options
author | hjk <hjk@theqtcompany.com> | 2015-11-10 16:59:02 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-12-09 12:06:26 +0000 |
commit | 33651877d83cf2ec9f562d1fa3dd9c726944c0dd (patch) | |
tree | 42f95c4c60b9c6f489550a89a2833ecb0ba1b642 /src/libs/qmljs/consolemanagerinterface.cpp | |
parent | 0e76b9910835dae0621adab2f5de3b8584999d25 (diff) | |
download | qt-creator-33651877d83cf2ec9f562d1fa3dd9c726944c0dd.tar.gz |
Move QmlConsole to Debugger
Now it is closer to its only user and possibly reusable for no-QML uses
there. We also drop the QML/JS syntax checker. The application being
debugged can already tell us about syntax errors. There is no need to
duplicate that functionality.
Change-Id: I2ba151f9f4c854c6119ba5462c21be40bddcebf9
Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
Diffstat (limited to 'src/libs/qmljs/consolemanagerinterface.cpp')
-rw-r--r-- | src/libs/qmljs/consolemanagerinterface.cpp | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/libs/qmljs/consolemanagerinterface.cpp b/src/libs/qmljs/consolemanagerinterface.cpp deleted file mode 100644 index 0c433c5885..0000000000 --- a/src/libs/qmljs/consolemanagerinterface.cpp +++ /dev/null @@ -1,55 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 2015 The Qt Company Ltd. -** Contact: http://www.qt.io/licensing -** -** 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 The Qt Company. For licensing terms and -** conditions see http://www.qt.io/terms-conditions. For further information -** use the contact form at http://www.qt.io/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 or version 3 as published by the Free -** Software Foundation and appearing in the file LICENSE.LGPLv21 and -** LICENSE.LGPLv3 included in the packaging of this file. Please review the -** following information to ensure the GNU Lesser General Public License -** requirements will be met: https://www.gnu.org/licenses/lgpl.html and -** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. -** -** In addition, as a special exception, The Qt Company gives you certain additional -** rights. These rights are described in The Qt Company LGPL Exception -** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. -** -****************************************************************************/ - -#include "consolemanagerinterface.h" - -namespace QmlJS { - -static ConsoleManagerInterface *g_instance = 0; - -ConsoleManagerInterface::ConsoleManagerInterface(QObject *parent) - : QObject(parent) -{ - Q_ASSERT(!g_instance); - g_instance = this; -} - -ConsoleManagerInterface::~ConsoleManagerInterface() -{ - Q_ASSERT(g_instance == this); - g_instance = 0; -} - -ConsoleManagerInterface *ConsoleManagerInterface::instance() -{ - return g_instance; -} - -} // QmlJS |