forked from qt-creator/qt-creator
Fixes: debugger: easy access to source files and modules from the
context menu
This commit is contained in:
@@ -260,6 +260,8 @@ void DebuggerManager::init()
|
||||
this, SLOT(loadSymbols(QString)));
|
||||
connect(modulesView, SIGNAL(loadAllSymbolsRequested()),
|
||||
this, SLOT(loadAllSymbols()));
|
||||
connect(modulesView, SIGNAL(fileOpenRequested(QString)),
|
||||
this, SLOT(fileOpen(QString)));
|
||||
|
||||
// Source Files
|
||||
//m_sourceFilesHandler = new SourceFilesHandler;
|
||||
@@ -268,6 +270,8 @@ void DebuggerManager::init()
|
||||
//sourceFileView->setModel(m_stackHandler->stackModel());
|
||||
connect(sourceFilesView, SIGNAL(reloadSourceFilesRequested()),
|
||||
this, SLOT(reloadSourceFiles()));
|
||||
connect(sourceFilesView, SIGNAL(fileOpenRequested(QString)),
|
||||
this, SLOT(fileOpen(QString)));
|
||||
|
||||
// Registers
|
||||
QAbstractItemView *registerView =
|
||||
@@ -1390,6 +1394,13 @@ void DebuggerManager::gotoLocation(const QString &fileName, int line,
|
||||
emit gotoLocationRequested(fileName, line, setMarker);
|
||||
}
|
||||
|
||||
void DebuggerManager::fileOpen(const QString &fileName)
|
||||
{
|
||||
// connected to the plugin
|
||||
emit gotoLocationRequested(fileName, 1, false);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user