forked from qt-creator/qt-creator
debugger: make context menus of views look more similar
This commit is contained in:
@@ -99,19 +99,8 @@ void StackWindow::contextMenuEvent(QContextMenuEvent *ev)
|
||||
StackFrame frame = model()->data(idx, Qt::UserRole).value<StackFrame>();
|
||||
QString address = frame.address;
|
||||
|
||||
qDebug() << "RECV: " << frame.toToolTip();
|
||||
|
||||
QMenu menu;
|
||||
|
||||
QAction *actAdjust = menu.addAction(tr("Adjust column widths to contents"));
|
||||
|
||||
QAction *actAlwaysAdjust =
|
||||
menu.addAction(tr("Always adjust column widths to contents"));
|
||||
actAlwaysAdjust->setCheckable(true);
|
||||
actAlwaysAdjust->setChecked(m_alwaysResizeColumnsToContents);
|
||||
|
||||
menu.addSeparator();
|
||||
|
||||
menu.addAction(theDebuggerAction(ExpandStack));
|
||||
|
||||
QAction *actCopyContents = menu.addAction(tr("Copy contents to clipboard"));
|
||||
@@ -135,6 +124,15 @@ void StackWindow::contextMenuEvent(QContextMenuEvent *ev)
|
||||
|
||||
menu.addSeparator();
|
||||
|
||||
QAction *actAdjust = menu.addAction(tr("Adjust column widths to contents"));
|
||||
|
||||
QAction *actAlwaysAdjust =
|
||||
menu.addAction(tr("Always adjust column widths to contents"));
|
||||
actAlwaysAdjust->setCheckable(true);
|
||||
actAlwaysAdjust->setChecked(m_alwaysResizeColumnsToContents);
|
||||
|
||||
menu.addSeparator();
|
||||
|
||||
menu.addAction(theDebuggerAction(SettingsDialog));
|
||||
|
||||
QAction *act = menu.exec(ev->globalPos());
|
||||
|
||||
Reference in New Issue
Block a user