forked from qt-creator/qt-creator
Debugger: Fix QString=>FilePath
Change-Id: I32128c7a47ab8bdd06237251c572be3d6a5df1d1 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -161,7 +161,7 @@ bool ModulesModel::contextMenuEvent(const ItemViewEvent &ev)
|
|||||||
addAction(this, menu, Tr::tr("Show Source Files for Module \"%1\"").arg(moduleName),
|
addAction(this, menu, Tr::tr("Show Source Files for Module \"%1\"").arg(moduleName),
|
||||||
Tr::tr("Show Source Files for Module"),
|
Tr::tr("Show Source Files for Module"),
|
||||||
moduleNameValid && enabled && canReload,
|
moduleNameValid && enabled && canReload,
|
||||||
[this, modulePath] { engine->loadSymbols(modulePath); });
|
[this, modulePath] { engine->loadSymbols(FilePath::fromUserInput(modulePath)); });
|
||||||
|
|
||||||
// FIXME: Dependencies only available on Windows, when "depends" is installed.
|
// FIXME: Dependencies only available on Windows, when "depends" is installed.
|
||||||
addAction(this, menu, Tr::tr("Show Dependencies of \"%1\"").arg(moduleName),
|
addAction(this, menu, Tr::tr("Show Dependencies of \"%1\"").arg(moduleName),
|
||||||
@@ -180,7 +180,7 @@ bool ModulesModel::contextMenuEvent(const ItemViewEvent &ev)
|
|||||||
addAction(this, menu, Tr::tr("Load Symbols for Module \"%1\"").arg(moduleName),
|
addAction(this, menu, Tr::tr("Load Symbols for Module \"%1\"").arg(moduleName),
|
||||||
Tr::tr("Load Symbols for Module"),
|
Tr::tr("Load Symbols for Module"),
|
||||||
moduleNameValid && canLoadSymbols,
|
moduleNameValid && canLoadSymbols,
|
||||||
[this, modulePath] { engine->loadSymbols(modulePath); });
|
[this, modulePath] { engine->loadSymbols(FilePath::fromUserInput(modulePath)); });
|
||||||
|
|
||||||
addAction(this, menu, Tr::tr("Edit File \"%1\"").arg(moduleName),
|
addAction(this, menu, Tr::tr("Edit File \"%1\"").arg(moduleName),
|
||||||
Tr::tr("Edit File"),
|
Tr::tr("Edit File"),
|
||||||
@@ -190,12 +190,12 @@ bool ModulesModel::contextMenuEvent(const ItemViewEvent &ev)
|
|||||||
addAction(this, menu, Tr::tr("Show Symbols in File \"%1\"").arg(moduleName),
|
addAction(this, menu, Tr::tr("Show Symbols in File \"%1\"").arg(moduleName),
|
||||||
Tr::tr("Show Symbols"),
|
Tr::tr("Show Symbols"),
|
||||||
canShowSymbols && moduleNameValid,
|
canShowSymbols && moduleNameValid,
|
||||||
[this, modulePath] { engine->requestModuleSymbols(modulePath); });
|
[this, modulePath] { engine->requestModuleSymbols(FilePath::fromUserInput(modulePath)); });
|
||||||
|
|
||||||
addAction(this, menu, Tr::tr("Show Sections in File \"%1\"").arg(moduleName),
|
addAction(this, menu, Tr::tr("Show Sections in File \"%1\"").arg(moduleName),
|
||||||
Tr::tr("Show Sections"),
|
Tr::tr("Show Sections"),
|
||||||
canShowSymbols && moduleNameValid,
|
canShowSymbols && moduleNameValid,
|
||||||
[this, modulePath] { engine->requestModuleSections(modulePath); });
|
[this, modulePath] { engine->requestModuleSections(FilePath::fromUserInput(modulePath)); });
|
||||||
|
|
||||||
menu->addAction(debuggerSettings()->settingsDialog.action());
|
menu->addAction(debuggerSettings()->settingsDialog.action());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user