Debugger: Fix typo

Change-Id: I16be2a69d0050e27b908bff4991dfb11e9dfd25e
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Stenger
2018-08-23 12:31:03 +02:00
committed by hjk
parent 4b7a9ae5db
commit c03e5aebe0
4 changed files with 5 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ const char C_DEBUGMODE[] = "Debugger.DebugMode";
const char C_CPPDEBUGGER[] = "Gdb Debugger";
const char C_QMLDEBUGGER[] = "Qml/JavaScript Debugger";
const char PRESET_PERSPRECTIVE_ID[] = "Debugger.Perspective.Preset";
const char PRESET_PERSPECTIVE_ID[] = "Debugger.Perspective.Preset";
// Menu Groups
const char G_GENERAL[] = "Debugger.Group.General";

View File

@@ -531,7 +531,7 @@ void DebuggerEnginePrivate::setupViews()
QTC_CHECK(!m_perspective);
const QString perspectiveId = "Debugger.Perspective." + m_debuggerName + '.' + rp.displayName;
m_perspective = new Perspective(perspectiveId, m_engine->displayName(),
Debugger::Constants::PRESET_PERSPRECTIVE_ID);
Debugger::Constants::PRESET_PERSPECTIVE_ID);
m_progress.setProgressRange(0, 1000);
FutureProgress *fp = ProgressManager::addTask(m_progress.future(),

View File

@@ -764,7 +764,7 @@ public:
IContext m_debugModeContext;
DebugInfoTaskHandler m_debugInfoTaskHandler;
Perspective m_perspective{Constants::PRESET_PERSPRECTIVE_ID, tr("Debugger")};
Perspective m_perspective{Constants::PRESET_PERSPECTIVE_ID, tr("Debugger")};
};
DebuggerPluginPrivate::DebuggerPluginPrivate(DebuggerPlugin *plugin)
@@ -2415,7 +2415,7 @@ void DebuggerPluginPrivate::onModeChanged(Id mode)
if (mode == MODE_DEBUG) {
// if (EngineManager::engines().isEmpty())
// DebuggerMainWindow::instance()->restorePerspective(Constants::PRESET_PERSPRECTIVE_ID);
// DebuggerMainWindow::instance()->restorePerspective(Constants::PRESET_PERSPECTIVE_ID);
EngineManager::selectUiForCurrentEngine();
if (IEditor *editor = EditorManager::currentEditor())
editor->widget()->setFocus();

View File

@@ -333,7 +333,7 @@ void EngineManagerPrivate::selectUiForCurrentEngine()
m_engineChooser->setCurrentIndex(row);
if (!perspective)
perspective = Perspective::findPerspective(Debugger::Constants::PRESET_PERSPRECTIVE_ID);
perspective = Perspective::findPerspective(Debugger::Constants::PRESET_PERSPECTIVE_ID);
QTC_ASSERT(perspective, return);
perspective->select();