diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/qmldebugger/creatorplugin/inspectoroutputpane.cpp | 2 | ||||
-rw-r--r-- | tools/qmldebugger/creatorplugin/qmlinspectormode.cpp | 4 | ||||
-rw-r--r-- | tools/qmldebugger/creatorplugin/qmlinspectorplugin.cpp | 13 |
3 files changed, 9 insertions, 10 deletions
diff --git a/tools/qmldebugger/creatorplugin/inspectoroutputpane.cpp b/tools/qmldebugger/creatorplugin/inspectoroutputpane.cpp index d3f9913..5023e3e 100644 --- a/tools/qmldebugger/creatorplugin/inspectoroutputpane.cpp +++ b/tools/qmldebugger/creatorplugin/inspectoroutputpane.cpp @@ -102,7 +102,9 @@ void InspectorOutputPane::addErrorOutput(RunControl *, const QString &text) void InspectorOutputPane::addInspectorStatus(const QString &text) { + m_textEdit->setTextColor(Qt::darkGreen); m_textEdit->append(text); m_textEdit->moveCursor(QTextCursor::End); + m_textEdit->setTextColor(Qt::black); } diff --git a/tools/qmldebugger/creatorplugin/qmlinspectormode.cpp b/tools/qmldebugger/creatorplugin/qmlinspectormode.cpp index 9367b19..aec661c 100644 --- a/tools/qmldebugger/creatorplugin/qmlinspectormode.cpp +++ b/tools/qmldebugger/creatorplugin/qmlinspectormode.cpp @@ -168,7 +168,7 @@ void QmlInspectorMode::connectionStateChanged() switch (m_conn->state()) { default: case QAbstractSocket::UnconnectedState: - emit statusMessage(tr("[Inspector] disconnected\n\n")); + emit statusMessage(tr("[Inspector] disconnected.\n\n")); m_addressEdit->setEnabled(true); m_portSpinBox->setEnabled(true); break; @@ -180,7 +180,7 @@ void QmlInspectorMode::connectionStateChanged() break; case QAbstractSocket::ConnectedState: { - emit statusMessage(tr("[Inspector] connected\n")); + emit statusMessage(tr("[Inspector] connected.\n")); m_addressEdit->setEnabled(false); m_portSpinBox->setEnabled(false); diff --git a/tools/qmldebugger/creatorplugin/qmlinspectorplugin.cpp b/tools/qmldebugger/creatorplugin/qmlinspectorplugin.cpp index c743974..5108c35 100644 --- a/tools/qmldebugger/creatorplugin/qmlinspectorplugin.cpp +++ b/tools/qmldebugger/creatorplugin/qmlinspectorplugin.cpp @@ -55,18 +55,15 @@ bool QmlInspectorPlugin::initialize(const QStringList &arguments, QString *error Core::ICore *core = Core::ICore::instance(); Core::UniqueIDManager *uidm = core->uniqueIDManager(); - QList<int> modeContext; - modeContext.append(uidm->uniqueIdentifier(QmlInspector::Constants::C_INSPECTOR)); - - QList<int> inspectorContext; - inspectorContext.append(uidm->uniqueIdentifier(Core::Constants::C_EDITORMANAGER)); - inspectorContext.append(uidm->uniqueIdentifier(QmlInspector::Constants::C_INSPECTOR)); - inspectorContext.append(uidm->uniqueIdentifier(Core::Constants::C_NAVIGATION_PANE)); + QList<int> context; + context.append(uidm->uniqueIdentifier(QmlInspector::Constants::C_INSPECTOR)); + context.append(uidm->uniqueIdentifier(Core::Constants::C_EDITORMANAGER)); + context.append(uidm->uniqueIdentifier(Core::Constants::C_NAVIGATION_PANE)); m_inspectMode = new QmlInspectorMode(this); connect(m_inspectMode, SIGNAL(startViewer()), SLOT(startViewer())); connect(m_inspectMode, SIGNAL(stopViewer()), SLOT(stopViewer())); - m_inspectMode->setContext(modeContext); + m_inspectMode->setContext(context); addObject(m_inspectMode); m_outputPane = new InspectorOutputPane; |