Commit c3fc03c1 authored by hjk's avatar hjk
Browse files

debugger: add shortcut to debugger properties in more context menus

parent 9b7274a0
......@@ -101,6 +101,7 @@ void BreakWindow::contextMenuEvent(QContextMenuEvent *ev)
menu.addAction(act1);
menu.addAction(act2);
menu.addAction(act4);
menu.addSeparator();
menu.addAction(theDebuggerAction(SettingsDialog));
QAction *act = menu.exec(ev->globalPos());
......
......@@ -28,6 +28,7 @@
**************************************************************************/
#include "debuggeroutputwindow.h"
#include "debuggeractions.h"
#include <QtCore/QDebug>
......@@ -51,7 +52,7 @@ using namespace Find;
#endif // GDBDEBUGGERLEAN
using Debugger::Internal::DebuggerOutputWindow;
using namespace Debugger::Internal;
/////////////////////////////////////////////////////////////////////
//
......@@ -83,6 +84,8 @@ public:
menu->addAction(m_clearContentsAction);
//menu->addAction(m_saveContentsAction);
addContextActions(menu);
menu->addSeparator();
menu->addAction(theDebuggerAction(SettingsDialog));
menu->exec(ev->globalPos());
delete menu;
}
......
......@@ -29,17 +29,19 @@
#include "registerwindow.h"
#include "debuggeractions.h"
#include "debuggerconstants.h"
#include <QAction>
#include <QDebug>
#include <QDir>
#include <QFileInfo>
#include <QFileInfoList>
#include <QHeaderView>
#include <QMenu>
#include <QResizeEvent>
#include <QToolButton>
#include <QtCore/QDebug>
#include <QtCore/QDir>
#include <QtCore/QFileInfo>
#include <QtCore/QFileInfoList>
#include <QtGui/QAction>
#include <QtGui/QHeaderView>
#include <QtGui/QMenu>
#include <QtGui/QResizeEvent>
#include <QtGui/QToolButton>
using namespace Debugger::Internal;
......@@ -119,6 +121,9 @@ void RegisterWindow::contextMenuEvent(QContextMenuEvent *ev)
actions[Oct]->setCheckable(true);
actions[Oct]->setChecked(format == "o");
menu.addSeparator();
menu.addAction(theDebuggerAction(SettingsDialog));
QAction *act = menu.exec(ev->globalPos());
if (act == actions[Adjust])
......
......@@ -28,18 +28,19 @@
**************************************************************************/
#include "sourcefileswindow.h"
#include "debuggeractions.h"
#include <QDebug>
#include <QAction>
#include <QComboBox>
#include <QFileInfo>
#include <QDebug>
#include <QHeaderView>
#include <QMenu>
#include <QResizeEvent>
#include <QTreeView>
#include <QSortFilterProxyModel>
#include <QVBoxLayout>
#include <QtCore/QDebug>
#include <QtCore/QFileInfo>
#include <QtGui/QAction>
#include <QtGui/QComboBox>
#include <QtGui/QHeaderView>
#include <QtGui/QMenu>
#include <QtGui/QResizeEvent>
#include <QtGui/QSortFilterProxyModel>
#include <QtGui/QTreeView>
#include <QtGui/QVBoxLayout>
using Debugger::Internal::SourceFilesWindow;
using Debugger::Internal::SourceFilesModel;
......@@ -205,6 +206,8 @@ void SourceFilesWindow::contextMenuEvent(QContextMenuEvent *ev)
menu.addAction(act1);
menu.addAction(act2);
menu.addSeparator();
menu.addAction(theDebuggerAction(SettingsDialog));
QAction *act = menu.exec(ev->globalPos());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment