forked from qt-creator/qt-creator
Debugger: Code cosmetics
Change-Id: I8759b5a16385b6abde9680ad6c46be5b0e2abdfc Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -128,8 +128,6 @@ class DebuggerMainWindowPrivate : public QObject
|
||||
public:
|
||||
DebuggerMainWindowPrivate(DebuggerMainWindow *parent);
|
||||
|
||||
void createToolBar();
|
||||
|
||||
void selectPerspective(Perspective *perspective);
|
||||
void depopulateCurrentPerspective();
|
||||
void populateCurrentPerspective();
|
||||
|
@@ -980,8 +980,7 @@ void DebuggerPluginPrivate::parseCommandLineArguments()
|
||||
QTimer::singleShot(0, this, &DebuggerPluginPrivate::runScheduled);
|
||||
}
|
||||
|
||||
bool DebuggerPluginPrivate::initialize(const QStringList &arguments,
|
||||
QString *errorMessage)
|
||||
bool DebuggerPluginPrivate::initialize(const QStringList &arguments, QString *errorMessage)
|
||||
{
|
||||
Q_UNUSED(errorMessage)
|
||||
|
||||
@@ -1024,12 +1023,8 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments,
|
||||
act->setEnabled(false);
|
||||
Command *cmd = ActionManager::registerAction(act, Constants::OPEN_MEMORY_EDITOR);
|
||||
|
||||
TaskHub::addCategory(TASK_CATEGORY_DEBUGGER_DEBUGINFO,
|
||||
tr("Debug Information"));
|
||||
TaskHub::addCategory(TASK_CATEGORY_DEBUGGER_RUNTIME,
|
||||
tr("Debugger Runtime"));
|
||||
|
||||
QSettings *settings = ICore::settings();
|
||||
TaskHub::addCategory(TASK_CATEGORY_DEBUGGER_DEBUGINFO, tr("Debug Information"));
|
||||
TaskHub::addCategory(TASK_CATEGORY_DEBUGGER_RUNTIME, tr("Debugger Runtime"));
|
||||
|
||||
m_debuggerSettings = new DebuggerSettings;
|
||||
m_debuggerSettings->readSettings();
|
||||
@@ -1060,7 +1055,7 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments,
|
||||
breakpointManagerView->setIconSize(QSize(10, 10));
|
||||
breakpointManagerView->setWindowIcon(Icons::BREAKPOINTS.icon());
|
||||
breakpointManagerView->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||
breakpointManagerView->setSettings(settings, "Debugger.BreakWindow");
|
||||
breakpointManagerView->setSettings(ICore::settings(), "Debugger.BreakWindow");
|
||||
breakpointManagerView->setRootIsDecorated(true);
|
||||
breakpointManagerView->setModel(BreakpointManager::model());
|
||||
breakpointManagerView->setSpanColumn(BreakpointFunctionColumn);
|
||||
@@ -1075,7 +1070,7 @@ bool DebuggerPluginPrivate::initialize(const QStringList &arguments,
|
||||
// Snapshot
|
||||
auto engineManagerView = new BaseTreeView;
|
||||
engineManagerView->setWindowTitle(tr("Running Debuggers"));
|
||||
engineManagerView->setSettings(settings, "Debugger.SnapshotView");
|
||||
engineManagerView->setSettings(ICore::settings(), "Debugger.SnapshotView");
|
||||
engineManagerView->setIconSize(QSize(10, 10));
|
||||
engineManagerView->setModel(m_engineManager.model());
|
||||
|
||||
|
Reference in New Issue
Block a user