forked from qt-creator/qt-creator
Core: Add LoggingView support
Add a way to inspect QC internal loggings. This is basically useful for inspecting issues while running QC and facing them without the need to restart and set appropriate logging rules. Change-Id: Ic647ba1abfb2611c4e4e99a375413d399c71886d Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include "documentmanager.h"
|
||||
#include "generalsettings.h"
|
||||
#include "idocumentfactory.h"
|
||||
#include "loggingviewer.h"
|
||||
#include "messagemanager.h"
|
||||
#include "modemanager.h"
|
||||
#include "outputpanemanager.h"
|
||||
@@ -704,6 +705,12 @@ void MainWindow::registerDefaultActions()
|
||||
mtools->appendGroup(Constants::G_TOOLS_OPTIONS);
|
||||
mtools->addSeparator(Constants::G_TOOLS_OPTIONS);
|
||||
|
||||
m_loggerAction = new QAction(tr("Logger..."), this);
|
||||
cmd = ActionManager::registerAction(m_loggerAction, Constants::LOGGER);
|
||||
mtools->addAction(cmd, Constants::G_TOOLS_OPTIONS);
|
||||
connect(m_loggerAction, &QAction::triggered, this, [] { LoggingViewer::showLoggingView(); });
|
||||
mtools->addSeparator(Constants::G_TOOLS_OPTIONS);
|
||||
|
||||
m_optionsAction = new QAction(tr("&Options..."), this);
|
||||
m_optionsAction->setMenuRole(QAction::PreferencesRole);
|
||||
cmd = ActionManager::registerAction(m_optionsAction, Constants::OPTIONS);
|
||||
|
||||
Reference in New Issue
Block a user